Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat: add shared formula packages (#7294)
Univer3b73c60ebf08
diff --git a/common/mockdata/package.json b/common/mockdata/package.jsonindex ebbfc0ab12..169800303f 100644--- a/common/mockdata/package.json+++ b/common/mockdata/package.json@@ -42,6 +42,7 @@"@univerjs/drawing-ui": "workspace:*","@univerjs/engine-render": "workspace:*","@univerjs/find-replace": "workspace:*",+ "@univerjs/formula": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/sheets-conditional-formatting": "workspace:*","@univerjs/sheets-conditional-formatting-ui": "workspace:*",diff --git a/packages/core/src/bases/typedef.ts b/packages/core/src/bases/typedef.tsindex cecf00ab72..f4506b3876 100644--- a/packages/core/src/bases/typedef.ts+++ b/packages/core/src/bases/typedef.ts@@ -529,6 +529,14 @@ export interface IGridCellSelection {viewId: ViewId;recordId: RecordId;fieldId: FieldId;+ mode?: 'cell' | 'row' | 'column';+ anchorRecordId?: RecordId;+ focusRecordId?: RecordId;+ anchorFieldId?: FieldId;+ focusFieldId?: FieldId;+ selectedRecordIds?: RecordId[];+ showBorder?: boolean;+ virtual?: boolean;}export interface IGridGroupSelection {diff --git a/packages/core/src/services/context/context.ts b/packages/core/src/services/context/context.tsindex efa4fe07ba..7ca7838297 100644--- a/packages/core/src/services/context/context.ts+++ b/packages/core/src/services/context/context.ts@@ -27,6 +27,7 @@ export const FOCUSING_UNIT = 'FOCUSING_UNIT';export const FOCUSING_SHEET = 'FOCUSING_SHEET';export const FOCUSING_DOC = 'FOCUSING_DOC';export const FOCUSING_SLIDE = 'FOCUSING_SLIDE';+export const FOCUSING_BOARD = 'FOCUSING_BOARD';/** @deprecated */export const FOCUSING_EDITOR_BUT_HIDDEN = 'FOCUSING_EDITOR_BUT_HIDDEN';diff --git a/packages/core/src/services/instance/__tests__/instance.service.spec.ts b/packages/core/src/services/instance/__tests__/instance.service.spec.tsindex 2578e218e1..defb5631b4 100644--- a/packages/core/src/services/instance/__tests__/instance.service.spec.ts+++ b/packages/core/src/services/instance/__tests__/instance.service.spec.ts@@ -24,7 +24,7 @@ import { Injector } from '../../../common/di';import { UnitModel, UniverInstanceType } from '../../../common/unit';import { DocumentDataModel } from '../../../docs/data-model/document-data-model';import { Workbook as WorkbookModel } from '../../../sheets/workbook';-import { FOCUSING_DOC, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT } from '../../context/context';+import { FOCUSING_BOARD, FOCUSING_DOC, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT } from '../../context/context';import { ContextService, IContextService } from '../../context/context.service';import { DesktopLogService, ILogService, LogLevel } from '../../log/log.service';import { IUniverInstanceService, UniverInstanceService } from '../instance.service';@@ -145,24 +145,35 @@ describe('UniverInstanceService', () => {expect(service.getUnitType('missing')).toBe(UniverInstanceType.UNRECOGNIZED);});- it('should focus sheet, doc, slide and reset contexts on null focus', () => {+ it('should focus sheet, doc, slide, board and reset contexts on null focus', () => {const workbook = service.createUnit<Partial<IWorkbookData>, WorkbookModel>(UniverInstanceType.UNIVER_SHEET, createWorkbookData());const doc = service.createUnit<Partial<IDocumentData>, DocumentDataModel>(UniverInstanceType.UNIVER_DOC, createDocData());const slide = service.createUnit<object, MockSlideUnit>(UniverInstanceType.UNIVER_SLIDE, {});+ const board = service.createUnit<object, MockBoardUnit>(UniverInstanceType.UNIVER_BOARD, {});service.focusUnit(workbook.getUnitId());expect(contextService.getContextValue(FOCUSING_UNIT)).toBe(true);expect(contextService.getContextValue(FOCUSING_SHEET)).toBe(true);expect(contextService.getContextValue(FOCUSING_DOC)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_BOARD)).toBe(false);service.focusUnit(doc.getUnitId());expect(service.getFocusedUnit()?.getUnitId()).toBe(doc.getUnitId());expect(contextService.getContextValue(FOCUSING_DOC)).toBe(true);expect(contextService.getContextValue(FOCUSING_SHEET)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_BOARD)).toBe(false);service.focusUnit(slide.getUnitId());expect(contextService.getContextValue(FOCUSING_SLIDE)).toBe(true);expect(contextService.getContextValue(FOCUSING_DOC)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_BOARD)).toBe(false);++ service.focusUnit(board.getUnitId());+ expect(contextService.getContextValue(FOCUSING_UNIT)).toBe(true);+ expect(contextService.getContextValue(FOCUSING_BOARD)).toBe(true);+ expect(contextService.getContextValue(FOCUSING_DOC)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_SHEET)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_SLIDE)).toBe(false);service.focusUnit(null);expect(service.getFocusedUnit()).toBeNull();@@ -170,6 +181,7 @@ describe('UniverInstanceService', () => {expect(contextService.getContextValue(FOCUSING_DOC)).toBe(false);expect(contextService.getContextValue(FOCUSING_SHEET)).toBe(false);expect(contextService.getContextValue(FOCUSING_SLIDE)).toBe(false);+ expect(contextService.getContextValue(FOCUSING_BOARD)).toBe(false);});it('should replace docs and dispose units while resetting focus and current', () => {diff --git a/packages/core/src/services/instance/instance.service.ts b/packages/core/src/services/instance/instance.service.tsindex 52c6b5872e..a6b03fba80 100644--- a/packages/core/src/services/instance/instance.service.ts+++ b/packages/core/src/services/instance/instance.service.ts@@ -24,7 +24,7 @@ import { UniverInstanceType } from '../../common/unit';import { DocumentDataModel } from '../../docs/data-model/document-data-model';import { Disposable } from '../../shared/lifecycle';import { Workbook } from '../../sheets/workbook';-import { FOCUSING_DOC, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT } from '../context/context';+import { FOCUSING_BOARD, FOCUSING_DOC, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT } from '../context/context';import { IContextService } from '../context/context.service';import { ILogService } from '../log/log.service';@@ -298,24 +298,35 @@ export class UniverInstanceService extends Disposable implements IUniverInstancethis._contextService.setContextValue(FOCUSING_DOC, false);this._contextService.setContextValue(FOCUSING_SHEET, true);this._contextService.setContextValue(FOCUSING_SLIDE, false);+ this._contextService.setContextValue(FOCUSING_BOARD, false);this.setCurrentUnitForType(id!);} else if (this.focused instanceof DocumentDataModel) {this._contextService.setContextValue(FOCUSING_UNIT, true);this._contextService.setContextValue(FOCUSING_DOC, true);this._contextService.setContextValue(FOCUSING_SHEET, false);this._contextService.setContextValue(FOCUSING_SLIDE, false);+ this._contextService.setContextValue(FOCUSING_BOARD, false);this.setCurrentUnitForType(id!);} else if (this.focused?.type === UniverInstanceType.UNIVER_SLIDE) {this._contextService.setContextValue(FOCUSING_UNIT, true);this._contextService.setContextValue(FOCUSING_DOC, false);this._contextService.setContextValue(FOCUSING_SHEET, false);this._contextService.setContextValue(FOCUSING_SLIDE, true);+ this._contextService.setContextValue(FOCUSING_BOARD, false);+ this.setCurrentUnitForType(id!);+ } else if (this.focused?.type === UniverInstanceType.UNIVER_BOARD) {+ this._contextService.setContextValue(FOCUSING_UNIT, true);+ this._contextService.setContextValue(FOCUSING_DOC, false);+ this._contextService.setContextValue(FOCUSING_SHEET, false);+ this._contextService.setContextValue(FOCUSING_SLIDE, false);+ this._contextService.setContextValue(FOCUSING_BOARD, true);this.setCurrentUnitForType(id!);} else {this._contextService.setContextValue(FOCUSING_UNIT, false);this._contextService.setContextValue(FOCUSING_DOC, false);this._contextService.setContextValue(FOCUSING_SHEET, false);this._contextService.setContextValue(FOCUSING_SLIDE, false);+ this._contextService.setContextValue(FOCUSING_BOARD, false);}}diff --git a/packages/docs-quick-insert-ui/src/views/__tests__/QuickInsertPopup.spec.tsx b/packages/docs-quick-insert-ui/src/views/__tests__/QuickInsertPopup.spec.tsxindex 845589bb7e..82675c9155 100644--- a/packages/docs-quick-insert-ui/src/views/__tests__/QuickInsertPopup.spec.tsx+++ b/packages/docs-quick-insert-ui/src/views/__tests__/QuickInsertPopup.spec.tsx@@ -39,10 +39,12 @@ import {IconManager,IPlatformService,IShortcutService,+ IUIRuntimeScopeService,KeyCode,PlatformService,RediContext,ShortcutService,+ UIRuntimeScopeService,} from '@univerjs/ui';import { act } from 'react';import { createRoot } from 'react-dom/client';@@ -146,6 +148,7 @@ function createQuickInsertPopupTestBed(options?: {injector.add([ICommandService, { useClass: CommandService }]);injector.add([LocaleService, { useClass: LocaleService }]);injector.add([IPlatformService, { useClass: PlatformService }]);+ injector.add([IUIRuntimeScopeService, { useClass: UIRuntimeScopeService }]);injector.add([IShortcutService, { useClass: ShortcutService }]);injector.add([ComponentManager, { useClass: ComponentManager }]);injector.add([IconManager, { useClass: IconManager }]);diff --git a/packages/engine-formula/src/facade/f-formula.ts b/packages/engine-formula/src/facade/f-formula.tsindex 50bf244ea2..7f98f90844 100644--- a/packages/engine-formula/src/facade/f-formula.ts+++ b/packages/engine-formula/src/facade/f-formula.ts@@ -129,7 +129,12 @@ export class FFormula extends FBase {}/**- * Start the calculation of the formula.+ * Forces formula calculation explicitly.+ *+ * Normal facade mutations such as `range.setFormula()` already mark formula+ * data dirty and schedule calculation automatically. Use this method only when+ * an external data change did not produce a dirty command or an explicit full+ * recalculation is required.** @example* ```tsdiff --git a/packages/engine-formula/src/services/__tests__/register-other-formula.service.spec.ts b/packages/engine-formula/src/services/__tests__/register-other-formula.service.spec.tsindex d041e1bb8b..4c3538f1e2 100644--- a/packages/engine-formula/src/services/__tests__/register-other-formula.service.spec.ts+++ b/packages/engine-formula/src/services/__tests__/register-other-formula.service.spec.ts@@ -126,6 +126,38 @@ describe('RegisterOtherFormulaService', () => {expect((value?.result as FormulaResultMatrix | undefined)?.[0]?.[0]?.[0]?.v).toBe(2);});+ it('should acknowledge other-formula application after cache and result subscribers update', async () => {+ const { service, commandService } = createService();+ const formulaId = service.registerFormulaWithRange('unit-1', 'sheet-1', '=A1+1');+ const resultPayload = {+ unitData: {},+ unitOtherData: {+ 'unit-1': {+ 'sheet-1': {+ [formulaId]: { 0: { 0: [{ v: 2 }] } },+ },+ },+ },+ };+ let resultDistributed = false;+ let acknowledgedPayload: unknown;++ const resultSubscription = service.formulaResult$.subscribe(() => {+ resultDistributed = true;+ });+ const appliedSubscription = service.otherFormulaResultApplied$.subscribe((payload) => {+ expect(resultDistributed).toBe(true);+ expect(service.getFormulaValueSync('unit-1', 'sheet-1', formulaId)?.status).toBe(FormulaResultStatus.SUCCESS);+ acknowledgedPayload = payload;+ });++ await commandService.executeCommand(SetFormulaCalculationResultMutation.id, resultPayload);++ expect(acknowledgedPayload).toBe(resultPayload);+ resultSubscription.unsubscribe();+ appliedSubscription.unsubscribe();+ });+it('should support delete and dirty marking', async () => {const { service, commandService } = createService();const executedIds: string[] = [];diff --git a/packages/engine-formula/src/services/register-other-formula.service.ts b/packages/engine-formula/src/services/register-other-formula.service.tsindex 9d9da0718e..0f4bf2f780 100644--- a/packages/engine-formula/src/services/register-other-formula.service.ts+++ b/packages/engine-formula/src/services/register-other-formula.service.ts@@ -37,6 +37,7 @@ export enum OtherFormulaBizType {CONDITIONAL_FORMATTING = 'cf',DOC = 'doc',SLIDE = 'slide',+ SHAPE = 'shape',}export class RegisterOtherFormulaService extends Disposable {@@ -49,6 +50,9 @@ export class RegisterOtherFormulaService extends Disposable {private _formulaResult$ = new Subject<Record<string, Record<string, IOtherFormulaResult[]>>>();public formulaResult$ = this._formulaResult$.asObservable();+ private _otherFormulaResultApplied$ = new Subject<ISetFormulaCalculationResultMutation>();+ public otherFormulaResultApplied$ = this._otherFormulaResultApplied$.asObservable();+public calculateStarted$ = new BehaviorSubject(false);constructor(@@ -66,6 +70,7 @@ export class RegisterOtherFormulaService extends Disposable {this._formulaChangeWithRange$.complete();this._formulaResult$.complete();+ this._otherFormulaResultApplied$.complete();this.calculateStarted$.complete();}@@ -198,6 +203,7 @@ export class RegisterOtherFormulaService extends Disposable {}}this._formulaResult$.next(results);+ this._otherFormulaResultApplied$.next(params);}}));}diff --git a/packages/formula-ui/package.json b/packages/formula-ui/package.jsonnew file mode 100644index 0000000000..69a6794778--- /dev/null+++ b/packages/formula-ui/package.json@@ -0,0 +1,59 @@+{+ "name": "@univerjs/formula-ui",+ "version": "1.0.0-alpha.4",+ "private": false,+ "description": "Shared formula search and highlighting helpers for Univer editors.",+ "author": "DreamNum Co., Ltd. <[email protected]>",+ "license": "Apache-2.0",+ "homepage": "https://univer.ai",+ "repository": {+ "type": "git",+ "url": "https://github.com/dream-num/univer"+ },+ "exports": {+ ".": "./src/index.ts",+ "./*": "./src/*"+ },+ "main": "./src/index.ts",+ "types": "./lib/types/index.d.ts",+ "publishConfig": {+ "access": "public",+ "main": "./lib/es/index.js",+ "module": "./lib/es/index.js",+ "exports": {+ ".": {+ "import": "./lib/es/index.js",+ "require": "./lib/cjs/index.js",+ "types": "./lib/types/index.d.ts"+ },+ "./*": {+ "import": "./lib/es/*",+ "require": "./lib/cjs/*",+ "types": "./lib/types/index.d.ts"+ },+ "./lib/*": "./lib/*"+ }+ },+ "files": [+ "lib"+ ],+ "scripts": {+ "test": "vitest run",+ "test:watch": "vitest",+ "coverage": "vitest run --coverage",+ "typecheck": "tsc --noEmit",+ "build:bundle": "univer-cli build",+ "build:types": "tsc -p tsconfig.node.json",+ "build": "pnpm run build:bundle && pnpm run build:types"+ },+ "dependencies": {+ "@univerjs/engine-formula": "workspace:*"+ },+ "devDependencies": {+ "@univerjs-infra/shared": "workspace:*",+ "@univerjs/core": "workspace:*",+ "@univerjs/formula": "workspace:*",+ "typescript": "^6.0.3",+ "vitest": "^4.1.10"+ }+}diff --git a/packages/formula-ui/src/__tests__/formula-editor-helpers.spec.ts b/packages/formula-ui/src/__tests__/formula-editor-helpers.spec.tsnew file mode 100644index 0000000000..2d8ce081a6--- /dev/null+++ b/packages/formula-ui/src/__tests__/formula-editor-helpers.spec.ts@@ -0,0 +1,131 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import { FunctionType, matchToken, sequenceNodeType } from '@univerjs/engine-formula';+import { describe, expect, it } from 'vitest';+import {+ findFormulaStructuredReferences,+ getFormulaHighlightDataStream,+ getFormulaReplaceResult,+ resolveFormulaReferenceEditingContext,+} from '../formula-editor-helpers';++describe('formula editor helpers', () => {+ it('replaces a partial function and appends its opening bracket', () => {+ expect(getFormulaReplaceResult(['SU'], 0, 'SUM', FunctionType.Math)).toEqual({+ text: `SUM${matchToken.OPEN_BRACKET}`,+ offset: -2,+ });+ });++ it('does not append a bracket for table references', () => {+ expect(getFormulaReplaceResult(['SalesTa'], 0, 'SalesTable', FunctionType.Table)).toEqual({+ text: 'SalesTable',+ offset: -3,+ });+ });++ it('serializes parsed references into an editor document stream', () => {+ const nodes = [{+ token: '[Book]Sheet1!A1',+ nodeType: sequenceNodeType.REFERENCE,+ startIndex: 0,+ endIndex: 15,+ }];++ expect(getFormulaHighlightDataStream('=', nodes)).toBe('=[Book]Sheet1!A1\r\n');+ });++ it('uses the same cursor rules for adding and replacing references', () => {+ const reference = {+ token: 'A1:B2',+ nodeType: sequenceNodeType.REFERENCE,+ startIndex: 4,+ endIndex: 8,+ };+ const sequenceNodes = ['SUM(', reference, '+'];++ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM(A1:B2+',+ sequenceNodes,+ offset: 4,+ })).toMatchObject({ mode: 'add', referenceIndex: -1 });+ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM(A1:B2+',+ sequenceNodes,+ offset: 9,+ })).toMatchObject({ mode: 'replace', referenceIndex: 0 });+ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM(A1:B2+',+ sequenceNodes,+ offset: 10,+ })).toMatchObject({ mode: 'add', referenceIndex: -1 });+ });++ it('does not draw a reference in plain formula text', () => {+ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM',+ sequenceNodes: ['SUM'],+ offset: 3,+ })).toMatchObject({ mode: 'none', referenceIndex: -1 });+ });++ it('allows adding a reference when the cursor is before the first sequence node', () => {+ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM(A1)',+ sequenceNodes: [+ 'SUM(',+ {+ token: 'A1',+ nodeType: sequenceNodeType.REFERENCE,+ startIndex: 4,+ endIndex: 5,+ },+ ')',+ ],+ offset: 0,+ })).toMatchObject({+ mode: 'add',+ nodeIndex: -1,+ referenceIndex: -1,+ });+ });++ it('edits structured table references as selectable references', () => {+ expect(resolveFormulaReferenceEditingContext({+ formulaText: 'SUM(SalesTable[Amount])',+ sequenceNodes: [+ 'SUM(',+ {+ token: 'SalesTable[Amount]',+ nodeType: sequenceNodeType.TABLE,+ startIndex: 4,+ endIndex: 21,+ },+ ')',+ ],+ offset: 10,+ })).toMatchObject({ mode: 'replace', referenceIndex: 0 });+ });++ it('finds cross-unit structured references that are not resolved by the local table map', () => {+ expect(findFormulaStructuredReferences('SUM([Sales Base]!Orders[Amount])')).toEqual([{+ token: '[Sales Base]!Orders[Amount]',+ startIndex: 4,+ endIndex: 30,+ }]);+ });+});diff --git a/packages/formula-ui/src/formula-editor-helpers.ts b/packages/formula-ui/src/formula-editor-helpers.tsnew file mode 100644index 0000000000..fc65312c59--- /dev/null+++ b/packages/formula-ui/src/formula-editor-helpers.ts@@ -0,0 +1,324 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { ITextRun } from '@univerjs/core';+import type { ISequenceNode } from '@univerjs/engine-formula';+import type { IDescriptionService, ISearchItemWithType } from '@univerjs/formula';+import { FunctionType, isFormulaLexerToken, matchRefDrawToken, matchToken, sequenceNodeType } from '@univerjs/engine-formula';++export type FormulaSequenceNode = string | ISequenceNode;++export interface IFormulaHighlightColors {+ formulaRefColors: string[];+ numberColor: string;+ stringColor: string;+ plainTextColor: string;+}++export interface IFormulaRefSelection {+ refIndex: number;+ themeColor: string;+ token: string;+ nodeType: sequenceNodeType;+ startIndex: number;+ endIndex: number;+ index: number;+}++export interface IFormulaStructuredReferenceRange {+ token: string;+ startIndex: number;+ endIndex: number;+}++export type FormulaReferenceEditingMode = 'add' | 'replace' | 'none';++export interface IFormulaReferenceEditingContext {+ mode: FormulaReferenceEditingMode;+ nodeIndex: number;+ referenceIndex: number;+ offset: number;+}++function shouldAppendOpenBracket(functionType: FunctionType): boolean {+ return functionType !== FunctionType.DefinedName && functionType !== FunctionType.Table;+}++export function getFormulaReplaceResult(+ nodes: FormulaSequenceNode[],+ index: number,+ formulaName: string,+ functionType: FunctionType+): { text: string; offset: number } | undefined {+ if (index === -1) {+ return undefined;+ }+ const cloneNodes = [...nodes];+ const lastNodes = cloneNodes.splice(index + 1);+ const oldNode = cloneNodes.pop() ?? '';+ let offset = (typeof oldNode === 'string' ? oldNode.length : oldNode.token.length) - formulaName.length;+ cloneNodes.push(formulaName);+ if (lastNodes[0] !== matchToken.OPEN_BRACKET && shouldAppendOpenBracket(functionType)) {+ cloneNodes.push(matchToken.OPEN_BRACKET);+ offset -= 1;+ }+ return {+ text: [...cloneNodes, ...lastNodes].map((node) => typeof node === 'string' ? node : node.token).join(''),+ offset,+ };+}++export function searchFormulaFunctions(+ descriptionService: IDescriptionService,+ token: string,+ limit = 10+): ISearchItemWithType[] {+ return descriptionService.getSearchListByNameFirstLetter(token).slice(0, limit);+}++export function findFormulaStructuredReferences(formulaText: string): IFormulaStructuredReferenceRange[] {+ const referencePattern = /\[[^\]\r\n]+\]!(?:'(?:[^']|'')+'|[^\s()[\],:+\-*/&=<>!]+)(?:\[\[[^\r\n]*?\]\]|\[[^\]\r\n]+\])/g;+ return Array.from(formulaText.matchAll(referencePattern), (match) => ({+ token: match[0],+ startIndex: match.index,+ endIndex: match.index + match[0].length - 1,+ }));+}++export function getFormulaSequenceNodeIndex(+ sequenceNodes: FormulaSequenceNode[],+ offset: number,+ isEqual = false+): number {+ let currentOffset = 0;+ for (let index = 0; index < sequenceNodes.length; index++) {+ const node = sequenceNodes[index];+ const nextOffset = currentOffset + (typeof node === 'string' ? node.length : node.token.length);+ if (isEqual ? nextOffset === offset : offset > currentOffset && offset <= nextOffset) {+ return index;+ }+ currentOffset = nextOffset;+ }++ return -1;+}++export function getFormulaReferenceIndex(sequenceNodes: FormulaSequenceNode[], nodeIndex: number): number {+ if (nodeIndex < 0 || nodeIndex >= sequenceNodes.length) {+ return -1;+ }++ const node = sequenceNodes[nodeIndex];+ if (typeof node === 'string' || !isFormulaReferenceNode(node)) {+ return -1;+ }++ let referenceIndex = -1;+ for (let index = 0; index <= nodeIndex; index++) {+ const currentNode = sequenceNodes[index];+ if (typeof currentNode !== 'string' && isFormulaReferenceNode(currentNode)) {+ referenceIndex += 1;+ }+ }++ return referenceIndex;+}++export function getFormulaSequenceCharacterAtOffset(+ sequenceNodes: Array<string | { token: string }>,+ offset: number+): string | undefined {+ let currentOffset = 0;+ for (const node of sequenceNodes) {+ const text = typeof node === 'string' ? node : node.token;+ const nextOffset = currentOffset + text.length;+ if (offset > currentOffset && offset <= nextOffset) {+ return text[offset - currentOffset - 1];+ }+ currentOffset = nextOffset;+ }++ return undefined;+}++export function isFormulaReferenceAddingContext(+ sequenceNodes: Array<string | { token: string }>,+ offset: number+): boolean {+ const character = getFormulaSequenceCharacterAtOffset(sequenceNodes, offset);+ return Boolean(character && matchRefDrawToken(character));+}++export function isFormulaReferenceAddingTextContext(formulaText: string, offset: number): boolean {+ const character = formulaText[offset - 1];+ const nextCharacter = formulaText[offset];+ return Boolean(+ character &&+ matchRefDrawToken(character) &&+ (!nextCharacter || (isFormulaLexerToken(nextCharacter) && nextCharacter !== matchToken.OPEN_BRACKET))+ );+}++export function resolveFormulaReferenceEditingContext(options: {+ formulaText: string;+ sequenceNodes: FormulaSequenceNode[];+ offset: number;+ selectionStart?: number;+ selectionEnd?: number;+}): IFormulaReferenceEditingContext {+ const { formulaText, sequenceNodes } = options;+ const offset = Math.max(0, Math.min(options.offset, formulaText.length));+ let nodeIndex = getFormulaSequenceNodeIndex(sequenceNodes, offset);++ const selectionStart = options.selectionStart ?? offset;+ const selectionEnd = options.selectionEnd ?? selectionStart;+ if (selectionEnd > selectionStart) {+ nodeIndex = sequenceNodes.findIndex((node) =>+ typeof node !== 'string' &&+ isFormulaReferenceNode(node) &&+ node.startIndex < selectionEnd &&+ node.endIndex + 1 > selectionStart+ );+ }++ const referenceIndex = getFormulaReferenceIndex(sequenceNodes, nodeIndex);+ if (referenceIndex !== -1) {+ return { mode: 'replace', nodeIndex, referenceIndex, offset };+ }++ const canAdd = offset === 0 ||+ isFormulaReferenceAddingContext(sequenceNodes, offset) ||+ isFormulaReferenceAddingTextContext(formulaText, offset);+ return {+ mode: canAdd ? 'add' : 'none',+ nodeIndex,+ referenceIndex: -1,+ offset,+ };+}++export function getFormulaHighlightDataStream(+ leadingCharacter: string,+ sequenceNodes: FormulaSequenceNode[],+ sourceText?: string+): string {+ const text = sourceText ?? sequenceNodes.map((node) => typeof node === 'string' ? node : node.token).join('');+ return `${leadingCharacter}${text}\r\n`;+}++export function buildFormulaTextRuns(+ descriptionService: IDescriptionService,+ colors: IFormulaHighlightColors,+ sequenceNodes: FormulaSequenceNode[],+ options?: { includeTableReferences?: boolean }+): { textRuns: ITextRun[]; refSelections: IFormulaRefSelection[] } {+ const textRuns: ITextRun[] = [];+ const refSelections: IFormulaRefSelection[] = [];+ const referenceColors = new Map<string, string>();+ let refColorIndex = 0;++ for (let index = 0; index < sequenceNodes.length; index++) {+ const node = sequenceNodes[index];+ if (typeof node === 'string') {+ const start = textRuns.at(-1)?.ed ?? 0;+ textRuns.push(createTextRun(start, start + node.length, colors.plainTextColor));+ continue;+ }++ let color = colors.plainTextColor;+ if (!descriptionService.hasDefinedNameDescription(node.token.trim())) {+ if (isFormulaReferenceNode(node)) {+ color = referenceColors.get(node.token) ?? colors.formulaRefColors[refColorIndex % colors.formulaRefColors.length];+ if (!referenceColors.has(node.token)) {+ referenceColors.set(node.token, color);+ refColorIndex += 1;+ }+ if (node.nodeType === sequenceNodeType.REFERENCE || options?.includeTableReferences) {+ refSelections.push({+ refIndex: index,+ themeColor: color,+ token: node.token,+ nodeType: node.nodeType,+ startIndex: node.startIndex,+ endIndex: node.endIndex,+ index: refSelections.length,+ });+ }+ } else if (node.nodeType === sequenceNodeType.NUMBER) {+ color = colors.numberColor;+ } else if (node.nodeType === sequenceNodeType.STRING || node.nodeType === sequenceNodeType.ARRAY) {+ color = colors.stringColor;+ }+ }+ textRuns.push(createTextRun(node.startIndex, node.endIndex + 1, color));+ }++ if (options?.includeTableReferences) {+ const formulaText = sequenceNodes.map((node) => typeof node === 'string' ? node : node.token).join('');+ const structuredReferences = findFormulaStructuredReferences(formulaText);+ for (const reference of structuredReferences) {+ if (refSelections.some((selection) => selection.startIndex === reference.startIndex && selection.endIndex === reference.endIndex)) {+ continue;+ }+ const color = colors.formulaRefColors[refColorIndex % colors.formulaRefColors.length];+ refColorIndex += 1;+ applyTextRunColor(textRuns, reference.startIndex, reference.endIndex + 1, color);+ refSelections.push({+ ...reference,+ refIndex: sequenceNodes.length + refSelections.length,+ themeColor: color,+ nodeType: sequenceNodeType.TABLE,+ index: refSelections.length,+ });+ }+ refSelections.sort((first, second) => first.startIndex - second.startIndex);+ refSelections.forEach((selection, index) => {+ selection.index = index;+ });+ }++ return { textRuns, refSelections };+}++function applyTextRunColor(textRuns: ITextRun[], start: number, end: number, color: string): void {+ const nextRuns: ITextRun[] = [];+ for (const run of textRuns) {+ if (run.ed <= start || run.st >= end) {+ nextRuns.push(run);+ continue;+ }+ if (run.st < start) {+ nextRuns.push(createTextRun(run.st, start, run.ts?.cl?.rgb ?? color));+ }+ nextRuns.push(createTextRun(Math.max(run.st, start), Math.min(run.ed, end), color));+ if (run.ed > end) {+ nextRuns.push(createTextRun(end, run.ed, run.ts?.cl?.rgb ?? color));+ }+ }+ textRuns.splice(0, textRuns.length, ...nextRuns);+}++function isFormulaReferenceNode(node: ISequenceNode): boolean {+ return node.nodeType === sequenceNodeType.REFERENCE || node.nodeType === sequenceNodeType.TABLE;+}++function createTextRun(start: number, end: number, color: string): ITextRun {+ return {+ st: start,+ ed: end,+ ts: { cl: { rgb: color }, fs: 11 },+ };+}diff --git a/packages/formula-ui/src/index.ts b/packages/formula-ui/src/index.tsnew file mode 100644index 0000000000..86731762fe--- /dev/null+++ b/packages/formula-ui/src/index.ts@@ -0,0 +1,37 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export {+ buildFormulaTextRuns,+ findFormulaStructuredReferences,+ getFormulaHighlightDataStream,+ getFormulaReferenceIndex,+ getFormulaReplaceResult,+ getFormulaSequenceCharacterAtOffset,+ getFormulaSequenceNodeIndex,+ isFormulaReferenceAddingContext,+ isFormulaReferenceAddingTextContext,+ resolveFormulaReferenceEditingContext,+ searchFormulaFunctions,+} from './formula-editor-helpers';+export type {+ FormulaReferenceEditingMode,+ FormulaSequenceNode,+ IFormulaHighlightColors,+ IFormulaReferenceEditingContext,+ IFormulaRefSelection,+ IFormulaStructuredReferenceRange,+} from './formula-editor-helpers';diff --git a/packages/formula-ui/tsconfig.json b/packages/formula-ui/tsconfig.jsonnew file mode 100644index 0000000000..d4f9172636--- /dev/null+++ b/packages/formula-ui/tsconfig.json@@ -0,0 +1,8 @@+{+ "extends": "@univerjs-infra/shared/tsconfigs/base",+ "compilerOptions": {+ "rootDir": "src",+ "outDir": "lib/types"+ },+ "include": ["src"]+}diff --git a/packages/formula-ui/tsconfig.node.json b/packages/formula-ui/tsconfig.node.jsonnew file mode 100644index 0000000000..cc30b26e15--- /dev/null+++ b/packages/formula-ui/tsconfig.node.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "declaration": true,+ "emitDeclarationOnly": true+ }+}diff --git a/packages/formula-ui/vitest.config.ts b/packages/formula-ui/vitest.config.tsnew file mode 100644index 0000000000..af97c6d7a2--- /dev/null+++ b/packages/formula-ui/vitest.config.ts@@ -0,0 +1,3 @@+import createConfig from '@univerjs-infra/shared/vitest';++export default createConfig();diff --git a/packages/formula/package.json b/packages/formula/package.jsonnew file mode 100644index 0000000000..e75a28bad4--- /dev/null+++ b/packages/formula/package.json@@ -0,0 +1,78 @@+{+ "name": "@univerjs/formula",+ "version": "1.0.0-alpha.4",+ "private": false,+ "description": "Shared formula function catalog and registration services for Univer.",+ "author": "DreamNum Co., Ltd. <[email protected]>",+ "license": "Apache-2.0",+ "homepage": "https://univer.ai",+ "repository": {+ "type": "git",+ "url": "https://github.com/dream-num/univer"+ },+ "exports": {+ ".": "./src/index.ts",+ "./*": "./src/*",+ "./locale/*": "./src/locale/*.ts",+ "./facade": "./src/facade/index.ts"+ },+ "main": "./src/index.ts",+ "types": "./lib/types/index.d.ts",+ "publishConfig": {+ "access": "public",+ "main": "./lib/es/index.js",+ "module": "./lib/es/index.js",+ "exports": {+ ".": {+ "import": "./lib/es/index.js",+ "require": "./lib/cjs/index.js",+ "types": "./lib/types/index.d.ts"+ },+ "./*": {+ "import": "./lib/es/*",+ "require": "./lib/cjs/*",+ "types": "./lib/types/index.d.ts"+ },+ "./locale/*": {+ "import": "./lib/es/locale/*.js",+ "require": "./lib/cjs/locale/*.js",+ "types": "./lib/types/locale/*.d.ts"+ },+ "./facade": {+ "import": "./lib/es/facade.js",+ "require": "./lib/cjs/facade.js",+ "types": "./lib/types/facade/index.d.ts"+ },+ "./lib/facade": {+ "import": "./lib/es/facade.js",+ "require": "./lib/cjs/facade.js",+ "types": "./lib/types/facade/index.d.ts"+ },+ "./lib/*": "./lib/*"+ }+ },+ "files": [+ "lib"+ ],+ "scripts": {+ "test": "vitest run",+ "test:watch": "vitest",+ "coverage": "vitest run --coverage",+ "typecheck": "tsc --noEmit",+ "build:bundle": "univer-cli build",+ "build:types": "tsc -p tsconfig.node.json",+ "build": "pnpm run build:bundle && pnpm run build:types"+ },+ "peerDependencies": {+ "rxjs": ">=7.0.0"+ },+ "dependencies": {+ "@univerjs/core": "workspace:*",+ "@univerjs/engine-formula": "workspace:*"+ },+ "devDependencies": {+ "@univerjs-infra/shared": "workspace:*",+ "typescript": "^6.0.3",+ "vitest": "^4.1.10"+ }+}diff --git a/packages/formula/src/controllers/formula-calculation-session.controller.ts b/packages/formula/src/controllers/formula-calculation-session.controller.tsnew file mode 100644index 0000000000..faacbcfa9d--- /dev/null+++ b/packages/formula/src/controllers/formula-calculation-session.controller.ts@@ -0,0 +1,117 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { ICommandInfo } from '@univerjs/core';+import type { ISetFormulaCalculationNotificationMutation, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';+import { Disposable, ICommandService, Inject } from '@univerjs/core';+import {+ RegisterOtherFormulaService,+ SetFormulaCalculationNotificationMutation,+ SetFormulaCalculationResultMutation,+ SetFormulaCalculationStartMutation,+} from '@univerjs/engine-formula';+import { FormulaCalculationSessionService, FormulaResultApplicationType } from '../services/formula-calculation-session.service';++function isFormulaCalculationNotification(+ params: object | undefined+): params is ISetFormulaCalculationNotificationMutation {+ return params != null;+}++function isFormulaCalculationResult(+ params: object | undefined+): params is ISetFormulaCalculationResultMutation {+ return params != null && 'unitData' in params && 'unitOtherData' in params;+}++export class FormulaCalculationSessionController extends Disposable {+ constructor(+ @ICommandService private readonly _commandService: ICommandService,+ @Inject(FormulaCalculationSessionService) private readonly _sessionService: FormulaCalculationSessionService,+ @Inject(RegisterOtherFormulaService) private readonly _registerOtherFormulaService: RegisterOtherFormulaService+ ) {+ super();++ this._sessionService.initialize();+ this._initialize();+ }++ private _initialize(): void {+ this.disposeWithMe(this._registerOtherFormulaService.otherFormulaResultApplied$.subscribe((result) => {+ this._sessionService.markResultApplied(FormulaResultApplicationType.OTHER_FORMULA, result);+ }));++ this.disposeWithMe(+ this._commandService.onCommandExecuted((command: ICommandInfo) => {+ if (command.id === SetFormulaCalculationStartMutation.id) {+ this._sessionService.start();+ return;+ }++ if (command.id === SetFormulaCalculationNotificationMutation.id) {+ if (isFormulaCalculationNotification(command.params)) {+ this._handleNotification(command.params);+ }+ return;+ }++ if (command.id === SetFormulaCalculationResultMutation.id) {+ if (isFormulaCalculationResult(command.params)) {+ this._handleResult(command.params);+ }+ }+ })+ );+ }++ private _handleNotification(params: ISetFormulaCalculationNotificationMutation): void {+ if (params.stageInfo != null) {+ this._sessionService.updateProgress(params.stageInfo);+ }++ if (params.functionsExecutedState !== undefined) {+ this._sessionService.markCompleted(params.functionsExecutedState);+ }+ }++ private _handleResult(params: ISetFormulaCalculationResultMutation): void {+ const pendingApplications: FormulaResultApplicationType[] = [];++ if (this._hasSheetResultToApply(params)) {+ pendingApplications.push(FormulaResultApplicationType.SHEET);+ }++ if (this._hasOtherFormulaResultToApply(params)) {+ pendingApplications.push(FormulaResultApplicationType.OTHER_FORMULA);+ }++ this._sessionService.markResultEmitted(params, pendingApplications);+ }++ private _hasSheetResultToApply(result: ISetFormulaCalculationResultMutation): boolean {+ return Object.values(result.unitData).some((sheetData) =>+ sheetData != null && Object.values(sheetData).some((cellData) => cellData != null)+ );+ }++ private _hasOtherFormulaResultToApply(result: ISetFormulaCalculationResultMutation): boolean {+ return Object.values(result.unitOtherData).some((subUnitData) =>+ subUnitData != null && Object.values(subUnitData).some((formulaData) =>+ formulaData != null && Object.keys(formulaData).length > 0+ )+ );+ }+}diff --git a/packages/formula/src/facade/f-formula.ts b/packages/formula/src/facade/f-formula.tsnew file mode 100644index 0000000000..71e9b0f1f7--- /dev/null+++ b/packages/formula/src/facade/f-formula.ts@@ -0,0 +1,97 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IDisposable } from '@univerjs/core';+import type { ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';+import { FFormula } from '@univerjs/engine-formula/facade';+import { FormulaCalculationSessionService } from '@univerjs/formula';++/**+ * @ignore+ */+export interface IFFormulaCalculationSessionMixin {+ /**+ * Listens for formula results after every affected model has applied them.+ * @param callback Called with the calculation result payload.+ * @returns A disposable used to unsubscribe.+ * @example+ * ```ts+ * const workbook = univerAPI.getActiveWorkbook();+ * if (!workbook) throw new Error('No active workbook.');+ * const range = workbook.getActiveSheet().getRange('A1');+ * const formula = univerAPI.getFormula();+ * const applied = formula.onCalculationResultApplied(10_000);+ * const disposable = formula.calculationResultApplied((result) => {+ * console.log('Formula results applied:', result);+ * });+ *+ * // Setting a formula automatically schedules calculation.+ * range.setFormula('=SUM(B1:B3)');+ * await applied;+ *+ * // Dispose the listener when it is no longer needed.+ * disposable.dispose();+ * ```+ */+ calculationResultApplied(callback: (result: ISetFormulaCalculationResultMutation) => void): IDisposable;++ /**+ * Waits until the latest formula-calculation results have been applied.+ * Create the returned promise before the mutation whose result you need to+ * observe. Formula-aware facade mutations schedule calculation automatically.+ * @param timeout Optional timeout in milliseconds.+ * @returns A promise that resolves after result application, or when no calculation starts.+ * @example+ * ```ts+ * const workbook = univerAPI.getActiveWorkbook();+ * if (!workbook) throw new Error('No active workbook.');+ * const range = workbook.getActiveSheet().getRange('A1');+ * const formula = univerAPI.getFormula();+ * const applied = formula.onCalculationResultApplied(10_000);+ * range.setFormula('=SUM(B1:B3)');+ * await applied;+ * console.log(range.getValue());+ * ```+ */+ onCalculationResultApplied(timeout?: number): Promise<void>;+}++export class FFormulaCalculationSessionMixin extends FFormula implements IFFormulaCalculationSessionMixin {+ override calculationResultApplied(callback: (result: ISetFormulaCalculationResultMutation) => void): IDisposable {+ const subscription = this._injector.get(FormulaCalculationSessionService).resultApplied$.subscribe((result) => {+ if (typeof requestIdleCallback === 'function') {+ requestIdleCallback(() => callback(result));+ return;+ }++ queueMicrotask(() => callback(result));+ });++ return {+ dispose: () => subscription.unsubscribe(),+ };+ }++ override onCalculationResultApplied(timeout?: number): Promise<void> {+ return this._injector.get(FormulaCalculationSessionService).waitForLatestApplied(timeout);+ }+}++FFormula.extend(FFormulaCalculationSessionMixin);+declare module '@univerjs/engine-formula/facade' {+ // eslint-disable-next-line ts/naming-convention+ interface FFormula extends IFFormulaCalculationSessionMixin {}+}diff --git a/packages/formula/src/facade/index.ts b/packages/formula/src/facade/index.tsnew file mode 100644index 0000000000..4d66c64796--- /dev/null+++ b/packages/formula/src/facade/index.ts@@ -0,0 +1,19 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import './f-formula';++export type * from './f-formula';diff --git a/packages/formula/src/index.ts b/packages/formula/src/index.tsnew file mode 100644index 0000000000..c7cbf1b6a1--- /dev/null+++ b/packages/formula/src/index.ts@@ -0,0 +1,50 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export { FormulaCalculationSessionController } from './controllers/formula-calculation-session.controller';+export { UniverFormulaPlugin } from './plugin';+export { DescriptionService, IDescriptionService } from './services/description.service';+export type { ISearchItem, ISearchItemWithType } from './services/description.service';+export { FormulaCalculationSessionService, FormulaResultApplicationType } from './services/formula-calculation-session.service';+export type { IFormulaCalculationSessionState } from './services/formula-calculation-session.service';+export { FUNCTION_LIST_ARRAY } from './services/function-list/array';+export { FUNCTION_LIST_COMPATIBILITY } from './services/function-list/compatibility';+export { FUNCTION_LIST_CUBE } from './services/function-list/cube';+export { FUNCTION_LIST_DATABASE } from './services/function-list/database';+export { FUNCTION_LIST_DATE } from './services/function-list/date';+export { FUNCTION_LIST_ENGINEERING } from './services/function-list/engineering';+export { FUNCTION_LIST_FINANCIAL } from './services/function-list/financial';+export { FUNCTION_LIST } from './services/function-list/function-list';+export { FUNCTION_LIST_INFORMATION } from './services/function-list/information';+export { FUNCTION_LIST_LOGICAL } from './services/function-list/logical';+export { FUNCTION_LIST_LOOKUP } from './services/function-list/lookup';+export { FUNCTION_LIST_MATH } from './services/function-list/math';+export { FUNCTION_LIST_STATISTICAL } from './services/function-list/statistical';+export { FUNCTION_LIST_TEXT } from './services/function-list/text';+export { FUNCTION_LIST_UNIVER } from './services/function-list/univer';+export { FUNCTION_LIST_WEB } from './services/function-list/web';+export {+ IRegisterFunctionService,+ RegisterFunctionService,+} from './services/register-function.service';+export type {+ IRegisterAsyncFunction,+ IRegisterFunction,+ IRegisterFunctionParams,+ ISingleFunctionRegisterParams,+ IUnregisterFunctionParams,+} from './services/register-function.service';+export { generateParam, getFunctionName } from './services/utils';diff --git a/packages/formula/src/locale/ar-SA.ts b/packages/formula/src/locale/ar-SA.tsnew file mode 100644index 0000000000..e275b9235c--- /dev/null+++ b/packages/formula/src/locale/ar-SA.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/ar-SA';+import compatibility from './function-list/compatibility/ar-SA';+import cube from './function-list/cube/ar-SA';+import database from './function-list/database/ar-SA';+import date from './function-list/date/ar-SA';+import engineering from './function-list/engineering/ar-SA';+import financial from './function-list/financial/ar-SA';+import information from './function-list/information/ar-SA';+import logical from './function-list/logical/ar-SA';+import lookup from './function-list/lookup/ar-SA';+import math from './function-list/math/ar-SA';+import statistical from './function-list/statistical/ar-SA';+import text from './function-list/text/ar-SA';+import univer from './function-list/univer/ar-SA';+import web from './function-list/web/ar-SA';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/ca-ES.ts b/packages/formula/src/locale/ca-ES.tsnew file mode 100644index 0000000000..b0a5fc0825--- /dev/null+++ b/packages/formula/src/locale/ca-ES.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/ca-ES';+import compatibility from './function-list/compatibility/ca-ES';+import cube from './function-list/cube/ca-ES';+import database from './function-list/database/ca-ES';+import date from './function-list/date/ca-ES';+import engineering from './function-list/engineering/ca-ES';+import financial from './function-list/financial/ca-ES';+import information from './function-list/information/ca-ES';+import logical from './function-list/logical/ca-ES';+import lookup from './function-list/lookup/ca-ES';+import math from './function-list/math/ca-ES';+import statistical from './function-list/statistical/ca-ES';+import text from './function-list/text/ca-ES';+import univer from './function-list/univer/ca-ES';+import web from './function-list/web/ca-ES';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/de-DE.ts b/packages/formula/src/locale/de-DE.tsnew file mode 100644index 0000000000..0bc97eba99--- /dev/null+++ b/packages/formula/src/locale/de-DE.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/de-DE';+import compatibility from './function-list/compatibility/de-DE';+import cube from './function-list/cube/de-DE';+import database from './function-list/database/de-DE';+import date from './function-list/date/de-DE';+import engineering from './function-list/engineering/de-DE';+import financial from './function-list/financial/de-DE';+import information from './function-list/information/de-DE';+import logical from './function-list/logical/de-DE';+import lookup from './function-list/lookup/de-DE';+import math from './function-list/math/de-DE';+import statistical from './function-list/statistical/de-DE';+import text from './function-list/text/de-DE';+import univer from './function-list/univer/de-DE';+import web from './function-list/web/de-DE';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/en-US.ts b/packages/formula/src/locale/en-US.tsnew file mode 100644index 0000000000..16a8333cfe--- /dev/null+++ b/packages/formula/src/locale/en-US.ts@@ -0,0 +1,55 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import array from './function-list/array/en-US';+import compatibility from './function-list/compatibility/en-US';+import cube from './function-list/cube/en-US';+import database from './function-list/database/en-US';+import date from './function-list/date/en-US';+import engineering from './function-list/engineering/en-US';+import financial from './function-list/financial/en-US';+import information from './function-list/information/en-US';+import logical from './function-list/logical/en-US';+import lookup from './function-list/lookup/en-US';+import math from './function-list/math/en-US';+import statistical from './function-list/statistical/en-US';+import text from './function-list/text/en-US';+import univer from './function-list/univer/en-US';+import web from './function-list/web/en-US';++const locale = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/es-ES.ts b/packages/formula/src/locale/es-ES.tsnew file mode 100644index 0000000000..205402c591--- /dev/null+++ b/packages/formula/src/locale/es-ES.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/es-ES';+import compatibility from './function-list/compatibility/es-ES';+import cube from './function-list/cube/es-ES';+import database from './function-list/database/es-ES';+import date from './function-list/date/es-ES';+import engineering from './function-list/engineering/es-ES';+import financial from './function-list/financial/es-ES';+import information from './function-list/information/es-ES';+import logical from './function-list/logical/es-ES';+import lookup from './function-list/lookup/es-ES';+import math from './function-list/math/es-ES';+import statistical from './function-list/statistical/es-ES';+import text from './function-list/text/es-ES';+import univer from './function-list/univer/es-ES';+import web from './function-list/web/es-ES';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/fa-IR.ts b/packages/formula/src/locale/fa-IR.tsnew file mode 100644index 0000000000..d240509ca2--- /dev/null+++ b/packages/formula/src/locale/fa-IR.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/en-US';+import compatibility from './function-list/compatibility/en-US';+import cube from './function-list/cube/en-US';+import database from './function-list/database/en-US';+import date from './function-list/date/en-US';+import engineering from './function-list/engineering/en-US';+import financial from './function-list/financial/en-US';+import information from './function-list/information/en-US';+import logical from './function-list/logical/en-US';+import lookup from './function-list/lookup/en-US';+import math from './function-list/math/en-US';+import statistical from './function-list/statistical/en-US';+import text from './function-list/text/en-US';+import univer from './function-list/univer/en-US';+import web from './function-list/web/en-US';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/fr-FR.ts b/packages/formula/src/locale/fr-FR.tsnew file mode 100644index 0000000000..702e719749--- /dev/null+++ b/packages/formula/src/locale/fr-FR.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/fr-FR';+import compatibility from './function-list/compatibility/fr-FR';+import cube from './function-list/cube/fr-FR';+import database from './function-list/database/fr-FR';+import date from './function-list/date/fr-FR';+import engineering from './function-list/engineering/fr-FR';+import financial from './function-list/financial/fr-FR';+import information from './function-list/information/fr-FR';+import logical from './function-list/logical/fr-FR';+import lookup from './function-list/lookup/fr-FR';+import math from './function-list/math/fr-FR';+import statistical from './function-list/statistical/fr-FR';+import text from './function-list/text/fr-FR';+import univer from './function-list/univer/fr-FR';+import web from './function-list/web/fr-FR';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/sheets-formula/src/locale/function-list/array/ar-SA.ts b/packages/formula/src/locale/function-list/array/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/ar-SA.tsrename to packages/formula/src/locale/function-list/array/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/ca-ES.ts b/packages/formula/src/locale/function-list/array/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/ca-ES.tsrename to packages/formula/src/locale/function-list/array/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/de-DE.ts b/packages/formula/src/locale/function-list/array/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/de-DE.tsrename to packages/formula/src/locale/function-list/array/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/en-US.ts b/packages/formula/src/locale/function-list/array/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/en-US.tsrename to packages/formula/src/locale/function-list/array/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/es-ES.ts b/packages/formula/src/locale/function-list/array/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/es-ES.tsrename to packages/formula/src/locale/function-list/array/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/fr-FR.ts b/packages/formula/src/locale/function-list/array/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/fr-FR.tsrename to packages/formula/src/locale/function-list/array/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/id-ID.ts b/packages/formula/src/locale/function-list/array/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/id-ID.tsrename to packages/formula/src/locale/function-list/array/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/it-IT.ts b/packages/formula/src/locale/function-list/array/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/it-IT.tsrename to packages/formula/src/locale/function-list/array/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/ja-JP.ts b/packages/formula/src/locale/function-list/array/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/ja-JP.tsrename to packages/formula/src/locale/function-list/array/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/ko-KR.ts b/packages/formula/src/locale/function-list/array/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/ko-KR.tsrename to packages/formula/src/locale/function-list/array/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/pl-PL.ts b/packages/formula/src/locale/function-list/array/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/pl-PL.tsrename to packages/formula/src/locale/function-list/array/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/pt-BR.ts b/packages/formula/src/locale/function-list/array/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/pt-BR.tsrename to packages/formula/src/locale/function-list/array/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/ru-RU.ts b/packages/formula/src/locale/function-list/array/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/ru-RU.tsrename to packages/formula/src/locale/function-list/array/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/sk-SK.ts b/packages/formula/src/locale/function-list/array/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/sk-SK.tsrename to packages/formula/src/locale/function-list/array/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/vi-VN.ts b/packages/formula/src/locale/function-list/array/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/vi-VN.tsrename to packages/formula/src/locale/function-list/array/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts b/packages/formula/src/locale/function-list/array/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/zh-CN.tsrename to packages/formula/src/locale/function-list/array/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/array/zh-TW.ts b/packages/formula/src/locale/function-list/array/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/array/zh-TW.tsrename to packages/formula/src/locale/function-list/array/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ar-SA.ts b/packages/formula/src/locale/function-list/compatibility/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/ar-SA.tsrename to packages/formula/src/locale/function-list/compatibility/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ca-ES.ts b/packages/formula/src/locale/function-list/compatibility/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/ca-ES.tsrename to packages/formula/src/locale/function-list/compatibility/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/de-DE.ts b/packages/formula/src/locale/function-list/compatibility/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/de-DE.tsrename to packages/formula/src/locale/function-list/compatibility/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts b/packages/formula/src/locale/function-list/compatibility/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/en-US.tsrename to packages/formula/src/locale/function-list/compatibility/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/es-ES.ts b/packages/formula/src/locale/function-list/compatibility/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/es-ES.tsrename to packages/formula/src/locale/function-list/compatibility/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/fr-FR.ts b/packages/formula/src/locale/function-list/compatibility/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/fr-FR.tsrename to packages/formula/src/locale/function-list/compatibility/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/id-ID.ts b/packages/formula/src/locale/function-list/compatibility/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/id-ID.tsrename to packages/formula/src/locale/function-list/compatibility/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/it-IT.ts b/packages/formula/src/locale/function-list/compatibility/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/it-IT.tsrename to packages/formula/src/locale/function-list/compatibility/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ja-JP.ts b/packages/formula/src/locale/function-list/compatibility/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/ja-JP.tsrename to packages/formula/src/locale/function-list/compatibility/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ko-KR.ts b/packages/formula/src/locale/function-list/compatibility/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/ko-KR.tsrename to packages/formula/src/locale/function-list/compatibility/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/pl-PL.ts b/packages/formula/src/locale/function-list/compatibility/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/pl-PL.tsrename to packages/formula/src/locale/function-list/compatibility/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/pt-BR.ts b/packages/formula/src/locale/function-list/compatibility/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/pt-BR.tsrename to packages/formula/src/locale/function-list/compatibility/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/ru-RU.ts b/packages/formula/src/locale/function-list/compatibility/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/ru-RU.tsrename to packages/formula/src/locale/function-list/compatibility/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/sk-SK.ts b/packages/formula/src/locale/function-list/compatibility/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/sk-SK.tsrename to packages/formula/src/locale/function-list/compatibility/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/vi-VN.ts b/packages/formula/src/locale/function-list/compatibility/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/vi-VN.tsrename to packages/formula/src/locale/function-list/compatibility/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts b/packages/formula/src/locale/function-list/compatibility/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.tsrename to packages/formula/src/locale/function-list/compatibility/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/compatibility/zh-TW.ts b/packages/formula/src/locale/function-list/compatibility/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/compatibility/zh-TW.tsrename to packages/formula/src/locale/function-list/compatibility/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/ar-SA.ts b/packages/formula/src/locale/function-list/cube/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/ar-SA.tsrename to packages/formula/src/locale/function-list/cube/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/ca-ES.ts b/packages/formula/src/locale/function-list/cube/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/ca-ES.tsrename to packages/formula/src/locale/function-list/cube/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/de-DE.ts b/packages/formula/src/locale/function-list/cube/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/de-DE.tsrename to packages/formula/src/locale/function-list/cube/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/en-US.ts b/packages/formula/src/locale/function-list/cube/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/en-US.tsrename to packages/formula/src/locale/function-list/cube/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/es-ES.ts b/packages/formula/src/locale/function-list/cube/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/es-ES.tsrename to packages/formula/src/locale/function-list/cube/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/fr-FR.ts b/packages/formula/src/locale/function-list/cube/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/fr-FR.tsrename to packages/formula/src/locale/function-list/cube/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/id-ID.ts b/packages/formula/src/locale/function-list/cube/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/id-ID.tsrename to packages/formula/src/locale/function-list/cube/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/it-IT.ts b/packages/formula/src/locale/function-list/cube/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/it-IT.tsrename to packages/formula/src/locale/function-list/cube/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/ja-JP.ts b/packages/formula/src/locale/function-list/cube/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/ja-JP.tsrename to packages/formula/src/locale/function-list/cube/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/ko-KR.ts b/packages/formula/src/locale/function-list/cube/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/ko-KR.tsrename to packages/formula/src/locale/function-list/cube/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/pl-PL.ts b/packages/formula/src/locale/function-list/cube/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/pl-PL.tsrename to packages/formula/src/locale/function-list/cube/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/pt-BR.ts b/packages/formula/src/locale/function-list/cube/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/pt-BR.tsrename to packages/formula/src/locale/function-list/cube/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/ru-RU.ts b/packages/formula/src/locale/function-list/cube/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/ru-RU.tsrename to packages/formula/src/locale/function-list/cube/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/sk-SK.ts b/packages/formula/src/locale/function-list/cube/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/sk-SK.tsrename to packages/formula/src/locale/function-list/cube/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/vi-VN.ts b/packages/formula/src/locale/function-list/cube/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/vi-VN.tsrename to packages/formula/src/locale/function-list/cube/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts b/packages/formula/src/locale/function-list/cube/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/zh-CN.tsrename to packages/formula/src/locale/function-list/cube/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/cube/zh-TW.ts b/packages/formula/src/locale/function-list/cube/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/cube/zh-TW.tsrename to packages/formula/src/locale/function-list/cube/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/ar-SA.ts b/packages/formula/src/locale/function-list/database/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/ar-SA.tsrename to packages/formula/src/locale/function-list/database/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/ca-ES.ts b/packages/formula/src/locale/function-list/database/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/ca-ES.tsrename to packages/formula/src/locale/function-list/database/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/de-DE.ts b/packages/formula/src/locale/function-list/database/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/de-DE.tsrename to packages/formula/src/locale/function-list/database/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/en-US.ts b/packages/formula/src/locale/function-list/database/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/en-US.tsrename to packages/formula/src/locale/function-list/database/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/es-ES.ts b/packages/formula/src/locale/function-list/database/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/es-ES.tsrename to packages/formula/src/locale/function-list/database/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/fr-FR.ts b/packages/formula/src/locale/function-list/database/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/fr-FR.tsrename to packages/formula/src/locale/function-list/database/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/id-ID.ts b/packages/formula/src/locale/function-list/database/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/id-ID.tsrename to packages/formula/src/locale/function-list/database/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/it-IT.ts b/packages/formula/src/locale/function-list/database/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/it-IT.tsrename to packages/formula/src/locale/function-list/database/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/ja-JP.ts b/packages/formula/src/locale/function-list/database/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/ja-JP.tsrename to packages/formula/src/locale/function-list/database/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/ko-KR.ts b/packages/formula/src/locale/function-list/database/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/ko-KR.tsrename to packages/formula/src/locale/function-list/database/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/pl-PL.ts b/packages/formula/src/locale/function-list/database/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/pl-PL.tsrename to packages/formula/src/locale/function-list/database/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/pt-BR.ts b/packages/formula/src/locale/function-list/database/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/pt-BR.tsrename to packages/formula/src/locale/function-list/database/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/ru-RU.ts b/packages/formula/src/locale/function-list/database/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/ru-RU.tsrename to packages/formula/src/locale/function-list/database/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/sk-SK.ts b/packages/formula/src/locale/function-list/database/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/sk-SK.tsrename to packages/formula/src/locale/function-list/database/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/vi-VN.ts b/packages/formula/src/locale/function-list/database/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/vi-VN.tsrename to packages/formula/src/locale/function-list/database/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts b/packages/formula/src/locale/function-list/database/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/zh-CN.tsrename to packages/formula/src/locale/function-list/database/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/database/zh-TW.ts b/packages/formula/src/locale/function-list/database/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/database/zh-TW.tsrename to packages/formula/src/locale/function-list/database/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/ar-SA.ts b/packages/formula/src/locale/function-list/date/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/ar-SA.tsrename to packages/formula/src/locale/function-list/date/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/ca-ES.ts b/packages/formula/src/locale/function-list/date/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/ca-ES.tsrename to packages/formula/src/locale/function-list/date/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/de-DE.ts b/packages/formula/src/locale/function-list/date/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/de-DE.tsrename to packages/formula/src/locale/function-list/date/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/en-US.ts b/packages/formula/src/locale/function-list/date/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/en-US.tsrename to packages/formula/src/locale/function-list/date/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/es-ES.ts b/packages/formula/src/locale/function-list/date/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/es-ES.tsrename to packages/formula/src/locale/function-list/date/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/fr-FR.ts b/packages/formula/src/locale/function-list/date/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/fr-FR.tsrename to packages/formula/src/locale/function-list/date/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/id-ID.ts b/packages/formula/src/locale/function-list/date/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/id-ID.tsrename to packages/formula/src/locale/function-list/date/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/it-IT.ts b/packages/formula/src/locale/function-list/date/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/it-IT.tsrename to packages/formula/src/locale/function-list/date/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/ja-JP.ts b/packages/formula/src/locale/function-list/date/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/ja-JP.tsrename to packages/formula/src/locale/function-list/date/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/ko-KR.ts b/packages/formula/src/locale/function-list/date/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/ko-KR.tsrename to packages/formula/src/locale/function-list/date/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/pl-PL.ts b/packages/formula/src/locale/function-list/date/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/pl-PL.tsrename to packages/formula/src/locale/function-list/date/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/pt-BR.ts b/packages/formula/src/locale/function-list/date/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/pt-BR.tsrename to packages/formula/src/locale/function-list/date/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/ru-RU.ts b/packages/formula/src/locale/function-list/date/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/ru-RU.tsrename to packages/formula/src/locale/function-list/date/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/sk-SK.ts b/packages/formula/src/locale/function-list/date/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/sk-SK.tsrename to packages/formula/src/locale/function-list/date/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/vi-VN.ts b/packages/formula/src/locale/function-list/date/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/vi-VN.tsrename to packages/formula/src/locale/function-list/date/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts b/packages/formula/src/locale/function-list/date/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/zh-CN.tsrename to packages/formula/src/locale/function-list/date/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/date/zh-TW.ts b/packages/formula/src/locale/function-list/date/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/date/zh-TW.tsrename to packages/formula/src/locale/function-list/date/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/ar-SA.ts b/packages/formula/src/locale/function-list/engineering/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/ar-SA.tsrename to packages/formula/src/locale/function-list/engineering/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/ca-ES.ts b/packages/formula/src/locale/function-list/engineering/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/ca-ES.tsrename to packages/formula/src/locale/function-list/engineering/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/de-DE.ts b/packages/formula/src/locale/function-list/engineering/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/de-DE.tsrename to packages/formula/src/locale/function-list/engineering/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts b/packages/formula/src/locale/function-list/engineering/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/en-US.tsrename to packages/formula/src/locale/function-list/engineering/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/es-ES.ts b/packages/formula/src/locale/function-list/engineering/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/es-ES.tsrename to packages/formula/src/locale/function-list/engineering/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/fr-FR.ts b/packages/formula/src/locale/function-list/engineering/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/fr-FR.tsrename to packages/formula/src/locale/function-list/engineering/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/id-ID.ts b/packages/formula/src/locale/function-list/engineering/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/id-ID.tsrename to packages/formula/src/locale/function-list/engineering/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/it-IT.ts b/packages/formula/src/locale/function-list/engineering/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/it-IT.tsrename to packages/formula/src/locale/function-list/engineering/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/ja-JP.ts b/packages/formula/src/locale/function-list/engineering/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/ja-JP.tsrename to packages/formula/src/locale/function-list/engineering/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/ko-KR.ts b/packages/formula/src/locale/function-list/engineering/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/ko-KR.tsrename to packages/formula/src/locale/function-list/engineering/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/pl-PL.ts b/packages/formula/src/locale/function-list/engineering/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/pl-PL.tsrename to packages/formula/src/locale/function-list/engineering/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/pt-BR.ts b/packages/formula/src/locale/function-list/engineering/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/pt-BR.tsrename to packages/formula/src/locale/function-list/engineering/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/ru-RU.ts b/packages/formula/src/locale/function-list/engineering/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/ru-RU.tsrename to packages/formula/src/locale/function-list/engineering/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/sk-SK.ts b/packages/formula/src/locale/function-list/engineering/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/sk-SK.tsrename to packages/formula/src/locale/function-list/engineering/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/vi-VN.ts b/packages/formula/src/locale/function-list/engineering/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/vi-VN.tsrename to packages/formula/src/locale/function-list/engineering/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts b/packages/formula/src/locale/function-list/engineering/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/zh-CN.tsrename to packages/formula/src/locale/function-list/engineering/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/engineering/zh-TW.ts b/packages/formula/src/locale/function-list/engineering/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/engineering/zh-TW.tsrename to packages/formula/src/locale/function-list/engineering/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/ar-SA.ts b/packages/formula/src/locale/function-list/financial/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/ar-SA.tsrename to packages/formula/src/locale/function-list/financial/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/ca-ES.ts b/packages/formula/src/locale/function-list/financial/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/ca-ES.tsrename to packages/formula/src/locale/function-list/financial/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/de-DE.ts b/packages/formula/src/locale/function-list/financial/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/de-DE.tsrename to packages/formula/src/locale/function-list/financial/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/en-US.ts b/packages/formula/src/locale/function-list/financial/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/en-US.tsrename to packages/formula/src/locale/function-list/financial/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/es-ES.ts b/packages/formula/src/locale/function-list/financial/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/es-ES.tsrename to packages/formula/src/locale/function-list/financial/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/fr-FR.ts b/packages/formula/src/locale/function-list/financial/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/fr-FR.tsrename to packages/formula/src/locale/function-list/financial/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/id-ID.ts b/packages/formula/src/locale/function-list/financial/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/id-ID.tsrename to packages/formula/src/locale/function-list/financial/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/it-IT.ts b/packages/formula/src/locale/function-list/financial/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/it-IT.tsrename to packages/formula/src/locale/function-list/financial/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/ja-JP.ts b/packages/formula/src/locale/function-list/financial/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/ja-JP.tsrename to packages/formula/src/locale/function-list/financial/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/ko-KR.ts b/packages/formula/src/locale/function-list/financial/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/ko-KR.tsrename to packages/formula/src/locale/function-list/financial/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/pl-PL.ts b/packages/formula/src/locale/function-list/financial/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/pl-PL.tsrename to packages/formula/src/locale/function-list/financial/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/pt-BR.ts b/packages/formula/src/locale/function-list/financial/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/pt-BR.tsrename to packages/formula/src/locale/function-list/financial/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/ru-RU.ts b/packages/formula/src/locale/function-list/financial/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/ru-RU.tsrename to packages/formula/src/locale/function-list/financial/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/sk-SK.ts b/packages/formula/src/locale/function-list/financial/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/sk-SK.tsrename to packages/formula/src/locale/function-list/financial/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/vi-VN.ts b/packages/formula/src/locale/function-list/financial/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/vi-VN.tsrename to packages/formula/src/locale/function-list/financial/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts b/packages/formula/src/locale/function-list/financial/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/zh-CN.tsrename to packages/formula/src/locale/function-list/financial/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/financial/zh-TW.ts b/packages/formula/src/locale/function-list/financial/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/financial/zh-TW.tsrename to packages/formula/src/locale/function-list/financial/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/ar-SA.ts b/packages/formula/src/locale/function-list/information/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/ar-SA.tsrename to packages/formula/src/locale/function-list/information/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/ca-ES.ts b/packages/formula/src/locale/function-list/information/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/ca-ES.tsrename to packages/formula/src/locale/function-list/information/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/de-DE.ts b/packages/formula/src/locale/function-list/information/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/de-DE.tsrename to packages/formula/src/locale/function-list/information/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/en-US.ts b/packages/formula/src/locale/function-list/information/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/en-US.tsrename to packages/formula/src/locale/function-list/information/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/es-ES.ts b/packages/formula/src/locale/function-list/information/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/es-ES.tsrename to packages/formula/src/locale/function-list/information/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/fr-FR.ts b/packages/formula/src/locale/function-list/information/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/fr-FR.tsrename to packages/formula/src/locale/function-list/information/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/id-ID.ts b/packages/formula/src/locale/function-list/information/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/id-ID.tsrename to packages/formula/src/locale/function-list/information/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/it-IT.ts b/packages/formula/src/locale/function-list/information/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/it-IT.tsrename to packages/formula/src/locale/function-list/information/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/ja-JP.ts b/packages/formula/src/locale/function-list/information/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/ja-JP.tsrename to packages/formula/src/locale/function-list/information/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/ko-KR.ts b/packages/formula/src/locale/function-list/information/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/ko-KR.tsrename to packages/formula/src/locale/function-list/information/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/pl-PL.ts b/packages/formula/src/locale/function-list/information/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/pl-PL.tsrename to packages/formula/src/locale/function-list/information/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/pt-BR.ts b/packages/formula/src/locale/function-list/information/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/pt-BR.tsrename to packages/formula/src/locale/function-list/information/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/ru-RU.ts b/packages/formula/src/locale/function-list/information/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/ru-RU.tsrename to packages/formula/src/locale/function-list/information/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/sk-SK.ts b/packages/formula/src/locale/function-list/information/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/sk-SK.tsrename to packages/formula/src/locale/function-list/information/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/vi-VN.ts b/packages/formula/src/locale/function-list/information/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/vi-VN.tsrename to packages/formula/src/locale/function-list/information/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts b/packages/formula/src/locale/function-list/information/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/zh-CN.tsrename to packages/formula/src/locale/function-list/information/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/information/zh-TW.ts b/packages/formula/src/locale/function-list/information/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/information/zh-TW.tsrename to packages/formula/src/locale/function-list/information/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/ar-SA.ts b/packages/formula/src/locale/function-list/logical/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/ar-SA.tsrename to packages/formula/src/locale/function-list/logical/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/ca-ES.ts b/packages/formula/src/locale/function-list/logical/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/ca-ES.tsrename to packages/formula/src/locale/function-list/logical/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/de-DE.ts b/packages/formula/src/locale/function-list/logical/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/de-DE.tsrename to packages/formula/src/locale/function-list/logical/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/en-US.ts b/packages/formula/src/locale/function-list/logical/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/en-US.tsrename to packages/formula/src/locale/function-list/logical/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/es-ES.ts b/packages/formula/src/locale/function-list/logical/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/es-ES.tsrename to packages/formula/src/locale/function-list/logical/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/fr-FR.ts b/packages/formula/src/locale/function-list/logical/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/fr-FR.tsrename to packages/formula/src/locale/function-list/logical/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/id-ID.ts b/packages/formula/src/locale/function-list/logical/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/id-ID.tsrename to packages/formula/src/locale/function-list/logical/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/it-IT.ts b/packages/formula/src/locale/function-list/logical/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/it-IT.tsrename to packages/formula/src/locale/function-list/logical/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/ja-JP.ts b/packages/formula/src/locale/function-list/logical/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/ja-JP.tsrename to packages/formula/src/locale/function-list/logical/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/ko-KR.ts b/packages/formula/src/locale/function-list/logical/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/ko-KR.tsrename to packages/formula/src/locale/function-list/logical/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/pl-PL.ts b/packages/formula/src/locale/function-list/logical/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/pl-PL.tsrename to packages/formula/src/locale/function-list/logical/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/pt-BR.ts b/packages/formula/src/locale/function-list/logical/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/pt-BR.tsrename to packages/formula/src/locale/function-list/logical/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/ru-RU.ts b/packages/formula/src/locale/function-list/logical/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/ru-RU.tsrename to packages/formula/src/locale/function-list/logical/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/sk-SK.ts b/packages/formula/src/locale/function-list/logical/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/sk-SK.tsrename to packages/formula/src/locale/function-list/logical/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/vi-VN.ts b/packages/formula/src/locale/function-list/logical/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/vi-VN.tsrename to packages/formula/src/locale/function-list/logical/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts b/packages/formula/src/locale/function-list/logical/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/zh-CN.tsrename to packages/formula/src/locale/function-list/logical/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/logical/zh-TW.ts b/packages/formula/src/locale/function-list/logical/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/logical/zh-TW.tsrename to packages/formula/src/locale/function-list/logical/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/ar-SA.ts b/packages/formula/src/locale/function-list/lookup/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/ar-SA.tsrename to packages/formula/src/locale/function-list/lookup/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/ca-ES.ts b/packages/formula/src/locale/function-list/lookup/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/ca-ES.tsrename to packages/formula/src/locale/function-list/lookup/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/de-DE.ts b/packages/formula/src/locale/function-list/lookup/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/de-DE.tsrename to packages/formula/src/locale/function-list/lookup/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts b/packages/formula/src/locale/function-list/lookup/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/en-US.tsrename to packages/formula/src/locale/function-list/lookup/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/es-ES.ts b/packages/formula/src/locale/function-list/lookup/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/es-ES.tsrename to packages/formula/src/locale/function-list/lookup/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/fr-FR.ts b/packages/formula/src/locale/function-list/lookup/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/fr-FR.tsrename to packages/formula/src/locale/function-list/lookup/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/id-ID.ts b/packages/formula/src/locale/function-list/lookup/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/id-ID.tsrename to packages/formula/src/locale/function-list/lookup/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/it-IT.ts b/packages/formula/src/locale/function-list/lookup/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/it-IT.tsrename to packages/formula/src/locale/function-list/lookup/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/ja-JP.ts b/packages/formula/src/locale/function-list/lookup/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/ja-JP.tsrename to packages/formula/src/locale/function-list/lookup/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/ko-KR.ts b/packages/formula/src/locale/function-list/lookup/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/ko-KR.tsrename to packages/formula/src/locale/function-list/lookup/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/pl-PL.ts b/packages/formula/src/locale/function-list/lookup/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/pl-PL.tsrename to packages/formula/src/locale/function-list/lookup/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/pt-BR.ts b/packages/formula/src/locale/function-list/lookup/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/pt-BR.tsrename to packages/formula/src/locale/function-list/lookup/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/ru-RU.ts b/packages/formula/src/locale/function-list/lookup/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/ru-RU.tsrename to packages/formula/src/locale/function-list/lookup/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/sk-SK.ts b/packages/formula/src/locale/function-list/lookup/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/sk-SK.tsrename to packages/formula/src/locale/function-list/lookup/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/vi-VN.ts b/packages/formula/src/locale/function-list/lookup/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/vi-VN.tsrename to packages/formula/src/locale/function-list/lookup/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts b/packages/formula/src/locale/function-list/lookup/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/zh-CN.tsrename to packages/formula/src/locale/function-list/lookup/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/lookup/zh-TW.ts b/packages/formula/src/locale/function-list/lookup/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/lookup/zh-TW.tsrename to packages/formula/src/locale/function-list/lookup/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/ar-SA.ts b/packages/formula/src/locale/function-list/math/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/ar-SA.tsrename to packages/formula/src/locale/function-list/math/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/ca-ES.ts b/packages/formula/src/locale/function-list/math/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/ca-ES.tsrename to packages/formula/src/locale/function-list/math/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/de-DE.ts b/packages/formula/src/locale/function-list/math/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/de-DE.tsrename to packages/formula/src/locale/function-list/math/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/en-US.ts b/packages/formula/src/locale/function-list/math/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/en-US.tsrename to packages/formula/src/locale/function-list/math/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/es-ES.ts b/packages/formula/src/locale/function-list/math/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/es-ES.tsrename to packages/formula/src/locale/function-list/math/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/fr-FR.ts b/packages/formula/src/locale/function-list/math/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/fr-FR.tsrename to packages/formula/src/locale/function-list/math/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/id-ID.ts b/packages/formula/src/locale/function-list/math/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/id-ID.tsrename to packages/formula/src/locale/function-list/math/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/it-IT.ts b/packages/formula/src/locale/function-list/math/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/it-IT.tsrename to packages/formula/src/locale/function-list/math/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/ja-JP.ts b/packages/formula/src/locale/function-list/math/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/ja-JP.tsrename to packages/formula/src/locale/function-list/math/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/ko-KR.ts b/packages/formula/src/locale/function-list/math/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/ko-KR.tsrename to packages/formula/src/locale/function-list/math/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/pl-PL.ts b/packages/formula/src/locale/function-list/math/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/pl-PL.tsrename to packages/formula/src/locale/function-list/math/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/pt-BR.ts b/packages/formula/src/locale/function-list/math/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/pt-BR.tsrename to packages/formula/src/locale/function-list/math/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/ru-RU.ts b/packages/formula/src/locale/function-list/math/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/ru-RU.tsrename to packages/formula/src/locale/function-list/math/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/sk-SK.ts b/packages/formula/src/locale/function-list/math/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/sk-SK.tsrename to packages/formula/src/locale/function-list/math/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/vi-VN.ts b/packages/formula/src/locale/function-list/math/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/vi-VN.tsrename to packages/formula/src/locale/function-list/math/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts b/packages/formula/src/locale/function-list/math/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/zh-CN.tsrename to packages/formula/src/locale/function-list/math/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/math/zh-TW.ts b/packages/formula/src/locale/function-list/math/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/math/zh-TW.tsrename to packages/formula/src/locale/function-list/math/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/ar-SA.ts b/packages/formula/src/locale/function-list/statistical/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/ar-SA.tsrename to packages/formula/src/locale/function-list/statistical/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/ca-ES.ts b/packages/formula/src/locale/function-list/statistical/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/ca-ES.tsrename to packages/formula/src/locale/function-list/statistical/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/de-DE.ts b/packages/formula/src/locale/function-list/statistical/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/de-DE.tsrename to packages/formula/src/locale/function-list/statistical/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts b/packages/formula/src/locale/function-list/statistical/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/en-US.tsrename to packages/formula/src/locale/function-list/statistical/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/es-ES.ts b/packages/formula/src/locale/function-list/statistical/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/es-ES.tsrename to packages/formula/src/locale/function-list/statistical/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/fr-FR.ts b/packages/formula/src/locale/function-list/statistical/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/fr-FR.tsrename to packages/formula/src/locale/function-list/statistical/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/id-ID.ts b/packages/formula/src/locale/function-list/statistical/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/id-ID.tsrename to packages/formula/src/locale/function-list/statistical/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/it-IT.ts b/packages/formula/src/locale/function-list/statistical/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/it-IT.tsrename to packages/formula/src/locale/function-list/statistical/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/ja-JP.ts b/packages/formula/src/locale/function-list/statistical/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/ja-JP.tsrename to packages/formula/src/locale/function-list/statistical/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/ko-KR.ts b/packages/formula/src/locale/function-list/statistical/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/ko-KR.tsrename to packages/formula/src/locale/function-list/statistical/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/pl-PL.ts b/packages/formula/src/locale/function-list/statistical/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/pl-PL.tsrename to packages/formula/src/locale/function-list/statistical/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/pt-BR.ts b/packages/formula/src/locale/function-list/statistical/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/pt-BR.tsrename to packages/formula/src/locale/function-list/statistical/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/ru-RU.ts b/packages/formula/src/locale/function-list/statistical/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/ru-RU.tsrename to packages/formula/src/locale/function-list/statistical/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/sk-SK.ts b/packages/formula/src/locale/function-list/statistical/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/sk-SK.tsrename to packages/formula/src/locale/function-list/statistical/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/vi-VN.ts b/packages/formula/src/locale/function-list/statistical/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/vi-VN.tsrename to packages/formula/src/locale/function-list/statistical/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts b/packages/formula/src/locale/function-list/statistical/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/zh-CN.tsrename to packages/formula/src/locale/function-list/statistical/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/statistical/zh-TW.ts b/packages/formula/src/locale/function-list/statistical/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/statistical/zh-TW.tsrename to packages/formula/src/locale/function-list/statistical/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/ar-SA.ts b/packages/formula/src/locale/function-list/text/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/ar-SA.tsrename to packages/formula/src/locale/function-list/text/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/ca-ES.ts b/packages/formula/src/locale/function-list/text/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/ca-ES.tsrename to packages/formula/src/locale/function-list/text/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/de-DE.ts b/packages/formula/src/locale/function-list/text/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/de-DE.tsrename to packages/formula/src/locale/function-list/text/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/en-US.ts b/packages/formula/src/locale/function-list/text/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/en-US.tsrename to packages/formula/src/locale/function-list/text/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/es-ES.ts b/packages/formula/src/locale/function-list/text/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/es-ES.tsrename to packages/formula/src/locale/function-list/text/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/fr-FR.ts b/packages/formula/src/locale/function-list/text/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/fr-FR.tsrename to packages/formula/src/locale/function-list/text/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/id-ID.ts b/packages/formula/src/locale/function-list/text/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/id-ID.tsrename to packages/formula/src/locale/function-list/text/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/it-IT.ts b/packages/formula/src/locale/function-list/text/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/it-IT.tsrename to packages/formula/src/locale/function-list/text/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/ja-JP.ts b/packages/formula/src/locale/function-list/text/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/ja-JP.tsrename to packages/formula/src/locale/function-list/text/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/ko-KR.ts b/packages/formula/src/locale/function-list/text/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/ko-KR.tsrename to packages/formula/src/locale/function-list/text/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/pl-PL.ts b/packages/formula/src/locale/function-list/text/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/pl-PL.tsrename to packages/formula/src/locale/function-list/text/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/pt-BR.ts b/packages/formula/src/locale/function-list/text/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/pt-BR.tsrename to packages/formula/src/locale/function-list/text/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/ru-RU.ts b/packages/formula/src/locale/function-list/text/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/ru-RU.tsrename to packages/formula/src/locale/function-list/text/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/sk-SK.ts b/packages/formula/src/locale/function-list/text/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/sk-SK.tsrename to packages/formula/src/locale/function-list/text/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/vi-VN.ts b/packages/formula/src/locale/function-list/text/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/vi-VN.tsrename to packages/formula/src/locale/function-list/text/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts b/packages/formula/src/locale/function-list/text/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/zh-CN.tsrename to packages/formula/src/locale/function-list/text/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/text/zh-TW.ts b/packages/formula/src/locale/function-list/text/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/text/zh-TW.tsrename to packages/formula/src/locale/function-list/text/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/ar-SA.ts b/packages/formula/src/locale/function-list/univer/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/ar-SA.tsrename to packages/formula/src/locale/function-list/univer/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/ca-ES.ts b/packages/formula/src/locale/function-list/univer/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/ca-ES.tsrename to packages/formula/src/locale/function-list/univer/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/de-DE.ts b/packages/formula/src/locale/function-list/univer/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/de-DE.tsrename to packages/formula/src/locale/function-list/univer/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/en-US.ts b/packages/formula/src/locale/function-list/univer/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/en-US.tsrename to packages/formula/src/locale/function-list/univer/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/es-ES.ts b/packages/formula/src/locale/function-list/univer/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/es-ES.tsrename to packages/formula/src/locale/function-list/univer/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/fr-FR.ts b/packages/formula/src/locale/function-list/univer/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/fr-FR.tsrename to packages/formula/src/locale/function-list/univer/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/id-ID.ts b/packages/formula/src/locale/function-list/univer/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/id-ID.tsrename to packages/formula/src/locale/function-list/univer/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/it-IT.ts b/packages/formula/src/locale/function-list/univer/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/it-IT.tsrename to packages/formula/src/locale/function-list/univer/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/ja-JP.ts b/packages/formula/src/locale/function-list/univer/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/ja-JP.tsrename to packages/formula/src/locale/function-list/univer/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/ko-KR.ts b/packages/formula/src/locale/function-list/univer/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/ko-KR.tsrename to packages/formula/src/locale/function-list/univer/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/pl-PL.ts b/packages/formula/src/locale/function-list/univer/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/pl-PL.tsrename to packages/formula/src/locale/function-list/univer/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/pt-BR.ts b/packages/formula/src/locale/function-list/univer/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/pt-BR.tsrename to packages/formula/src/locale/function-list/univer/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/ru-RU.ts b/packages/formula/src/locale/function-list/univer/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/ru-RU.tsrename to packages/formula/src/locale/function-list/univer/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/sk-SK.ts b/packages/formula/src/locale/function-list/univer/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/sk-SK.tsrename to packages/formula/src/locale/function-list/univer/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/vi-VN.ts b/packages/formula/src/locale/function-list/univer/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/vi-VN.tsrename to packages/formula/src/locale/function-list/univer/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts b/packages/formula/src/locale/function-list/univer/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/zh-CN.tsrename to packages/formula/src/locale/function-list/univer/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/univer/zh-TW.ts b/packages/formula/src/locale/function-list/univer/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/univer/zh-TW.tsrename to packages/formula/src/locale/function-list/univer/zh-TW.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/ar-SA.ts b/packages/formula/src/locale/function-list/web/ar-SA.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/ar-SA.tsrename to packages/formula/src/locale/function-list/web/ar-SA.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/ca-ES.ts b/packages/formula/src/locale/function-list/web/ca-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/ca-ES.tsrename to packages/formula/src/locale/function-list/web/ca-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/de-DE.ts b/packages/formula/src/locale/function-list/web/de-DE.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/de-DE.tsrename to packages/formula/src/locale/function-list/web/de-DE.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/en-US.ts b/packages/formula/src/locale/function-list/web/en-US.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/en-US.tsrename to packages/formula/src/locale/function-list/web/en-US.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/es-ES.ts b/packages/formula/src/locale/function-list/web/es-ES.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/es-ES.tsrename to packages/formula/src/locale/function-list/web/es-ES.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/fr-FR.ts b/packages/formula/src/locale/function-list/web/fr-FR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/fr-FR.tsrename to packages/formula/src/locale/function-list/web/fr-FR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/id-ID.ts b/packages/formula/src/locale/function-list/web/id-ID.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/id-ID.tsrename to packages/formula/src/locale/function-list/web/id-ID.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/it-IT.ts b/packages/formula/src/locale/function-list/web/it-IT.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/it-IT.tsrename to packages/formula/src/locale/function-list/web/it-IT.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/ja-JP.ts b/packages/formula/src/locale/function-list/web/ja-JP.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/ja-JP.tsrename to packages/formula/src/locale/function-list/web/ja-JP.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/ko-KR.ts b/packages/formula/src/locale/function-list/web/ko-KR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/ko-KR.tsrename to packages/formula/src/locale/function-list/web/ko-KR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/pl-PL.ts b/packages/formula/src/locale/function-list/web/pl-PL.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/pl-PL.tsrename to packages/formula/src/locale/function-list/web/pl-PL.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/pt-BR.ts b/packages/formula/src/locale/function-list/web/pt-BR.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/pt-BR.tsrename to packages/formula/src/locale/function-list/web/pt-BR.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/ru-RU.ts b/packages/formula/src/locale/function-list/web/ru-RU.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/ru-RU.tsrename to packages/formula/src/locale/function-list/web/ru-RU.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/sk-SK.ts b/packages/formula/src/locale/function-list/web/sk-SK.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/sk-SK.tsrename to packages/formula/src/locale/function-list/web/sk-SK.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/vi-VN.ts b/packages/formula/src/locale/function-list/web/vi-VN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/vi-VN.tsrename to packages/formula/src/locale/function-list/web/vi-VN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts b/packages/formula/src/locale/function-list/web/zh-CN.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/zh-CN.tsrename to packages/formula/src/locale/function-list/web/zh-CN.tsdiff --git a/packages/sheets-formula/src/locale/function-list/web/zh-TW.ts b/packages/formula/src/locale/function-list/web/zh-TW.tssimilarity index 100%rename from packages/sheets-formula/src/locale/function-list/web/zh-TW.tsrename to packages/formula/src/locale/function-list/web/zh-TW.tsdiff --git a/packages/formula/src/locale/id-ID.ts b/packages/formula/src/locale/id-ID.tsnew file mode 100644index 0000000000..e45cd94ba3--- /dev/null+++ b/packages/formula/src/locale/id-ID.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/id-ID';+import compatibility from './function-list/compatibility/id-ID';+import cube from './function-list/cube/id-ID';+import database from './function-list/database/id-ID';+import date from './function-list/date/id-ID';+import engineering from './function-list/engineering/id-ID';+import financial from './function-list/financial/id-ID';+import information from './function-list/information/id-ID';+import logical from './function-list/logical/id-ID';+import lookup from './function-list/lookup/id-ID';+import math from './function-list/math/id-ID';+import statistical from './function-list/statistical/id-ID';+import text from './function-list/text/id-ID';+import univer from './function-list/univer/id-ID';+import web from './function-list/web/id-ID';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/it-IT.ts b/packages/formula/src/locale/it-IT.tsnew file mode 100644index 0000000000..a9b0478c84--- /dev/null+++ b/packages/formula/src/locale/it-IT.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/it-IT';+import compatibility from './function-list/compatibility/it-IT';+import cube from './function-list/cube/it-IT';+import database from './function-list/database/it-IT';+import date from './function-list/date/it-IT';+import engineering from './function-list/engineering/it-IT';+import financial from './function-list/financial/it-IT';+import information from './function-list/information/it-IT';+import logical from './function-list/logical/it-IT';+import lookup from './function-list/lookup/it-IT';+import math from './function-list/math/it-IT';+import statistical from './function-list/statistical/it-IT';+import text from './function-list/text/it-IT';+import univer from './function-list/univer/it-IT';+import web from './function-list/web/it-IT';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/ja-JP.ts b/packages/formula/src/locale/ja-JP.tsnew file mode 100644index 0000000000..e4b581b8cf--- /dev/null+++ b/packages/formula/src/locale/ja-JP.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/ja-JP';+import compatibility from './function-list/compatibility/ja-JP';+import cube from './function-list/cube/ja-JP';+import database from './function-list/database/ja-JP';+import date from './function-list/date/ja-JP';+import engineering from './function-list/engineering/ja-JP';+import financial from './function-list/financial/ja-JP';+import information from './function-list/information/ja-JP';+import logical from './function-list/logical/ja-JP';+import lookup from './function-list/lookup/ja-JP';+import math from './function-list/math/ja-JP';+import statistical from './function-list/statistical/ja-JP';+import text from './function-list/text/ja-JP';+import univer from './function-list/univer/ja-JP';+import web from './function-list/web/ja-JP';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/ko-KR.ts b/packages/formula/src/locale/ko-KR.tsnew file mode 100644index 0000000000..cc71c1f715--- /dev/null+++ b/packages/formula/src/locale/ko-KR.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/ko-KR';+import compatibility from './function-list/compatibility/ko-KR';+import cube from './function-list/cube/ko-KR';+import database from './function-list/database/ko-KR';+import date from './function-list/date/ko-KR';+import engineering from './function-list/engineering/ko-KR';+import financial from './function-list/financial/ko-KR';+import information from './function-list/information/ko-KR';+import logical from './function-list/logical/ko-KR';+import lookup from './function-list/lookup/ko-KR';+import math from './function-list/math/ko-KR';+import statistical from './function-list/statistical/ko-KR';+import text from './function-list/text/ko-KR';+import univer from './function-list/univer/ko-KR';+import web from './function-list/web/ko-KR';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/pl-PL.ts b/packages/formula/src/locale/pl-PL.tsnew file mode 100644index 0000000000..c3f2dd1110--- /dev/null+++ b/packages/formula/src/locale/pl-PL.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/pl-PL';+import compatibility from './function-list/compatibility/pl-PL';+import cube from './function-list/cube/pl-PL';+import database from './function-list/database/pl-PL';+import date from './function-list/date/pl-PL';+import engineering from './function-list/engineering/pl-PL';+import financial from './function-list/financial/pl-PL';+import information from './function-list/information/pl-PL';+import logical from './function-list/logical/pl-PL';+import lookup from './function-list/lookup/pl-PL';+import math from './function-list/math/pl-PL';+import statistical from './function-list/statistical/pl-PL';+import text from './function-list/text/pl-PL';+import univer from './function-list/univer/pl-PL';+import web from './function-list/web/pl-PL';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/pt-BR.ts b/packages/formula/src/locale/pt-BR.tsnew file mode 100644index 0000000000..1f39ed5c10--- /dev/null+++ b/packages/formula/src/locale/pt-BR.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/pt-BR';+import compatibility from './function-list/compatibility/pt-BR';+import cube from './function-list/cube/pt-BR';+import database from './function-list/database/pt-BR';+import date from './function-list/date/pt-BR';+import engineering from './function-list/engineering/pt-BR';+import financial from './function-list/financial/pt-BR';+import information from './function-list/information/pt-BR';+import logical from './function-list/logical/pt-BR';+import lookup from './function-list/lookup/pt-BR';+import math from './function-list/math/pt-BR';+import statistical from './function-list/statistical/pt-BR';+import text from './function-list/text/pt-BR';+import univer from './function-list/univer/pt-BR';+import web from './function-list/web/pt-BR';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/ru-RU.ts b/packages/formula/src/locale/ru-RU.tsnew file mode 100644index 0000000000..4271a1246f--- /dev/null+++ b/packages/formula/src/locale/ru-RU.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/ru-RU';+import compatibility from './function-list/compatibility/ru-RU';+import cube from './function-list/cube/ru-RU';+import database from './function-list/database/ru-RU';+import date from './function-list/date/ru-RU';+import engineering from './function-list/engineering/ru-RU';+import financial from './function-list/financial/ru-RU';+import information from './function-list/information/ru-RU';+import logical from './function-list/logical/ru-RU';+import lookup from './function-list/lookup/ru-RU';+import math from './function-list/math/ru-RU';+import statistical from './function-list/statistical/ru-RU';+import text from './function-list/text/ru-RU';+import univer from './function-list/univer/ru-RU';+import web from './function-list/web/ru-RU';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/sk-SK.ts b/packages/formula/src/locale/sk-SK.tsnew file mode 100644index 0000000000..f43b32365e--- /dev/null+++ b/packages/formula/src/locale/sk-SK.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/sk-SK';+import compatibility from './function-list/compatibility/sk-SK';+import cube from './function-list/cube/sk-SK';+import database from './function-list/database/sk-SK';+import date from './function-list/date/sk-SK';+import engineering from './function-list/engineering/sk-SK';+import financial from './function-list/financial/sk-SK';+import information from './function-list/information/sk-SK';+import logical from './function-list/logical/sk-SK';+import lookup from './function-list/lookup/sk-SK';+import math from './function-list/math/sk-SK';+import statistical from './function-list/statistical/sk-SK';+import text from './function-list/text/sk-SK';+import univer from './function-list/univer/sk-SK';+import web from './function-list/web/sk-SK';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/types.ts b/packages/formula/src/locale/types.tsnew file mode 100644index 0000000000..b83cb8e9ce--- /dev/null+++ b/packages/formula/src/locale/types.ts@@ -0,0 +1,20 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { LocaleLeafKeys } from '@univerjs/core';+import type enUS from './en-US';++export type LocaleKey = LocaleLeafKeys<typeof enUS>;diff --git a/packages/formula/src/locale/vi-VN.ts b/packages/formula/src/locale/vi-VN.tsnew file mode 100644index 0000000000..683ca837a4--- /dev/null+++ b/packages/formula/src/locale/vi-VN.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/vi-VN';+import compatibility from './function-list/compatibility/vi-VN';+import cube from './function-list/cube/vi-VN';+import database from './function-list/database/vi-VN';+import date from './function-list/date/vi-VN';+import engineering from './function-list/engineering/vi-VN';+import financial from './function-list/financial/vi-VN';+import information from './function-list/information/vi-VN';+import logical from './function-list/logical/vi-VN';+import lookup from './function-list/lookup/vi-VN';+import math from './function-list/math/vi-VN';+import statistical from './function-list/statistical/vi-VN';+import text from './function-list/text/vi-VN';+import univer from './function-list/univer/vi-VN';+import web from './function-list/web/vi-VN';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/zh-CN.ts b/packages/formula/src/locale/zh-CN.tsnew file mode 100644index 0000000000..d456dcb200--- /dev/null+++ b/packages/formula/src/locale/zh-CN.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/zh-CN';+import compatibility from './function-list/compatibility/zh-CN';+import cube from './function-list/cube/zh-CN';+import database from './function-list/database/zh-CN';+import date from './function-list/date/zh-CN';+import engineering from './function-list/engineering/zh-CN';+import financial from './function-list/financial/zh-CN';+import information from './function-list/information/zh-CN';+import logical from './function-list/logical/zh-CN';+import lookup from './function-list/lookup/zh-CN';+import math from './function-list/math/zh-CN';+import statistical from './function-list/statistical/zh-CN';+import text from './function-list/text/zh-CN';+import univer from './function-list/univer/zh-CN';+import web from './function-list/web/zh-CN';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/zh-HK.ts b/packages/formula/src/locale/zh-HK.tsnew file mode 100644index 0000000000..40a1857e8c--- /dev/null+++ b/packages/formula/src/locale/zh-HK.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/zh-TW';+import compatibility from './function-list/compatibility/zh-TW';+import cube from './function-list/cube/zh-TW';+import database from './function-list/database/zh-TW';+import date from './function-list/date/zh-TW';+import engineering from './function-list/engineering/zh-TW';+import financial from './function-list/financial/zh-TW';+import information from './function-list/information/zh-TW';+import logical from './function-list/logical/zh-TW';+import lookup from './function-list/lookup/zh-TW';+import math from './function-list/math/zh-TW';+import statistical from './function-list/statistical/zh-TW';+import text from './function-list/text/zh-TW';+import univer from './function-list/univer/zh-TW';+import web from './function-list/web/zh-TW';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/locale/zh-TW.ts b/packages/formula/src/locale/zh-TW.tsnew file mode 100644index 0000000000..40a1857e8c--- /dev/null+++ b/packages/formula/src/locale/zh-TW.ts@@ -0,0 +1,57 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type enUS from './en-US';++import array from './function-list/array/zh-TW';+import compatibility from './function-list/compatibility/zh-TW';+import cube from './function-list/cube/zh-TW';+import database from './function-list/database/zh-TW';+import date from './function-list/date/zh-TW';+import engineering from './function-list/engineering/zh-TW';+import financial from './function-list/financial/zh-TW';+import information from './function-list/information/zh-TW';+import logical from './function-list/logical/zh-TW';+import lookup from './function-list/lookup/zh-TW';+import math from './function-list/math/zh-TW';+import statistical from './function-list/statistical/zh-TW';+import text from './function-list/text/zh-TW';+import univer from './function-list/univer/zh-TW';+import web from './function-list/web/zh-TW';++const locale: typeof enUS = {+ formula: {+ functionList: {+ ...array,+ ...compatibility,+ ...cube,+ ...database,+ ...date,+ ...engineering,+ ...financial,+ ...information,+ ...logical,+ ...lookup,+ ...math,+ ...statistical,+ ...text,+ ...univer,+ ...web,+ },+ },+};++export default locale;diff --git a/packages/formula/src/plugin.ts b/packages/formula/src/plugin.tsnew file mode 100644index 0000000000..7d97fa320e--- /dev/null+++ b/packages/formula/src/plugin.ts@@ -0,0 +1,46 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import { DependentOn, Inject, Injector, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';+import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';+import pkg from '../package.json';+import { FormulaCalculationSessionController } from './controllers/formula-calculation-session.controller';+import { DescriptionService, IDescriptionService } from './services/description.service';+import { FormulaCalculationSessionService } from './services/formula-calculation-session.service';+import { IRegisterFunctionService, RegisterFunctionService } from './services/register-function.service';++@DependentOn(UniverFormulaEnginePlugin)+export class UniverFormulaPlugin extends Plugin {+ static override pluginName = 'FORMULA_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;+ static override type = UniverInstanceType.UNIVER_UNKNOWN;++ constructor(@Inject(Injector) protected readonly _injector: Injector) {+ super();+ }++ override onStarting(): void {+ this._injector.add([IDescriptionService, { useClass: DescriptionService }]);+ this._injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);+ this._injector.add([FormulaCalculationSessionService]);+ this._injector.add([FormulaCalculationSessionController]);+ }++ override onReady(): void {+ touchDependencies(this._injector, [[FormulaCalculationSessionController]]);+ }+}diff --git a/packages/sheets-formula/src/services/__tests__/description.service.spec.ts b/packages/formula/src/services/__tests__/description.service.spec.tssimilarity index 93%rename from packages/sheets-formula/src/services/__tests__/description.service.spec.tsrename to packages/formula/src/services/__tests__/description.service.spec.tsindex c8b8920d00..2a96e763ef 100644--- a/packages/sheets-formula/src/services/__tests__/description.service.spec.ts+++ b/packages/formula/src/services/__tests__/description.service.spec.ts@@ -15,10 +15,10 @@*/import type { IFunctionInfo } from '@univerjs/engine-formula';-import { IConfigService, LocaleService, LocaleType, Univer } from '@univerjs/core';+import { LocaleService, LocaleType, Univer } from '@univerjs/core';import { FunctionService, FunctionType, IFunctionService } from '@univerjs/engine-formula';import { afterEach, beforeEach, describe, expect, it } from 'vitest';-import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';+import formulaEnUS from '../../locale/en-US';import { DescriptionService, IDescriptionService } from '../description.service';function createFunctionInfo(overrides: Partial<IFunctionInfo> = {}): IFunctionInfo {@@ -53,6 +53,7 @@ describe('DescriptionService', () => {localeService.load({[LocaleType.ZH_CN]: {},[LocaleType.EN_US]: {+ ...formulaEnUS,custom: {alias: 'CUSTOM_ALIAS',desc: 'Localized description',@@ -65,7 +66,6 @@ describe('DescriptionService', () => {},});- injector.get(IConfigService).setConfig(PLUGIN_CONFIG_KEY_BASE, { description: [] });injector.add([IFunctionService, { useClass: FunctionService }]);injector.add([IDescriptionService, { useClass: DescriptionService }]);@@ -111,6 +111,15 @@ describe('DescriptionService', () => {expect(descriptionService.getFunctionInfo('CUSTOMFUNC')).toBeUndefined();});+ it('resolves built-in descriptions from the formula-owned locale namespace', () => {+ localeService.setLocale(LocaleType.EN_US);++ expect(descriptionService.getFunctionInfo('SUM')).toMatchObject({+ abstract: 'Adds its arguments',+ description: 'You can add individual values, cell references or ranges or a mix of all three.',+ });+ });+it('handles defined-name descriptions according to current implementation semantics', () => {const rangeNameInfo = createFunctionInfo({functionName: 'BOOK_RANGE',diff --git a/packages/sheets-formula/src/services/__tests__/formula-calculation-session.service.spec.ts b/packages/formula/src/services/__tests__/formula-calculation-session.service.spec.tssimilarity index 70%rename from packages/sheets-formula/src/services/__tests__/formula-calculation-session.service.spec.tsrename to packages/formula/src/services/__tests__/formula-calculation-session.service.spec.tsindex c35ce366ad..560ce6965c 100644--- a/packages/sheets-formula/src/services/__tests__/formula-calculation-session.service.spec.ts+++ b/packages/formula/src/services/__tests__/formula-calculation-session.service.spec.ts@@ -18,7 +18,7 @@ import type { ISetFormulaCalculationResultMutation } from '@univerjs/engine-formimport { Injector } from '@univerjs/core';import { FormulaExecutedStateType, FormulaExecuteStageType } from '@univerjs/engine-formula';import { afterEach, describe, expect, it, vi } from 'vitest';-import { FormulaCalculationSessionService } from '../formula-calculation-session.service';+import { FormulaCalculationSessionService, FormulaResultApplicationType } from '../formula-calculation-session.service';function createService(): FormulaCalculationSessionService {const injector = new Injector();@@ -238,6 +238,101 @@ describe('FormulaCalculationSessionService', () => {subscription.unsubscribe();});+ it('waits until sheet and other-formula results are both applied', () => {+ const service = createService();+ const result: ISetFormulaCalculationResultMutation = {+ unitData: {},+ unitOtherData: {},+ };+ const appliedResults: ISetFormulaCalculationResultMutation[] = [];+ const subscription = service.resultApplied$.subscribe((value) => appliedResults.push(value));++ service.start();+ service.markResultEmitted(result, [+ FormulaResultApplicationType.SHEET,+ FormulaResultApplicationType.OTHER_FORMULA,+ ]);+ service.markResultApplied(FormulaResultApplicationType.OTHER_FORMULA, result);++ expect(appliedResults).toEqual([]);++ service.markResultApplied(FormulaResultApplicationType.SHEET);++ expect(appliedResults).toEqual([result]);+ subscription.unsubscribe();+ });++ it('correlates ten consecutive mixed sheet and other-formula application cycles', async () => {+ const service = createService();+ service.initialize();+ const inputValues = [10, 3, 77, -5, 1000, 0, 42, 8.5, 999, -1200];+ const appliedResults: ISetFormulaCalculationResultMutation[] = [];+ const subscription = service.resultApplied$.subscribe((result) => appliedResults.push(result));++ for (const [index, value] of inputValues.entries()) {+ const result: ISetFormulaCalculationResultMutation = {+ unitData: {+ book: {+ sheet: {+ 0: {+ 0: { v: value },+ },+ },+ },+ },+ unitOtherData: {+ book: {+ sheet: {+ 'formula.shape-1': {+ 0: {+ 0: [[{ v: value * 2 }]],+ },+ },+ },+ },+ },+ };++ service.start();+ const resultApplied = service.waitForLatestApplied(1_000);+ service.markResultEmitted(result, [+ FormulaResultApplicationType.SHEET,+ FormulaResultApplicationType.OTHER_FORMULA,+ ]);++ if (index % 2 === 0) {+ service.markResultApplied(FormulaResultApplicationType.SHEET, result);+ service.markResultApplied(FormulaResultApplicationType.OTHER_FORMULA, result);+ } else {+ service.markResultApplied(FormulaResultApplicationType.OTHER_FORMULA, result);+ service.markResultApplied(FormulaResultApplicationType.SHEET, result);+ }++ await resultApplied;+ expect(appliedResults.at(-1)).toBe(result);+ }++ expect(appliedResults).toHaveLength(inputValues.length);+ subscription.unsubscribe();+ });++ it('correlates other-formula application observed before result emission', () => {+ const service = createService();+ const result: ISetFormulaCalculationResultMutation = {+ unitData: {},+ unitOtherData: {},+ };+ const appliedResults: ISetFormulaCalculationResultMutation[] = [];+ const subscription = service.resultApplied$.subscribe((value) => appliedResults.push(value));++ service.start();+ service.markResultApplied(FormulaResultApplicationType.OTHER_FORMULA, result);+ service.markResultEmitted(result, [FormulaResultApplicationType.OTHER_FORMULA]);++ expect(appliedResults).toEqual([result]);+ subscription.unsubscribe();+ });+it('does not start the no-calculation watchdog until the session controller is initialized', async () => {vi.useFakeTimers();diff --git a/packages/sheets-formula/src/services/__tests__/register-function.service.spec.ts b/packages/formula/src/services/__tests__/register-function.service.spec.tssimilarity index 59%rename from packages/sheets-formula/src/services/__tests__/register-function.service.spec.tsrename to packages/formula/src/services/__tests__/register-function.service.spec.tsindex 3abb897663..f73577f495 100644--- a/packages/sheets-formula/src/services/__tests__/register-function.service.spec.ts+++ b/packages/formula/src/services/__tests__/register-function.service.spec.ts@@ -14,13 +14,11 @@* limitations under the License.*/-import { IConfigService, LocaleService, LocaleType, Univer } from '@univerjs/core';+import { LocaleService, LocaleType, Univer } from '@univerjs/core';import { FunctionService, FunctionType, IFunctionService } from '@univerjs/engine-formula';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { DescriptionService, IDescriptionService } from '../description.service';import { IRegisterFunctionService, RegisterFunctionService } from '../register-function.service';-import { IRemoteRegisterFunctionService } from '../remote/remote-register-function.service';describe('RegisterFunctionService', () => {let univer: Univer;@@ -33,7 +31,6 @@ describe('RegisterFunctionService', () => {[LocaleType.ZH_CN]: {},[LocaleType.EN_US]: {},});- injector.get(IConfigService).setConfig(PLUGIN_CONFIG_KEY_BASE, { description: [] });injector.add([IFunctionService, { useClass: FunctionService }]);injector.add([IDescriptionService, { useClass: DescriptionService }]);});@@ -95,52 +92,4 @@ describe('RegisterFunctionService', () => {expect(functionService.hasExecutor('ADD2')).toBe(false);});-- it('does not serialize functions for remote registration when the remote service is present', () => {- const registerFunctions = vi.fn().mockResolvedValue(undefined);- const registerAsyncFunctions = vi.fn().mockResolvedValue(undefined);- const unregisterFunctions = vi.fn().mockResolvedValue(undefined);- class TestRemoteRegisterFunctionService {- registerFunctions = registerFunctions;- registerAsyncFunctions = registerAsyncFunctions;- unregisterFunctions = unregisterFunctions;- }- const injector = univer.__getInjector();-- injector.add([IRemoteRegisterFunctionService, { useClass: TestRemoteRegisterFunctionService as never }]);- injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);-- const registerFunctionService = injector.get(IRegisterFunctionService);- const functionService = injector.get(IFunctionService);-- const groupedFunction = () => 1;- const asyncFunction = async () => 2;- const groupedToString = vi.fn(() => '() => 1');- const asyncToString = vi.fn(() => 'async () => 2');- groupedFunction.toString = groupedToString;- asyncFunction.toString = asyncToString;-- const groupedDisposable = registerFunctionService.registerFunctions({- calculate: [- [groupedFunction, 'REMOTE_GROUPED', 'Remote grouped function'],- ],- });- const asyncDisposable = registerFunctionService.registerAsyncFunction({- name: 'REMOTE_ASYNC',- func: asyncFunction,- description: 'Remote async function',- });-- expect(functionService.hasExecutor('REMOTE_GROUPED')).toBe(true);- expect(functionService.hasExecutor('REMOTE_ASYNC')).toBe(true);- expect(groupedToString).not.toHaveBeenCalled();- expect(asyncToString).not.toHaveBeenCalled();- expect(registerFunctions).not.toHaveBeenCalled();- expect(registerAsyncFunctions).not.toHaveBeenCalled();-- groupedDisposable.dispose();- asyncDisposable.dispose();-- expect(unregisterFunctions).not.toHaveBeenCalled();- });});diff --git a/packages/sheets-formula/src/services/description.service.ts b/packages/formula/src/services/description.service.tssimilarity index 93%rename from packages/sheets-formula/src/services/description.service.tsrename to packages/formula/src/services/description.service.tsindex e8aa0980cc..9eee03591d 100644--- a/packages/sheets-formula/src/services/description.service.ts+++ b/packages/formula/src/services/description.service.ts@@ -16,10 +16,8 @@import type { IDisposable } from '@univerjs/core';import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';-import type { IUniverSheetsFormulaBaseConfig } from '../config/config';-import { createIdentifier, Disposable, IConfigService, Inject, LocaleService, toDisposable } from '@univerjs/core';+import { createIdentifier, Disposable, Inject, LocaleService, toDisposable } from '@univerjs/core';import { ALL_IMPLEMENTED_FUNCTIONS_SET, FunctionType, IFunctionService, isReferenceStrings } from '@univerjs/engine-formula';-import { PLUGIN_CONFIG_KEY_BASE } from '../config/config';import { FUNCTION_LIST } from './function-list/function-list';import { getFunctionName } from './utils';@@ -93,8 +91,7 @@ export class DescriptionService extends Disposable implements IDescriptionServicconstructor(@IFunctionService private readonly _functionService: IFunctionService,- @Inject(LocaleService) private readonly _localeService: LocaleService,- @IConfigService private readonly _configService: IConfigService+ @Inject(LocaleService) private readonly _localeService: LocaleService) {super();@@ -132,12 +129,6 @@ export class DescriptionService extends Disposable implements IDescriptionServicthis._descriptions.set(functionName, item);}});-- const config = this._configService.getConfig<IUniverSheetsFormulaBaseConfig>(PLUGIN_CONFIG_KEY_BASE);- config?.description?.forEach((item) => {- const functionName = getFunctionName(item, localeService).toUpperCase();- this._descriptions.set(functionName, item);- });}private _initRegisterDescriptions() {diff --git a/packages/sheets-formula/src/services/formula-calculation-session.service.ts b/packages/formula/src/services/formula-calculation-session.service.tssimilarity index 81%rename from packages/sheets-formula/src/services/formula-calculation-session.service.tsrename to packages/formula/src/services/formula-calculation-session.service.tsindex 04b6feb64e..801770478b 100644--- a/packages/sheets-formula/src/services/formula-calculation-session.service.ts+++ b/packages/formula/src/services/formula-calculation-session.service.ts@@ -15,6 +15,7 @@*/import type { IExecutionInProgressParams, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';+import type { Subscription } from 'rxjs';import { Disposable } from '@univerjs/core';import { FormulaExecutedStateType, FormulaExecuteStageType } from '@univerjs/engine-formula';import { BehaviorSubject, Subject } from 'rxjs';@@ -30,6 +31,11 @@ export interface IFormulaCalculationSessionState {resultApplied: boolean;}+export enum FormulaResultApplicationType {+ SHEET = 'sheet',+ OTHER_FORMULA = 'other-formula',+}+const INITIAL_SESSION_STATE: IFormulaCalculationSessionState = {id: 0,initialized: false,@@ -50,6 +56,15 @@ export class FormulaCalculationSessionService extends Disposable {private _hasEmittedCurrentResultApplied = false;+ private _pendingResultApplicationTypes = new Set<FormulaResultApplicationType>();++ private _preAppliedSessionTypes = new Set<FormulaResultApplicationType>();++ private readonly _preAppliedResultTypes = new WeakMap<+ ISetFormulaCalculationResultMutation,+ Set<FormulaResultApplicationType>+ >();+readonly state$ = this._state$.asObservable();readonly resultApplied$ = this._resultApplied$.asObservable();@@ -84,6 +99,8 @@ export class FormulaCalculationSessionService extends Disposable {});this._currentResult = null;this._hasEmittedCurrentResultApplied = false;+ this._pendingResultApplicationTypes.clear();+ this._preAppliedSessionTypes.clear();}updateProgress(progress: IExecutionInProgressParams): void {@@ -123,13 +140,23 @@ export class FormulaCalculationSessionService extends Disposable {});}- markResultEmitted(result: ISetFormulaCalculationResultMutation, hasResultToApply: boolean): void {+ markResultEmitted(+ result: ISetFormulaCalculationResultMutation,+ pendingApplications: boolean | Iterable<FormulaResultApplicationType>+ ): void {if (this._currentResult !== result) {this._hasEmittedCurrentResultApplied = false;}this._currentResult = result;- const resultApplied = this.state.resultApplied || !hasResultToApply;+ this._pendingResultApplicationTypes = typeof pendingApplications === 'boolean'+ ? new Set(pendingApplications ? [FormulaResultApplicationType.SHEET] : [])+ : new Set(pendingApplications);+ const preAppliedTypes = this._preAppliedResultTypes.get(result);+ this._preAppliedSessionTypes.forEach((type) => this._pendingResultApplicationTypes.delete(type));+ preAppliedTypes?.forEach((type) => this._pendingResultApplicationTypes.delete(type));+ this._preAppliedSessionTypes.clear();+ const resultApplied = this._pendingResultApplicationTypes.size === 0;this._emit({...this.state,resultEmitted: true,@@ -141,7 +168,27 @@ export class FormulaCalculationSessionService extends Disposable {}}- markResultApplied(): void {+ markResultApplied(+ type = FormulaResultApplicationType.SHEET,+ result?: ISetFormulaCalculationResultMutation+ ): void {+ if (result && this._currentResult !== result) {+ const types = this._preAppliedResultTypes.get(result) ?? new Set<FormulaResultApplicationType>();+ types.add(type);+ this._preAppliedResultTypes.set(result, types);+ return;+ }++ if (!this._currentResult) {+ this._preAppliedSessionTypes.add(type);+ return;+ }++ this._pendingResultApplicationTypes.delete(type);+ if (this._pendingResultApplicationTypes.size > 0) {+ return;+ }+this._emit({...this.state,resultApplied: true,@@ -162,6 +209,15 @@ export class FormulaCalculationSessionService extends Disposable {let pendingResolveId: number | null = null;let stoppedResolveTimer: ReturnType<typeof setTimeout> | null = null;let timeoutTimer: ReturnType<typeof setTimeout> | null = null;+ let startTimer: ReturnType<typeof setTimeout> | null = null;+ let subscription: Subscription | null = null;++ const clearStartTimer = () => {+ if (startTimer != null) {+ clearTimeout(startTimer);+ startTimer = null;+ }+ };const cleanup = () => {if (timeoutTimer != null) {@@ -173,7 +229,7 @@ export class FormulaCalculationSessionService extends Disposable {clearTimeout(stoppedResolveTimer);stoppedResolveTimer = null;}- subscription.unsubscribe();+ subscription?.unsubscribe();};const settleResolve = () => {@@ -224,15 +280,6 @@ export class FormulaCalculationSessionService extends Disposable {}, timeout);}- let startTimer: ReturnType<typeof setTimeout> | null = null;-- const clearStartTimer = () => {- if (startTimer != null) {- clearTimeout(startTimer);- startTimer = null;- }- };-const scheduleStartTimer = () => {clearStartTimer();startTimer = setTimeout(() => {@@ -246,7 +293,7 @@ export class FormulaCalculationSessionService extends Disposable {scheduleStartTimer();}- const subscription = this.state$.subscribe((state) => {+ subscription = this.state$.subscribe((state) => {if (state.id !== initialId || waitForExistingSession) {clearStartTimer();}diff --git a/packages/sheets-formula/src/services/function-list/array.ts b/packages/formula/src/services/function-list/array.tssimilarity index 56%rename from packages/sheets-formula/src/services/function-list/array.tsrename to packages/formula/src/services/function-list/array.tsindex a6e8d4f933..6522ebb7c0 100644--- a/packages/sheets-formula/src/services/function-list/array.ts+++ b/packages/formula/src/services/function-list/array.ts@@ -21,26 +21,26 @@ export const FUNCTION_LIST_ARRAY: IFunctionInfo[] = [{functionName: FUNCTION_NAMES_ARRAY.ARRAY_CONSTRAIN,functionType: FunctionType.Array,- description: 'sheets-formula.functionList.ARRAY_CONSTRAIN.description',- abstract: 'sheets-formula.functionList.ARRAY_CONSTRAIN.abstract',+ description: 'formula.functionList.ARRAY_CONSTRAIN.description',+ abstract: 'formula.functionList.ARRAY_CONSTRAIN.abstract',functionParameter: [{- name: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.inputRange.name',- detail: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.inputRange.detail',+ name: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.inputRange.name',+ detail: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.inputRange.detail',example: 'A1:C3',require: 1,repeat: 0,},{- name: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.numRows.name',- detail: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.numRows.detail',+ name: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.numRows.name',+ detail: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.numRows.detail',example: '2',require: 1,repeat: 0,},{- name: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.numCols.name',- detail: 'sheets-formula.functionList.ARRAY_CONSTRAIN.functionParameter.numCols.detail',+ name: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.numCols.name',+ detail: 'formula.functionList.ARRAY_CONSTRAIN.functionParameter.numCols.detail',example: '2',require: 1,repeat: 0,@@ -50,19 +50,19 @@ export const FUNCTION_LIST_ARRAY: IFunctionInfo[] = [{functionName: FUNCTION_NAMES_ARRAY.FLATTEN,functionType: FunctionType.Array,- description: 'sheets-formula.functionList.FLATTEN.description',- abstract: 'sheets-formula.functionList.FLATTEN.abstract',+ description: 'formula.functionList.FLATTEN.description',+ abstract: 'formula.functionList.FLATTEN.abstract',functionParameter: [{- name: 'sheets-formula.functionList.FLATTEN.functionParameter.range1.name',- detail: 'sheets-formula.functionList.FLATTEN.functionParameter.range1.detail',+ name: 'formula.functionList.FLATTEN.functionParameter.range1.name',+ detail: 'formula.functionList.FLATTEN.functionParameter.range1.detail',example: 'A1:C3',require: 1,repeat: 0,},{- name: 'sheets-formula.functionList.FLATTEN.functionParameter.range2.name',- detail: 'sheets-formula.functionList.FLATTEN.functionParameter.range2.detail',+ name: 'formula.functionList.FLATTEN.functionParameter.range2.name',+ detail: 'formula.functionList.FLATTEN.functionParameter.range2.detail',example: 'D1:F3',require: 0,repeat: 1,diff --git a/packages/formula/src/services/function-list/compatibility.ts b/packages/formula/src/services/function-list/compatibility.tsnew file mode 100644index 0000000000..da15b6fd35--- /dev/null+++ b/packages/formula/src/services/function-list/compatibility.ts@@ -0,0 +1,1074 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_COMPATIBILITY, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.BETADIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.BETADIST.description',+ abstract: 'formula.functionList.BETADIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BETADIST.functionParameter.x.name',+ detail: 'formula.functionList.BETADIST.functionParameter.x.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETADIST.functionParameter.alpha.name',+ detail: 'formula.functionList.BETADIST.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETADIST.functionParameter.beta.name',+ detail: 'formula.functionList.BETADIST.functionParameter.beta.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETADIST.functionParameter.A.name',+ detail: 'formula.functionList.BETADIST.functionParameter.A.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETADIST.functionParameter.B.name',+ detail: 'formula.functionList.BETADIST.functionParameter.B.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.BETAINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.BETAINV.description',+ abstract: 'formula.functionList.BETAINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BETAINV.functionParameter.probability.name',+ detail: 'formula.functionList.BETAINV.functionParameter.probability.detail',+ example: '0.685470581',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETAINV.functionParameter.alpha.name',+ detail: 'formula.functionList.BETAINV.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETAINV.functionParameter.beta.name',+ detail: 'formula.functionList.BETAINV.functionParameter.beta.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETAINV.functionParameter.A.name',+ detail: 'formula.functionList.BETAINV.functionParameter.A.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETAINV.functionParameter.B.name',+ detail: 'formula.functionList.BETAINV.functionParameter.B.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.BINOMDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.BINOMDIST.description',+ abstract: 'formula.functionList.BINOMDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BINOMDIST.functionParameter.numberS.name',+ detail: 'formula.functionList.BINOMDIST.functionParameter.numberS.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOMDIST.functionParameter.trials.name',+ detail: 'formula.functionList.BINOMDIST.functionParameter.trials.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOMDIST.functionParameter.probabilityS.name',+ detail: 'formula.functionList.BINOMDIST.functionParameter.probabilityS.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOMDIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.BINOMDIST.functionParameter.cumulative.detail',+ example: 'false',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.CHIDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.CHIDIST.description',+ abstract: 'formula.functionList.CHIDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHIDIST.functionParameter.x.name',+ detail: 'formula.functionList.CHIDIST.functionParameter.x.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHIDIST.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHIDIST.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.CHIINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.CHIINV.description',+ abstract: 'formula.functionList.CHIINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHIINV.functionParameter.probability.name',+ detail: 'formula.functionList.CHIINV.functionParameter.probability.detail',+ example: '0.93',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHIINV.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHIINV.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.CHITEST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.CHITEST.description',+ abstract: 'formula.functionList.CHITEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHITEST.functionParameter.actualRange.name',+ detail: 'formula.functionList.CHITEST.functionParameter.actualRange.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHITEST.functionParameter.expectedRange.name',+ detail: 'formula.functionList.CHITEST.functionParameter.expectedRange.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.CONFIDENCE,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.CONFIDENCE.description',+ abstract: 'formula.functionList.CONFIDENCE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONFIDENCE.functionParameter.alpha.name',+ detail: 'formula.functionList.CONFIDENCE.functionParameter.alpha.detail',+ example: '0.05',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE.functionParameter.standardDev.name',+ detail: 'formula.functionList.CONFIDENCE.functionParameter.standardDev.detail',+ example: '2.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE.functionParameter.size.name',+ detail: 'formula.functionList.CONFIDENCE.functionParameter.size.detail',+ example: '50',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.COVAR,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.COVAR.description',+ abstract: 'formula.functionList.COVAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COVAR.functionParameter.array1.name',+ detail: 'formula.functionList.COVAR.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COVAR.functionParameter.array2.name',+ detail: 'formula.functionList.COVAR.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.CRITBINOM,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.CRITBINOM.description',+ abstract: 'formula.functionList.CRITBINOM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CRITBINOM.functionParameter.trials.name',+ detail: 'formula.functionList.CRITBINOM.functionParameter.trials.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CRITBINOM.functionParameter.probabilityS.name',+ detail: 'formula.functionList.CRITBINOM.functionParameter.probabilityS.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CRITBINOM.functionParameter.alpha.name',+ detail: 'formula.functionList.CRITBINOM.functionParameter.alpha.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.EXPONDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.EXPONDIST.description',+ abstract: 'formula.functionList.EXPONDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EXPONDIST.functionParameter.x.name',+ detail: 'formula.functionList.EXPONDIST.functionParameter.x.detail',+ example: '0.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPONDIST.functionParameter.lambda.name',+ detail: 'formula.functionList.EXPONDIST.functionParameter.lambda.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPONDIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.EXPONDIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.FDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.FDIST.description',+ abstract: 'formula.functionList.FDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FDIST.functionParameter.x.name',+ detail: 'formula.functionList.FDIST.functionParameter.x.detail',+ example: '15.2069',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FDIST.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.FDIST.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FDIST.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.FDIST.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.FINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.FINV.description',+ abstract: 'formula.functionList.FINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FINV.functionParameter.probability.name',+ detail: 'formula.functionList.FINV.functionParameter.probability.detail',+ example: '0.01',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FINV.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.FINV.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FINV.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.FINV.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.FTEST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.FTEST.description',+ abstract: 'formula.functionList.FTEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FTEST.functionParameter.array1.name',+ detail: 'formula.functionList.FTEST.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FTEST.functionParameter.array2.name',+ detail: 'formula.functionList.FTEST.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.GAMMADIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.GAMMADIST.description',+ abstract: 'formula.functionList.GAMMADIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMADIST.functionParameter.x.name',+ detail: 'formula.functionList.GAMMADIST.functionParameter.x.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMADIST.functionParameter.alpha.name',+ detail: 'formula.functionList.GAMMADIST.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMADIST.functionParameter.beta.name',+ detail: 'formula.functionList.GAMMADIST.functionParameter.beta.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMADIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.GAMMADIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.GAMMAINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.GAMMAINV.description',+ abstract: 'formula.functionList.GAMMAINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMAINV.functionParameter.probability.name',+ detail: 'formula.functionList.GAMMAINV.functionParameter.probability.detail',+ example: '0.068094',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMAINV.functionParameter.alpha.name',+ detail: 'formula.functionList.GAMMAINV.functionParameter.alpha.detail',+ example: '9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMAINV.functionParameter.beta.name',+ detail: 'formula.functionList.GAMMAINV.functionParameter.beta.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.HYPGEOMDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.HYPGEOMDIST.description',+ abstract: 'formula.functionList.HYPGEOMDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HYPGEOMDIST.functionParameter.sampleS.name',+ detail: 'formula.functionList.HYPGEOMDIST.functionParameter.sampleS.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOMDIST.functionParameter.numberSample.name',+ detail: 'formula.functionList.HYPGEOMDIST.functionParameter.numberSample.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOMDIST.functionParameter.populationS.name',+ detail: 'formula.functionList.HYPGEOMDIST.functionParameter.populationS.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOMDIST.functionParameter.numberPop.name',+ detail: 'formula.functionList.HYPGEOMDIST.functionParameter.numberPop.detail',+ example: '20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.LOGINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.LOGINV.description',+ abstract: 'formula.functionList.LOGINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOGINV.functionParameter.probability.name',+ detail: 'formula.functionList.LOGINV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGINV.functionParameter.mean.name',+ detail: 'formula.functionList.LOGINV.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGINV.functionParameter.standardDev.name',+ detail: 'formula.functionList.LOGINV.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.LOGNORMDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.LOGNORMDIST.description',+ abstract: 'formula.functionList.LOGNORMDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOGNORMDIST.functionParameter.x.name',+ detail: 'formula.functionList.LOGNORMDIST.functionParameter.x.detail',+ example: '42',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORMDIST.functionParameter.mean.name',+ detail: 'formula.functionList.LOGNORMDIST.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORMDIST.functionParameter.standardDev.name',+ detail: 'formula.functionList.LOGNORMDIST.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.MODE,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.MODE.description',+ abstract: 'formula.functionList.MODE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MODE.functionParameter.number1.name',+ detail: 'formula.functionList.MODE.functionParameter.number1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MODE.functionParameter.number2.name',+ detail: 'formula.functionList.MODE.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.NEGBINOMDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.NEGBINOMDIST.description',+ abstract: 'formula.functionList.NEGBINOMDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NEGBINOMDIST.functionParameter.numberF.name',+ detail: 'formula.functionList.NEGBINOMDIST.functionParameter.numberF.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NEGBINOMDIST.functionParameter.numberS.name',+ detail: 'formula.functionList.NEGBINOMDIST.functionParameter.numberS.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NEGBINOMDIST.functionParameter.probabilityS.name',+ detail: 'formula.functionList.NEGBINOMDIST.functionParameter.probabilityS.detail',+ example: '0.25',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.NORMDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.NORMDIST.description',+ abstract: 'formula.functionList.NORMDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORMDIST.functionParameter.x.name',+ detail: 'formula.functionList.NORMDIST.functionParameter.x.detail',+ example: '42',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORMDIST.functionParameter.mean.name',+ detail: 'formula.functionList.NORMDIST.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORMDIST.functionParameter.standardDev.name',+ detail: 'formula.functionList.NORMDIST.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORMDIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.NORMDIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.NORMINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.NORMINV.description',+ abstract: 'formula.functionList.NORMINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORMINV.functionParameter.probability.name',+ detail: 'formula.functionList.NORMINV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORMINV.functionParameter.mean.name',+ detail: 'formula.functionList.NORMINV.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORMINV.functionParameter.standardDev.name',+ detail: 'formula.functionList.NORMINV.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.NORMSDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.NORMSDIST.description',+ abstract: 'formula.functionList.NORMSDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORMSDIST.functionParameter.z.name',+ detail: 'formula.functionList.NORMSDIST.functionParameter.z.detail',+ example: '1.333333',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.NORMSINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.NORMSINV.description',+ abstract: 'formula.functionList.NORMSINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORMSINV.functionParameter.probability.name',+ detail: 'formula.functionList.NORMSINV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.PERCENTILE,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.PERCENTILE.description',+ abstract: 'formula.functionList.PERCENTILE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTILE.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTILE.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTILE.functionParameter.k.name',+ detail: 'formula.functionList.PERCENTILE.functionParameter.k.detail',+ example: '0.3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.PERCENTRANK,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.PERCENTRANK.description',+ abstract: 'formula.functionList.PERCENTRANK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTRANK.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTRANK.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK.functionParameter.x.name',+ detail: 'formula.functionList.PERCENTRANK.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK.functionParameter.significance.name',+ detail: 'formula.functionList.PERCENTRANK.functionParameter.significance.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.POISSON,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.POISSON.description',+ abstract: 'formula.functionList.POISSON.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.POISSON.functionParameter.x.name',+ detail: 'formula.functionList.POISSON.functionParameter.x.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.POISSON.functionParameter.mean.name',+ detail: 'formula.functionList.POISSON.functionParameter.mean.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.POISSON.functionParameter.cumulative.name',+ detail: 'formula.functionList.POISSON.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.QUARTILE,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.QUARTILE.description',+ abstract: 'formula.functionList.QUARTILE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.QUARTILE.functionParameter.array.name',+ detail: 'formula.functionList.QUARTILE.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.QUARTILE.functionParameter.quart.name',+ detail: 'formula.functionList.QUARTILE.functionParameter.quart.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.RANK,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.RANK.description',+ abstract: 'formula.functionList.RANK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RANK.functionParameter.number.name',+ detail: 'formula.functionList.RANK.functionParameter.number.detail',+ example: 'A3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK.functionParameter.ref.name',+ detail: 'formula.functionList.RANK.functionParameter.ref.detail',+ example: 'A2:A6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK.functionParameter.order.name',+ detail: 'formula.functionList.RANK.functionParameter.order.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.STDEV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.STDEV.description',+ abstract: 'formula.functionList.STDEV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEV.functionParameter.number1.name',+ detail: 'formula.functionList.STDEV.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEV.functionParameter.number2.name',+ detail: 'formula.functionList.STDEV.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.STDEVP,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.STDEVP.description',+ abstract: 'formula.functionList.STDEVP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEVP.functionParameter.number1.name',+ detail: 'formula.functionList.STDEVP.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEVP.functionParameter.number2.name',+ detail: 'formula.functionList.STDEVP.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.TDIST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.TDIST.description',+ abstract: 'formula.functionList.TDIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TDIST.functionParameter.x.name',+ detail: 'formula.functionList.TDIST.functionParameter.x.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TDIST.functionParameter.degFreedom.name',+ detail: 'formula.functionList.TDIST.functionParameter.degFreedom.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TDIST.functionParameter.tails.name',+ detail: 'formula.functionList.TDIST.functionParameter.tails.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.TINV,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.TINV.description',+ abstract: 'formula.functionList.TINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TINV.functionParameter.probability.name',+ detail: 'formula.functionList.TINV.functionParameter.probability.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TINV.functionParameter.degFreedom.name',+ detail: 'formula.functionList.TINV.functionParameter.degFreedom.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.TTEST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.TTEST.description',+ abstract: 'formula.functionList.TTEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TTEST.functionParameter.array1.name',+ detail: 'formula.functionList.TTEST.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TTEST.functionParameter.array2.name',+ detail: 'formula.functionList.TTEST.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TTEST.functionParameter.tails.name',+ detail: 'formula.functionList.TTEST.functionParameter.tails.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TTEST.functionParameter.type.name',+ detail: 'formula.functionList.TTEST.functionParameter.type.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.VAR,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.VAR.description',+ abstract: 'formula.functionList.VAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VAR.functionParameter.number1.name',+ detail: 'formula.functionList.VAR.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VAR.functionParameter.number2.name',+ detail: 'formula.functionList.VAR.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.VARP,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.VARP.description',+ abstract: 'formula.functionList.VARP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VARP.functionParameter.number1.name',+ detail: 'formula.functionList.VARP.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VARP.functionParameter.number2.name',+ detail: 'formula.functionList.VARP.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.WEIBULL,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.WEIBULL.description',+ abstract: 'formula.functionList.WEIBULL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WEIBULL.functionParameter.x.name',+ detail: 'formula.functionList.WEIBULL.functionParameter.x.detail',+ example: '105',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL.functionParameter.alpha.name',+ detail: 'formula.functionList.WEIBULL.functionParameter.alpha.detail',+ example: '20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL.functionParameter.beta.name',+ detail: 'formula.functionList.WEIBULL.functionParameter.beta.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL.functionParameter.cumulative.name',+ detail: 'formula.functionList.WEIBULL.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_COMPATIBILITY.ZTEST,+ functionType: FunctionType.Compatibility,+ description: 'formula.functionList.ZTEST.description',+ abstract: 'formula.functionList.ZTEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ZTEST.functionParameter.array.name',+ detail: 'formula.functionList.ZTEST.functionParameter.array.detail',+ example: 'A2:A11',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ZTEST.functionParameter.x.name',+ detail: 'formula.functionList.ZTEST.functionParameter.x.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ZTEST.functionParameter.sigma.name',+ detail: 'formula.functionList.ZTEST.functionParameter.sigma.detail',+ example: '10',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/cube.ts b/packages/formula/src/services/function-list/cube.tsnew file mode 100644index 0000000000..912b8c26db--- /dev/null+++ b/packages/formula/src/services/function-list/cube.ts@@ -0,0 +1,231 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_CUBE, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_CUBE: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_CUBE.CUBEKPIMEMBER,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBEKPIMEMBER.description',+ abstract: 'formula.functionList.CUBEKPIMEMBER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBEKPIMEMBER.functionParameter.connection.name',+ detail: 'formula.functionList.CUBEKPIMEMBER.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEKPIMEMBER.functionParameter.kpiName.name',+ detail: 'formula.functionList.CUBEKPIMEMBER.functionParameter.kpiName.detail',+ example: '"Revenue"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEKPIMEMBER.functionParameter.kpiProperty.name',+ detail: 'formula.functionList.CUBEKPIMEMBER.functionParameter.kpiProperty.detail',+ example: '"KPIValue"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEKPIMEMBER.functionParameter.caption.name',+ detail: 'formula.functionList.CUBEKPIMEMBER.functionParameter.caption.detail',+ example: '"Revenue KPI"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBEMEMBER,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBEMEMBER.description',+ abstract: 'formula.functionList.CUBEMEMBER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBEMEMBER.functionParameter.connection.name',+ detail: 'formula.functionList.CUBEMEMBER.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEMEMBER.functionParameter.memberExpression.name',+ detail: 'formula.functionList.CUBEMEMBER.functionParameter.memberExpression.detail',+ example: '"[Product].[All Products]"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEMEMBER.functionParameter.caption.name',+ detail: 'formula.functionList.CUBEMEMBER.functionParameter.caption.detail',+ example: '"All Products"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBEMEMBERPROPERTY,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBEMEMBERPROPERTY.description',+ abstract: 'formula.functionList.CUBEMEMBERPROPERTY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.connection.name',+ detail: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.memberExpression.name',+ detail: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.memberExpression.detail',+ example: '"[Product].[All Products]"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.property.name',+ detail: 'formula.functionList.CUBEMEMBERPROPERTY.functionParameter.property.detail',+ example: '"Caption"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBERANKEDMEMBER,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBERANKEDMEMBER.description',+ abstract: 'formula.functionList.CUBERANKEDMEMBER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.connection.name',+ detail: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.setExpression.name',+ detail: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.setExpression.detail',+ example: '"[Product].[All Products].Children"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.rank.name',+ detail: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.rank.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.caption.name',+ detail: 'formula.functionList.CUBERANKEDMEMBER.functionParameter.caption.detail',+ example: '"Top Product"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBESET,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBESET.description',+ abstract: 'formula.functionList.CUBESET.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBESET.functionParameter.connection.name',+ detail: 'formula.functionList.CUBESET.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBESET.functionParameter.setExpression.name',+ detail: 'formula.functionList.CUBESET.functionParameter.setExpression.detail',+ example: '"[Product].[All Products].Children"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBESET.functionParameter.caption.name',+ detail: 'formula.functionList.CUBESET.functionParameter.caption.detail',+ example: '"Products"',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBESET.functionParameter.sortOrder.name',+ detail: 'formula.functionList.CUBESET.functionParameter.sortOrder.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBESET.functionParameter.sortBy.name',+ detail: 'formula.functionList.CUBESET.functionParameter.sortBy.detail',+ example: '"[Measures].[Sales]"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBESETCOUNT,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBESETCOUNT.description',+ abstract: 'formula.functionList.CUBESETCOUNT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBESETCOUNT.functionParameter.set.name',+ detail: 'formula.functionList.CUBESETCOUNT.functionParameter.set.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_CUBE.CUBEVALUE,+ functionType: FunctionType.Cube,+ description: 'formula.functionList.CUBEVALUE.description',+ abstract: 'formula.functionList.CUBEVALUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUBEVALUE.functionParameter.connection.name',+ detail: 'formula.functionList.CUBEVALUE.functionParameter.connection.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUBEVALUE.functionParameter.memberExpression.name',+ detail: 'formula.functionList.CUBEVALUE.functionParameter.memberExpression.detail',+ example: '"[Measures].[Sales]"',+ require: 0,+ repeat: 1,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/database.ts b/packages/formula/src/services/function-list/database.tsnew file mode 100644index 0000000000..c3adf8f7ed--- /dev/null+++ b/packages/formula/src/services/function-list/database.ts@@ -0,0 +1,369 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_DATABASE, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_DATABASE: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_DATABASE.DAVERAGE,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DAVERAGE.description',+ abstract: 'formula.functionList.DAVERAGE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DAVERAGE.functionParameter.database.name',+ detail: 'formula.functionList.DAVERAGE.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DAVERAGE.functionParameter.field.name',+ detail: 'formula.functionList.DAVERAGE.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DAVERAGE.functionParameter.criteria.name',+ detail: 'formula.functionList.DAVERAGE.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DCOUNT,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DCOUNT.description',+ abstract: 'formula.functionList.DCOUNT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DCOUNT.functionParameter.database.name',+ detail: 'formula.functionList.DCOUNT.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DCOUNT.functionParameter.field.name',+ detail: 'formula.functionList.DCOUNT.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DCOUNT.functionParameter.criteria.name',+ detail: 'formula.functionList.DCOUNT.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DCOUNTA,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DCOUNTA.description',+ abstract: 'formula.functionList.DCOUNTA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DCOUNTA.functionParameter.database.name',+ detail: 'formula.functionList.DCOUNTA.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DCOUNTA.functionParameter.field.name',+ detail: 'formula.functionList.DCOUNTA.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DCOUNTA.functionParameter.criteria.name',+ detail: 'formula.functionList.DCOUNTA.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DGET,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DGET.description',+ abstract: 'formula.functionList.DGET.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DGET.functionParameter.database.name',+ detail: 'formula.functionList.DGET.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DGET.functionParameter.field.name',+ detail: 'formula.functionList.DGET.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DGET.functionParameter.criteria.name',+ detail: 'formula.functionList.DGET.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DMAX,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DMAX.description',+ abstract: 'formula.functionList.DMAX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DMAX.functionParameter.database.name',+ detail: 'formula.functionList.DMAX.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DMAX.functionParameter.field.name',+ detail: 'formula.functionList.DMAX.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DMAX.functionParameter.criteria.name',+ detail: 'formula.functionList.DMAX.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DMIN,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DMIN.description',+ abstract: 'formula.functionList.DMIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DMIN.functionParameter.database.name',+ detail: 'formula.functionList.DMIN.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DMIN.functionParameter.field.name',+ detail: 'formula.functionList.DMIN.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DMIN.functionParameter.criteria.name',+ detail: 'formula.functionList.DMIN.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DPRODUCT,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DPRODUCT.description',+ abstract: 'formula.functionList.DPRODUCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DPRODUCT.functionParameter.database.name',+ detail: 'formula.functionList.DPRODUCT.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DPRODUCT.functionParameter.field.name',+ detail: 'formula.functionList.DPRODUCT.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DPRODUCT.functionParameter.criteria.name',+ detail: 'formula.functionList.DPRODUCT.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DSTDEV,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DSTDEV.description',+ abstract: 'formula.functionList.DSTDEV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DSTDEV.functionParameter.database.name',+ detail: 'formula.functionList.DSTDEV.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSTDEV.functionParameter.field.name',+ detail: 'formula.functionList.DSTDEV.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSTDEV.functionParameter.criteria.name',+ detail: 'formula.functionList.DSTDEV.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DSTDEVP,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DSTDEVP.description',+ abstract: 'formula.functionList.DSTDEVP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DSTDEVP.functionParameter.database.name',+ detail: 'formula.functionList.DSTDEVP.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSTDEVP.functionParameter.field.name',+ detail: 'formula.functionList.DSTDEVP.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSTDEVP.functionParameter.criteria.name',+ detail: 'formula.functionList.DSTDEVP.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DSUM,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DSUM.description',+ abstract: 'formula.functionList.DSUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DSUM.functionParameter.database.name',+ detail: 'formula.functionList.DSUM.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSUM.functionParameter.field.name',+ detail: 'formula.functionList.DSUM.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DSUM.functionParameter.criteria.name',+ detail: 'formula.functionList.DSUM.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DVAR,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DVAR.description',+ abstract: 'formula.functionList.DVAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DVAR.functionParameter.database.name',+ detail: 'formula.functionList.DVAR.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DVAR.functionParameter.field.name',+ detail: 'formula.functionList.DVAR.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DVAR.functionParameter.criteria.name',+ detail: 'formula.functionList.DVAR.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATABASE.DVARP,+ functionType: FunctionType.Database,+ description: 'formula.functionList.DVARP.description',+ abstract: 'formula.functionList.DVARP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DVARP.functionParameter.database.name',+ detail: 'formula.functionList.DVARP.functionParameter.database.detail',+ example: 'A4:E10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DVARP.functionParameter.field.name',+ detail: 'formula.functionList.DVARP.functionParameter.field.detail',+ example: 'D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DVARP.functionParameter.criteria.name',+ detail: 'formula.functionList.DVARP.functionParameter.criteria.detail',+ example: 'A1:B2',+ require: 1,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/date.ts b/packages/formula/src/services/function-list/date.tsnew file mode 100644index 0000000000..e24bfa56bf--- /dev/null+++ b/packages/formula/src/services/function-list/date.ts@@ -0,0 +1,594 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_DATE, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_DATE: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_DATE.DATE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DATE.description',+ abstract: 'formula.functionList.DATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DATE.functionParameter.year.name',+ detail: 'formula.functionList.DATE.functionParameter.year.detail',+ example: '2024',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DATE.functionParameter.month.name',+ detail: 'formula.functionList.DATE.functionParameter.month.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DATE.functionParameter.day.name',+ detail: 'formula.functionList.DATE.functionParameter.day.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.DATEDIF,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DATEDIF.description',+ abstract: 'formula.functionList.DATEDIF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DATEDIF.functionParameter.startDate.name',+ detail: 'formula.functionList.DATEDIF.functionParameter.startDate.detail',+ example: '"2001-6-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DATEDIF.functionParameter.endDate.name',+ detail: 'formula.functionList.DATEDIF.functionParameter.endDate.detail',+ example: '"2002-8-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DATEDIF.functionParameter.unit.name',+ detail: 'formula.functionList.DATEDIF.functionParameter.unit.detail',+ example: '"D"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.DATEVALUE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DATEVALUE.description',+ abstract: 'formula.functionList.DATEVALUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DATEVALUE.functionParameter.dateText.name',+ detail: 'formula.functionList.DATEVALUE.functionParameter.dateText.detail',+ example: '"2024-8-8"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.DAY,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DAY.description',+ abstract: 'formula.functionList.DAY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DAY.functionParameter.serialNumber.name',+ detail: 'formula.functionList.DAY.functionParameter.serialNumber.detail',+ example: '"1969-7-20"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.DAYS,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DAYS.description',+ abstract: 'formula.functionList.DAYS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DAYS.functionParameter.endDate.name',+ detail: 'formula.functionList.DAYS.functionParameter.endDate.detail',+ example: '"2021-12-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DAYS.functionParameter.startDate.name',+ detail: 'formula.functionList.DAYS.functionParameter.startDate.detail',+ example: '"2021-1-1"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.DAYS360,+ functionType: FunctionType.Date,+ description: 'formula.functionList.DAYS360.description',+ abstract: 'formula.functionList.DAYS360.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DAYS360.functionParameter.startDate.name',+ detail: 'formula.functionList.DAYS360.functionParameter.startDate.detail',+ example: '"2021-1-29"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DAYS360.functionParameter.endDate.name',+ detail: 'formula.functionList.DAYS360.functionParameter.endDate.detail',+ example: '"2021-3-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DAYS360.functionParameter.method.name',+ detail: 'formula.functionList.DAYS360.functionParameter.method.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.EDATE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.EDATE.description',+ abstract: 'formula.functionList.EDATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EDATE.functionParameter.startDate.name',+ detail: 'formula.functionList.EDATE.functionParameter.startDate.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EDATE.functionParameter.months.name',+ detail: 'formula.functionList.EDATE.functionParameter.months.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.EOMONTH,+ functionType: FunctionType.Date,+ description: 'formula.functionList.EOMONTH.description',+ abstract: 'formula.functionList.EOMONTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EOMONTH.functionParameter.startDate.name',+ detail: 'formula.functionList.EOMONTH.functionParameter.startDate.detail',+ example: '"2011-1-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EOMONTH.functionParameter.months.name',+ detail: 'formula.functionList.EOMONTH.functionParameter.months.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.EPOCHTODATE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.EPOCHTODATE.description',+ abstract: 'formula.functionList.EPOCHTODATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EPOCHTODATE.functionParameter.timestamp.name',+ detail: 'formula.functionList.EPOCHTODATE.functionParameter.timestamp.detail',+ example: '1655906710',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EPOCHTODATE.functionParameter.unit.name',+ detail: 'formula.functionList.EPOCHTODATE.functionParameter.unit.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.HOUR,+ functionType: FunctionType.Date,+ description: 'formula.functionList.HOUR.description',+ abstract: 'formula.functionList.HOUR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HOUR.functionParameter.serialNumber.name',+ detail: 'formula.functionList.HOUR.functionParameter.serialNumber.detail',+ example: '"2011-7-18 7:45"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.ISOWEEKNUM,+ functionType: FunctionType.Date,+ description: 'formula.functionList.ISOWEEKNUM.description',+ abstract: 'formula.functionList.ISOWEEKNUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISOWEEKNUM.functionParameter.date.name',+ detail: 'formula.functionList.ISOWEEKNUM.functionParameter.date.detail',+ example: '"2012-3-9"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.MINUTE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.MINUTE.description',+ abstract: 'formula.functionList.MINUTE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MINUTE.functionParameter.serialNumber.name',+ detail: 'formula.functionList.MINUTE.functionParameter.serialNumber.detail',+ example: '"12:45"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.MONTH,+ functionType: FunctionType.Date,+ description: 'formula.functionList.MONTH.description',+ abstract: 'formula.functionList.MONTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MONTH.functionParameter.serialNumber.name',+ detail: 'formula.functionList.MONTH.functionParameter.serialNumber.detail',+ example: '"1969-7-20"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.NETWORKDAYS,+ functionType: FunctionType.Date,+ description: 'formula.functionList.NETWORKDAYS.description',+ abstract: 'formula.functionList.NETWORKDAYS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NETWORKDAYS.functionParameter.startDate.name',+ detail: 'formula.functionList.NETWORKDAYS.functionParameter.startDate.detail',+ example: '"2012-10-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NETWORKDAYS.functionParameter.endDate.name',+ detail: 'formula.functionList.NETWORKDAYS.functionParameter.endDate.detail',+ example: '"2013-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NETWORKDAYS.functionParameter.holidays.name',+ detail: 'formula.functionList.NETWORKDAYS.functionParameter.holidays.detail',+ example: '"2012-11-22"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.NETWORKDAYS_INTL,+ functionType: FunctionType.Date,+ description: 'formula.functionList.NETWORKDAYS_INTL.description',+ abstract: 'formula.functionList.NETWORKDAYS_INTL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.name',+ detail: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.detail',+ example: '"2012-10-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.name',+ detail: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.detail',+ example: '"2013-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.name',+ detail: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.detail',+ example: '6',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.name',+ detail: 'formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.detail',+ example: '"2012-11-22"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.NOW,+ functionType: FunctionType.Date,+ description: 'formula.functionList.NOW.description',+ abstract: 'formula.functionList.NOW.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.SECOND,+ functionType: FunctionType.Date,+ description: 'formula.functionList.SECOND.description',+ abstract: 'formula.functionList.SECOND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SECOND.functionParameter.serialNumber.name',+ detail: 'formula.functionList.SECOND.functionParameter.serialNumber.detail',+ example: '"4:48:18"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.TIME,+ functionType: FunctionType.Date,+ description: 'formula.functionList.TIME.description',+ abstract: 'formula.functionList.TIME.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TIME.functionParameter.hour.name',+ detail: 'formula.functionList.TIME.functionParameter.hour.detail',+ example: '15',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TIME.functionParameter.minute.name',+ detail: 'formula.functionList.TIME.functionParameter.minute.detail',+ example: '20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TIME.functionParameter.second.name',+ detail: 'formula.functionList.TIME.functionParameter.second.detail',+ example: '59',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.TIMEVALUE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.TIMEVALUE.description',+ abstract: 'formula.functionList.TIMEVALUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TIMEVALUE.functionParameter.timeText.name',+ detail: 'formula.functionList.TIMEVALUE.functionParameter.timeText.detail',+ example: '"15:20:59"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.TO_DATE,+ functionType: FunctionType.Date,+ description: 'formula.functionList.TO_DATE.description',+ abstract: 'formula.functionList.TO_DATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TO_DATE.functionParameter.value.name',+ detail: 'formula.functionList.TO_DATE.functionParameter.value.detail',+ example: '40826.4375',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.TODAY,+ functionType: FunctionType.Date,+ description: 'formula.functionList.TODAY.description',+ abstract: 'formula.functionList.TODAY.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.WEEKDAY,+ functionType: FunctionType.Date,+ description: 'formula.functionList.WEEKDAY.description',+ abstract: 'formula.functionList.WEEKDAY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WEEKDAY.functionParameter.serialNumber.name',+ detail: 'formula.functionList.WEEKDAY.functionParameter.serialNumber.detail',+ example: '"2008-2-14"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEEKDAY.functionParameter.returnType.name',+ detail: 'formula.functionList.WEEKDAY.functionParameter.returnType.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.WEEKNUM,+ functionType: FunctionType.Date,+ description: 'formula.functionList.WEEKNUM.description',+ abstract: 'formula.functionList.WEEKNUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WEEKNUM.functionParameter.serialNumber.name',+ detail: 'formula.functionList.WEEKNUM.functionParameter.serialNumber.detail',+ example: '"2012-3-9"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEEKNUM.functionParameter.returnType.name',+ detail: 'formula.functionList.WEEKNUM.functionParameter.returnType.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.WORKDAY,+ functionType: FunctionType.Date,+ description: 'formula.functionList.WORKDAY.description',+ abstract: 'formula.functionList.WORKDAY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WORKDAY.functionParameter.startDate.name',+ detail: 'formula.functionList.WORKDAY.functionParameter.startDate.detail',+ example: '"2008-10-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WORKDAY.functionParameter.days.name',+ detail: 'formula.functionList.WORKDAY.functionParameter.days.detail',+ example: '151',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WORKDAY.functionParameter.holidays.name',+ detail: 'formula.functionList.WORKDAY.functionParameter.holidays.detail',+ example: '"2008-11-26"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.WORKDAY_INTL,+ functionType: FunctionType.Date,+ description: 'formula.functionList.WORKDAY_INTL.description',+ abstract: 'formula.functionList.WORKDAY_INTL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WORKDAY_INTL.functionParameter.startDate.name',+ detail: 'formula.functionList.WORKDAY_INTL.functionParameter.startDate.detail',+ example: '"2008-10-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WORKDAY_INTL.functionParameter.days.name',+ detail: 'formula.functionList.WORKDAY_INTL.functionParameter.days.detail',+ example: '151',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WORKDAY_INTL.functionParameter.weekend.name',+ detail: 'formula.functionList.WORKDAY_INTL.functionParameter.weekend.detail',+ example: '6',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WORKDAY_INTL.functionParameter.holidays.name',+ detail: 'formula.functionList.WORKDAY_INTL.functionParameter.holidays.detail',+ example: '"2008-11-26"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.YEAR,+ functionType: FunctionType.Date,+ description: 'formula.functionList.YEAR.description',+ abstract: 'formula.functionList.YEAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.YEAR.functionParameter.serialNumber.name',+ detail: 'formula.functionList.YEAR.functionParameter.serialNumber.detail',+ example: '"1969-7-20"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_DATE.YEARFRAC,+ functionType: FunctionType.Date,+ description: 'formula.functionList.YEARFRAC.description',+ abstract: 'formula.functionList.YEARFRAC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.YEARFRAC.functionParameter.startDate.name',+ detail: 'formula.functionList.YEARFRAC.functionParameter.startDate.detail',+ example: '"2012-1-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YEARFRAC.functionParameter.endDate.name',+ detail: 'formula.functionList.YEARFRAC.functionParameter.endDate.detail',+ example: '"2012-7-30"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YEARFRAC.functionParameter.basis.name',+ detail: 'formula.functionList.YEARFRAC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/engineering.ts b/packages/formula/src/services/function-list/engineering.tsnew file mode 100644index 0000000000..932d0e7a90--- /dev/null+++ b/packages/formula/src/services/function-list/engineering.ts@@ -0,0 +1,1093 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_ENGINEERING, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_ENGINEERING: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BESSELI,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BESSELI.description',+ abstract: 'formula.functionList.BESSELI.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BESSELI.functionParameter.x.name',+ detail: 'formula.functionList.BESSELI.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BESSELI.functionParameter.n.name',+ detail: 'formula.functionList.BESSELI.functionParameter.n.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BESSELJ,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BESSELJ.description',+ abstract: 'formula.functionList.BESSELJ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BESSELJ.functionParameter.x.name',+ detail: 'formula.functionList.BESSELJ.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BESSELJ.functionParameter.n.name',+ detail: 'formula.functionList.BESSELJ.functionParameter.n.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BESSELK,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BESSELK.description',+ abstract: 'formula.functionList.BESSELK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BESSELK.functionParameter.x.name',+ detail: 'formula.functionList.BESSELK.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BESSELK.functionParameter.n.name',+ detail: 'formula.functionList.BESSELK.functionParameter.n.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BESSELY,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BESSELY.description',+ abstract: 'formula.functionList.BESSELY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BESSELY.functionParameter.x.name',+ detail: 'formula.functionList.BESSELY.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BESSELY.functionParameter.n.name',+ detail: 'formula.functionList.BESSELY.functionParameter.n.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BIN2DEC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BIN2DEC.description',+ abstract: 'formula.functionList.BIN2DEC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BIN2DEC.functionParameter.number.name',+ detail: 'formula.functionList.BIN2DEC.functionParameter.number.detail',+ example: '1100100',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BIN2HEX,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BIN2HEX.description',+ abstract: 'formula.functionList.BIN2HEX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BIN2HEX.functionParameter.number.name',+ detail: 'formula.functionList.BIN2HEX.functionParameter.number.detail',+ example: '11111011',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BIN2HEX.functionParameter.places.name',+ detail: 'formula.functionList.BIN2HEX.functionParameter.places.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BIN2OCT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BIN2OCT.description',+ abstract: 'formula.functionList.BIN2OCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BIN2OCT.functionParameter.number.name',+ detail: 'formula.functionList.BIN2OCT.functionParameter.number.detail',+ example: '1001',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BIN2OCT.functionParameter.places.name',+ detail: 'formula.functionList.BIN2OCT.functionParameter.places.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BITAND,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BITAND.description',+ abstract: 'formula.functionList.BITAND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BITAND.functionParameter.number1.name',+ detail: 'formula.functionList.BITAND.functionParameter.number1.detail',+ example: '13',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BITAND.functionParameter.number2.name',+ detail: 'formula.functionList.BITAND.functionParameter.number2.detail',+ example: '25',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BITLSHIFT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BITLSHIFT.description',+ abstract: 'formula.functionList.BITLSHIFT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BITLSHIFT.functionParameter.number.name',+ detail: 'formula.functionList.BITLSHIFT.functionParameter.number.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BITLSHIFT.functionParameter.shiftAmount.name',+ detail: 'formula.functionList.BITLSHIFT.functionParameter.shiftAmount.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BITOR,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BITOR.description',+ abstract: 'formula.functionList.BITOR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BITOR.functionParameter.number1.name',+ detail: 'formula.functionList.BITOR.functionParameter.number1.detail',+ example: '23',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BITOR.functionParameter.number2.name',+ detail: 'formula.functionList.BITOR.functionParameter.number2.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BITRSHIFT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BITRSHIFT.description',+ abstract: 'formula.functionList.BITRSHIFT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BITRSHIFT.functionParameter.number.name',+ detail: 'formula.functionList.BITRSHIFT.functionParameter.number.detail',+ example: '13',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BITRSHIFT.functionParameter.shiftAmount.name',+ detail: 'formula.functionList.BITRSHIFT.functionParameter.shiftAmount.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.BITXOR,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.BITXOR.description',+ abstract: 'formula.functionList.BITXOR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BITXOR.functionParameter.number1.name',+ detail: 'formula.functionList.BITXOR.functionParameter.number1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BITXOR.functionParameter.number2.name',+ detail: 'formula.functionList.BITXOR.functionParameter.number2.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.COMPLEX,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.COMPLEX.description',+ abstract: 'formula.functionList.COMPLEX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COMPLEX.functionParameter.realNum.name',+ detail: 'formula.functionList.COMPLEX.functionParameter.realNum.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COMPLEX.functionParameter.iNum.name',+ detail: 'formula.functionList.COMPLEX.functionParameter.iNum.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COMPLEX.functionParameter.suffix.name',+ detail: 'formula.functionList.COMPLEX.functionParameter.suffix.detail',+ example: '"i"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.CONVERT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.CONVERT.description',+ abstract: 'formula.functionList.CONVERT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONVERT.functionParameter.number.name',+ detail: 'formula.functionList.CONVERT.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONVERT.functionParameter.fromUnit.name',+ detail: 'formula.functionList.CONVERT.functionParameter.fromUnit.detail',+ example: '"lbm"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONVERT.functionParameter.toUnit.name',+ detail: 'formula.functionList.CONVERT.functionParameter.toUnit.detail',+ example: '"kg"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.DEC2BIN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.DEC2BIN.description',+ abstract: 'formula.functionList.DEC2BIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DEC2BIN.functionParameter.number.name',+ detail: 'formula.functionList.DEC2BIN.functionParameter.number.detail',+ example: '9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DEC2BIN.functionParameter.places.name',+ detail: 'formula.functionList.DEC2BIN.functionParameter.places.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.DEC2HEX,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.DEC2HEX.description',+ abstract: 'formula.functionList.DEC2HEX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DEC2HEX.functionParameter.number.name',+ detail: 'formula.functionList.DEC2HEX.functionParameter.number.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DEC2HEX.functionParameter.places.name',+ detail: 'formula.functionList.DEC2HEX.functionParameter.places.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.DEC2OCT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.DEC2OCT.description',+ abstract: 'formula.functionList.DEC2OCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DEC2OCT.functionParameter.number.name',+ detail: 'formula.functionList.DEC2OCT.functionParameter.number.detail',+ example: '58',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DEC2OCT.functionParameter.places.name',+ detail: 'formula.functionList.DEC2OCT.functionParameter.places.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.DELTA,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.DELTA.description',+ abstract: 'formula.functionList.DELTA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DELTA.functionParameter.number1.name',+ detail: 'formula.functionList.DELTA.functionParameter.number1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DELTA.functionParameter.number2.name',+ detail: 'formula.functionList.DELTA.functionParameter.number2.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.ERF,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.ERF.description',+ abstract: 'formula.functionList.ERF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ERF.functionParameter.lowerLimit.name',+ detail: 'formula.functionList.ERF.functionParameter.lowerLimit.detail',+ example: '0.745',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ERF.functionParameter.upperLimit.name',+ detail: 'formula.functionList.ERF.functionParameter.upperLimit.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.ERF_PRECISE,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.ERF_PRECISE.description',+ abstract: 'formula.functionList.ERF_PRECISE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ERF_PRECISE.functionParameter.x.name',+ detail: 'formula.functionList.ERF_PRECISE.functionParameter.x.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.ERFC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.ERFC.description',+ abstract: 'formula.functionList.ERFC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ERFC.functionParameter.x.name',+ detail: 'formula.functionList.ERFC.functionParameter.x.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.ERFC_PRECISE,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.ERFC_PRECISE.description',+ abstract: 'formula.functionList.ERFC_PRECISE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ERFC_PRECISE.functionParameter.x.name',+ detail: 'formula.functionList.ERFC_PRECISE.functionParameter.x.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.GESTEP,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.GESTEP.description',+ abstract: 'formula.functionList.GESTEP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GESTEP.functionParameter.number.name',+ detail: 'formula.functionList.GESTEP.functionParameter.number.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GESTEP.functionParameter.step.name',+ detail: 'formula.functionList.GESTEP.functionParameter.step.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.HEX2BIN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.HEX2BIN.description',+ abstract: 'formula.functionList.HEX2BIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HEX2BIN.functionParameter.number.name',+ detail: 'formula.functionList.HEX2BIN.functionParameter.number.detail',+ example: '"F"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HEX2BIN.functionParameter.places.name',+ detail: 'formula.functionList.HEX2BIN.functionParameter.places.detail',+ example: '8',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.HEX2DEC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.HEX2DEC.description',+ abstract: 'formula.functionList.HEX2DEC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HEX2DEC.functionParameter.number.name',+ detail: 'formula.functionList.HEX2DEC.functionParameter.number.detail',+ example: '"A5"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.HEX2OCT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.HEX2OCT.description',+ abstract: 'formula.functionList.HEX2OCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HEX2OCT.functionParameter.number.name',+ detail: 'formula.functionList.HEX2OCT.functionParameter.number.detail',+ example: '"F"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HEX2OCT.functionParameter.places.name',+ detail: 'formula.functionList.HEX2OCT.functionParameter.places.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMABS,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMABS.description',+ abstract: 'formula.functionList.IMABS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMABS.functionParameter.inumber.name',+ detail: 'formula.functionList.IMABS.functionParameter.inumber.detail',+ example: '"5+12i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMAGINARY,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMAGINARY.description',+ abstract: 'formula.functionList.IMAGINARY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMAGINARY.functionParameter.inumber.name',+ detail: 'formula.functionList.IMAGINARY.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMARGUMENT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMARGUMENT.description',+ abstract: 'formula.functionList.IMARGUMENT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMARGUMENT.functionParameter.inumber.name',+ detail: 'formula.functionList.IMARGUMENT.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCONJUGATE,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCONJUGATE.description',+ abstract: 'formula.functionList.IMCONJUGATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCONJUGATE.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCONJUGATE.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCOS,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCOS.description',+ abstract: 'formula.functionList.IMCOS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCOS.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCOS.functionParameter.inumber.detail',+ example: '"1+i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCOSH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCOSH.description',+ abstract: 'formula.functionList.IMCOSH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCOSH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCOSH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCOT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCOT.description',+ abstract: 'formula.functionList.IMCOT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCOT.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCOT.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCOTH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCOTH.description',+ abstract: 'formula.functionList.IMCOTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCOTH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCOTH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCSC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCSC.description',+ abstract: 'formula.functionList.IMCSC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCSC.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCSC.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMCSCH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMCSCH.description',+ abstract: 'formula.functionList.IMCSCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMCSCH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMCSCH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMDIV,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMDIV.description',+ abstract: 'formula.functionList.IMDIV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMDIV.functionParameter.inumber1.name',+ detail: 'formula.functionList.IMDIV.functionParameter.inumber1.detail',+ example: '"-238+240i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMDIV.functionParameter.inumber2.name',+ detail: 'formula.functionList.IMDIV.functionParameter.inumber2.detail',+ example: '"10+24i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMEXP,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMEXP.description',+ abstract: 'formula.functionList.IMEXP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMEXP.functionParameter.inumber.name',+ detail: 'formula.functionList.IMEXP.functionParameter.inumber.detail',+ example: '"1+i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMLN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMLN.description',+ abstract: 'formula.functionList.IMLN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMLN.functionParameter.inumber.name',+ detail: 'formula.functionList.IMLN.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMLOG,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMLOG.description',+ abstract: 'formula.functionList.IMLOG.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMLOG.functionParameter.inumber.name',+ detail: 'formula.functionList.IMLOG.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMLOG.functionParameter.base.name',+ detail: 'formula.functionList.IMLOG.functionParameter.base.detail',+ example: '10',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMLOG10,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMLOG10.description',+ abstract: 'formula.functionList.IMLOG10.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMLOG10.functionParameter.inumber.name',+ detail: 'formula.functionList.IMLOG10.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMLOG2,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMLOG2.description',+ abstract: 'formula.functionList.IMLOG2.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMLOG2.functionParameter.inumber.name',+ detail: 'formula.functionList.IMLOG2.functionParameter.inumber.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMPOWER,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMPOWER.description',+ abstract: 'formula.functionList.IMPOWER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMPOWER.functionParameter.inumber.name',+ detail: 'formula.functionList.IMPOWER.functionParameter.inumber.detail',+ example: '"2+3i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMPOWER.functionParameter.number.name',+ detail: 'formula.functionList.IMPOWER.functionParameter.number.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMPRODUCT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMPRODUCT.description',+ abstract: 'formula.functionList.IMPRODUCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMPRODUCT.functionParameter.inumber1.name',+ detail: 'formula.functionList.IMPRODUCT.functionParameter.inumber1.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMPRODUCT.functionParameter.inumber2.name',+ detail: 'formula.functionList.IMPRODUCT.functionParameter.inumber2.detail',+ example: '"5-3i"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMREAL,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMREAL.description',+ abstract: 'formula.functionList.IMREAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMREAL.functionParameter.inumber.name',+ detail: 'formula.functionList.IMREAL.functionParameter.inumber.detail',+ example: '"6-9i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSEC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSEC.description',+ abstract: 'formula.functionList.IMSEC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSEC.functionParameter.inumber.name',+ detail: 'formula.functionList.IMSEC.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSECH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSECH.description',+ abstract: 'formula.functionList.IMSECH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSECH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMSECH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSIN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSIN.description',+ abstract: 'formula.functionList.IMSIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSIN.functionParameter.inumber.name',+ detail: 'formula.functionList.IMSIN.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSINH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSINH.description',+ abstract: 'formula.functionList.IMSINH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSINH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMSINH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSQRT,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSQRT.description',+ abstract: 'formula.functionList.IMSQRT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSQRT.functionParameter.inumber.name',+ detail: 'formula.functionList.IMSQRT.functionParameter.inumber.detail',+ example: '"1+i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSUB,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSUB.description',+ abstract: 'formula.functionList.IMSUB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSUB.functionParameter.inumber1.name',+ detail: 'formula.functionList.IMSUB.functionParameter.inumber1.detail',+ example: '"13+4i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMSUB.functionParameter.inumber2.name',+ detail: 'formula.functionList.IMSUB.functionParameter.inumber2.detail',+ example: '"5+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMSUM,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMSUM.description',+ abstract: 'formula.functionList.IMSUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMSUM.functionParameter.inumber1.name',+ detail: 'formula.functionList.IMSUM.functionParameter.inumber1.detail',+ example: '"3+4i"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMSUM.functionParameter.inumber2.name',+ detail: 'formula.functionList.IMSUM.functionParameter.inumber2.detail',+ example: '"5-3i"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMTAN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMTAN.description',+ abstract: 'formula.functionList.IMTAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMTAN.functionParameter.inumber.name',+ detail: 'formula.functionList.IMTAN.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.IMTANH,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.IMTANH.description',+ abstract: 'formula.functionList.IMTANH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMTANH.functionParameter.inumber.name',+ detail: 'formula.functionList.IMTANH.functionParameter.inumber.detail',+ example: '"4+3i"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.OCT2BIN,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.OCT2BIN.description',+ abstract: 'formula.functionList.OCT2BIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.OCT2BIN.functionParameter.number.name',+ detail: 'formula.functionList.OCT2BIN.functionParameter.number.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OCT2BIN.functionParameter.places.name',+ detail: 'formula.functionList.OCT2BIN.functionParameter.places.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.OCT2DEC,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.OCT2DEC.description',+ abstract: 'formula.functionList.OCT2DEC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.OCT2DEC.functionParameter.number.name',+ detail: 'formula.functionList.OCT2DEC.functionParameter.number.detail',+ example: '54',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_ENGINEERING.OCT2HEX,+ functionType: FunctionType.Engineering,+ description: 'formula.functionList.OCT2HEX.description',+ abstract: 'formula.functionList.OCT2HEX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.OCT2HEX.functionParameter.number.name',+ detail: 'formula.functionList.OCT2HEX.functionParameter.number.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OCT2HEX.functionParameter.places.name',+ detail: 'formula.functionList.OCT2HEX.functionParameter.places.detail',+ example: '4',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/financial.ts b/packages/formula/src/services/function-list/financial.tsnew file mode 100644index 0000000000..4643b8e2ff--- /dev/null+++ b/packages/formula/src/services/function-list/financial.ts@@ -0,0 +1,2316 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_FINANCIAL, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_FINANCIAL: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ACCRINT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ACCRINT.description',+ abstract: 'formula.functionList.ACCRINT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACCRINT.functionParameter.issue.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.issue.detail',+ example: '"2008-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.firstInterest.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.firstInterest.detail',+ example: '"2008-8-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.settlement.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.settlement.detail',+ example: '"2008-5-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.rate.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.rate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.par.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.par.detail',+ example: '1000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.frequency.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.basis.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.basis.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINT.functionParameter.calcMethod.name',+ detail: 'formula.functionList.ACCRINT.functionParameter.calcMethod.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ACCRINTM,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ACCRINTM.description',+ abstract: 'formula.functionList.ACCRINTM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACCRINTM.functionParameter.issue.name',+ detail: 'formula.functionList.ACCRINTM.functionParameter.issue.detail',+ example: '"2008-4-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINTM.functionParameter.settlement.name',+ detail: 'formula.functionList.ACCRINTM.functionParameter.settlement.detail',+ example: '"2008-6-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINTM.functionParameter.rate.name',+ detail: 'formula.functionList.ACCRINTM.functionParameter.rate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINTM.functionParameter.par.name',+ detail: 'formula.functionList.ACCRINTM.functionParameter.par.detail',+ example: '1000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ACCRINTM.functionParameter.basis.name',+ detail: 'formula.functionList.ACCRINTM.functionParameter.basis.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.AMORDEGRC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.AMORDEGRC.description',+ abstract: 'formula.functionList.AMORDEGRC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.cost.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.cost.detail',+ example: '2400',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.datePurchased.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.datePurchased.detail',+ example: '"2008-8-19"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.firstPeriod.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.firstPeriod.detail',+ example: '"2008-12-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.salvage.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.salvage.detail',+ example: '300',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.period.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.period.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.rate.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.rate.detail',+ example: '15%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORDEGRC.functionParameter.basis.name',+ detail: 'formula.functionList.AMORDEGRC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.AMORLINC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.AMORLINC.description',+ abstract: 'formula.functionList.AMORLINC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AMORLINC.functionParameter.cost.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.cost.detail',+ example: '2400',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.datePurchased.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.datePurchased.detail',+ example: '"2008-8-19"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.firstPeriod.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.firstPeriod.detail',+ example: '"2008-12-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.salvage.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.salvage.detail',+ example: '300',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.period.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.period.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.rate.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.rate.detail',+ example: '15%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AMORLINC.functionParameter.basis.name',+ detail: 'formula.functionList.AMORLINC.functionParameter.basis.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYBS,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPDAYBS.description',+ abstract: 'formula.functionList.COUPDAYBS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPDAYBS.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPDAYBS.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYBS.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPDAYBS.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYBS.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPDAYBS.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYBS.functionParameter.basis.name',+ detail: 'formula.functionList.COUPDAYBS.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYS,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPDAYS.description',+ abstract: 'formula.functionList.COUPDAYS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPDAYS.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPDAYS.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYS.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPDAYS.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYS.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPDAYS.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYS.functionParameter.basis.name',+ detail: 'formula.functionList.COUPDAYS.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYSNC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPDAYSNC.description',+ abstract: 'formula.functionList.COUPDAYSNC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPDAYSNC.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPDAYSNC.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYSNC.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPDAYSNC.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYSNC.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPDAYSNC.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPDAYSNC.functionParameter.basis.name',+ detail: 'formula.functionList.COUPDAYSNC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPNCD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPNCD.description',+ abstract: 'formula.functionList.COUPNCD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPNCD.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPNCD.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNCD.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPNCD.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNCD.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPNCD.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNCD.functionParameter.basis.name',+ detail: 'formula.functionList.COUPNCD.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPNUM,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPNUM.description',+ abstract: 'formula.functionList.COUPNUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPNUM.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPNUM.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNUM.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPNUM.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNUM.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPNUM.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPNUM.functionParameter.basis.name',+ detail: 'formula.functionList.COUPNUM.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.COUPPCD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.COUPPCD.description',+ abstract: 'formula.functionList.COUPPCD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUPPCD.functionParameter.settlement.name',+ detail: 'formula.functionList.COUPPCD.functionParameter.settlement.detail',+ example: '"2011-1-25"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPPCD.functionParameter.maturity.name',+ detail: 'formula.functionList.COUPPCD.functionParameter.maturity.detail',+ example: '"2011-11-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPPCD.functionParameter.frequency.name',+ detail: 'formula.functionList.COUPPCD.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUPPCD.functionParameter.basis.name',+ detail: 'formula.functionList.COUPPCD.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.CUMIPMT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.CUMIPMT.description',+ abstract: 'formula.functionList.CUMIPMT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.rate.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.rate.detail',+ example: '9%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.nper.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.nper.detail',+ example: '30*12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.pv.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.pv.detail',+ example: '125000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.startPeriod.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.startPeriod.detail',+ example: '13',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.endPeriod.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.endPeriod.detail',+ example: '24',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMIPMT.functionParameter.type.name',+ detail: 'formula.functionList.CUMIPMT.functionParameter.type.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.CUMPRINC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.CUMPRINC.description',+ abstract: 'formula.functionList.CUMPRINC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.rate.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.rate.detail',+ example: '9%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.nper.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.nper.detail',+ example: '30*12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.pv.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.pv.detail',+ example: '125000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.startPeriod.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.startPeriod.detail',+ example: '13',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.endPeriod.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.endPeriod.detail',+ example: '24',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CUMPRINC.functionParameter.type.name',+ detail: 'formula.functionList.CUMPRINC.functionParameter.type.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DB,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DB.description',+ abstract: 'formula.functionList.DB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DB.functionParameter.cost.name',+ detail: 'formula.functionList.DB.functionParameter.cost.detail',+ example: '10000000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DB.functionParameter.salvage.name',+ detail: 'formula.functionList.DB.functionParameter.salvage.detail',+ example: '1000000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DB.functionParameter.life.name',+ detail: 'formula.functionList.DB.functionParameter.life.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DB.functionParameter.period.name',+ detail: 'formula.functionList.DB.functionParameter.period.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DB.functionParameter.month.name',+ detail: 'formula.functionList.DB.functionParameter.month.detail',+ example: '7',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DDB,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DDB.description',+ abstract: 'formula.functionList.DDB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DDB.functionParameter.cost.name',+ detail: 'formula.functionList.DDB.functionParameter.cost.detail',+ example: '24000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DDB.functionParameter.salvage.name',+ detail: 'formula.functionList.DDB.functionParameter.salvage.detail',+ example: '3000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DDB.functionParameter.life.name',+ detail: 'formula.functionList.DDB.functionParameter.life.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DDB.functionParameter.period.name',+ detail: 'formula.functionList.DDB.functionParameter.period.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DDB.functionParameter.factor.name',+ detail: 'formula.functionList.DDB.functionParameter.factor.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DISC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DISC.description',+ abstract: 'formula.functionList.DISC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DISC.functionParameter.settlement.name',+ detail: 'formula.functionList.DISC.functionParameter.settlement.detail',+ example: '"2018-7-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DISC.functionParameter.maturity.name',+ detail: 'formula.functionList.DISC.functionParameter.maturity.detail',+ example: '"2048-1-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DISC.functionParameter.pr.name',+ detail: 'formula.functionList.DISC.functionParameter.pr.detail',+ example: '97.975',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DISC.functionParameter.redemption.name',+ detail: 'formula.functionList.DISC.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DISC.functionParameter.basis.name',+ detail: 'formula.functionList.DISC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DOLLARDE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DOLLARDE.description',+ abstract: 'formula.functionList.DOLLARDE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DOLLARDE.functionParameter.fractionalDollar.name',+ detail: 'formula.functionList.DOLLARDE.functionParameter.fractionalDollar.detail',+ example: '1.02',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DOLLARDE.functionParameter.fraction.name',+ detail: 'formula.functionList.DOLLARDE.functionParameter.fraction.detail',+ example: '16',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DOLLARFR,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DOLLARFR.description',+ abstract: 'formula.functionList.DOLLARFR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DOLLARFR.functionParameter.decimalDollar.name',+ detail: 'formula.functionList.DOLLARFR.functionParameter.decimalDollar.detail',+ example: '1.125',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DOLLARFR.functionParameter.fraction.name',+ detail: 'formula.functionList.DOLLARFR.functionParameter.fraction.detail',+ example: '16',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.DURATION,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.DURATION.description',+ abstract: 'formula.functionList.DURATION.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DURATION.functionParameter.settlement.name',+ detail: 'formula.functionList.DURATION.functionParameter.settlement.detail',+ example: '"2018-7-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DURATION.functionParameter.maturity.name',+ detail: 'formula.functionList.DURATION.functionParameter.maturity.detail',+ example: '"2048-1-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DURATION.functionParameter.coupon.name',+ detail: 'formula.functionList.DURATION.functionParameter.coupon.detail',+ example: '8%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DURATION.functionParameter.yld.name',+ detail: 'formula.functionList.DURATION.functionParameter.yld.detail',+ example: '9%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DURATION.functionParameter.frequency.name',+ detail: 'formula.functionList.DURATION.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DURATION.functionParameter.basis.name',+ detail: 'formula.functionList.DURATION.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.EFFECT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.EFFECT.description',+ abstract: 'formula.functionList.EFFECT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EFFECT.functionParameter.nominalRate.name',+ detail: 'formula.functionList.EFFECT.functionParameter.nominalRate.detail',+ example: '5.25%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EFFECT.functionParameter.npery.name',+ detail: 'formula.functionList.EFFECT.functionParameter.npery.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.FV,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.FV.description',+ abstract: 'formula.functionList.FV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FV.functionParameter.rate.name',+ detail: 'formula.functionList.FV.functionParameter.rate.detail',+ example: '6%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FV.functionParameter.nper.name',+ detail: 'formula.functionList.FV.functionParameter.nper.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FV.functionParameter.pmt.name',+ detail: 'formula.functionList.FV.functionParameter.pmt.detail',+ example: '-200',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FV.functionParameter.pv.name',+ detail: 'formula.functionList.FV.functionParameter.pv.detail',+ example: '-500',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FV.functionParameter.type.name',+ detail: 'formula.functionList.FV.functionParameter.type.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.FVSCHEDULE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.FVSCHEDULE.description',+ abstract: 'formula.functionList.FVSCHEDULE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FVSCHEDULE.functionParameter.principal.name',+ detail: 'formula.functionList.FVSCHEDULE.functionParameter.principal.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FVSCHEDULE.functionParameter.schedule.name',+ detail: 'formula.functionList.FVSCHEDULE.functionParameter.schedule.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.INTRATE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.INTRATE.description',+ abstract: 'formula.functionList.INTRATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INTRATE.functionParameter.settlement.name',+ detail: 'formula.functionList.INTRATE.functionParameter.settlement.detail',+ example: '"2008-2-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INTRATE.functionParameter.maturity.name',+ detail: 'formula.functionList.INTRATE.functionParameter.maturity.detail',+ example: '"2008-5-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INTRATE.functionParameter.investment.name',+ detail: 'formula.functionList.INTRATE.functionParameter.investment.detail',+ example: '10000000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INTRATE.functionParameter.redemption.name',+ detail: 'formula.functionList.INTRATE.functionParameter.redemption.detail',+ example: '10144200',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INTRATE.functionParameter.basis.name',+ detail: 'formula.functionList.INTRATE.functionParameter.basis.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.IPMT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.IPMT.description',+ abstract: 'formula.functionList.IPMT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IPMT.functionParameter.rate.name',+ detail: 'formula.functionList.IPMT.functionParameter.rate.detail',+ example: '10%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IPMT.functionParameter.per.name',+ detail: 'formula.functionList.IPMT.functionParameter.per.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IPMT.functionParameter.nper.name',+ detail: 'formula.functionList.IPMT.functionParameter.nper.detail',+ example: '3*12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IPMT.functionParameter.pv.name',+ detail: 'formula.functionList.IPMT.functionParameter.pv.detail',+ example: '80000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IPMT.functionParameter.fv.name',+ detail: 'formula.functionList.IPMT.functionParameter.fv.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IPMT.functionParameter.type.name',+ detail: 'formula.functionList.IPMT.functionParameter.type.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.IRR,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.IRR.description',+ abstract: 'formula.functionList.IRR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IRR.functionParameter.values.name',+ detail: 'formula.functionList.IRR.functionParameter.values.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IRR.functionParameter.guess.name',+ detail: 'formula.functionList.IRR.functionParameter.guess.detail',+ example: '0.1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ISPMT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ISPMT.description',+ abstract: 'formula.functionList.ISPMT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISPMT.functionParameter.rate.name',+ detail: 'formula.functionList.ISPMT.functionParameter.rate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISPMT.functionParameter.per.name',+ detail: 'formula.functionList.ISPMT.functionParameter.per.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISPMT.functionParameter.nper.name',+ detail: 'formula.functionList.ISPMT.functionParameter.nper.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISPMT.functionParameter.pv.name',+ detail: 'formula.functionList.ISPMT.functionParameter.pv.detail',+ example: '1000',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.MDURATION,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.MDURATION.description',+ abstract: 'formula.functionList.MDURATION.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MDURATION.functionParameter.settlement.name',+ detail: 'formula.functionList.MDURATION.functionParameter.settlement.detail',+ example: '"2018-7-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MDURATION.functionParameter.maturity.name',+ detail: 'formula.functionList.MDURATION.functionParameter.maturity.detail',+ example: '"2048-1-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MDURATION.functionParameter.coupon.name',+ detail: 'formula.functionList.MDURATION.functionParameter.coupon.detail',+ example: '8%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MDURATION.functionParameter.yld.name',+ detail: 'formula.functionList.MDURATION.functionParameter.yld.detail',+ example: '9%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MDURATION.functionParameter.frequency.name',+ detail: 'formula.functionList.MDURATION.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MDURATION.functionParameter.basis.name',+ detail: 'formula.functionList.MDURATION.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.MIRR,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.MIRR.description',+ abstract: 'formula.functionList.MIRR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MIRR.functionParameter.values.name',+ detail: 'formula.functionList.MIRR.functionParameter.values.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MIRR.functionParameter.financeRate.name',+ detail: 'formula.functionList.MIRR.functionParameter.financeRate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MIRR.functionParameter.reinvestRate.name',+ detail: 'formula.functionList.MIRR.functionParameter.reinvestRate.detail',+ example: '12%',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.NOMINAL,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.NOMINAL.description',+ abstract: 'formula.functionList.NOMINAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NOMINAL.functionParameter.effectRate.name',+ detail: 'formula.functionList.NOMINAL.functionParameter.effectRate.detail',+ example: '5.3543%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NOMINAL.functionParameter.npery.name',+ detail: 'formula.functionList.NOMINAL.functionParameter.npery.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.NPER,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.NPER.description',+ abstract: 'formula.functionList.NPER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NPER.functionParameter.rate.name',+ detail: 'formula.functionList.NPER.functionParameter.rate.detail',+ example: '12%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPER.functionParameter.pmt.name',+ detail: 'formula.functionList.NPER.functionParameter.pmt.detail',+ example: '-100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPER.functionParameter.pv.name',+ detail: 'formula.functionList.NPER.functionParameter.pv.detail',+ example: '-1000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPER.functionParameter.fv.name',+ detail: 'formula.functionList.NPER.functionParameter.fv.detail',+ example: '10000',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPER.functionParameter.type.name',+ detail: 'formula.functionList.NPER.functionParameter.type.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.NPV,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.NPV.description',+ abstract: 'formula.functionList.NPV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NPV.functionParameter.rate.name',+ detail: 'formula.functionList.NPV.functionParameter.rate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPV.functionParameter.value1.name',+ detail: 'formula.functionList.NPV.functionParameter.value1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NPV.functionParameter.value2.name',+ detail: 'formula.functionList.NPV.functionParameter.value2.detail',+ example: '-9000',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ODDFPRICE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ODDFPRICE.description',+ abstract: 'formula.functionList.ODDFPRICE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.settlement.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.maturity.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.issue.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.issue.detail',+ example: '"2008-10-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.firstCoupon.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.firstCoupon.detail',+ example: '"2009-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.rate.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.rate.detail',+ example: '7.85%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.yld.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.yld.detail',+ example: '6.25%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.redemption.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.frequency.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFPRICE.functionParameter.basis.name',+ detail: 'formula.functionList.ODDFPRICE.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ODDFYIELD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ODDFYIELD.description',+ abstract: 'formula.functionList.ODDFYIELD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.settlement.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.maturity.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.issue.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.issue.detail',+ example: '"2008-10-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.firstCoupon.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.firstCoupon.detail',+ example: '"2009-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.rate.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.rate.detail',+ example: '5.75%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.pr.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.pr.detail',+ example: '84.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.redemption.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.frequency.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDFYIELD.functionParameter.basis.name',+ detail: 'formula.functionList.ODDFYIELD.functionParameter.basis.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ODDLPRICE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ODDLPRICE.description',+ abstract: 'formula.functionList.ODDLPRICE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.settlement.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.settlement.detail',+ example: '"2008-2-7"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.maturity.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.maturity.detail',+ example: '"2008-6-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.lastInterest.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.lastInterest.detail',+ example: '"2007-10-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.rate.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.rate.detail',+ example: '3.75%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.yld.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.yld.detail',+ example: '4.05%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.redemption.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.frequency.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLPRICE.functionParameter.basis.name',+ detail: 'formula.functionList.ODDLPRICE.functionParameter.basis.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.ODDLYIELD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.ODDLYIELD.description',+ abstract: 'formula.functionList.ODDLYIELD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.settlement.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.settlement.detail',+ example: '"2008-4-20"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.maturity.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.maturity.detail',+ example: '"2008-6-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.lastInterest.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.lastInterest.detail',+ example: '"2007-12-24"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.rate.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.rate.detail',+ example: '3.75%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.pr.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.pr.detail',+ example: '99.875',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.redemption.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.frequency.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ODDLYIELD.functionParameter.basis.name',+ detail: 'formula.functionList.ODDLYIELD.functionParameter.basis.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PDURATION,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PDURATION.description',+ abstract: 'formula.functionList.PDURATION.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PDURATION.functionParameter.rate.name',+ detail: 'formula.functionList.PDURATION.functionParameter.rate.detail',+ example: '2.5%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PDURATION.functionParameter.pv.name',+ detail: 'formula.functionList.PDURATION.functionParameter.pv.detail',+ example: '2000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PDURATION.functionParameter.fv.name',+ detail: 'formula.functionList.PDURATION.functionParameter.fv.detail',+ example: '2200',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PMT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PMT.description',+ abstract: 'formula.functionList.PMT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PMT.functionParameter.rate.name',+ detail: 'formula.functionList.PMT.functionParameter.rate.detail',+ example: '8%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PMT.functionParameter.nper.name',+ detail: 'formula.functionList.PMT.functionParameter.nper.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PMT.functionParameter.pv.name',+ detail: 'formula.functionList.PMT.functionParameter.pv.detail',+ example: '10000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PMT.functionParameter.fv.name',+ detail: 'formula.functionList.PMT.functionParameter.fv.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PMT.functionParameter.type.name',+ detail: 'formula.functionList.PMT.functionParameter.type.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PPMT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PPMT.description',+ abstract: 'formula.functionList.PPMT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PPMT.functionParameter.rate.name',+ detail: 'formula.functionList.PPMT.functionParameter.rate.detail',+ example: '10%/12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PPMT.functionParameter.per.name',+ detail: 'formula.functionList.PPMT.functionParameter.per.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PPMT.functionParameter.nper.name',+ detail: 'formula.functionList.PPMT.functionParameter.nper.detail',+ example: '3*12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PPMT.functionParameter.pv.name',+ detail: 'formula.functionList.PPMT.functionParameter.pv.detail',+ example: '80000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PPMT.functionParameter.fv.name',+ detail: 'formula.functionList.PPMT.functionParameter.fv.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PPMT.functionParameter.type.name',+ detail: 'formula.functionList.PPMT.functionParameter.type.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PRICE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PRICE.description',+ abstract: 'formula.functionList.PRICE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PRICE.functionParameter.settlement.name',+ detail: 'formula.functionList.PRICE.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.maturity.name',+ detail: 'formula.functionList.PRICE.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.rate.name',+ detail: 'formula.functionList.PRICE.functionParameter.rate.detail',+ example: '7.85%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.yld.name',+ detail: 'formula.functionList.PRICE.functionParameter.yld.detail',+ example: '6.25%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.redemption.name',+ detail: 'formula.functionList.PRICE.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.frequency.name',+ detail: 'formula.functionList.PRICE.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICE.functionParameter.basis.name',+ detail: 'formula.functionList.PRICE.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PRICEDISC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PRICEDISC.description',+ abstract: 'formula.functionList.PRICEDISC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PRICEDISC.functionParameter.settlement.name',+ detail: 'formula.functionList.PRICEDISC.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEDISC.functionParameter.maturity.name',+ detail: 'formula.functionList.PRICEDISC.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEDISC.functionParameter.discount.name',+ detail: 'formula.functionList.PRICEDISC.functionParameter.discount.detail',+ example: '6.25%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEDISC.functionParameter.redemption.name',+ detail: 'formula.functionList.PRICEDISC.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEDISC.functionParameter.basis.name',+ detail: 'formula.functionList.PRICEDISC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PRICEMAT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PRICEMAT.description',+ abstract: 'formula.functionList.PRICEMAT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.settlement.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.maturity.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.issue.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.issue.detail',+ example: '"2008-10-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.rate.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.rate.detail',+ example: '7.85%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.yld.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.yld.detail',+ example: '6.25%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRICEMAT.functionParameter.basis.name',+ detail: 'formula.functionList.PRICEMAT.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.PV,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.PV.description',+ abstract: 'formula.functionList.PV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PV.functionParameter.rate.name',+ detail: 'formula.functionList.PV.functionParameter.rate.detail',+ example: '2%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PV.functionParameter.nper.name',+ detail: 'formula.functionList.PV.functionParameter.nper.detail',+ example: '12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PV.functionParameter.pmt.name',+ detail: 'formula.functionList.PV.functionParameter.pmt.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PV.functionParameter.fv.name',+ detail: 'formula.functionList.PV.functionParameter.fv.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PV.functionParameter.type.name',+ detail: 'formula.functionList.PV.functionParameter.type.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.RATE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.RATE.description',+ abstract: 'formula.functionList.RATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RATE.functionParameter.nper.name',+ detail: 'formula.functionList.RATE.functionParameter.nper.detail',+ example: '4*12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RATE.functionParameter.pmt.name',+ detail: 'formula.functionList.RATE.functionParameter.pmt.detail',+ example: '-200',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RATE.functionParameter.pv.name',+ detail: 'formula.functionList.RATE.functionParameter.pv.detail',+ example: '8000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RATE.functionParameter.fv.name',+ detail: 'formula.functionList.RATE.functionParameter.fv.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RATE.functionParameter.type.name',+ detail: 'formula.functionList.RATE.functionParameter.type.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RATE.functionParameter.guess.name',+ detail: 'formula.functionList.RATE.functionParameter.guess.detail',+ example: '0.1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.RECEIVED,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.RECEIVED.description',+ abstract: 'formula.functionList.RECEIVED.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RECEIVED.functionParameter.settlement.name',+ detail: 'formula.functionList.RECEIVED.functionParameter.settlement.detail',+ example: '"2008-2-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RECEIVED.functionParameter.maturity.name',+ detail: 'formula.functionList.RECEIVED.functionParameter.maturity.detail',+ example: '"2008-3-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RECEIVED.functionParameter.investment.name',+ detail: 'formula.functionList.RECEIVED.functionParameter.investment.detail',+ example: '10000000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RECEIVED.functionParameter.discount.name',+ detail: 'formula.functionList.RECEIVED.functionParameter.discount.detail',+ example: '5.75%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RECEIVED.functionParameter.basis.name',+ detail: 'formula.functionList.RECEIVED.functionParameter.basis.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.RRI,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.RRI.description',+ abstract: 'formula.functionList.RRI.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RRI.functionParameter.nper.name',+ detail: 'formula.functionList.RRI.functionParameter.nper.detail',+ example: '96',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RRI.functionParameter.pv.name',+ detail: 'formula.functionList.RRI.functionParameter.pv.detail',+ example: '10000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RRI.functionParameter.fv.name',+ detail: 'formula.functionList.RRI.functionParameter.fv.detail',+ example: '11000',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.SLN,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.SLN.description',+ abstract: 'formula.functionList.SLN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SLN.functionParameter.cost.name',+ detail: 'formula.functionList.SLN.functionParameter.cost.detail',+ example: '300000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SLN.functionParameter.salvage.name',+ detail: 'formula.functionList.SLN.functionParameter.salvage.detail',+ example: '75000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SLN.functionParameter.life.name',+ detail: 'formula.functionList.SLN.functionParameter.life.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.SYD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.SYD.description',+ abstract: 'formula.functionList.SYD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SYD.functionParameter.cost.name',+ detail: 'formula.functionList.SYD.functionParameter.cost.detail',+ example: '300000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SYD.functionParameter.salvage.name',+ detail: 'formula.functionList.SYD.functionParameter.salvage.detail',+ example: '75000',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SYD.functionParameter.life.name',+ detail: 'formula.functionList.SYD.functionParameter.life.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SYD.functionParameter.per.name',+ detail: 'formula.functionList.SYD.functionParameter.per.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.TBILLEQ,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.TBILLEQ.description',+ abstract: 'formula.functionList.TBILLEQ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TBILLEQ.functionParameter.settlement.name',+ detail: 'formula.functionList.TBILLEQ.functionParameter.settlement.detail',+ example: '"2008-3-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLEQ.functionParameter.maturity.name',+ detail: 'formula.functionList.TBILLEQ.functionParameter.maturity.detail',+ example: '"2008-6-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLEQ.functionParameter.discount.name',+ detail: 'formula.functionList.TBILLEQ.functionParameter.discount.detail',+ example: '9.14%',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.TBILLPRICE,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.TBILLPRICE.description',+ abstract: 'formula.functionList.TBILLPRICE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TBILLPRICE.functionParameter.settlement.name',+ detail: 'formula.functionList.TBILLPRICE.functionParameter.settlement.detail',+ example: '"2008-3-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLPRICE.functionParameter.maturity.name',+ detail: 'formula.functionList.TBILLPRICE.functionParameter.maturity.detail',+ example: '"2008-6-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLPRICE.functionParameter.discount.name',+ detail: 'formula.functionList.TBILLPRICE.functionParameter.discount.detail',+ example: '9.14%',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.TBILLYIELD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.TBILLYIELD.description',+ abstract: 'formula.functionList.TBILLYIELD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TBILLYIELD.functionParameter.settlement.name',+ detail: 'formula.functionList.TBILLYIELD.functionParameter.settlement.detail',+ example: '"2008-3-31"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLYIELD.functionParameter.maturity.name',+ detail: 'formula.functionList.TBILLYIELD.functionParameter.maturity.detail',+ example: '"2008-6-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TBILLYIELD.functionParameter.pr.name',+ detail: 'formula.functionList.TBILLYIELD.functionParameter.pr.detail',+ example: '98.45',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.VDB,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.VDB.description',+ abstract: 'formula.functionList.VDB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VDB.functionParameter.cost.name',+ detail: 'formula.functionList.VDB.functionParameter.cost.detail',+ example: '2400',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.salvage.name',+ detail: 'formula.functionList.VDB.functionParameter.salvage.detail',+ example: '300',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.life.name',+ detail: 'formula.functionList.VDB.functionParameter.life.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.startPeriod.name',+ detail: 'formula.functionList.VDB.functionParameter.startPeriod.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.endPeriod.name',+ detail: 'formula.functionList.VDB.functionParameter.endPeriod.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.factor.name',+ detail: 'formula.functionList.VDB.functionParameter.factor.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VDB.functionParameter.noSwitch.name',+ detail: 'formula.functionList.VDB.functionParameter.noSwitch.detail',+ example: 'false',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.XIRR,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.XIRR.description',+ abstract: 'formula.functionList.XIRR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.XIRR.functionParameter.values.name',+ detail: 'formula.functionList.XIRR.functionParameter.values.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XIRR.functionParameter.dates.name',+ detail: 'formula.functionList.XIRR.functionParameter.dates.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XIRR.functionParameter.guess.name',+ detail: 'formula.functionList.XIRR.functionParameter.guess.detail',+ example: '0.1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.XNPV,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.XNPV.description',+ abstract: 'formula.functionList.XNPV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.XNPV.functionParameter.rate.name',+ detail: 'formula.functionList.XNPV.functionParameter.rate.detail',+ example: '10%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XNPV.functionParameter.values.name',+ detail: 'formula.functionList.XNPV.functionParameter.values.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XNPV.functionParameter.dates.name',+ detail: 'formula.functionList.XNPV.functionParameter.dates.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.YIELD,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.YIELD.description',+ abstract: 'formula.functionList.YIELD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.YIELD.functionParameter.settlement.name',+ detail: 'formula.functionList.YIELD.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.maturity.name',+ detail: 'formula.functionList.YIELD.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.rate.name',+ detail: 'formula.functionList.YIELD.functionParameter.rate.detail',+ example: '7.85%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.pr.name',+ detail: 'formula.functionList.YIELD.functionParameter.pr.detail',+ example: '98.45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.redemption.name',+ detail: 'formula.functionList.YIELD.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.frequency.name',+ detail: 'formula.functionList.YIELD.functionParameter.frequency.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELD.functionParameter.basis.name',+ detail: 'formula.functionList.YIELD.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.YIELDDISC,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.YIELDDISC.description',+ abstract: 'formula.functionList.YIELDDISC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.YIELDDISC.functionParameter.settlement.name',+ detail: 'formula.functionList.YIELDDISC.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDDISC.functionParameter.maturity.name',+ detail: 'formula.functionList.YIELDDISC.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDDISC.functionParameter.pr.name',+ detail: 'formula.functionList.YIELDDISC.functionParameter.pr.detail',+ example: '98.45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDDISC.functionParameter.redemption.name',+ detail: 'formula.functionList.YIELDDISC.functionParameter.redemption.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDDISC.functionParameter.basis.name',+ detail: 'formula.functionList.YIELDDISC.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_FINANCIAL.YIELDMAT,+ functionType: FunctionType.Financial,+ description: 'formula.functionList.YIELDMAT.description',+ abstract: 'formula.functionList.YIELDMAT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.settlement.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.settlement.detail',+ example: '"2008-11-11"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.maturity.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.maturity.detail',+ example: '"2021-3-1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.issue.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.issue.detail',+ example: '"2008-10-15"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.rate.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.rate.detail',+ example: '7.85%',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.pr.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.pr.detail',+ example: '98.45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.YIELDMAT.functionParameter.basis.name',+ detail: 'formula.functionList.YIELDMAT.functionParameter.basis.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/sheets-formula/src/services/function-list/function-list.ts b/packages/formula/src/services/function-list/function-list.tssimilarity index 100%rename from packages/sheets-formula/src/services/function-list/function-list.tsrename to packages/formula/src/services/function-list/function-list.tsdiff --git a/packages/formula/src/services/function-list/information.ts b/packages/formula/src/services/function-list/information.tsnew file mode 100644index 0000000000..0158df074e--- /dev/null+++ b/packages/formula/src/services/function-list/information.ts@@ -0,0 +1,417 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_INFORMATION, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_INFORMATION: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_INFORMATION.CELL,+ functionType: FunctionType.Information,+ description: 'formula.functionList.CELL.description',+ abstract: 'formula.functionList.CELL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CELL.functionParameter.infoType.name',+ detail: 'formula.functionList.CELL.functionParameter.infoType.detail',+ example: '"type"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CELL.functionParameter.reference.name',+ detail: 'formula.functionList.CELL.functionParameter.reference.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ERROR_TYPE,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ERROR_TYPE.description',+ abstract: 'formula.functionList.ERROR_TYPE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ERROR_TYPE.functionParameter.errorVal.name',+ detail: 'formula.functionList.ERROR_TYPE.functionParameter.errorVal.detail',+ example: '"#NULL!"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.INFO,+ functionType: FunctionType.Information,+ description: 'formula.functionList.INFO.description',+ abstract: 'formula.functionList.INFO.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INFO.functionParameter.typeText.name',+ detail: 'formula.functionList.INFO.functionParameter.typeText.detail',+ example: '"system"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISBETWEEN,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISBETWEEN.description',+ abstract: 'formula.functionList.ISBETWEEN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISBETWEEN.functionParameter.valueToCompare.name',+ detail: 'formula.functionList.ISBETWEEN.functionParameter.valueToCompare.detail',+ example: '7.9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISBETWEEN.functionParameter.lowerValue.name',+ detail: 'formula.functionList.ISBETWEEN.functionParameter.lowerValue.detail',+ example: '1.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISBETWEEN.functionParameter.upperValue.name',+ detail: 'formula.functionList.ISBETWEEN.functionParameter.upperValue.detail',+ example: '12.45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISBETWEEN.functionParameter.lowerValueIsInclusive.name',+ detail: 'formula.functionList.ISBETWEEN.functionParameter.lowerValueIsInclusive.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISBETWEEN.functionParameter.upperValueIsInclusive.name',+ detail: 'formula.functionList.ISBETWEEN.functionParameter.upperValueIsInclusive.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISBLANK,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISBLANK.description',+ abstract: 'formula.functionList.ISBLANK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISBLANK.functionParameter.value.name',+ detail: 'formula.functionList.ISBLANK.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISDATE,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISDATE.description',+ abstract: 'formula.functionList.ISDATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISDATE.functionParameter.value.name',+ detail: 'formula.functionList.ISDATE.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISEMAIL,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISEMAIL.description',+ abstract: 'formula.functionList.ISEMAIL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISEMAIL.functionParameter.value.name',+ detail: 'formula.functionList.ISEMAIL.functionParameter.value.detail',+ example: '"[email protected]"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISERR,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISERR.description',+ abstract: 'formula.functionList.ISERR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISERR.functionParameter.value.name',+ detail: 'formula.functionList.ISERR.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISERROR,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISERROR.description',+ abstract: 'formula.functionList.ISERROR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISERROR.functionParameter.value.name',+ detail: 'formula.functionList.ISERROR.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISEVEN,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISEVEN.description',+ abstract: 'formula.functionList.ISEVEN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISEVEN.functionParameter.value.name',+ detail: 'formula.functionList.ISEVEN.functionParameter.value.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISFORMULA,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISFORMULA.description',+ abstract: 'formula.functionList.ISFORMULA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISFORMULA.functionParameter.reference.name',+ detail: 'formula.functionList.ISFORMULA.functionParameter.reference.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISLOGICAL,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISLOGICAL.description',+ abstract: 'formula.functionList.ISLOGICAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISLOGICAL.functionParameter.value.name',+ detail: 'formula.functionList.ISLOGICAL.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISNA,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISNA.description',+ abstract: 'formula.functionList.ISNA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISNA.functionParameter.value.name',+ detail: 'formula.functionList.ISNA.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISNONTEXT,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISNONTEXT.description',+ abstract: 'formula.functionList.ISNONTEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISNONTEXT.functionParameter.value.name',+ detail: 'formula.functionList.ISNONTEXT.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISNUMBER,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISNUMBER.description',+ abstract: 'formula.functionList.ISNUMBER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISNUMBER.functionParameter.value.name',+ detail: 'formula.functionList.ISNUMBER.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISODD,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISODD.description',+ abstract: 'formula.functionList.ISODD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISODD.functionParameter.value.name',+ detail: 'formula.functionList.ISODD.functionParameter.value.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISOMITTED,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISOMITTED.description',+ abstract: 'formula.functionList.ISOMITTED.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISOMITTED.functionParameter.argument.name',+ detail: 'formula.functionList.ISOMITTED.functionParameter.argument.detail',+ example: 'value',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISREF,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISREF.description',+ abstract: 'formula.functionList.ISREF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISREF.functionParameter.value.name',+ detail: 'formula.functionList.ISREF.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISTEXT,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISTEXT.description',+ abstract: 'formula.functionList.ISTEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISTEXT.functionParameter.value.name',+ detail: 'formula.functionList.ISTEXT.functionParameter.value.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.ISURL,+ functionType: FunctionType.Information,+ description: 'formula.functionList.ISURL.description',+ abstract: 'formula.functionList.ISURL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISURL.functionParameter.value.name',+ detail: 'formula.functionList.ISURL.functionParameter.value.detail',+ example: '"univer.ai"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.N,+ functionType: FunctionType.Information,+ description: 'formula.functionList.N.description',+ abstract: 'formula.functionList.N.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.N.functionParameter.value.name',+ detail: 'formula.functionList.N.functionParameter.value.detail',+ example: '7',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.NA,+ functionType: FunctionType.Information,+ description: 'formula.functionList.NA.description',+ abstract: 'formula.functionList.NA.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.SHEET,+ functionType: FunctionType.Information,+ description: 'formula.functionList.SHEET.description',+ abstract: 'formula.functionList.SHEET.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SHEET.functionParameter.value.name',+ detail: 'formula.functionList.SHEET.functionParameter.value.detail',+ example: 'A1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.SHEETS,+ functionType: FunctionType.Information,+ description: 'formula.functionList.SHEETS.description',+ abstract: 'formula.functionList.SHEETS.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_INFORMATION.TYPE,+ functionType: FunctionType.Information,+ description: 'formula.functionList.TYPE.description',+ abstract: 'formula.functionList.TYPE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TYPE.functionParameter.value.name',+ detail: 'formula.functionList.TYPE.functionParameter.value.detail',+ example: 'A2',+ require: 1,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/logical.ts b/packages/formula/src/services/function-list/logical.tsnew file mode 100644index 0000000000..0fc85eeb4a--- /dev/null+++ b/packages/formula/src/services/function-list/logical.ts@@ -0,0 +1,496 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_LOGICAL, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_LOGICAL: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_LOGICAL.AND,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.AND.description',+ abstract: 'formula.functionList.AND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AND.functionParameter.logical1.name',+ detail: 'formula.functionList.AND.functionParameter.logical1.detail',+ example: 'A1=1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AND.functionParameter.logical2.name',+ detail: 'formula.functionList.AND.functionParameter.logical2.detail',+ example: 'A2=2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.BYCOL,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.BYCOL.description',+ abstract: 'formula.functionList.BYCOL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BYCOL.functionParameter.array.name',+ detail: 'formula.functionList.BYCOL.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BYCOL.functionParameter.lambda.name',+ detail: 'formula.functionList.BYCOL.functionParameter.lambda.detail',+ example: 'LAMBDA(array, MAX(array))',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.BYROW,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.BYROW.description',+ abstract: 'formula.functionList.BYROW.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BYROW.functionParameter.array.name',+ detail: 'formula.functionList.BYROW.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BYROW.functionParameter.lambda.name',+ detail: 'formula.functionList.BYROW.functionParameter.lambda.detail',+ example: 'LAMBDA(array, MAX(array))',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.FALSE,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.FALSE.description',+ abstract: 'formula.functionList.FALSE.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.IF,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.IF.description',+ abstract: 'formula.functionList.IF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IF.functionParameter.logicalTest.name',+ detail: 'formula.functionList.IF.functionParameter.logicalTest.detail',+ example: 'A2 = "foo"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IF.functionParameter.valueIfTrue.name',+ detail: 'formula.functionList.IF.functionParameter.valueIfTrue.detail',+ example: '"A2 is foo"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IF.functionParameter.valueIfFalse.name',+ detail: 'formula.functionList.IF.functionParameter.valueIfFalse.detail',+ example: '"A2 is not foo"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.IFERROR,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.IFERROR.description',+ abstract: 'formula.functionList.IFERROR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IFERROR.functionParameter.value.name',+ detail: 'formula.functionList.IFERROR.functionParameter.value.detail',+ example: 'A2/B2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IFERROR.functionParameter.valueIfError.name',+ detail: 'formula.functionList.IFERROR.functionParameter.valueIfError.detail',+ example: '"Error in calculation"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.IFNA,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.IFNA.description',+ abstract: 'formula.functionList.IFNA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IFNA.functionParameter.value.name',+ detail: 'formula.functionList.IFNA.functionParameter.value.detail',+ example: 'VLOOKUP(C3,C6:D11,2,FALSE)',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IFNA.functionParameter.valueIfNa.name',+ detail: 'formula.functionList.IFNA.functionParameter.valueIfNa.detail',+ example: '"Not Found"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.IFS,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.IFS.description',+ abstract: 'formula.functionList.IFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IFS.functionParameter.logicalTest1.name',+ detail: 'formula.functionList.IFS.functionParameter.logicalTest1.detail',+ example: 'A2 = "foo"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IFS.functionParameter.valueIfTrue1.name',+ detail: 'formula.functionList.IFS.functionParameter.valueIfTrue1.detail',+ example: '"A2 is foo"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IFS.functionParameter.logicalTest2.name',+ detail: 'formula.functionList.IFS.functionParameter.logicalTest2.detail',+ example: 'F2=1',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.IFS.functionParameter.valueIfTrue2.name',+ detail: 'formula.functionList.IFS.functionParameter.valueIfTrue2.detail',+ example: 'D2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.LAMBDA,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.LAMBDA.description',+ abstract: 'formula.functionList.LAMBDA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LAMBDA.functionParameter.parameter.name',+ detail: 'formula.functionList.LAMBDA.functionParameter.parameter.detail',+ example: '[x, y, …,]',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.LAMBDA.functionParameter.calculation.name',+ detail: 'formula.functionList.LAMBDA.functionParameter.calculation.detail',+ example: 'x+y',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.LET,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.LET.description',+ abstract: 'formula.functionList.LET.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LET.functionParameter.name1.name',+ detail: 'formula.functionList.LET.functionParameter.name1.detail',+ example: 'x',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LET.functionParameter.nameValue1.name',+ detail: 'formula.functionList.LET.functionParameter.nameValue1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LET.functionParameter.calculationOrName2.name',+ detail: 'formula.functionList.LET.functionParameter.calculationOrName2.detail',+ example: 'y',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LET.functionParameter.nameValue2.name',+ detail: 'formula.functionList.LET.functionParameter.nameValue2.detail',+ example: '6',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.LET.functionParameter.calculationOrName3.name',+ detail: 'formula.functionList.LET.functionParameter.calculationOrName3.detail',+ example: 'SUM(x,y)',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.MAKEARRAY,+ aliasFunctionName: 'formula.functionList.MAKEARRAY.aliasFunctionName',+ functionType: FunctionType.Logical,+ description: 'formula.functionList.MAKEARRAY.description',+ abstract: 'formula.functionList.MAKEARRAY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MAKEARRAY.functionParameter.number1.name',+ detail: 'formula.functionList.MAKEARRAY.functionParameter.number1.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAKEARRAY.functionParameter.number2.name',+ detail: 'formula.functionList.MAKEARRAY.functionParameter.number2.detail',+ example: '7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAKEARRAY.functionParameter.value3.name',+ detail: 'formula.functionList.MAKEARRAY.functionParameter.value3.detail',+ example: 'LAMBDA(r,c, r*c)',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.MAP,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.MAP.description',+ abstract: 'formula.functionList.MAP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MAP.functionParameter.array1.name',+ detail: 'formula.functionList.MAP.functionParameter.array1.detail',+ example: 'D2:D11',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAP.functionParameter.array2.name',+ detail: 'formula.functionList.MAP.functionParameter.array2.detail',+ example: 'E2:E11',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.MAP.functionParameter.lambda.name',+ detail: 'formula.functionList.MAP.functionParameter.lambda.detail',+ example: 'LAMBDA(s,c,AND(s="Large",c="Red"))',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.NOT,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.NOT.description',+ abstract: 'formula.functionList.NOT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NOT.functionParameter.logical.name',+ detail: 'formula.functionList.NOT.functionParameter.logical.detail',+ example: 'A2>100',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.OR,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.OR.description',+ abstract: 'formula.functionList.OR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.OR.functionParameter.logical1.name',+ detail: 'formula.functionList.OR.functionParameter.logical1.detail',+ example: 'A1=1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OR.functionParameter.logical2.name',+ detail: 'formula.functionList.OR.functionParameter.logical2.detail',+ example: 'A2=2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.REDUCE,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.REDUCE.description',+ abstract: 'formula.functionList.REDUCE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REDUCE.functionParameter.initialValue.name',+ detail: 'formula.functionList.REDUCE.functionParameter.initialValue.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REDUCE.functionParameter.array.name',+ detail: 'formula.functionList.REDUCE.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REDUCE.functionParameter.lambda.name',+ detail: 'formula.functionList.REDUCE.functionParameter.lambda.detail',+ example: 'LAMBDA(a,b,a+b^2)',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.SCAN,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.SCAN.description',+ abstract: 'formula.functionList.SCAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SCAN.functionParameter.initialValue.name',+ detail: 'formula.functionList.SCAN.functionParameter.initialValue.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SCAN.functionParameter.array.name',+ detail: 'formula.functionList.SCAN.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SCAN.functionParameter.lambda.name',+ detail: 'formula.functionList.SCAN.functionParameter.lambda.detail',+ example: 'LAMBDA(a,b,a+b^2)',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.SWITCH,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.SWITCH.description',+ abstract: 'formula.functionList.SWITCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SWITCH.functionParameter.expression.name',+ detail: 'formula.functionList.SWITCH.functionParameter.expression.detail',+ example: 'WEEKDAY(A2)',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SWITCH.functionParameter.value1.name',+ detail: 'formula.functionList.SWITCH.functionParameter.value1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SWITCH.functionParameter.result1.name',+ detail: 'formula.functionList.SWITCH.functionParameter.result1.detail',+ example: '"Sunday"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SWITCH.functionParameter.defaultOrValue2.name',+ detail: 'formula.functionList.SWITCH.functionParameter.defaultOrValue2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.SWITCH.functionParameter.result2.name',+ detail: 'formula.functionList.SWITCH.functionParameter.result2.detail',+ example: '"Monday"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.TRUE,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.TRUE.description',+ abstract: 'formula.functionList.TRUE.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOGICAL.XOR,+ functionType: FunctionType.Logical,+ description: 'formula.functionList.XOR.description',+ abstract: 'formula.functionList.XOR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.XOR.functionParameter.logical1.name',+ detail: 'formula.functionList.XOR.functionParameter.logical1.detail',+ example: '3>0',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XOR.functionParameter.logical2.name',+ detail: 'formula.functionList.XOR.functionParameter.logical2.detail',+ example: '2<9',+ require: 0,+ repeat: 1,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/lookup.ts b/packages/formula/src/services/function-list/lookup.tsnew file mode 100644index 0000000000..9e7b0cf300--- /dev/null+++ b/packages/formula/src/services/function-list/lookup.ts@@ -0,0 +1,1101 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_LOOKUP, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_LOOKUP: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_LOOKUP.ADDRESS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.ADDRESS.description',+ abstract: 'formula.functionList.ADDRESS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ADDRESS.functionParameter.row_num.name',+ detail: 'formula.functionList.ADDRESS.functionParameter.row_num.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ADDRESS.functionParameter.column_num.name',+ detail: 'formula.functionList.ADDRESS.functionParameter.column_num.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ADDRESS.functionParameter.abs_num.name',+ detail: 'formula.functionList.ADDRESS.functionParameter.abs_num.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ADDRESS.functionParameter.a1.name',+ detail: 'formula.functionList.ADDRESS.functionParameter.a1.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ADDRESS.functionParameter.sheet_text.name',+ detail: 'formula.functionList.ADDRESS.functionParameter.sheet_text.detail',+ example: '"Sheet2"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.AREAS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.AREAS.description',+ abstract: 'formula.functionList.AREAS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AREAS.functionParameter.reference.name',+ detail: 'formula.functionList.AREAS.functionParameter.reference.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.CHOOSE,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.CHOOSE.description',+ abstract: 'formula.functionList.CHOOSE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHOOSE.functionParameter.indexNum.name',+ detail: 'formula.functionList.CHOOSE.functionParameter.indexNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSE.functionParameter.value1.name',+ detail: 'formula.functionList.CHOOSE.functionParameter.value1.detail',+ example: '"Hello"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSE.functionParameter.value2.name',+ detail: 'formula.functionList.CHOOSE.functionParameter.value2.detail',+ example: '"Univer"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.CHOOSECOLS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.CHOOSECOLS.description',+ abstract: 'formula.functionList.CHOOSECOLS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHOOSECOLS.functionParameter.array.name',+ detail: 'formula.functionList.CHOOSECOLS.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSECOLS.functionParameter.colNum1.name',+ detail: 'formula.functionList.CHOOSECOLS.functionParameter.colNum1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSECOLS.functionParameter.colNum2.name',+ detail: 'formula.functionList.CHOOSECOLS.functionParameter.colNum2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.CHOOSEROWS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.CHOOSEROWS.description',+ abstract: 'formula.functionList.CHOOSEROWS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHOOSEROWS.functionParameter.array.name',+ detail: 'formula.functionList.CHOOSEROWS.functionParameter.array.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSEROWS.functionParameter.rowNum1.name',+ detail: 'formula.functionList.CHOOSEROWS.functionParameter.rowNum1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHOOSEROWS.functionParameter.rowNum2.name',+ detail: 'formula.functionList.CHOOSEROWS.functionParameter.rowNum2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.COLUMN,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.COLUMN.description',+ abstract: 'formula.functionList.COLUMN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COLUMN.functionParameter.reference.name',+ detail: 'formula.functionList.COLUMN.functionParameter.reference.detail',+ example: 'A1:A20',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.COLUMNS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.COLUMNS.description',+ abstract: 'formula.functionList.COLUMNS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COLUMNS.functionParameter.array.name',+ detail: 'formula.functionList.COLUMNS.functionParameter.array.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.DROP,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.DROP.description',+ abstract: 'formula.functionList.DROP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DROP.functionParameter.array.name',+ detail: 'formula.functionList.DROP.functionParameter.array.detail',+ example: 'A2:C4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DROP.functionParameter.rows.name',+ detail: 'formula.functionList.DROP.functionParameter.rows.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DROP.functionParameter.columns.name',+ detail: 'formula.functionList.DROP.functionParameter.columns.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.EXPAND,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.EXPAND.description',+ abstract: 'formula.functionList.EXPAND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EXPAND.functionParameter.array.name',+ detail: 'formula.functionList.EXPAND.functionParameter.array.detail',+ example: 'A2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPAND.functionParameter.rows.name',+ detail: 'formula.functionList.EXPAND.functionParameter.rows.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPAND.functionParameter.columns.name',+ detail: 'formula.functionList.EXPAND.functionParameter.columns.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPAND.functionParameter.padWith.name',+ detail: 'formula.functionList.EXPAND.functionParameter.padWith.detail',+ example: '"-"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.FILTER,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.FILTER.description',+ abstract: 'formula.functionList.FILTER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FILTER.functionParameter.array.name',+ detail: 'formula.functionList.FILTER.functionParameter.array.detail',+ example: 'A5:D20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FILTER.functionParameter.include.name',+ detail: 'formula.functionList.FILTER.functionParameter.include.detail',+ example: '(C5:C20="Apple")*(A5:A20="East")',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FILTER.functionParameter.ifEmpty.name',+ detail: 'formula.functionList.FILTER.functionParameter.ifEmpty.detail',+ example: '""',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.FORMULATEXT,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.FORMULATEXT.description',+ abstract: 'formula.functionList.FORMULATEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORMULATEXT.functionParameter.reference.name',+ detail: 'formula.functionList.FORMULATEXT.functionParameter.reference.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.GETPIVOTDATA,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.GETPIVOTDATA.description',+ abstract: 'formula.functionList.GETPIVOTDATA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GETPIVOTDATA.functionParameter.dataField.name',+ detail: 'formula.functionList.GETPIVOTDATA.functionParameter.dataField.detail',+ example: '"Sales"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GETPIVOTDATA.functionParameter.pivotTable.name',+ detail: 'formula.functionList.GETPIVOTDATA.functionParameter.pivotTable.detail',+ example: 'A3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GETPIVOTDATA.functionParameter.field1.name',+ detail: 'formula.functionList.GETPIVOTDATA.functionParameter.field1.detail',+ example: '"Month"',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.GETPIVOTDATA.functionParameter.item1.name',+ detail: 'formula.functionList.GETPIVOTDATA.functionParameter.item1.detail',+ example: '"March"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.HLOOKUP,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.HLOOKUP.description',+ abstract: 'formula.functionList.HLOOKUP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HLOOKUP.functionParameter.lookupValue.name',+ detail: 'formula.functionList.HLOOKUP.functionParameter.lookupValue.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HLOOKUP.functionParameter.tableArray.name',+ detail: 'formula.functionList.HLOOKUP.functionParameter.tableArray.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HLOOKUP.functionParameter.rowIndexNum.name',+ detail: 'formula.functionList.HLOOKUP.functionParameter.rowIndexNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HLOOKUP.functionParameter.rangeLookup.name',+ detail: 'formula.functionList.HLOOKUP.functionParameter.rangeLookup.detail',+ example: 'false',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.HSTACK,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.HSTACK.description',+ abstract: 'formula.functionList.HSTACK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HSTACK.functionParameter.array1.name',+ detail: 'formula.functionList.HSTACK.functionParameter.array1.detail',+ example: 'A2:C3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HSTACK.functionParameter.array2.name',+ detail: 'formula.functionList.HSTACK.functionParameter.array2.detail',+ example: 'E2:G3',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.HYPERLINK,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.HYPERLINK.description',+ abstract: 'formula.functionList.HYPERLINK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HYPERLINK.functionParameter.url.name',+ detail: 'formula.functionList.HYPERLINK.functionParameter.url.detail',+ example: '"https://univer.ai/"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPERLINK.functionParameter.linkLabel.name',+ detail: 'formula.functionList.HYPERLINK.functionParameter.linkLabel.detail',+ example: '"Univer"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.IMAGE,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.IMAGE.description',+ abstract: 'formula.functionList.IMAGE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.IMAGE.functionParameter.source.name',+ detail: 'formula.functionList.IMAGE.functionParameter.source.detail',+ example: '"https://github.com/dream-num.png"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMAGE.functionParameter.altText.name',+ detail: 'formula.functionList.IMAGE.functionParameter.altText.detail',+ example: '"Univer Logo"',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMAGE.functionParameter.sizing.name',+ detail: 'formula.functionList.IMAGE.functionParameter.sizing.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMAGE.functionParameter.height.name',+ detail: 'formula.functionList.IMAGE.functionParameter.height.detail',+ example: '100',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.IMAGE.functionParameter.width.name',+ detail: 'formula.functionList.IMAGE.functionParameter.width.detail',+ example: '100',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.INDEX,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.INDEX.description',+ abstract: 'formula.functionList.INDEX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INDEX.functionParameter.reference.name',+ detail: 'formula.functionList.INDEX.functionParameter.reference.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INDEX.functionParameter.rowNum.name',+ detail: 'formula.functionList.INDEX.functionParameter.rowNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INDEX.functionParameter.columnNum.name',+ detail: 'formula.functionList.INDEX.functionParameter.columnNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INDEX.functionParameter.areaNum.name',+ detail: 'formula.functionList.INDEX.functionParameter.areaNum.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.INDIRECT,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.INDIRECT.description',+ abstract: 'formula.functionList.INDIRECT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INDIRECT.functionParameter.refText.name',+ detail: 'formula.functionList.INDIRECT.functionParameter.refText.detail',+ example: '"A1"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INDIRECT.functionParameter.a1.name',+ detail: 'formula.functionList.INDIRECT.functionParameter.a1.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.LOOKUP,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.LOOKUP.description',+ abstract: 'formula.functionList.LOOKUP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOOKUP.functionParameter.lookupValue.name',+ detail: 'formula.functionList.LOOKUP.functionParameter.lookupValue.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.name',+ detail: 'formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOOKUP.functionParameter.resultVector.name',+ detail: 'formula.functionList.LOOKUP.functionParameter.resultVector.detail',+ example: 'A1:A20',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.MATCH,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.MATCH.description',+ abstract: 'formula.functionList.MATCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MATCH.functionParameter.lookupValue.name',+ detail: 'formula.functionList.MATCH.functionParameter.lookupValue.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MATCH.functionParameter.lookupArray.name',+ detail: 'formula.functionList.MATCH.functionParameter.lookupArray.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MATCH.functionParameter.matchType.name',+ detail: 'formula.functionList.MATCH.functionParameter.matchType.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.OFFSET,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.OFFSET.description',+ abstract: 'formula.functionList.OFFSET.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.OFFSET.functionParameter.reference.name',+ detail: 'formula.functionList.OFFSET.functionParameter.reference.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OFFSET.functionParameter.rows.name',+ detail: 'formula.functionList.OFFSET.functionParameter.rows.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OFFSET.functionParameter.cols.name',+ detail: 'formula.functionList.OFFSET.functionParameter.cols.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OFFSET.functionParameter.height.name',+ detail: 'formula.functionList.OFFSET.functionParameter.height.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.OFFSET.functionParameter.width.name',+ detail: 'formula.functionList.OFFSET.functionParameter.width.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.ROW,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.ROW.description',+ abstract: 'formula.functionList.ROW.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROW.functionParameter.reference.name',+ detail: 'formula.functionList.ROW.functionParameter.reference.detail',+ example: 'A1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.ROWS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.ROWS.description',+ abstract: 'formula.functionList.ROWS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROWS.functionParameter.array.name',+ detail: 'formula.functionList.ROWS.functionParameter.array.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.RTD,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.RTD.description',+ abstract: 'formula.functionList.RTD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RTD.functionParameter.progId.name',+ detail: 'formula.functionList.RTD.functionParameter.progId.detail',+ example: '"mycomaddin.progid"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RTD.functionParameter.server.name',+ detail: 'formula.functionList.RTD.functionParameter.server.detail',+ example: '""',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RTD.functionParameter.topic1.name',+ detail: 'formula.functionList.RTD.functionParameter.topic1.detail',+ example: '"Topic"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RTD.functionParameter.topic2.name',+ detail: 'formula.functionList.RTD.functionParameter.topic2.detail',+ example: '"Item"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.SORT,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.SORT.description',+ abstract: 'formula.functionList.SORT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SORT.functionParameter.array.name',+ detail: 'formula.functionList.SORT.functionParameter.array.detail',+ example: 'A2:A17',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORT.functionParameter.sortIndex.name',+ detail: 'formula.functionList.SORT.functionParameter.sortIndex.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORT.functionParameter.sortOrder.name',+ detail: 'formula.functionList.SORT.functionParameter.sortOrder.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORT.functionParameter.byCol.name',+ detail: 'formula.functionList.SORT.functionParameter.byCol.detail',+ example: 'false',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.SORTBY,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.SORTBY.description',+ abstract: 'formula.functionList.SORTBY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SORTBY.functionParameter.array.name',+ detail: 'formula.functionList.SORTBY.functionParameter.array.detail',+ example: 'D2:D9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORTBY.functionParameter.byArray1.name',+ detail: 'formula.functionList.SORTBY.functionParameter.byArray1.detail',+ example: 'E2:E9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORTBY.functionParameter.sortOrder1.name',+ detail: 'formula.functionList.SORTBY.functionParameter.sortOrder1.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SORTBY.functionParameter.byArray2.name',+ detail: 'formula.functionList.SORTBY.functionParameter.byArray2.detail',+ example: 'E2:E9',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.SORTBY.functionParameter.sortOrder2.name',+ detail: 'formula.functionList.SORTBY.functionParameter.sortOrder2.detail',+ example: '1',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.TAKE,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.TAKE.description',+ abstract: 'formula.functionList.TAKE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TAKE.functionParameter.array.name',+ detail: 'formula.functionList.TAKE.functionParameter.array.detail',+ example: 'A2:C4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TAKE.functionParameter.rows.name',+ detail: 'formula.functionList.TAKE.functionParameter.rows.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TAKE.functionParameter.columns.name',+ detail: 'formula.functionList.TAKE.functionParameter.columns.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.TOCOL,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.TOCOL.description',+ abstract: 'formula.functionList.TOCOL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TOCOL.functionParameter.array.name',+ detail: 'formula.functionList.TOCOL.functionParameter.array.detail',+ example: 'A2:D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TOCOL.functionParameter.ignore.name',+ detail: 'formula.functionList.TOCOL.functionParameter.ignore.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TOCOL.functionParameter.scanByColumn.name',+ detail: 'formula.functionList.TOCOL.functionParameter.scanByColumn.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.TOROW,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.TOROW.description',+ abstract: 'formula.functionList.TOROW.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TOROW.functionParameter.array.name',+ detail: 'formula.functionList.TOROW.functionParameter.array.detail',+ example: 'A2:D4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TOROW.functionParameter.ignore.name',+ detail: 'formula.functionList.TOROW.functionParameter.ignore.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TOROW.functionParameter.scanByColumn.name',+ detail: 'formula.functionList.TOROW.functionParameter.scanByColumn.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.TRANSPOSE,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.TRANSPOSE.description',+ abstract: 'formula.functionList.TRANSPOSE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TRANSPOSE.functionParameter.array.name',+ detail: 'formula.functionList.TRANSPOSE.functionParameter.array.detail',+ example: 'A2:F9',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.UNIQUE,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.UNIQUE.description',+ abstract: 'formula.functionList.UNIQUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.UNIQUE.functionParameter.array.name',+ detail: 'formula.functionList.UNIQUE.functionParameter.array.detail',+ example: 'A2:A12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.UNIQUE.functionParameter.byCol.name',+ detail: 'formula.functionList.UNIQUE.functionParameter.byCol.detail',+ example: 'false',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.UNIQUE.functionParameter.exactlyOnce.name',+ detail: 'formula.functionList.UNIQUE.functionParameter.exactlyOnce.detail',+ example: 'false',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.VLOOKUP,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.VLOOKUP.description',+ abstract: 'formula.functionList.VLOOKUP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VLOOKUP.functionParameter.lookupValue.name',+ detail: 'formula.functionList.VLOOKUP.functionParameter.lookupValue.detail',+ example: 'B2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VLOOKUP.functionParameter.tableArray.name',+ detail: 'formula.functionList.VLOOKUP.functionParameter.tableArray.detail',+ example: 'C2:E7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VLOOKUP.functionParameter.colIndexNum.name',+ detail: 'formula.functionList.VLOOKUP.functionParameter.colIndexNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VLOOKUP.functionParameter.rangeLookup.name',+ detail: 'formula.functionList.VLOOKUP.functionParameter.rangeLookup.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.VSTACK,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.VSTACK.description',+ abstract: 'formula.functionList.VSTACK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VSTACK.functionParameter.array1.name',+ detail: 'formula.functionList.VSTACK.functionParameter.array1.detail',+ example: 'A2:C3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VSTACK.functionParameter.array2.name',+ detail: 'formula.functionList.VSTACK.functionParameter.array2.detail',+ example: 'E2:G3',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.WRAPCOLS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.WRAPCOLS.description',+ abstract: 'formula.functionList.WRAPCOLS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WRAPCOLS.functionParameter.vector.name',+ detail: 'formula.functionList.WRAPCOLS.functionParameter.vector.detail',+ example: 'A2:G2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WRAPCOLS.functionParameter.wrapCount.name',+ detail: 'formula.functionList.WRAPCOLS.functionParameter.wrapCount.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WRAPCOLS.functionParameter.padWith.name',+ detail: 'formula.functionList.WRAPCOLS.functionParameter.padWith.detail',+ example: '"x"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.WRAPROWS,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.WRAPROWS.description',+ abstract: 'formula.functionList.WRAPROWS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WRAPROWS.functionParameter.vector.name',+ detail: 'formula.functionList.WRAPROWS.functionParameter.vector.detail',+ example: 'A2:G2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WRAPROWS.functionParameter.wrapCount.name',+ detail: 'formula.functionList.WRAPROWS.functionParameter.wrapCount.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WRAPROWS.functionParameter.padWith.name',+ detail: 'formula.functionList.WRAPROWS.functionParameter.padWith.detail',+ example: '"x"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.XLOOKUP,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.XLOOKUP.description',+ abstract: 'formula.functionList.XLOOKUP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.lookupValue.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.lookupValue.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.lookupArray.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.lookupArray.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.returnArray.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.returnArray.detail',+ example: 'B1:B20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.ifNotFound.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.ifNotFound.detail',+ example: 'default',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.matchMode.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.matchMode.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XLOOKUP.functionParameter.searchMode.name',+ detail: 'formula.functionList.XLOOKUP.functionParameter.searchMode.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_LOOKUP.XMATCH,+ functionType: FunctionType.Lookup,+ description: 'formula.functionList.XMATCH.description',+ abstract: 'formula.functionList.XMATCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.XMATCH.functionParameter.lookupValue.name',+ detail: 'formula.functionList.XMATCH.functionParameter.lookupValue.detail',+ example: 'B1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XMATCH.functionParameter.lookupArray.name',+ detail: 'formula.functionList.XMATCH.functionParameter.lookupArray.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XMATCH.functionParameter.matchMode.name',+ detail: 'formula.functionList.XMATCH.functionParameter.matchMode.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.XMATCH.functionParameter.searchMode.name',+ detail: 'formula.functionList.XMATCH.functionParameter.searchMode.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/math.ts b/packages/formula/src/services/function-list/math.tsnew file mode 100644index 0000000000..cd2914b748--- /dev/null+++ b/packages/formula/src/services/function-list/math.ts@@ -0,0 +1,1652 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_MATH, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_MATH: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_MATH.ABS,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ABS.description',+ abstract: 'formula.functionList.ABS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ABS.functionParameter.number.name',+ detail: 'formula.functionList.ABS.functionParameter.number.detail',+ example: '-2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ACOS,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ACOS.description',+ abstract: 'formula.functionList.ACOS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACOS.functionParameter.number.name',+ detail: 'formula.functionList.ACOS.functionParameter.number.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ACOSH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ACOSH.description',+ abstract: 'formula.functionList.ACOSH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACOSH.functionParameter.number.name',+ detail: 'formula.functionList.ACOSH.functionParameter.number.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ACOT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ACOT.description',+ abstract: 'formula.functionList.ACOT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACOT.functionParameter.number.name',+ detail: 'formula.functionList.ACOT.functionParameter.number.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ACOTH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ACOTH.description',+ abstract: 'formula.functionList.ACOTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ACOTH.functionParameter.number.name',+ detail: 'formula.functionList.ACOTH.functionParameter.number.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.AGGREGATE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.AGGREGATE.description',+ abstract: 'formula.functionList.AGGREGATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AGGREGATE.functionParameter.functionNum.name',+ detail: 'formula.functionList.AGGREGATE.functionParameter.functionNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AGGREGATE.functionParameter.options.name',+ detail: 'formula.functionList.AGGREGATE.functionParameter.options.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AGGREGATE.functionParameter.ref1.name',+ detail: 'formula.functionList.AGGREGATE.functionParameter.ref1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AGGREGATE.functionParameter.ref2.name',+ detail: 'formula.functionList.AGGREGATE.functionParameter.ref2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ARABIC,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ARABIC.description',+ abstract: 'formula.functionList.ARABIC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ARABIC.functionParameter.text.name',+ detail: 'formula.functionList.ARABIC.functionParameter.text.detail',+ example: '"LVII"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ASIN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ASIN.description',+ abstract: 'formula.functionList.ASIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ASIN.functionParameter.number.name',+ detail: 'formula.functionList.ASIN.functionParameter.number.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ASINH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ASINH.description',+ abstract: 'formula.functionList.ASINH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ASINH.functionParameter.number.name',+ detail: 'formula.functionList.ASINH.functionParameter.number.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ATAN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ATAN.description',+ abstract: 'formula.functionList.ATAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ATAN.functionParameter.number.name',+ detail: 'formula.functionList.ATAN.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ATAN2,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ATAN2.description',+ abstract: 'formula.functionList.ATAN2.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ATAN2.functionParameter.xNum.name',+ detail: 'formula.functionList.ATAN2.functionParameter.xNum.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ATAN2.functionParameter.yNum.name',+ detail: 'formula.functionList.ATAN2.functionParameter.yNum.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ATANH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ATANH.description',+ abstract: 'formula.functionList.ATANH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ATANH.functionParameter.number.name',+ detail: 'formula.functionList.ATANH.functionParameter.number.detail',+ example: '0.1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.BASE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.BASE.description',+ abstract: 'formula.functionList.BASE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BASE.functionParameter.number.name',+ detail: 'formula.functionList.BASE.functionParameter.number.detail',+ example: '15',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BASE.functionParameter.radix.name',+ detail: 'formula.functionList.BASE.functionParameter.radix.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BASE.functionParameter.minLength.name',+ detail: 'formula.functionList.BASE.functionParameter.minLength.detail',+ example: '10',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.CEILING,+ functionType: FunctionType.Math,+ description: 'formula.functionList.CEILING.description',+ abstract: 'formula.functionList.CEILING.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CEILING.functionParameter.number.name',+ detail: 'formula.functionList.CEILING.functionParameter.number.detail',+ example: '2.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CEILING.functionParameter.significance.name',+ detail: 'formula.functionList.CEILING.functionParameter.significance.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.CEILING_MATH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.CEILING_MATH.description',+ abstract: 'formula.functionList.CEILING_MATH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CEILING_MATH.functionParameter.number.name',+ detail: 'formula.functionList.CEILING_MATH.functionParameter.number.detail',+ example: '-5.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CEILING_MATH.functionParameter.significance.name',+ detail: 'formula.functionList.CEILING_MATH.functionParameter.significance.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CEILING_MATH.functionParameter.mode.name',+ detail: 'formula.functionList.CEILING_MATH.functionParameter.mode.detail',+ example: '-1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.CEILING_PRECISE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.CEILING_PRECISE.description',+ abstract: 'formula.functionList.CEILING_PRECISE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CEILING_PRECISE.functionParameter.number.name',+ detail: 'formula.functionList.CEILING_PRECISE.functionParameter.number.detail',+ example: '4.3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CEILING_PRECISE.functionParameter.significance.name',+ detail: 'formula.functionList.CEILING_PRECISE.functionParameter.significance.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COMBIN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COMBIN.description',+ abstract: 'formula.functionList.COMBIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COMBIN.functionParameter.number.name',+ detail: 'formula.functionList.COMBIN.functionParameter.number.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COMBIN.functionParameter.numberChosen.name',+ detail: 'formula.functionList.COMBIN.functionParameter.numberChosen.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COMBINA,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COMBINA.description',+ abstract: 'formula.functionList.COMBINA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COMBINA.functionParameter.number.name',+ detail: 'formula.functionList.COMBINA.functionParameter.number.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COMBINA.functionParameter.numberChosen.name',+ detail: 'formula.functionList.COMBINA.functionParameter.numberChosen.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COS,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COS.description',+ abstract: 'formula.functionList.COS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COS.functionParameter.number.name',+ detail: 'formula.functionList.COS.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COSH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COSH.description',+ abstract: 'formula.functionList.COSH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COSH.functionParameter.number.name',+ detail: 'formula.functionList.COSH.functionParameter.number.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COT.description',+ abstract: 'formula.functionList.COT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COT.functionParameter.number.name',+ detail: 'formula.functionList.COT.functionParameter.number.detail',+ example: '30',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.COTH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.COTH.description',+ abstract: 'formula.functionList.COTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COTH.functionParameter.number.name',+ detail: 'formula.functionList.COTH.functionParameter.number.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.CSC,+ functionType: FunctionType.Math,+ description: 'formula.functionList.CSC.description',+ abstract: 'formula.functionList.CSC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CSC.functionParameter.number.name',+ detail: 'formula.functionList.CSC.functionParameter.number.detail',+ example: '15',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.CSCH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.CSCH.description',+ abstract: 'formula.functionList.CSCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CSCH.functionParameter.number.name',+ detail: 'formula.functionList.CSCH.functionParameter.number.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.DECIMAL,+ functionType: FunctionType.Math,+ description: 'formula.functionList.DECIMAL.description',+ abstract: 'formula.functionList.DECIMAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DECIMAL.functionParameter.text.name',+ detail: 'formula.functionList.DECIMAL.functionParameter.text.detail',+ example: '"FF"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DECIMAL.functionParameter.radix.name',+ detail: 'formula.functionList.DECIMAL.functionParameter.radix.detail',+ example: '16',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.DEGREES,+ functionType: FunctionType.Math,+ description: 'formula.functionList.DEGREES.description',+ abstract: 'formula.functionList.DEGREES.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DEGREES.functionParameter.angle.name',+ detail: 'formula.functionList.DEGREES.functionParameter.angle.detail',+ example: 'PI()',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.EVEN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.EVEN.description',+ abstract: 'formula.functionList.EVEN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EVEN.functionParameter.number.name',+ detail: 'formula.functionList.EVEN.functionParameter.number.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.EXP,+ functionType: FunctionType.Math,+ description: 'formula.functionList.EXP.description',+ abstract: 'formula.functionList.EXP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EXP.functionParameter.number.name',+ detail: 'formula.functionList.EXP.functionParameter.number.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.FACT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.FACT.description',+ abstract: 'formula.functionList.FACT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FACT.functionParameter.number.name',+ detail: 'formula.functionList.FACT.functionParameter.number.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.FACTDOUBLE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.FACTDOUBLE.description',+ abstract: 'formula.functionList.FACTDOUBLE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FACTDOUBLE.functionParameter.number.name',+ detail: 'formula.functionList.FACTDOUBLE.functionParameter.number.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.FLOOR,+ functionType: FunctionType.Math,+ description: 'formula.functionList.FLOOR.description',+ abstract: 'formula.functionList.FLOOR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FLOOR.functionParameter.number.name',+ detail: 'formula.functionList.FLOOR.functionParameter.number.detail',+ example: '3.7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FLOOR.functionParameter.significance.name',+ detail: 'formula.functionList.FLOOR.functionParameter.significance.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.FLOOR_MATH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.FLOOR_MATH.description',+ abstract: 'formula.functionList.FLOOR_MATH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FLOOR_MATH.functionParameter.number.name',+ detail: 'formula.functionList.FLOOR_MATH.functionParameter.number.detail',+ example: '-5.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FLOOR_MATH.functionParameter.significance.name',+ detail: 'formula.functionList.FLOOR_MATH.functionParameter.significance.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FLOOR_MATH.functionParameter.mode.name',+ detail: 'formula.functionList.FLOOR_MATH.functionParameter.mode.detail',+ example: '-1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.FLOOR_PRECISE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.FLOOR_PRECISE.description',+ abstract: 'formula.functionList.FLOOR_PRECISE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FLOOR_PRECISE.functionParameter.number.name',+ detail: 'formula.functionList.FLOOR_PRECISE.functionParameter.number.detail',+ example: '-3.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FLOOR_PRECISE.functionParameter.significance.name',+ detail: 'formula.functionList.FLOOR_PRECISE.functionParameter.significance.detail',+ example: '-1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.GCD,+ functionType: FunctionType.Math,+ description: 'formula.functionList.GCD.description',+ abstract: 'formula.functionList.GCD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GCD.functionParameter.number1.name',+ detail: 'formula.functionList.GCD.functionParameter.number1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GCD.functionParameter.number2.name',+ detail: 'formula.functionList.GCD.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.INT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.INT.description',+ abstract: 'formula.functionList.INT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INT.functionParameter.number.name',+ detail: 'formula.functionList.INT.functionParameter.number.detail',+ example: '8.9',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ISO_CEILING,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ISO_CEILING.description',+ abstract: 'formula.functionList.ISO_CEILING.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ISO_CEILING.functionParameter.number.name',+ detail: 'formula.functionList.ISO_CEILING.functionParameter.number.detail',+ example: '-4.3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ISO_CEILING.functionParameter.significance.name',+ detail: 'formula.functionList.ISO_CEILING.functionParameter.significance.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.LCM,+ functionType: FunctionType.Math,+ description: 'formula.functionList.LCM.description',+ abstract: 'formula.functionList.LCM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LCM.functionParameter.number1.name',+ detail: 'formula.functionList.LCM.functionParameter.number1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LCM.functionParameter.number2.name',+ detail: 'formula.functionList.LCM.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.LN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.LN.description',+ abstract: 'formula.functionList.LN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LN.functionParameter.number.name',+ detail: 'formula.functionList.LN.functionParameter.number.detail',+ example: 'EXP(3)',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.LOG,+ functionType: FunctionType.Math,+ description: 'formula.functionList.LOG.description',+ abstract: 'formula.functionList.LOG.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOG.functionParameter.number.name',+ detail: 'formula.functionList.LOG.functionParameter.number.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOG.functionParameter.base.name',+ detail: 'formula.functionList.LOG.functionParameter.base.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.LOG10,+ functionType: FunctionType.Math,+ description: 'formula.functionList.LOG10.description',+ abstract: 'formula.functionList.LOG10.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOG10.functionParameter.number.name',+ detail: 'formula.functionList.LOG10.functionParameter.number.detail',+ example: '100000',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MDETERM,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MDETERM.description',+ abstract: 'formula.functionList.MDETERM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MDETERM.functionParameter.array.name',+ detail: 'formula.functionList.MDETERM.functionParameter.array.detail',+ example: 'A1:C3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MINVERSE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MINVERSE.description',+ abstract: 'formula.functionList.MINVERSE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MINVERSE.functionParameter.array.name',+ detail: 'formula.functionList.MINVERSE.functionParameter.array.detail',+ example: 'A1:C3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MMULT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MMULT.description',+ abstract: 'formula.functionList.MMULT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MMULT.functionParameter.array1.name',+ detail: 'formula.functionList.MMULT.functionParameter.array1.detail',+ example: 'A2:B3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MMULT.functionParameter.array2.name',+ detail: 'formula.functionList.MMULT.functionParameter.array2.detail',+ example: 'A5:B6',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MOD,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MOD.description',+ abstract: 'formula.functionList.MOD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MOD.functionParameter.number.name',+ detail: 'formula.functionList.MOD.functionParameter.number.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MOD.functionParameter.divisor.name',+ detail: 'formula.functionList.MOD.functionParameter.divisor.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MROUND,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MROUND.description',+ abstract: 'formula.functionList.MROUND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MROUND.functionParameter.number.name',+ detail: 'formula.functionList.MROUND.functionParameter.number.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MROUND.functionParameter.multiple.name',+ detail: 'formula.functionList.MROUND.functionParameter.multiple.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MULTINOMIAL,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MULTINOMIAL.description',+ abstract: 'formula.functionList.MULTINOMIAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MULTINOMIAL.functionParameter.number1.name',+ detail: 'formula.functionList.MULTINOMIAL.functionParameter.number1.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MULTINOMIAL.functionParameter.number2.name',+ detail: 'formula.functionList.MULTINOMIAL.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.MUNIT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.MUNIT.description',+ abstract: 'formula.functionList.MUNIT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MUNIT.functionParameter.dimension.name',+ detail: 'formula.functionList.MUNIT.functionParameter.dimension.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ODD,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ODD.description',+ abstract: 'formula.functionList.ODD.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ODD.functionParameter.number.name',+ detail: 'formula.functionList.ODD.functionParameter.number.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.PI,+ functionType: FunctionType.Math,+ description: 'formula.functionList.PI.description',+ abstract: 'formula.functionList.PI.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.POWER,+ functionType: FunctionType.Math,+ description: 'formula.functionList.POWER.description',+ abstract: 'formula.functionList.POWER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.POWER.functionParameter.number.name',+ detail: 'formula.functionList.POWER.functionParameter.number.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.POWER.functionParameter.power.name',+ detail: 'formula.functionList.POWER.functionParameter.power.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.PRODUCT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.PRODUCT.description',+ abstract: 'formula.functionList.PRODUCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PRODUCT.functionParameter.number1.name',+ detail: 'formula.functionList.PRODUCT.functionParameter.number1.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PRODUCT.functionParameter.number2.name',+ detail: 'formula.functionList.PRODUCT.functionParameter.number2.detail',+ example: 'A2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.QUOTIENT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.QUOTIENT.description',+ abstract: 'formula.functionList.QUOTIENT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.QUOTIENT.functionParameter.numerator.name',+ detail: 'formula.functionList.QUOTIENT.functionParameter.numerator.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.QUOTIENT.functionParameter.denominator.name',+ detail: 'formula.functionList.QUOTIENT.functionParameter.denominator.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.RADIANS,+ functionType: FunctionType.Math,+ description: 'formula.functionList.RADIANS.description',+ abstract: 'formula.functionList.RADIANS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RADIANS.functionParameter.angle.name',+ detail: 'formula.functionList.RADIANS.functionParameter.angle.detail',+ example: '270',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.RAND,+ functionType: FunctionType.Math,+ description: 'formula.functionList.RAND.description',+ abstract: 'formula.functionList.RAND.abstract',+ functionParameter: [+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.RANDARRAY,+ functionType: FunctionType.Math,+ description: 'formula.functionList.RANDARRAY.description',+ abstract: 'formula.functionList.RANDARRAY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RANDARRAY.functionParameter.rows.name',+ detail: 'formula.functionList.RANDARRAY.functionParameter.rows.detail',+ example: '5',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANDARRAY.functionParameter.columns.name',+ detail: 'formula.functionList.RANDARRAY.functionParameter.columns.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANDARRAY.functionParameter.min.name',+ detail: 'formula.functionList.RANDARRAY.functionParameter.min.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANDARRAY.functionParameter.max.name',+ detail: 'formula.functionList.RANDARRAY.functionParameter.max.detail',+ example: '100',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANDARRAY.functionParameter.wholeNumber.name',+ detail: 'formula.functionList.RANDARRAY.functionParameter.wholeNumber.detail',+ example: 'TRUE',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.RANDBETWEEN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.RANDBETWEEN.description',+ abstract: 'formula.functionList.RANDBETWEEN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RANDBETWEEN.functionParameter.bottom.name',+ detail: 'formula.functionList.RANDBETWEEN.functionParameter.bottom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANDBETWEEN.functionParameter.top.name',+ detail: 'formula.functionList.RANDBETWEEN.functionParameter.top.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ROMAN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ROMAN.description',+ abstract: 'formula.functionList.ROMAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROMAN.functionParameter.number.name',+ detail: 'formula.functionList.ROMAN.functionParameter.number.detail',+ example: '499',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ROMAN.functionParameter.form.name',+ detail: 'formula.functionList.ROMAN.functionParameter.form.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ROUND,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ROUND.description',+ abstract: 'formula.functionList.ROUND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROUND.functionParameter.number.name',+ detail: 'formula.functionList.ROUND.functionParameter.number.detail',+ example: '2.15',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ROUND.functionParameter.numDigits.name',+ detail: 'formula.functionList.ROUND.functionParameter.numDigits.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ROUNDBANK,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ROUNDBANK.description',+ abstract: 'formula.functionList.ROUNDBANK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROUNDBANK.functionParameter.number.name',+ detail: 'formula.functionList.ROUNDBANK.functionParameter.number.detail',+ example: '2.345',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ROUNDBANK.functionParameter.numDigits.name',+ detail: 'formula.functionList.ROUNDBANK.functionParameter.numDigits.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ROUNDDOWN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ROUNDDOWN.description',+ abstract: 'formula.functionList.ROUNDDOWN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROUNDDOWN.functionParameter.number.name',+ detail: 'formula.functionList.ROUNDDOWN.functionParameter.number.detail',+ example: '3.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ROUNDDOWN.functionParameter.numDigits.name',+ detail: 'formula.functionList.ROUNDDOWN.functionParameter.numDigits.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.ROUNDUP,+ functionType: FunctionType.Math,+ description: 'formula.functionList.ROUNDUP.description',+ abstract: 'formula.functionList.ROUNDUP.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ROUNDUP.functionParameter.number.name',+ detail: 'formula.functionList.ROUNDUP.functionParameter.number.detail',+ example: '3.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ROUNDUP.functionParameter.numDigits.name',+ detail: 'formula.functionList.ROUNDUP.functionParameter.numDigits.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SEC,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SEC.description',+ abstract: 'formula.functionList.SEC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SEC.functionParameter.number.name',+ detail: 'formula.functionList.SEC.functionParameter.number.detail',+ example: '30',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SECH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SECH.description',+ abstract: 'formula.functionList.SECH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SECH.functionParameter.number.name',+ detail: 'formula.functionList.SECH.functionParameter.number.detail',+ example: '30',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SERIESSUM,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SERIESSUM.description',+ abstract: 'formula.functionList.SERIESSUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SERIESSUM.functionParameter.x.name',+ detail: 'formula.functionList.SERIESSUM.functionParameter.x.detail',+ example: '0.785398163',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SERIESSUM.functionParameter.n.name',+ detail: 'formula.functionList.SERIESSUM.functionParameter.n.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SERIESSUM.functionParameter.m.name',+ detail: 'formula.functionList.SERIESSUM.functionParameter.m.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SERIESSUM.functionParameter.coefficients.name',+ detail: 'formula.functionList.SERIESSUM.functionParameter.coefficients.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SEQUENCE,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SEQUENCE.description',+ abstract: 'formula.functionList.SEQUENCE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SEQUENCE.functionParameter.rows.name',+ detail: 'formula.functionList.SEQUENCE.functionParameter.rows.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEQUENCE.functionParameter.columns.name',+ detail: 'formula.functionList.SEQUENCE.functionParameter.columns.detail',+ example: '5',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEQUENCE.functionParameter.start.name',+ detail: 'formula.functionList.SEQUENCE.functionParameter.start.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEQUENCE.functionParameter.step.name',+ detail: 'formula.functionList.SEQUENCE.functionParameter.step.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SIGN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SIGN.description',+ abstract: 'formula.functionList.SIGN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SIGN.functionParameter.number.name',+ detail: 'formula.functionList.SIGN.functionParameter.number.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SIN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SIN.description',+ abstract: 'formula.functionList.SIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SIN.functionParameter.number.name',+ detail: 'formula.functionList.SIN.functionParameter.number.detail',+ example: '30*PI()/180',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SINH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SINH.description',+ abstract: 'formula.functionList.SINH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SINH.functionParameter.number.name',+ detail: 'formula.functionList.SINH.functionParameter.number.detail',+ example: '0.0342*1.03',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SQRT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SQRT.description',+ abstract: 'formula.functionList.SQRT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SQRT.functionParameter.number.name',+ detail: 'formula.functionList.SQRT.functionParameter.number.detail',+ example: '16',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SQRTPI,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SQRTPI.description',+ abstract: 'formula.functionList.SQRTPI.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SQRTPI.functionParameter.number.name',+ detail: 'formula.functionList.SQRTPI.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUBTOTAL,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUBTOTAL.description',+ abstract: 'formula.functionList.SUBTOTAL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUBTOTAL.functionParameter.functionNum.name',+ detail: 'formula.functionList.SUBTOTAL.functionParameter.functionNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUBTOTAL.functionParameter.ref1.name',+ detail: 'formula.functionList.SUBTOTAL.functionParameter.ref1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUBTOTAL.functionParameter.ref2.name',+ detail: 'formula.functionList.SUBTOTAL.functionParameter.ref2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUM,+ aliasFunctionName: 'formula.functionList.SUM.aliasFunctionName',+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUM.description',+ abstract: 'formula.functionList.SUM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUM.functionParameter.number1.name',+ detail: 'formula.functionList.SUM.functionParameter.number1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUM.functionParameter.number2.name',+ detail: 'formula.functionList.SUM.functionParameter.number2.detail',+ example: 'B2:B10',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMIF,+ aliasFunctionName: 'formula.functionList.SUMIF.aliasFunctionName',+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMIF.description',+ abstract: 'formula.functionList.SUMIF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMIF.functionParameter.range.name',+ detail: 'formula.functionList.SUMIF.functionParameter.range.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMIF.functionParameter.criteria.name',+ detail: 'formula.functionList.SUMIF.functionParameter.criteria.detail',+ example: '">5"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMIF.functionParameter.sumRange.name',+ detail: 'formula.functionList.SUMIF.functionParameter.sumRange.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMIFS,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMIFS.description',+ abstract: 'formula.functionList.SUMIFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMIFS.functionParameter.sumRange.name',+ detail: 'formula.functionList.SUMIFS.functionParameter.sumRange.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMIFS.functionParameter.criteriaRange1.name',+ detail: 'formula.functionList.SUMIFS.functionParameter.criteriaRange1.detail',+ example: 'B1:B20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMIFS.functionParameter.criteria1.name',+ detail: 'formula.functionList.SUMIFS.functionParameter.criteria1.detail',+ example: '">10"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMIFS.functionParameter.criteriaRange2.name',+ detail: 'formula.functionList.SUMIFS.functionParameter.criteriaRange2.detail',+ example: 'C1:C20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.SUMIFS.functionParameter.criteria2.name',+ detail: 'formula.functionList.SUMIFS.functionParameter.criteria2.detail',+ example: '"<20"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMPRODUCT,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMPRODUCT.description',+ abstract: 'formula.functionList.SUMPRODUCT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMPRODUCT.functionParameter.array1.name',+ detail: 'formula.functionList.SUMPRODUCT.functionParameter.array1.detail',+ example: 'C2:C5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMPRODUCT.functionParameter.array2.name',+ detail: 'formula.functionList.SUMPRODUCT.functionParameter.array2.detail',+ example: 'D2:D5',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMSQ,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMSQ.description',+ abstract: 'formula.functionList.SUMSQ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMSQ.functionParameter.number1.name',+ detail: 'formula.functionList.SUMSQ.functionParameter.number1.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMSQ.functionParameter.number2.name',+ detail: 'formula.functionList.SUMSQ.functionParameter.number2.detail',+ example: '4',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMX2MY2,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMX2MY2.description',+ abstract: 'formula.functionList.SUMX2MY2.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMX2MY2.functionParameter.arrayX.name',+ detail: 'formula.functionList.SUMX2MY2.functionParameter.arrayX.detail',+ example: 'A2:A8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMX2MY2.functionParameter.arrayY.name',+ detail: 'formula.functionList.SUMX2MY2.functionParameter.arrayY.detail',+ example: 'B2:B8',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMX2PY2,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMX2PY2.description',+ abstract: 'formula.functionList.SUMX2PY2.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMX2PY2.functionParameter.arrayX.name',+ detail: 'formula.functionList.SUMX2PY2.functionParameter.arrayX.detail',+ example: 'A2:A8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMX2PY2.functionParameter.arrayY.name',+ detail: 'formula.functionList.SUMX2PY2.functionParameter.arrayY.detail',+ example: 'B2:B8',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.SUMXMY2,+ functionType: FunctionType.Math,+ description: 'formula.functionList.SUMXMY2.description',+ abstract: 'formula.functionList.SUMXMY2.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUMXMY2.functionParameter.arrayX.name',+ detail: 'formula.functionList.SUMXMY2.functionParameter.arrayX.detail',+ example: 'A2:A8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUMXMY2.functionParameter.arrayY.name',+ detail: 'formula.functionList.SUMXMY2.functionParameter.arrayY.detail',+ example: 'B2:B8',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.TAN,+ functionType: FunctionType.Math,+ description: 'formula.functionList.TAN.description',+ abstract: 'formula.functionList.TAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TAN.functionParameter.number.name',+ detail: 'formula.functionList.TAN.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.TANH,+ functionType: FunctionType.Math,+ description: 'formula.functionList.TANH.description',+ abstract: 'formula.functionList.TANH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TANH.functionParameter.number.name',+ detail: 'formula.functionList.TANH.functionParameter.number.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_MATH.TRUNC,+ functionType: FunctionType.Math,+ description: 'formula.functionList.TRUNC.description',+ abstract: 'formula.functionList.TRUNC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TRUNC.functionParameter.number.name',+ detail: 'formula.functionList.TRUNC.functionParameter.number.detail',+ example: '0.45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TRUNC.functionParameter.numDigits.name',+ detail: 'formula.functionList.TRUNC.functionParameter.numDigits.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/statistical.ts b/packages/formula/src/services/function-list/statistical.tsnew file mode 100644index 0000000000..c5937b7ba1--- /dev/null+++ b/packages/formula/src/services/function-list/statistical.ts@@ -0,0 +1,3067 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_STATISTICAL, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_STATISTICAL: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVEDEV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVEDEV.description',+ abstract: 'formula.functionList.AVEDEV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVEDEV.functionParameter.number1.name',+ detail: 'formula.functionList.AVEDEV.functionParameter.number1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVEDEV.functionParameter.number2.name',+ detail: 'formula.functionList.AVEDEV.functionParameter.number2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVERAGE,+ aliasFunctionName: 'formula.functionList.AVERAGE.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVERAGE.description',+ abstract: 'formula.functionList.AVERAGE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVERAGE.functionParameter.number1.name',+ detail: 'formula.functionList.AVERAGE.functionParameter.number1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGE.functionParameter.number2.name',+ detail: 'formula.functionList.AVERAGE.functionParameter.number2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVERAGE_WEIGHTED,+ aliasFunctionName: 'formula.functionList.AVERAGE_WEIGHTED.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVERAGE_WEIGHTED.description',+ abstract: 'formula.functionList.AVERAGE_WEIGHTED.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.values.name',+ detail: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.values.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.weights.name',+ detail: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.weights.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalValues.name',+ detail: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalValues.detail',+ example: '20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalWeights.name',+ detail: 'formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalWeights.detail',+ example: '3',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVERAGEA.description',+ abstract: 'formula.functionList.AVERAGEA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVERAGEA.functionParameter.value1.name',+ detail: 'formula.functionList.AVERAGEA.functionParameter.value1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEA.functionParameter.value2.name',+ detail: 'formula.functionList.AVERAGEA.functionParameter.value2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEIF,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVERAGEIF.description',+ abstract: 'formula.functionList.AVERAGEIF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVERAGEIF.functionParameter.range.name',+ detail: 'formula.functionList.AVERAGEIF.functionParameter.range.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEIF.functionParameter.criteria.name',+ detail: 'formula.functionList.AVERAGEIF.functionParameter.criteria.detail',+ example: '">5"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEIF.functionParameter.averageRange.name',+ detail: 'formula.functionList.AVERAGEIF.functionParameter.averageRange.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEIFS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.AVERAGEIFS.description',+ abstract: 'formula.functionList.AVERAGEIFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.AVERAGEIFS.functionParameter.averageRange.name',+ detail: 'formula.functionList.AVERAGEIFS.functionParameter.averageRange.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.name',+ detail: 'formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.detail',+ example: 'B1:B20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEIFS.functionParameter.criteria1.name',+ detail: 'formula.functionList.AVERAGEIFS.functionParameter.criteria1.detail',+ example: '">10"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.name',+ detail: 'formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.detail',+ example: 'C1:C20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.AVERAGEIFS.functionParameter.criteria2.name',+ detail: 'formula.functionList.AVERAGEIFS.functionParameter.criteria2.detail',+ example: '"<20"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.BETA_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.BETA_DIST.description',+ abstract: 'formula.functionList.BETA_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.x.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.x.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.alpha.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.beta.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.beta.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.A.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.A.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_DIST.functionParameter.B.name',+ detail: 'formula.functionList.BETA_DIST.functionParameter.B.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.BETA_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.BETA_INV.description',+ abstract: 'formula.functionList.BETA_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BETA_INV.functionParameter.probability.name',+ detail: 'formula.functionList.BETA_INV.functionParameter.probability.detail',+ example: '0.685470581',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_INV.functionParameter.alpha.name',+ detail: 'formula.functionList.BETA_INV.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_INV.functionParameter.beta.name',+ detail: 'formula.functionList.BETA_INV.functionParameter.beta.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_INV.functionParameter.A.name',+ detail: 'formula.functionList.BETA_INV.functionParameter.A.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BETA_INV.functionParameter.B.name',+ detail: 'formula.functionList.BETA_INV.functionParameter.B.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.BINOM_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.BINOM_DIST.description',+ abstract: 'formula.functionList.BINOM_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BINOM_DIST.functionParameter.numberS.name',+ detail: 'formula.functionList.BINOM_DIST.functionParameter.numberS.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST.functionParameter.trials.name',+ detail: 'formula.functionList.BINOM_DIST.functionParameter.trials.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST.functionParameter.probabilityS.name',+ detail: 'formula.functionList.BINOM_DIST.functionParameter.probabilityS.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.BINOM_DIST.functionParameter.cumulative.detail',+ example: 'false',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.BINOM_DIST_RANGE,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.BINOM_DIST_RANGE.description',+ abstract: 'formula.functionList.BINOM_DIST_RANGE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.trials.name',+ detail: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.trials.detail',+ example: '60',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.probabilityS.name',+ detail: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.probabilityS.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS.name',+ detail: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS.detail',+ example: '45',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS2.name',+ detail: 'formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS2.detail',+ example: '50',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.BINOM_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.BINOM_INV.description',+ abstract: 'formula.functionList.BINOM_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BINOM_INV.functionParameter.trials.name',+ detail: 'formula.functionList.BINOM_INV.functionParameter.trials.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_INV.functionParameter.probabilityS.name',+ detail: 'formula.functionList.BINOM_INV.functionParameter.probabilityS.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.BINOM_INV.functionParameter.alpha.name',+ detail: 'formula.functionList.BINOM_INV.functionParameter.alpha.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CHISQ_DIST.description',+ abstract: 'formula.functionList.CHISQ_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHISQ_DIST.functionParameter.x.name',+ detail: 'formula.functionList.CHISQ_DIST.functionParameter.x.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_DIST.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHISQ_DIST.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.CHISQ_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_DIST_RT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CHISQ_DIST_RT.description',+ abstract: 'formula.functionList.CHISQ_DIST_RT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHISQ_DIST_RT.functionParameter.x.name',+ detail: 'formula.functionList.CHISQ_DIST_RT.functionParameter.x.detail',+ example: '0.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_DIST_RT.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHISQ_DIST_RT.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CHISQ_INV.description',+ abstract: 'formula.functionList.CHISQ_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHISQ_INV.functionParameter.probability.name',+ detail: 'formula.functionList.CHISQ_INV.functionParameter.probability.detail',+ example: '0.93',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_INV.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHISQ_INV.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_INV_RT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CHISQ_INV_RT.description',+ abstract: 'formula.functionList.CHISQ_INV_RT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHISQ_INV_RT.functionParameter.probability.name',+ detail: 'formula.functionList.CHISQ_INV_RT.functionParameter.probability.detail',+ example: '0.93',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_INV_RT.functionParameter.degFreedom.name',+ detail: 'formula.functionList.CHISQ_INV_RT.functionParameter.degFreedom.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_TEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CHISQ_TEST.description',+ abstract: 'formula.functionList.CHISQ_TEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHISQ_TEST.functionParameter.actualRange.name',+ detail: 'formula.functionList.CHISQ_TEST.functionParameter.actualRange.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CHISQ_TEST.functionParameter.expectedRange.name',+ detail: 'formula.functionList.CHISQ_TEST.functionParameter.expectedRange.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CONFIDENCE_NORM,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CONFIDENCE_NORM.description',+ abstract: 'formula.functionList.CONFIDENCE_NORM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONFIDENCE_NORM.functionParameter.alpha.name',+ detail: 'formula.functionList.CONFIDENCE_NORM.functionParameter.alpha.detail',+ example: '0.05',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE_NORM.functionParameter.standardDev.name',+ detail: 'formula.functionList.CONFIDENCE_NORM.functionParameter.standardDev.detail',+ example: '2.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE_NORM.functionParameter.size.name',+ detail: 'formula.functionList.CONFIDENCE_NORM.functionParameter.size.detail',+ example: '50',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CONFIDENCE_T,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CONFIDENCE_T.description',+ abstract: 'formula.functionList.CONFIDENCE_T.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONFIDENCE_T.functionParameter.alpha.name',+ detail: 'formula.functionList.CONFIDENCE_T.functionParameter.alpha.detail',+ example: '0.05',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE_T.functionParameter.standardDev.name',+ detail: 'formula.functionList.CONFIDENCE_T.functionParameter.standardDev.detail',+ example: '2.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONFIDENCE_T.functionParameter.size.name',+ detail: 'formula.functionList.CONFIDENCE_T.functionParameter.size.detail',+ example: '50',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.CORREL,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.CORREL.description',+ abstract: 'formula.functionList.CORREL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CORREL.functionParameter.array1.name',+ detail: 'formula.functionList.CORREL.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CORREL.functionParameter.array2.name',+ detail: 'formula.functionList.CORREL.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COUNT,+ aliasFunctionName: 'formula.functionList.COUNT.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COUNT.description',+ abstract: 'formula.functionList.COUNT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUNT.functionParameter.value1.name',+ detail: 'formula.functionList.COUNT.functionParameter.value1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUNT.functionParameter.value2.name',+ detail: 'formula.functionList.COUNT.functionParameter.value2.detail',+ example: 'B2:B10',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COUNTA,+ aliasFunctionName: 'formula.functionList.COUNTA.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COUNTA.description',+ abstract: 'formula.functionList.COUNTA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUNTA.functionParameter.value1.name',+ detail: 'formula.functionList.COUNTA.functionParameter.value1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUNTA.functionParameter.value2.name',+ detail: 'formula.functionList.COUNTA.functionParameter.value2.detail',+ example: 'B2:B10',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COUNTBLANK,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COUNTBLANK.description',+ abstract: 'formula.functionList.COUNTBLANK.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUNTBLANK.functionParameter.range.name',+ detail: 'formula.functionList.COUNTBLANK.functionParameter.range.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COUNTIF,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COUNTIF.description',+ abstract: 'formula.functionList.COUNTIF.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUNTIF.functionParameter.range.name',+ detail: 'formula.functionList.COUNTIF.functionParameter.range.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUNTIF.functionParameter.criteria.name',+ detail: 'formula.functionList.COUNTIF.functionParameter.criteria.detail',+ example: '">5"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COUNTIFS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COUNTIFS.description',+ abstract: 'formula.functionList.COUNTIFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COUNTIFS.functionParameter.criteriaRange1.name',+ detail: 'formula.functionList.COUNTIFS.functionParameter.criteriaRange1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUNTIFS.functionParameter.criteria1.name',+ detail: 'formula.functionList.COUNTIFS.functionParameter.criteria1.detail',+ example: '">10"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COUNTIFS.functionParameter.criteriaRange2.name',+ detail: 'formula.functionList.COUNTIFS.functionParameter.criteriaRange2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.COUNTIFS.functionParameter.criteria2.name',+ detail: 'formula.functionList.COUNTIFS.functionParameter.criteria2.detail',+ example: '"<20"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COVARIANCE_P,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COVARIANCE_P.description',+ abstract: 'formula.functionList.COVARIANCE_P.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COVARIANCE_P.functionParameter.array1.name',+ detail: 'formula.functionList.COVARIANCE_P.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COVARIANCE_P.functionParameter.array2.name',+ detail: 'formula.functionList.COVARIANCE_P.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.COVARIANCE_S,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.COVARIANCE_S.description',+ abstract: 'formula.functionList.COVARIANCE_S.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.COVARIANCE_S.functionParameter.array1.name',+ detail: 'formula.functionList.COVARIANCE_S.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.COVARIANCE_S.functionParameter.array2.name',+ detail: 'formula.functionList.COVARIANCE_S.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.DEVSQ,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.DEVSQ.description',+ abstract: 'formula.functionList.DEVSQ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DEVSQ.functionParameter.number1.name',+ detail: 'formula.functionList.DEVSQ.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DEVSQ.functionParameter.number2.name',+ detail: 'formula.functionList.DEVSQ.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.EXPON_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.EXPON_DIST.description',+ abstract: 'formula.functionList.EXPON_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EXPON_DIST.functionParameter.x.name',+ detail: 'formula.functionList.EXPON_DIST.functionParameter.x.detail',+ example: '0.2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPON_DIST.functionParameter.lambda.name',+ detail: 'formula.functionList.EXPON_DIST.functionParameter.lambda.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXPON_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.EXPON_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.F_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.F_DIST.description',+ abstract: 'formula.functionList.F_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.F_DIST.functionParameter.x.name',+ detail: 'formula.functionList.F_DIST.functionParameter.x.detail',+ example: '15.2069',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_DIST.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.F_DIST.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_DIST.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.F_DIST.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.F_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.F_DIST_RT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.F_DIST_RT.description',+ abstract: 'formula.functionList.F_DIST_RT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.F_DIST_RT.functionParameter.x.name',+ detail: 'formula.functionList.F_DIST_RT.functionParameter.x.detail',+ example: '15.2069',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_DIST_RT.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.F_DIST_RT.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_DIST_RT.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.F_DIST_RT.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.F_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.F_INV.description',+ abstract: 'formula.functionList.F_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.F_INV.functionParameter.probability.name',+ detail: 'formula.functionList.F_INV.functionParameter.probability.detail',+ example: '0.01',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_INV.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.F_INV.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_INV.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.F_INV.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.F_INV_RT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.F_INV_RT.description',+ abstract: 'formula.functionList.F_INV_RT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.F_INV_RT.functionParameter.probability.name',+ detail: 'formula.functionList.F_INV_RT.functionParameter.probability.detail',+ example: '0.01',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_INV_RT.functionParameter.degFreedom1.name',+ detail: 'formula.functionList.F_INV_RT.functionParameter.degFreedom1.detail',+ example: '6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_INV_RT.functionParameter.degFreedom2.name',+ detail: 'formula.functionList.F_INV_RT.functionParameter.degFreedom2.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.F_TEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.F_TEST.description',+ abstract: 'formula.functionList.F_TEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.F_TEST.functionParameter.array1.name',+ detail: 'formula.functionList.F_TEST.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.F_TEST.functionParameter.array2.name',+ detail: 'formula.functionList.F_TEST.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FISHER,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FISHER.description',+ abstract: 'formula.functionList.FISHER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FISHER.functionParameter.x.name',+ detail: 'formula.functionList.FISHER.functionParameter.x.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FISHERINV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FISHERINV.description',+ abstract: 'formula.functionList.FISHERINV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FISHERINV.functionParameter.y.name',+ detail: 'formula.functionList.FISHERINV.functionParameter.y.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST.description',+ abstract: 'formula.functionList.FORECAST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST.functionParameter.x.name',+ detail: 'formula.functionList.FORECAST.functionParameter.x.detail',+ example: '30',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST.functionParameter.knownYs.name',+ detail: 'formula.functionList.FORECAST.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST.functionParameter.knownXs.name',+ detail: 'formula.functionList.FORECAST.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST_ETS.description',+ abstract: 'formula.functionList.FORECAST_ETS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.targetDate.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.targetDate.detail',+ example: 'A10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.values.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.values.detail',+ example: 'B2:B9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.timeline.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.timeline.detail',+ example: 'A2:A9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.seasonality.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.seasonality.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.dataCompletion.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.dataCompletion.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS.functionParameter.aggregation.name',+ detail: 'formula.functionList.FORECAST_ETS.functionParameter.aggregation.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_CONFINT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST_ETS_CONFINT.description',+ abstract: 'formula.functionList.FORECAST_ETS_CONFINT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.targetDate.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.targetDate.detail',+ example: 'A10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.values.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.values.detail',+ example: 'B2:B9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.timeline.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.timeline.detail',+ example: 'A2:A9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.confidenceLevel.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.confidenceLevel.detail',+ example: '0.95',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.seasonality.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.seasonality.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.dataCompletion.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.dataCompletion.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.aggregation.name',+ detail: 'formula.functionList.FORECAST_ETS_CONFINT.functionParameter.aggregation.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_SEASONALITY,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST_ETS_SEASONALITY.description',+ abstract: 'formula.functionList.FORECAST_ETS_SEASONALITY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.values.name',+ detail: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.values.detail',+ example: 'B2:B9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.timeline.name',+ detail: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.timeline.detail',+ example: 'A2:A9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.dataCompletion.name',+ detail: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.dataCompletion.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.aggregation.name',+ detail: 'formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.aggregation.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_STAT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST_ETS_STAT.description',+ abstract: 'formula.functionList.FORECAST_ETS_STAT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.values.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.values.detail',+ example: 'B2:B9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.timeline.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.timeline.detail',+ example: 'A2:A9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.statisticType.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.statisticType.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.seasonality.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.seasonality.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.dataCompletion.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.dataCompletion.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.aggregation.name',+ detail: 'formula.functionList.FORECAST_ETS_STAT.functionParameter.aggregation.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_LINEAR,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FORECAST_LINEAR.description',+ abstract: 'formula.functionList.FORECAST_LINEAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FORECAST_LINEAR.functionParameter.x.name',+ detail: 'formula.functionList.FORECAST_LINEAR.functionParameter.x.detail',+ example: '30',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_LINEAR.functionParameter.knownYs.name',+ detail: 'formula.functionList.FORECAST_LINEAR.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FORECAST_LINEAR.functionParameter.knownXs.name',+ detail: 'formula.functionList.FORECAST_LINEAR.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.FREQUENCY,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.FREQUENCY.description',+ abstract: 'formula.functionList.FREQUENCY.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FREQUENCY.functionParameter.dataArray.name',+ detail: 'formula.functionList.FREQUENCY.functionParameter.dataArray.detail',+ example: 'A2:A10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FREQUENCY.functionParameter.binsArray.name',+ detail: 'formula.functionList.FREQUENCY.functionParameter.binsArray.detail',+ example: 'B2:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAMMA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAMMA.description',+ abstract: 'formula.functionList.GAMMA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMA.functionParameter.number.name',+ detail: 'formula.functionList.GAMMA.functionParameter.number.detail',+ example: '2.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAMMA_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAMMA_DIST.description',+ abstract: 'formula.functionList.GAMMA_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMA_DIST.functionParameter.x.name',+ detail: 'formula.functionList.GAMMA_DIST.functionParameter.x.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMA_DIST.functionParameter.alpha.name',+ detail: 'formula.functionList.GAMMA_DIST.functionParameter.alpha.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMA_DIST.functionParameter.beta.name',+ detail: 'formula.functionList.GAMMA_DIST.functionParameter.beta.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMA_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.GAMMA_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAMMA_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAMMA_INV.description',+ abstract: 'formula.functionList.GAMMA_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMA_INV.functionParameter.probability.name',+ detail: 'formula.functionList.GAMMA_INV.functionParameter.probability.detail',+ example: '0.068094',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMA_INV.functionParameter.alpha.name',+ detail: 'formula.functionList.GAMMA_INV.functionParameter.alpha.detail',+ example: '9',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GAMMA_INV.functionParameter.beta.name',+ detail: 'formula.functionList.GAMMA_INV.functionParameter.beta.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAMMALN,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAMMALN.description',+ abstract: 'formula.functionList.GAMMALN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMALN.functionParameter.x.name',+ detail: 'formula.functionList.GAMMALN.functionParameter.x.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAMMALN_PRECISE,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAMMALN_PRECISE.description',+ abstract: 'formula.functionList.GAMMALN_PRECISE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAMMALN_PRECISE.functionParameter.x.name',+ detail: 'formula.functionList.GAMMALN_PRECISE.functionParameter.x.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GAUSS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GAUSS.description',+ abstract: 'formula.functionList.GAUSS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GAUSS.functionParameter.z.name',+ detail: 'formula.functionList.GAUSS.functionParameter.z.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GEOMEAN,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GEOMEAN.description',+ abstract: 'formula.functionList.GEOMEAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GEOMEAN.functionParameter.number1.name',+ detail: 'formula.functionList.GEOMEAN.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GEOMEAN.functionParameter.number2.name',+ detail: 'formula.functionList.GEOMEAN.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.GROWTH,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.GROWTH.description',+ abstract: 'formula.functionList.GROWTH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.GROWTH.functionParameter.knownYs.name',+ detail: 'formula.functionList.GROWTH.functionParameter.knownYs.detail',+ example: 'B2:B7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GROWTH.functionParameter.knownXs.name',+ detail: 'formula.functionList.GROWTH.functionParameter.knownXs.detail',+ example: 'A2:A7',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GROWTH.functionParameter.newXs.name',+ detail: 'formula.functionList.GROWTH.functionParameter.newXs.detail',+ example: 'A9:A10',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.GROWTH.functionParameter.constb.name',+ detail: 'formula.functionList.GROWTH.functionParameter.constb.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.HARMEAN,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.HARMEAN.description',+ abstract: 'formula.functionList.HARMEAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HARMEAN.functionParameter.number1.name',+ detail: 'formula.functionList.HARMEAN.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HARMEAN.functionParameter.number2.name',+ detail: 'formula.functionList.HARMEAN.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.HYPGEOM_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.HYPGEOM_DIST.description',+ abstract: 'formula.functionList.HYPGEOM_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.HYPGEOM_DIST.functionParameter.sampleS.name',+ detail: 'formula.functionList.HYPGEOM_DIST.functionParameter.sampleS.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOM_DIST.functionParameter.numberSample.name',+ detail: 'formula.functionList.HYPGEOM_DIST.functionParameter.numberSample.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOM_DIST.functionParameter.populationS.name',+ detail: 'formula.functionList.HYPGEOM_DIST.functionParameter.populationS.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOM_DIST.functionParameter.numberPop.name',+ detail: 'formula.functionList.HYPGEOM_DIST.functionParameter.numberPop.detail',+ example: '20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.HYPGEOM_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.HYPGEOM_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.INTERCEPT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.INTERCEPT.description',+ abstract: 'formula.functionList.INTERCEPT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.INTERCEPT.functionParameter.knownYs.name',+ detail: 'formula.functionList.INTERCEPT.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.INTERCEPT.functionParameter.knownXs.name',+ detail: 'formula.functionList.INTERCEPT.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.KURT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.KURT.description',+ abstract: 'formula.functionList.KURT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.KURT.functionParameter.number1.name',+ detail: 'formula.functionList.KURT.functionParameter.number1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.KURT.functionParameter.number2.name',+ detail: 'formula.functionList.KURT.functionParameter.number2.detail',+ example: '4',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.LARGE,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.LARGE.description',+ abstract: 'formula.functionList.LARGE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LARGE.functionParameter.array.name',+ detail: 'formula.functionList.LARGE.functionParameter.array.detail',+ example: 'A2:B6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LARGE.functionParameter.k.name',+ detail: 'formula.functionList.LARGE.functionParameter.k.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.LINEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.LINEST.description',+ abstract: 'formula.functionList.LINEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LINEST.functionParameter.knownYs.name',+ detail: 'formula.functionList.LINEST.functionParameter.knownYs.detail',+ example: 'B2:B7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LINEST.functionParameter.knownXs.name',+ detail: 'formula.functionList.LINEST.functionParameter.knownXs.detail',+ example: 'A2:A7',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LINEST.functionParameter.constb.name',+ detail: 'formula.functionList.LINEST.functionParameter.constb.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LINEST.functionParameter.stats.name',+ detail: 'formula.functionList.LINEST.functionParameter.stats.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.LOGEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.LOGEST.description',+ abstract: 'formula.functionList.LOGEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOGEST.functionParameter.knownYs.name',+ detail: 'formula.functionList.LOGEST.functionParameter.knownYs.detail',+ example: 'B2:B7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGEST.functionParameter.knownXs.name',+ detail: 'formula.functionList.LOGEST.functionParameter.knownXs.detail',+ example: 'A2:A7',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGEST.functionParameter.constb.name',+ detail: 'formula.functionList.LOGEST.functionParameter.constb.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGEST.functionParameter.stats.name',+ detail: 'formula.functionList.LOGEST.functionParameter.stats.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.LOGNORM_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.LOGNORM_DIST.description',+ abstract: 'formula.functionList.LOGNORM_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOGNORM_DIST.functionParameter.x.name',+ detail: 'formula.functionList.LOGNORM_DIST.functionParameter.x.detail',+ example: '42',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORM_DIST.functionParameter.mean.name',+ detail: 'formula.functionList.LOGNORM_DIST.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORM_DIST.functionParameter.standardDev.name',+ detail: 'formula.functionList.LOGNORM_DIST.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORM_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.LOGNORM_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.LOGNORM_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.LOGNORM_INV.description',+ abstract: 'formula.functionList.LOGNORM_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOGNORM_INV.functionParameter.probability.name',+ detail: 'formula.functionList.LOGNORM_INV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORM_INV.functionParameter.mean.name',+ detail: 'formula.functionList.LOGNORM_INV.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LOGNORM_INV.functionParameter.standardDev.name',+ detail: 'formula.functionList.LOGNORM_INV.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MARGINOFERROR,+ aliasFunctionName: 'formula.functionList.MARGINOFERROR.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MARGINOFERROR.description',+ abstract: 'formula.functionList.MARGINOFERROR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MARGINOFERROR.functionParameter.range.name',+ detail: 'formula.functionList.MARGINOFERROR.functionParameter.range.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MARGINOFERROR.functionParameter.confidence.name',+ detail: 'formula.functionList.MARGINOFERROR.functionParameter.confidence.detail',+ example: '0.95',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MAX,+ aliasFunctionName: 'formula.functionList.MAX.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MAX.description',+ abstract: 'formula.functionList.MAX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MAX.functionParameter.number1.name',+ detail: 'formula.functionList.MAX.functionParameter.number1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAX.functionParameter.number2.name',+ detail: 'formula.functionList.MAX.functionParameter.number2.detail',+ example: 'B2:B10',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MAXA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MAXA.description',+ abstract: 'formula.functionList.MAXA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MAXA.functionParameter.value1.name',+ detail: 'formula.functionList.MAXA.functionParameter.value1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAXA.functionParameter.value2.name',+ detail: 'formula.functionList.MAXA.functionParameter.value2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MAXIFS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MAXIFS.description',+ abstract: 'formula.functionList.MAXIFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MAXIFS.functionParameter.maxRange.name',+ detail: 'formula.functionList.MAXIFS.functionParameter.maxRange.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAXIFS.functionParameter.criteriaRange1.name',+ detail: 'formula.functionList.MAXIFS.functionParameter.criteriaRange1.detail',+ example: 'B1:B20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAXIFS.functionParameter.criteria1.name',+ detail: 'formula.functionList.MAXIFS.functionParameter.criteria1.detail',+ example: '">10"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MAXIFS.functionParameter.criteriaRange2.name',+ detail: 'formula.functionList.MAXIFS.functionParameter.criteriaRange2.detail',+ example: 'C1:C20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.MAXIFS.functionParameter.criteria2.name',+ detail: 'formula.functionList.MAXIFS.functionParameter.criteria2.detail',+ example: '"<20"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MEDIAN,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MEDIAN.description',+ abstract: 'formula.functionList.MEDIAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MEDIAN.functionParameter.number1.name',+ detail: 'formula.functionList.MEDIAN.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MEDIAN.functionParameter.number2.name',+ detail: 'formula.functionList.MEDIAN.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MIN,+ aliasFunctionName: 'formula.functionList.MIN.aliasFunctionName',+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MIN.description',+ abstract: 'formula.functionList.MIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MIN.functionParameter.number1.name',+ detail: 'formula.functionList.MIN.functionParameter.number1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MIN.functionParameter.number2.name',+ detail: 'formula.functionList.MIN.functionParameter.number2.detail',+ example: 'B2:B10',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MINA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MINA.description',+ abstract: 'formula.functionList.MINA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MINA.functionParameter.value1.name',+ detail: 'formula.functionList.MINA.functionParameter.value1.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MINA.functionParameter.value2.name',+ detail: 'formula.functionList.MINA.functionParameter.value2.detail',+ example: 'B1:B20',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MINIFS,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MINIFS.description',+ abstract: 'formula.functionList.MINIFS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MINIFS.functionParameter.minRange.name',+ detail: 'formula.functionList.MINIFS.functionParameter.minRange.detail',+ example: 'A1:A20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MINIFS.functionParameter.criteriaRange1.name',+ detail: 'formula.functionList.MINIFS.functionParameter.criteriaRange1.detail',+ example: 'B1:B20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MINIFS.functionParameter.criteria1.name',+ detail: 'formula.functionList.MINIFS.functionParameter.criteria1.detail',+ example: '">10"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MINIFS.functionParameter.criteriaRange2.name',+ detail: 'formula.functionList.MINIFS.functionParameter.criteriaRange2.detail',+ example: 'C1:C20',+ require: 0,+ repeat: 1,+ },+ {+ name: 'formula.functionList.MINIFS.functionParameter.criteria2.name',+ detail: 'formula.functionList.MINIFS.functionParameter.criteria2.detail',+ example: '"<20"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MODE_MULT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MODE_MULT.description',+ abstract: 'formula.functionList.MODE_MULT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MODE_MULT.functionParameter.number1.name',+ detail: 'formula.functionList.MODE_MULT.functionParameter.number1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MODE_MULT.functionParameter.number2.name',+ detail: 'formula.functionList.MODE_MULT.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.MODE_SNGL,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.MODE_SNGL.description',+ abstract: 'formula.functionList.MODE_SNGL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MODE_SNGL.functionParameter.number1.name',+ detail: 'formula.functionList.MODE_SNGL.functionParameter.number1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MODE_SNGL.functionParameter.number2.name',+ detail: 'formula.functionList.MODE_SNGL.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.NEGBINOM_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.NEGBINOM_DIST.description',+ abstract: 'formula.functionList.NEGBINOM_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NEGBINOM_DIST.functionParameter.numberF.name',+ detail: 'formula.functionList.NEGBINOM_DIST.functionParameter.numberF.detail',+ example: '10',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NEGBINOM_DIST.functionParameter.numberS.name',+ detail: 'formula.functionList.NEGBINOM_DIST.functionParameter.numberS.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NEGBINOM_DIST.functionParameter.probabilityS.name',+ detail: 'formula.functionList.NEGBINOM_DIST.functionParameter.probabilityS.detail',+ example: '0.25',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NEGBINOM_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.NEGBINOM_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.NORM_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.NORM_DIST.description',+ abstract: 'formula.functionList.NORM_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORM_DIST.functionParameter.x.name',+ detail: 'formula.functionList.NORM_DIST.functionParameter.x.detail',+ example: '42',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_DIST.functionParameter.mean.name',+ detail: 'formula.functionList.NORM_DIST.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_DIST.functionParameter.standardDev.name',+ detail: 'formula.functionList.NORM_DIST.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.NORM_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.NORM_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.NORM_INV.description',+ abstract: 'formula.functionList.NORM_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORM_INV.functionParameter.probability.name',+ detail: 'formula.functionList.NORM_INV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_INV.functionParameter.mean.name',+ detail: 'formula.functionList.NORM_INV.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_INV.functionParameter.standardDev.name',+ detail: 'formula.functionList.NORM_INV.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.NORM_S_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.NORM_S_DIST.description',+ abstract: 'formula.functionList.NORM_S_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORM_S_DIST.functionParameter.z.name',+ detail: 'formula.functionList.NORM_S_DIST.functionParameter.z.detail',+ example: '1.333333',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NORM_S_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.NORM_S_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.NORM_S_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.NORM_S_INV.description',+ abstract: 'formula.functionList.NORM_S_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NORM_S_INV.functionParameter.probability.name',+ detail: 'formula.functionList.NORM_S_INV.functionParameter.probability.detail',+ example: '0.908789',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PEARSON,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PEARSON.description',+ abstract: 'formula.functionList.PEARSON.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PEARSON.functionParameter.array1.name',+ detail: 'formula.functionList.PEARSON.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PEARSON.functionParameter.array2.name',+ detail: 'formula.functionList.PEARSON.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERCENTILE_EXC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERCENTILE_EXC.description',+ abstract: 'formula.functionList.PERCENTILE_EXC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTILE_EXC.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTILE_EXC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTILE_EXC.functionParameter.k.name',+ detail: 'formula.functionList.PERCENTILE_EXC.functionParameter.k.detail',+ example: '0.3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERCENTILE_INC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERCENTILE_INC.description',+ abstract: 'formula.functionList.PERCENTILE_INC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTILE_INC.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTILE_INC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTILE_INC.functionParameter.k.name',+ detail: 'formula.functionList.PERCENTILE_INC.functionParameter.k.detail',+ example: '0.3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERCENTRANK_EXC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERCENTRANK_EXC.description',+ abstract: 'formula.functionList.PERCENTRANK_EXC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTRANK_EXC.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTRANK_EXC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK_EXC.functionParameter.x.name',+ detail: 'formula.functionList.PERCENTRANK_EXC.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK_EXC.functionParameter.significance.name',+ detail: 'formula.functionList.PERCENTRANK_EXC.functionParameter.significance.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERCENTRANK_INC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERCENTRANK_INC.description',+ abstract: 'formula.functionList.PERCENTRANK_INC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERCENTRANK_INC.functionParameter.array.name',+ detail: 'formula.functionList.PERCENTRANK_INC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK_INC.functionParameter.x.name',+ detail: 'formula.functionList.PERCENTRANK_INC.functionParameter.x.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERCENTRANK_INC.functionParameter.significance.name',+ detail: 'formula.functionList.PERCENTRANK_INC.functionParameter.significance.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERMUT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERMUT.description',+ abstract: 'formula.functionList.PERMUT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERMUT.functionParameter.number.name',+ detail: 'formula.functionList.PERMUT.functionParameter.number.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERMUT.functionParameter.numberChosen.name',+ detail: 'formula.functionList.PERMUT.functionParameter.numberChosen.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PERMUTATIONA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PERMUTATIONA.description',+ abstract: 'formula.functionList.PERMUTATIONA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PERMUT.functionParameter.number.name',+ detail: 'formula.functionList.PERMUT.functionParameter.number.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PERMUT.functionParameter.numberChosen.name',+ detail: 'formula.functionList.PERMUT.functionParameter.numberChosen.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PHI,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PHI.description',+ abstract: 'formula.functionList.PHI.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PHI.functionParameter.x.name',+ detail: 'formula.functionList.PHI.functionParameter.x.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.POISSON_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.POISSON_DIST.description',+ abstract: 'formula.functionList.POISSON_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.POISSON_DIST.functionParameter.x.name',+ detail: 'formula.functionList.POISSON_DIST.functionParameter.x.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.POISSON_DIST.functionParameter.mean.name',+ detail: 'formula.functionList.POISSON_DIST.functionParameter.mean.detail',+ example: '5',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.POISSON_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.POISSON_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.PROB,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.PROB.description',+ abstract: 'formula.functionList.PROB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PROB.functionParameter.xRange.name',+ detail: 'formula.functionList.PROB.functionParameter.xRange.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PROB.functionParameter.probRange.name',+ detail: 'formula.functionList.PROB.functionParameter.probRange.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PROB.functionParameter.lowerLimit.name',+ detail: 'formula.functionList.PROB.functionParameter.lowerLimit.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.PROB.functionParameter.upperLimit.name',+ detail: 'formula.functionList.PROB.functionParameter.upperLimit.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.QUARTILE_EXC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.QUARTILE_EXC.description',+ abstract: 'formula.functionList.QUARTILE_EXC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.QUARTILE_EXC.functionParameter.array.name',+ detail: 'formula.functionList.QUARTILE_EXC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.QUARTILE_EXC.functionParameter.quart.name',+ detail: 'formula.functionList.QUARTILE_EXC.functionParameter.quart.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.QUARTILE_INC,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.QUARTILE_INC.description',+ abstract: 'formula.functionList.QUARTILE_INC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.QUARTILE_INC.functionParameter.array.name',+ detail: 'formula.functionList.QUARTILE_INC.functionParameter.array.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.QUARTILE_INC.functionParameter.quart.name',+ detail: 'formula.functionList.QUARTILE_INC.functionParameter.quart.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.RANK_AVG,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.RANK_AVG.description',+ abstract: 'formula.functionList.RANK_AVG.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RANK_AVG.functionParameter.number.name',+ detail: 'formula.functionList.RANK_AVG.functionParameter.number.detail',+ example: 'A3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK_AVG.functionParameter.ref.name',+ detail: 'formula.functionList.RANK_AVG.functionParameter.ref.detail',+ example: 'A2:A6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK_AVG.functionParameter.order.name',+ detail: 'formula.functionList.RANK_AVG.functionParameter.order.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.RANK_EQ,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.RANK_EQ.description',+ abstract: 'formula.functionList.RANK_EQ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RANK_EQ.functionParameter.number.name',+ detail: 'formula.functionList.RANK_EQ.functionParameter.number.detail',+ example: 'A3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK_EQ.functionParameter.ref.name',+ detail: 'formula.functionList.RANK_EQ.functionParameter.ref.detail',+ example: 'A2:A6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RANK_EQ.functionParameter.order.name',+ detail: 'formula.functionList.RANK_EQ.functionParameter.order.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.RSQ,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.RSQ.description',+ abstract: 'formula.functionList.RSQ.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RSQ.functionParameter.knownYs.name',+ detail: 'formula.functionList.RSQ.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RSQ.functionParameter.knownXs.name',+ detail: 'formula.functionList.RSQ.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.SKEW,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.SKEW.description',+ abstract: 'formula.functionList.SKEW.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SKEW.functionParameter.number1.name',+ detail: 'formula.functionList.SKEW.functionParameter.number1.detail',+ example: 'A1:C3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SKEW.functionParameter.number2.name',+ detail: 'formula.functionList.SKEW.functionParameter.number2.detail',+ example: '4',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.SKEW_P,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.SKEW_P.description',+ abstract: 'formula.functionList.SKEW_P.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SKEW_P.functionParameter.number1.name',+ detail: 'formula.functionList.SKEW_P.functionParameter.number1.detail',+ example: 'A1:C3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SKEW_P.functionParameter.number2.name',+ detail: 'formula.functionList.SKEW_P.functionParameter.number2.detail',+ example: '4',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.SLOPE,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.SLOPE.description',+ abstract: 'formula.functionList.SLOPE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SLOPE.functionParameter.knownYs.name',+ detail: 'formula.functionList.SLOPE.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SLOPE.functionParameter.knownXs.name',+ detail: 'formula.functionList.SLOPE.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.SMALL,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.SMALL.description',+ abstract: 'formula.functionList.SMALL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SMALL.functionParameter.array.name',+ detail: 'formula.functionList.SMALL.functionParameter.array.detail',+ example: 'A2:B6',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SMALL.functionParameter.k.name',+ detail: 'formula.functionList.SMALL.functionParameter.k.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STANDARDIZE,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STANDARDIZE.description',+ abstract: 'formula.functionList.STANDARDIZE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STANDARDIZE.functionParameter.x.name',+ detail: 'formula.functionList.STANDARDIZE.functionParameter.x.detail',+ example: '42',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STANDARDIZE.functionParameter.mean.name',+ detail: 'formula.functionList.STANDARDIZE.functionParameter.mean.detail',+ example: '40',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STANDARDIZE.functionParameter.standardDev.name',+ detail: 'formula.functionList.STANDARDIZE.functionParameter.standardDev.detail',+ example: '1.5',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STDEV_P,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STDEV_P.description',+ abstract: 'formula.functionList.STDEV_P.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEV_P.functionParameter.number1.name',+ detail: 'formula.functionList.STDEV_P.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEV_P.functionParameter.number2.name',+ detail: 'formula.functionList.STDEV_P.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STDEV_S,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STDEV_S.description',+ abstract: 'formula.functionList.STDEV_S.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEV_S.functionParameter.number1.name',+ detail: 'formula.functionList.STDEV_S.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEV_S.functionParameter.number2.name',+ detail: 'formula.functionList.STDEV_S.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STDEVA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STDEVA.description',+ abstract: 'formula.functionList.STDEVA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEVA.functionParameter.value1.name',+ detail: 'formula.functionList.STDEVA.functionParameter.value1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEVA.functionParameter.value2.name',+ detail: 'formula.functionList.STDEVA.functionParameter.value2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STDEVPA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STDEVPA.description',+ abstract: 'formula.functionList.STDEVPA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STDEVPA.functionParameter.value1.name',+ detail: 'formula.functionList.STDEVPA.functionParameter.value1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STDEVPA.functionParameter.value2.name',+ detail: 'formula.functionList.STDEVPA.functionParameter.value2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.STEYX,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.STEYX.description',+ abstract: 'formula.functionList.STEYX.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.STEYX.functionParameter.knownYs.name',+ detail: 'formula.functionList.STEYX.functionParameter.knownYs.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.STEYX.functionParameter.knownXs.name',+ detail: 'formula.functionList.STEYX.functionParameter.knownXs.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_DIST.description',+ abstract: 'formula.functionList.T_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_DIST.functionParameter.x.name',+ detail: 'formula.functionList.T_DIST.functionParameter.x.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_DIST.functionParameter.degFreedom.name',+ detail: 'formula.functionList.T_DIST.functionParameter.degFreedom.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.T_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_DIST_2T,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_DIST_2T.description',+ abstract: 'formula.functionList.T_DIST_2T.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_DIST_2T.functionParameter.x.name',+ detail: 'formula.functionList.T_DIST_2T.functionParameter.x.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_DIST_2T.functionParameter.degFreedom.name',+ detail: 'formula.functionList.T_DIST_2T.functionParameter.degFreedom.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_DIST_RT,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_DIST_RT.description',+ abstract: 'formula.functionList.T_DIST_RT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_DIST_RT.functionParameter.x.name',+ detail: 'formula.functionList.T_DIST_RT.functionParameter.x.detail',+ example: '8',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_DIST_RT.functionParameter.degFreedom.name',+ detail: 'formula.functionList.T_DIST_RT.functionParameter.degFreedom.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_INV,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_INV.description',+ abstract: 'formula.functionList.T_INV.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_INV.functionParameter.probability.name',+ detail: 'formula.functionList.T_INV.functionParameter.probability.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_INV.functionParameter.degFreedom.name',+ detail: 'formula.functionList.T_INV.functionParameter.degFreedom.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_INV_2T,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_INV_2T.description',+ abstract: 'formula.functionList.T_INV_2T.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_INV_2T.functionParameter.probability.name',+ detail: 'formula.functionList.T_INV_2T.functionParameter.probability.detail',+ example: '0.75',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_INV_2T.functionParameter.degFreedom.name',+ detail: 'formula.functionList.T_INV_2T.functionParameter.degFreedom.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.T_TEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.T_TEST.description',+ abstract: 'formula.functionList.T_TEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T_TEST.functionParameter.array1.name',+ detail: 'formula.functionList.T_TEST.functionParameter.array1.detail',+ example: 'A1:A4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_TEST.functionParameter.array2.name',+ detail: 'formula.functionList.T_TEST.functionParameter.array2.detail',+ example: 'B1:B4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_TEST.functionParameter.tails.name',+ detail: 'formula.functionList.T_TEST.functionParameter.tails.detail',+ example: '2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.T_TEST.functionParameter.type.name',+ detail: 'formula.functionList.T_TEST.functionParameter.type.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.TREND,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.TREND.description',+ abstract: 'formula.functionList.TREND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TREND.functionParameter.knownYs.name',+ detail: 'formula.functionList.TREND.functionParameter.knownYs.detail',+ example: 'B2:B7',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TREND.functionParameter.knownXs.name',+ detail: 'formula.functionList.TREND.functionParameter.knownXs.detail',+ example: 'A2:A7',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TREND.functionParameter.newXs.name',+ detail: 'formula.functionList.TREND.functionParameter.newXs.detail',+ example: 'A9:A10',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TREND.functionParameter.constb.name',+ detail: 'formula.functionList.TREND.functionParameter.constb.detail',+ example: 'true',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.TRIMMEAN,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.TRIMMEAN.description',+ abstract: 'formula.functionList.TRIMMEAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TRIMMEAN.functionParameter.array.name',+ detail: 'formula.functionList.TRIMMEAN.functionParameter.array.detail',+ example: 'A2:A12',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TRIMMEAN.functionParameter.percent.name',+ detail: 'formula.functionList.TRIMMEAN.functionParameter.percent.detail',+ example: '0.2',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.VAR_P,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.VAR_P.description',+ abstract: 'formula.functionList.VAR_P.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VAR_P.functionParameter.number1.name',+ detail: 'formula.functionList.VAR_P.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VAR_P.functionParameter.number2.name',+ detail: 'formula.functionList.VAR_P.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.VAR_S,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.VAR_S.description',+ abstract: 'formula.functionList.VAR_S.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VAR_S.functionParameter.number1.name',+ detail: 'formula.functionList.VAR_S.functionParameter.number1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VAR_S.functionParameter.number2.name',+ detail: 'formula.functionList.VAR_S.functionParameter.number2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.VARA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.VARA.description',+ abstract: 'formula.functionList.VARA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VARA.functionParameter.value1.name',+ detail: 'formula.functionList.VARA.functionParameter.value1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VARA.functionParameter.value2.name',+ detail: 'formula.functionList.VARA.functionParameter.value2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.VARPA,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.VARPA.description',+ abstract: 'formula.functionList.VARPA.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VARPA.functionParameter.value1.name',+ detail: 'formula.functionList.VARPA.functionParameter.value1.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VARPA.functionParameter.value2.name',+ detail: 'formula.functionList.VARPA.functionParameter.value2.detail',+ example: '2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.WEIBULL_DIST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.WEIBULL_DIST.description',+ abstract: 'formula.functionList.WEIBULL_DIST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.WEIBULL_DIST.functionParameter.x.name',+ detail: 'formula.functionList.WEIBULL_DIST.functionParameter.x.detail',+ example: '105',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL_DIST.functionParameter.alpha.name',+ detail: 'formula.functionList.WEIBULL_DIST.functionParameter.alpha.detail',+ example: '20',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL_DIST.functionParameter.beta.name',+ detail: 'formula.functionList.WEIBULL_DIST.functionParameter.beta.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.WEIBULL_DIST.functionParameter.cumulative.name',+ detail: 'formula.functionList.WEIBULL_DIST.functionParameter.cumulative.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_STATISTICAL.Z_TEST,+ functionType: FunctionType.Statistical,+ description: 'formula.functionList.Z_TEST.description',+ abstract: 'formula.functionList.Z_TEST.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.Z_TEST.functionParameter.array.name',+ detail: 'formula.functionList.Z_TEST.functionParameter.array.detail',+ example: 'A2:A11',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.Z_TEST.functionParameter.x.name',+ detail: 'formula.functionList.Z_TEST.functionParameter.x.detail',+ example: '4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.Z_TEST.functionParameter.sigma.name',+ detail: 'formula.functionList.Z_TEST.functionParameter.sigma.detail',+ example: '10',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/formula/src/services/function-list/text.ts b/packages/formula/src/services/function-list/text.tsnew file mode 100644index 0000000000..7a53e455ba--- /dev/null+++ b/packages/formula/src/services/function-list/text.ts@@ -0,0 +1,1269 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { IFunctionInfo } from '@univerjs/engine-formula';+import { FUNCTION_NAMES_TEXT, FunctionType } from '@univerjs/engine-formula';++export const FUNCTION_LIST_TEXT: IFunctionInfo[] = [+ {+ functionName: FUNCTION_NAMES_TEXT.ASC,+ functionType: FunctionType.Text,+ description: 'formula.functionList.ASC.description',+ abstract: 'formula.functionList.ASC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ASC.functionParameter.text.name',+ detail: 'formula.functionList.ASC.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.ARRAYTOTEXT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.ARRAYTOTEXT.description',+ abstract: 'formula.functionList.ARRAYTOTEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.ARRAYTOTEXT.functionParameter.array.name',+ detail: 'formula.functionList.ARRAYTOTEXT.functionParameter.array.detail',+ example: 'A2:B4',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.ARRAYTOTEXT.functionParameter.format.name',+ detail: 'formula.functionList.ARRAYTOTEXT.functionParameter.format.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.BAHTTEXT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.BAHTTEXT.description',+ abstract: 'formula.functionList.BAHTTEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.BAHTTEXT.functionParameter.number.name',+ detail: 'formula.functionList.BAHTTEXT.functionParameter.number.detail',+ example: '1234',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CHAR,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CHAR.description',+ abstract: 'formula.functionList.CHAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CHAR.functionParameter.number.name',+ detail: 'formula.functionList.CHAR.functionParameter.number.detail',+ example: '65',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CLEAN,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CLEAN.description',+ abstract: 'formula.functionList.CLEAN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CLEAN.functionParameter.text.name',+ detail: 'formula.functionList.CLEAN.functionParameter.text.detail',+ example: 'CHAR(1)&"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CODE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CODE.description',+ abstract: 'formula.functionList.CODE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CODE.functionParameter.text.name',+ detail: 'formula.functionList.CODE.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CONCAT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CONCAT.description',+ abstract: 'formula.functionList.CONCAT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONCAT.functionParameter.text1.name',+ detail: 'formula.functionList.CONCAT.functionParameter.text1.detail',+ example: '"Hello"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONCAT.functionParameter.text2.name',+ detail: 'formula.functionList.CONCAT.functionParameter.text2.detail',+ example: '"Univer"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CONCATENATE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CONCATENATE.description',+ abstract: 'formula.functionList.CONCATENATE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CONCATENATE.functionParameter.text1.name',+ detail: 'formula.functionList.CONCATENATE.functionParameter.text1.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CONCATENATE.functionParameter.text2.name',+ detail: 'formula.functionList.CONCATENATE.functionParameter.text2.detail',+ example: 'A2',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.DBCS,+ functionType: FunctionType.Text,+ description: 'formula.functionList.DBCS.description',+ abstract: 'formula.functionList.DBCS.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DBCS.functionParameter.text.name',+ detail: 'formula.functionList.DBCS.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.DOLLAR,+ functionType: FunctionType.Text,+ description: 'formula.functionList.DOLLAR.description',+ abstract: 'formula.functionList.DOLLAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.DOLLAR.functionParameter.number.name',+ detail: 'formula.functionList.DOLLAR.functionParameter.number.detail',+ example: '1234.567',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.DOLLAR.functionParameter.decimals.name',+ detail: 'formula.functionList.DOLLAR.functionParameter.decimals.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.EXACT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.EXACT.description',+ abstract: 'formula.functionList.EXACT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EXACT.functionParameter.text1.name',+ detail: 'formula.functionList.EXACT.functionParameter.text1.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EXACT.functionParameter.text2.name',+ detail: 'formula.functionList.EXACT.functionParameter.text2.detail',+ example: '"univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.FIND,+ functionType: FunctionType.Text,+ description: 'formula.functionList.FIND.description',+ abstract: 'formula.functionList.FIND.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FIND.functionParameter.findText.name',+ detail: 'formula.functionList.FIND.functionParameter.findText.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FIND.functionParameter.withinText.name',+ detail: 'formula.functionList.FIND.functionParameter.withinText.detail',+ example: '"Hello Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FIND.functionParameter.startNum.name',+ detail: 'formula.functionList.FIND.functionParameter.startNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.FINDB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.FINDB.description',+ abstract: 'formula.functionList.FINDB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FINDB.functionParameter.findText.name',+ detail: 'formula.functionList.FINDB.functionParameter.findText.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FINDB.functionParameter.withinText.name',+ detail: 'formula.functionList.FINDB.functionParameter.withinText.detail',+ example: '"Hello Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FINDB.functionParameter.startNum.name',+ detail: 'formula.functionList.FINDB.functionParameter.startNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.FIXED,+ functionType: FunctionType.Text,+ description: 'formula.functionList.FIXED.description',+ abstract: 'formula.functionList.FIXED.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.FIXED.functionParameter.number.name',+ detail: 'formula.functionList.FIXED.functionParameter.number.detail',+ example: '1234.567',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FIXED.functionParameter.decimals.name',+ detail: 'formula.functionList.FIXED.functionParameter.decimals.detail',+ example: '2',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.FIXED.functionParameter.noCommas.name',+ detail: 'formula.functionList.FIXED.functionParameter.noCommas.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.LEFT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.LEFT.description',+ abstract: 'formula.functionList.LEFT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LEFT.functionParameter.text.name',+ detail: 'formula.functionList.LEFT.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LEFT.functionParameter.numChars.name',+ detail: 'formula.functionList.LEFT.functionParameter.numChars.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.LEFTB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.LEFTB.description',+ abstract: 'formula.functionList.LEFTB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LEFTB.functionParameter.text.name',+ detail: 'formula.functionList.LEFTB.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.LEFTB.functionParameter.numBytes.name',+ detail: 'formula.functionList.LEFTB.functionParameter.numBytes.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.LEN,+ functionType: FunctionType.Text,+ description: 'formula.functionList.LEN.description',+ abstract: 'formula.functionList.LEN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LEN.functionParameter.text.name',+ detail: 'formula.functionList.LEN.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.LENB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.LENB.description',+ abstract: 'formula.functionList.LENB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LENB.functionParameter.text.name',+ detail: 'formula.functionList.LENB.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.LOWER,+ functionType: FunctionType.Text,+ description: 'formula.functionList.LOWER.description',+ abstract: 'formula.functionList.LOWER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.LOWER.functionParameter.text.name',+ detail: 'formula.functionList.LOWER.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.MID,+ functionType: FunctionType.Text,+ description: 'formula.functionList.MID.description',+ abstract: 'formula.functionList.MID.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MID.functionParameter.text.name',+ detail: 'formula.functionList.MID.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MID.functionParameter.startNum.name',+ detail: 'formula.functionList.MID.functionParameter.startNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MID.functionParameter.numChars.name',+ detail: 'formula.functionList.MID.functionParameter.numChars.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.MIDB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.MIDB.description',+ abstract: 'formula.functionList.MIDB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.MIDB.functionParameter.text.name',+ detail: 'formula.functionList.MIDB.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MIDB.functionParameter.startNum.name',+ detail: 'formula.functionList.MIDB.functionParameter.startNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.MIDB.functionParameter.numBytes.name',+ detail: 'formula.functionList.MIDB.functionParameter.numBytes.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.NUMBERSTRING,+ functionType: FunctionType.Text,+ description: 'formula.functionList.NUMBERSTRING.description',+ abstract: 'formula.functionList.NUMBERSTRING.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NUMBERSTRING.functionParameter.number.name',+ detail: 'formula.functionList.NUMBERSTRING.functionParameter.number.detail',+ example: '123',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NUMBERSTRING.functionParameter.type.name',+ detail: 'formula.functionList.NUMBERSTRING.functionParameter.type.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.NUMBERVALUE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.NUMBERVALUE.description',+ abstract: 'formula.functionList.NUMBERVALUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.NUMBERVALUE.functionParameter.text.name',+ detail: 'formula.functionList.NUMBERVALUE.functionParameter.text.detail',+ example: '"2.500,27"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NUMBERVALUE.functionParameter.decimalSeparator.name',+ detail: 'formula.functionList.NUMBERVALUE.functionParameter.decimalSeparator.detail',+ example: '","',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.NUMBERVALUE.functionParameter.groupSeparator.name',+ detail: 'formula.functionList.NUMBERVALUE.functionParameter.groupSeparator.detail',+ example: '"."',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.PHONETIC,+ functionType: FunctionType.Text,+ description: 'formula.functionList.PHONETIC.description',+ abstract: 'formula.functionList.PHONETIC.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PHONETIC.functionParameter.reference.name',+ detail: 'formula.functionList.PHONETIC.functionParameter.reference.detail',+ example: 'A1',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.PROPER,+ functionType: FunctionType.Text,+ description: 'formula.functionList.PROPER.description',+ abstract: 'formula.functionList.PROPER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.PROPER.functionParameter.text.name',+ detail: 'formula.functionList.PROPER.functionParameter.text.detail',+ example: '"hello univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REGEXEXTRACT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REGEXEXTRACT.description',+ abstract: 'formula.functionList.REGEXEXTRACT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REGEXEXTRACT.functionParameter.text.name',+ detail: 'formula.functionList.REGEXEXTRACT.functionParameter.text.detail',+ example: '"abcdefg"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGEXEXTRACT.functionParameter.regularExpression.name',+ detail: 'formula.functionList.REGEXEXTRACT.functionParameter.regularExpression.detail',+ example: '"c.*f"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REGEXMATCH,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REGEXMATCH.description',+ abstract: 'formula.functionList.REGEXMATCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REGEXMATCH.functionParameter.text.name',+ detail: 'formula.functionList.REGEXMATCH.functionParameter.text.detail',+ example: '"Spreadsheets"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGEXMATCH.functionParameter.regularExpression.name',+ detail: 'formula.functionList.REGEXMATCH.functionParameter.regularExpression.detail',+ example: '"S.r"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REGEXREPLACE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REGEXREPLACE.description',+ abstract: 'formula.functionList.REGEXREPLACE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REGEXREPLACE.functionParameter.text.name',+ detail: 'formula.functionList.REGEXREPLACE.functionParameter.text.detail',+ example: '"abcedfg"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGEXREPLACE.functionParameter.regularExpression.name',+ detail: 'formula.functionList.REGEXREPLACE.functionParameter.regularExpression.detail',+ example: '"a.*d"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGEXREPLACE.functionParameter.replacement.name',+ detail: 'formula.functionList.REGEXREPLACE.functionParameter.replacement.detail',+ example: '"xyz"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REPLACE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REPLACE.description',+ abstract: 'formula.functionList.REPLACE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REPLACE.functionParameter.oldText.name',+ detail: 'formula.functionList.REPLACE.functionParameter.oldText.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACE.functionParameter.startNum.name',+ detail: 'formula.functionList.REPLACE.functionParameter.startNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACE.functionParameter.numChars.name',+ detail: 'formula.functionList.REPLACE.functionParameter.numChars.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACE.functionParameter.newText.name',+ detail: 'formula.functionList.REPLACE.functionParameter.newText.detail',+ example: '"Hello "',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REPLACEB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REPLACEB.description',+ abstract: 'formula.functionList.REPLACEB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REPLACEB.functionParameter.oldText.name',+ detail: 'formula.functionList.REPLACEB.functionParameter.oldText.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACEB.functionParameter.startNum.name',+ detail: 'formula.functionList.REPLACEB.functionParameter.startNum.detail',+ example: '1',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACEB.functionParameter.numBytes.name',+ detail: 'formula.functionList.REPLACEB.functionParameter.numBytes.detail',+ example: '0',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPLACEB.functionParameter.newText.name',+ detail: 'formula.functionList.REPLACEB.functionParameter.newText.detail',+ example: '"Hello "',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REPT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REPT.description',+ abstract: 'formula.functionList.REPT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REPT.functionParameter.text.name',+ detail: 'formula.functionList.REPT.functionParameter.text.detail',+ example: '"*-"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REPT.functionParameter.numberTimes.name',+ detail: 'formula.functionList.REPT.functionParameter.numberTimes.detail',+ example: '3',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.RIGHT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.RIGHT.description',+ abstract: 'formula.functionList.RIGHT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RIGHT.functionParameter.text.name',+ detail: 'formula.functionList.RIGHT.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RIGHT.functionParameter.numChars.name',+ detail: 'formula.functionList.RIGHT.functionParameter.numChars.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.RIGHTB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.RIGHTB.description',+ abstract: 'formula.functionList.RIGHTB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.RIGHTB.functionParameter.text.name',+ detail: 'formula.functionList.RIGHTB.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.RIGHTB.functionParameter.numBytes.name',+ detail: 'formula.functionList.RIGHTB.functionParameter.numBytes.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.SEARCH,+ functionType: FunctionType.Text,+ description: 'formula.functionList.SEARCH.description',+ abstract: 'formula.functionList.SEARCH.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SEARCH.functionParameter.findText.name',+ detail: 'formula.functionList.SEARCH.functionParameter.findText.detail',+ example: '"univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEARCH.functionParameter.withinText.name',+ detail: 'formula.functionList.SEARCH.functionParameter.withinText.detail',+ example: '"Hello Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEARCH.functionParameter.startNum.name',+ detail: 'formula.functionList.SEARCH.functionParameter.startNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.SEARCHB,+ functionType: FunctionType.Text,+ description: 'formula.functionList.SEARCHB.description',+ abstract: 'formula.functionList.SEARCHB.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SEARCHB.functionParameter.findText.name',+ detail: 'formula.functionList.SEARCHB.functionParameter.findText.detail',+ example: '"univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEARCHB.functionParameter.withinText.name',+ detail: 'formula.functionList.SEARCHB.functionParameter.withinText.detail',+ example: '"Hello Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SEARCHB.functionParameter.startNum.name',+ detail: 'formula.functionList.SEARCHB.functionParameter.startNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.SUBSTITUTE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.SUBSTITUTE.description',+ abstract: 'formula.functionList.SUBSTITUTE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.SUBSTITUTE.functionParameter.text.name',+ detail: 'formula.functionList.SUBSTITUTE.functionParameter.text.detail',+ example: '"Hello Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUBSTITUTE.functionParameter.oldText.name',+ detail: 'formula.functionList.SUBSTITUTE.functionParameter.oldText.detail',+ example: '"Hello"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUBSTITUTE.functionParameter.newText.name',+ detail: 'formula.functionList.SUBSTITUTE.functionParameter.newText.detail',+ example: '"Hi"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.SUBSTITUTE.functionParameter.instanceNum.name',+ detail: 'formula.functionList.SUBSTITUTE.functionParameter.instanceNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.T,+ functionType: FunctionType.Text,+ description: 'formula.functionList.T.description',+ abstract: 'formula.functionList.T.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.T.functionParameter.value.name',+ detail: 'formula.functionList.T.functionParameter.value.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TEXT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TEXT.description',+ abstract: 'formula.functionList.TEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TEXT.functionParameter.value.name',+ detail: 'formula.functionList.TEXT.functionParameter.value.detail',+ example: '1.23',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXT.functionParameter.formatText.name',+ detail: 'formula.functionList.TEXT.functionParameter.formatText.detail',+ example: '"$0.00"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TEXTAFTER,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TEXTAFTER.description',+ abstract: 'formula.functionList.TEXTAFTER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.text.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.text.detail',+ example: '"Red riding hood’s, red hood"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.delimiter.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.delimiter.detail',+ example: '"hood"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.instanceNum.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.instanceNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.matchMode.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.matchMode.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.matchEnd.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.matchEnd.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTAFTER.functionParameter.ifNotFound.name',+ detail: 'formula.functionList.TEXTAFTER.functionParameter.ifNotFound.detail',+ example: '"not found"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TEXTBEFORE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TEXTBEFORE.description',+ abstract: 'formula.functionList.TEXTBEFORE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.text.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.text.detail',+ example: '"Red riding hood’s, red hood"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.delimiter.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.delimiter.detail',+ example: '"hood"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.instanceNum.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.instanceNum.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.matchMode.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.matchMode.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.matchEnd.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.matchEnd.detail',+ example: '0',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.name',+ detail: 'formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.detail',+ example: '"not found"',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TEXTJOIN,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TEXTJOIN.description',+ abstract: 'formula.functionList.TEXTJOIN.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TEXTJOIN.functionParameter.delimiter.name',+ detail: 'formula.functionList.TEXTJOIN.functionParameter.delimiter.detail',+ example: '", "',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTJOIN.functionParameter.ignoreEmpty.name',+ detail: 'formula.functionList.TEXTJOIN.functionParameter.ignoreEmpty.detail',+ example: 'true',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTJOIN.functionParameter.text1.name',+ detail: 'formula.functionList.TEXTJOIN.functionParameter.text1.detail',+ example: '"Hi"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTJOIN.functionParameter.text2.name',+ detail: 'formula.functionList.TEXTJOIN.functionParameter.text2.detail',+ example: '"Univer"',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TEXTSPLIT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TEXTSPLIT.description',+ abstract: 'formula.functionList.TEXTSPLIT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.text.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.text.detail',+ example: 'A1:C2',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.detail',+ example: '","',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.detail',+ example: '";"',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.detail',+ example: '',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.matchMode.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.matchMode.detail',+ example: '',+ require: 0,+ repeat: 0,+ },+ {+ name: 'formula.functionList.TEXTSPLIT.functionParameter.padWith.name',+ detail: 'formula.functionList.TEXTSPLIT.functionParameter.padWith.detail',+ example: '',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.TRIM,+ functionType: FunctionType.Text,+ description: 'formula.functionList.TRIM.description',+ abstract: 'formula.functionList.TRIM.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.TRIM.functionParameter.text.name',+ detail: 'formula.functionList.TRIM.functionParameter.text.detail',+ example: '" Hello Univer "',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.UNICHAR,+ functionType: FunctionType.Text,+ description: 'formula.functionList.UNICHAR.description',+ abstract: 'formula.functionList.UNICHAR.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.UNICHAR.functionParameter.number.name',+ detail: 'formula.functionList.UNICHAR.functionParameter.number.detail',+ example: '65',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.UNICODE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.UNICODE.description',+ abstract: 'formula.functionList.UNICODE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.UNICODE.functionParameter.text.name',+ detail: 'formula.functionList.UNICODE.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.UPPER,+ functionType: FunctionType.Text,+ description: 'formula.functionList.UPPER.description',+ abstract: 'formula.functionList.UPPER.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.UPPER.functionParameter.text.name',+ detail: 'formula.functionList.UPPER.functionParameter.text.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.VALUE,+ functionType: FunctionType.Text,+ description: 'formula.functionList.VALUE.description',+ abstract: 'formula.functionList.VALUE.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VALUE.functionParameter.text.name',+ detail: 'formula.functionList.VALUE.functionParameter.text.detail',+ example: '"123"',+ require: 1,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.VALUETOTEXT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.VALUETOTEXT.description',+ abstract: 'formula.functionList.VALUETOTEXT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.VALUETOTEXT.functionParameter.value.name',+ detail: 'formula.functionList.VALUETOTEXT.functionParameter.value.detail',+ example: '"Univer"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.VALUETOTEXT.functionParameter.format.name',+ detail: 'formula.functionList.VALUETOTEXT.functionParameter.format.detail',+ example: '1',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.CALL,+ functionType: FunctionType.Text,+ description: 'formula.functionList.CALL.description',+ abstract: 'formula.functionList.CALL.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.CALL.functionParameter.moduleText.name',+ detail: 'formula.functionList.CALL.functionParameter.moduleText.detail',+ example: '"MyLibrary"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CALL.functionParameter.procedure.name',+ detail: 'formula.functionList.CALL.functionParameter.procedure.detail',+ example: '"MyFunction"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CALL.functionParameter.typeText.name',+ detail: 'formula.functionList.CALL.functionParameter.typeText.detail',+ example: '"JJ"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.CALL.functionParameter.argument1.name',+ detail: 'formula.functionList.CALL.functionParameter.argument1.detail',+ example: '1',+ require: 0,+ repeat: 1,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.EUROCONVERT,+ functionType: FunctionType.Text,+ description: 'formula.functionList.EUROCONVERT.description',+ abstract: 'formula.functionList.EUROCONVERT.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.EUROCONVERT.functionParameter.number.name',+ detail: 'formula.functionList.EUROCONVERT.functionParameter.number.detail',+ example: '100',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EUROCONVERT.functionParameter.source.name',+ detail: 'formula.functionList.EUROCONVERT.functionParameter.source.detail',+ example: '"DEM"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EUROCONVERT.functionParameter.target.name',+ detail: 'formula.functionList.EUROCONVERT.functionParameter.target.detail',+ example: '"EUR"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EUROCONVERT.functionParameter.fullPrecision.name',+ detail: 'formula.functionList.EUROCONVERT.functionParameter.fullPrecision.detail',+ example: 'false',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.EUROCONVERT.functionParameter.triangulationPrecision.name',+ detail: 'formula.functionList.EUROCONVERT.functionParameter.triangulationPrecision.detail',+ example: '3',+ require: 0,+ repeat: 0,+ },+ ],+ },+ {+ functionName: FUNCTION_NAMES_TEXT.REGISTER_ID,+ functionType: FunctionType.Text,+ description: 'formula.functionList.REGISTER_ID.description',+ abstract: 'formula.functionList.REGISTER_ID.abstract',+ functionParameter: [+ {+ name: 'formula.functionList.REGISTER_ID.functionParameter.moduleText.name',+ detail: 'formula.functionList.REGISTER_ID.functionParameter.moduleText.detail',+ example: '"MyLibrary"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGISTER_ID.functionParameter.procedure.name',+ detail: 'formula.functionList.REGISTER_ID.functionParameter.procedure.detail',+ example: '"MyFunction"',+ require: 1,+ repeat: 0,+ },+ {+ name: 'formula.functionList.REGISTER_ID.functionParameter.typeText.name',+ detail: 'formula.functionList.REGISTER_ID.functionParameter.typeText.detail',+ example: '"JJ"',+ require: 0,+ repeat: 0,+ },+ ],+ },+];diff --git a/packages/sheets-formula/src/services/function-list/univer.ts b/packages/formula/src/services/function-list/univer.tssimilarity index 100%rename from packages/sheets-formula/src/services/function-list/univer.tsrename to packages/formula/src/services/function-list/univer.tsdiff --git a/packages/sheets-formula/src/services/function-list/web.ts b/packages/formula/src/services/function-list/web.tssimilarity index 60%rename from packages/sheets-formula/src/services/function-list/web.tsrename to packages/formula/src/services/function-list/web.tsindex 664931a3c3..92a9ec16e7 100644--- a/packages/sheets-formula/src/services/function-list/web.ts+++ b/packages/formula/src/services/function-list/web.ts@@ -21,12 +21,12 @@ export const FUNCTION_LIST_WEB: IFunctionInfo[] = [{functionName: FUNCTION_NAMES_WEB.ENCODEURL,functionType: FunctionType.Web,- description: 'sheets-formula.functionList.ENCODEURL.description',- abstract: 'sheets-formula.functionList.ENCODEURL.abstract',+ description: 'formula.functionList.ENCODEURL.description',+ abstract: 'formula.functionList.ENCODEURL.abstract',functionParameter: [{- name: 'sheets-formula.functionList.ENCODEURL.functionParameter.text.name',- detail: 'sheets-formula.functionList.ENCODEURL.functionParameter.text.detail',+ name: 'formula.functionList.ENCODEURL.functionParameter.text.name',+ detail: 'formula.functionList.ENCODEURL.functionParameter.text.detail',example: '"https://univer.ai/"',require: 1,repeat: 0,@@ -37,19 +37,19 @@ export const FUNCTION_LIST_WEB: IFunctionInfo[] = [{functionName: FUNCTION_NAMES_WEB.FILTERXML,functionType: FunctionType.Web,- description: 'sheets-formula.functionList.FILTERXML.description',- abstract: 'sheets-formula.functionList.FILTERXML.abstract',+ description: 'formula.functionList.FILTERXML.description',+ abstract: 'formula.functionList.FILTERXML.abstract',functionParameter: [{- name: 'sheets-formula.functionList.FILTERXML.functionParameter.xml.name',- detail: 'sheets-formula.functionList.FILTERXML.functionParameter.xml.detail',+ name: 'formula.functionList.FILTERXML.functionParameter.xml.name',+ detail: 'formula.functionList.FILTERXML.functionParameter.xml.detail',example: '"<root><item>value</item></root>"',require: 1,repeat: 0,},{- name: 'sheets-formula.functionList.FILTERXML.functionParameter.xpath.name',- detail: 'sheets-formula.functionList.FILTERXML.functionParameter.xpath.detail',+ name: 'formula.functionList.FILTERXML.functionParameter.xpath.name',+ detail: 'formula.functionList.FILTERXML.functionParameter.xpath.detail',example: '"//item"',require: 1,repeat: 0,@@ -59,12 +59,12 @@ export const FUNCTION_LIST_WEB: IFunctionInfo[] = [{functionName: FUNCTION_NAMES_WEB.WEBSERVICE,functionType: FunctionType.Web,- description: 'sheets-formula.functionList.WEBSERVICE.description',- abstract: 'sheets-formula.functionList.WEBSERVICE.abstract',+ description: 'formula.functionList.WEBSERVICE.description',+ abstract: 'formula.functionList.WEBSERVICE.abstract',functionParameter: [{- name: 'sheets-formula.functionList.WEBSERVICE.functionParameter.url.name',- detail: 'sheets-formula.functionList.WEBSERVICE.functionParameter.url.detail',+ name: 'formula.functionList.WEBSERVICE.functionParameter.url.name',+ detail: 'formula.functionList.WEBSERVICE.functionParameter.url.detail',example: '"https://example.com/api"',require: 1,repeat: 0,diff --git a/packages/sheets-formula/src/services/register-function.service.ts b/packages/formula/src/services/register-function.service.tssimilarity index 99%rename from packages/sheets-formula/src/services/register-function.service.tsrename to packages/formula/src/services/register-function.service.tsindex 3a98fb4064..d2ba36d08e 100644--- a/packages/sheets-formula/src/services/register-function.service.ts+++ b/packages/formula/src/services/register-function.service.ts@@ -98,7 +98,7 @@ export interface IRegisterFunctionService {}export const IRegisterFunctionService = createIdentifier<IRegisterFunctionService>(- 'sheets-formula.register-function-service'+ 'formula.register-function-service');export interface ISingleFunctionRegisterParams {diff --git a/packages/formula/src/services/utils.ts b/packages/formula/src/services/utils.tsnew file mode 100644index 0000000000..192c177503--- /dev/null+++ b/packages/formula/src/services/utils.ts@@ -0,0 +1,45 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type { LocaleService } from '@univerjs/core';+import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';++export function getFunctionName(item: IFunctionInfo, localeService: LocaleService) {+ let functionName = '';+ if (item.aliasFunctionName) {+ functionName = localeService.t(item.aliasFunctionName);++ if (functionName === item.aliasFunctionName) {+ functionName = item.functionName;+ }+ } else {+ functionName = item.functionName;+ }++ return functionName;+}++export function generateParam(param: IFunctionParam) {+ if (!param.require && !param.repeat) {+ return `[${param.name}]`;+ } else if (param.require && !param.repeat) {+ return param.name;+ } else if (!param.require && param.repeat) {+ return `[${param.name},...]`;+ } else if (param.require && param.repeat) {+ return `${param.name},...`;+ }+}diff --git a/packages/formula/tsconfig.json b/packages/formula/tsconfig.jsonnew file mode 100644index 0000000000..d4f9172636--- /dev/null+++ b/packages/formula/tsconfig.json@@ -0,0 +1,8 @@+{+ "extends": "@univerjs-infra/shared/tsconfigs/base",+ "compilerOptions": {+ "rootDir": "src",+ "outDir": "lib/types"+ },+ "include": ["src"]+}diff --git a/packages/formula/tsconfig.node.json b/packages/formula/tsconfig.node.jsonnew file mode 100644index 0000000000..cc30b26e15--- /dev/null+++ b/packages/formula/tsconfig.node.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "declaration": true,+ "emitDeclarationOnly": true+ }+}diff --git a/packages/formula/vitest.config.ts b/packages/formula/vitest.config.tsnew file mode 100644index 0000000000..af97c6d7a2--- /dev/null+++ b/packages/formula/vitest.config.ts@@ -0,0 +1,3 @@+import createConfig from '@univerjs-infra/shared/vitest';++export default createConfig();diff --git a/packages/protocol/src/index.ts b/packages/protocol/src/index.tsindex 74574f797a..d585c5ba60 100644--- a/packages/protocol/src/index.ts+++ b/packages/protocol/src/index.ts@@ -190,6 +190,8 @@ export {type IGetSheetBlockResponse,type IGetUnitOnRevRequest,type IGetUnitOnRevResponse,+ type IListUnitsRequest,+ type IListUnitsResponse,type IMGetChangesetsByRevisionRequest,type IMGetChangesetsByRevisionResponse,type IMGetUnitMetaRequest,diff --git a/packages/protocol/src/ts/universer/v1/snapshot.ts b/packages/protocol/src/ts/universer/v1/snapshot.tsindex 02624efd54..f0b5c60d9a 100644--- a/packages/protocol/src/ts/universer/v1/snapshot.ts+++ b/packages/protocol/src/ts/universer/v1/snapshot.ts@@ -325,12 +325,12 @@ export interface IGetResourcesResponse {resources: { [key: string]: IResource };}-interface IListUnitsRequest {+export interface IListUnitsRequest {type: UniverType;nextCursor: string;}-interface IListUnitsResponse {+export interface IListUnitsResponse {error: IError | undefined;units: IUnit[];nextCursor: string;diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.jsonindex 08e02a626b..b0cc0545f4 100644--- a/packages/sheets-conditional-formatting/package.json+++ b/packages/sheets-conditional-formatting/package.json@@ -92,6 +92,7 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",+ "@univerjs/formula": "workspace:*","@univerjs/icons-svg": "^1.32.0","@univerjs/sheets-formula": "workspace:*","rxjs": "^7.8.2",diff --git a/packages/sheets-conditional-formatting/src/facade/__tests__/create-test-bed.ts b/packages/sheets-conditional-formatting/src/facade/__tests__/create-test-bed.tsindex 4b4384a9a1..31f90b0f8f 100644--- a/packages/sheets-conditional-formatting/src/facade/__tests__/create-test-bed.ts+++ b/packages/sheets-conditional-formatting/src/facade/__tests__/create-test-bed.ts@@ -49,6 +49,14 @@ import {SuperTableService,} from '@univerjs/engine-formula';import { Engine, IRenderingEngine, IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';+import {+ DescriptionService,+ FormulaCalculationSessionController,+ FormulaCalculationSessionService,+ IDescriptionService,+ IRegisterFunctionService,+ RegisterFunctionService,+} from '@univerjs/formula';import {RefRangeService,SheetInterceptorService,@@ -64,14 +72,6 @@ import {ConditionalFormattingStyleComposer,ConditionalFormattingViewModel,} from '@univerjs/sheets-conditional-formatting';-import {- DescriptionService,- FormulaCalculationSessionController,- FormulaCalculationSessionService,- IDescriptionService,- IRegisterFunctionService,- RegisterFunctionService,-} from '@univerjs/sheets-formula';import enUS from '@univerjs/sheets/locale/en-US';import zhCN from '@univerjs/sheets/locale/zh-CN';import '@univerjs/sheets/facade';diff --git a/packages/sheets-data-validation/package.json b/packages/sheets-data-validation/package.jsonindex 481c8c271d..b9431387eb 100644--- a/packages/sheets-data-validation/package.json+++ b/packages/sheets-data-validation/package.json@@ -94,6 +94,7 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",+ "@univerjs/formula": "workspace:*","rxjs": "^7.8.2","typescript": "^6.0.3","vitest": "^4.1.10"diff --git a/packages/sheets-data-validation/src/facade/__tests__/create-test-bed.ts b/packages/sheets-data-validation/src/facade/__tests__/create-test-bed.tsindex ecb43dc659..f8aacfed3c 100644--- a/packages/sheets-data-validation/src/facade/__tests__/create-test-bed.ts+++ b/packages/sheets-data-validation/src/facade/__tests__/create-test-bed.ts@@ -46,6 +46,14 @@ import {SheetRowFilteredService,SuperTableService,} from '@univerjs/engine-formula';+import {+ DescriptionService,+ FormulaCalculationSessionController,+ FormulaCalculationSessionService,+ IDescriptionService,+ IRegisterFunctionService,+ RegisterFunctionService,+} from '@univerjs/formula';import {RefRangeService,SheetInterceptorService,@@ -60,14 +68,6 @@ import {SheetDataValidationModel,SheetsDataValidationValidatorService,} from '@univerjs/sheets-data-validation';-import {- DescriptionService,- FormulaCalculationSessionController,- FormulaCalculationSessionService,- IDescriptionService,- IRegisterFunctionService,- RegisterFunctionService,-} from '@univerjs/sheets-formula';import enUS from '@univerjs/sheets/locale/en-US';import zhCN from '@univerjs/sheets/locale/zh-CN';import { DataValidationController } from '../../controllers/dv.controller';diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.jsonindex 3f6334969e..a19a0a9580 100644--- a/packages/sheets-formula-ui/package.json+++ b/packages/sheets-formula-ui/package.json@@ -91,6 +91,8 @@"@univerjs/docs-ui": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",+ "@univerjs/formula": "workspace:*",+ "@univerjs/formula-ui": "workspace:*","@univerjs/icons": "1.32.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-formula": "workspace:*",diff --git a/packages/sheets-formula-ui/src/facade/__tests__/create-formula-test-bed.ts b/packages/sheets-formula-ui/src/facade/__tests__/create-formula-test-bed.tsindex 1222a3d328..9ce919ce85 100644--- a/packages/sheets-formula-ui/src/facade/__tests__/create-formula-test-bed.ts+++ b/packages/sheets-formula-ui/src/facade/__tests__/create-formula-test-bed.ts@@ -72,13 +72,13 @@ import {ValueNodeFactory,} from '@univerjs/engine-formula';import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';-import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';import {DescriptionService,IDescriptionService,IRegisterFunctionService,RegisterFunctionService,-} from '@univerjs/sheets-formula';+} from '@univerjs/formula';+import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';import enUS from '@univerjs/sheets-formula-ui/locale/en-US';import zhCN from '@univerjs/sheets-formula-ui/locale/zh-CN';import '@univerjs/engine-formula/facade';diff --git a/packages/sheets-formula-ui/src/index.ts b/packages/sheets-formula-ui/src/index.tsindex 01c1756b35..41bf2c0780 100644--- a/packages/sheets-formula-ui/src/index.ts+++ b/packages/sheets-formula-ui/src/index.ts@@ -25,6 +25,7 @@ export { InsertFunctionOperation } from './commands/operations/insert-function.oexport { MoreFunctionsOperation } from './commands/operations/more-functions.operation';export { ReferenceAbsoluteOperation } from './commands/operations/reference-absolute.operation';export { SearchFunctionOperation } from './commands/operations/search-function.operation';+export { genFormulaRefSelectionStyle } from './common/selection';export type { IUniverSheetsFormulaUIConfig } from './config/config';export { FormulaReorderController } from './controllers/formula-reorder.controller';export { menuSchema as SheetsFormulaUIMenuSchema } from './menu/schema';diff --git a/packages/sheets-formula-ui/src/menu/menu.ts b/packages/sheets-formula-ui/src/menu/menu.tsindex 683a66323c..12ddf41725 100644--- a/packages/sheets-formula-ui/src/menu/menu.ts+++ b/packages/sheets-formula-ui/src/menu/menu.ts@@ -19,6 +19,7 @@ import type { IMenuItem, IValueOption } from '@univerjs/ui';import type { LocaleKey } from '../locale/types';import { UniverInstanceType } from '@univerjs/core';import { FunctionType } from '@univerjs/engine-formula';+import { IDescriptionService } from '@univerjs/formula';import {RangeProtectionPermissionEditPoint,RangeProtectionPermissionViewPoint,@@ -28,7 +29,6 @@ import {WorksheetEditPermission,WorksheetSetCellValuePermission,} from '@univerjs/sheets';-import { IDescriptionService } from '@univerjs/sheets-formula';import { getCurrentRangeDisable$, menuClipboardDisabledObservable } from '@univerjs/sheets-ui';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatestWith, map } from 'rxjs';diff --git a/packages/sheets-formula-ui/src/services/prompt.service.ts b/packages/sheets-formula-ui/src/services/prompt.service.tsindex 6aca360b01..8f0dc44ee8 100644--- a/packages/sheets-formula-ui/src/services/prompt.service.ts+++ b/packages/sheets-formula-ui/src/services/prompt.service.ts@@ -16,7 +16,7 @@import type { Direction, IDisposable } from '@univerjs/core';import type { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';-import type { ISearchItem } from '@univerjs/sheets-formula';+import type { ISearchItem } from '@univerjs/formula';import type { Observable } from 'rxjs';import { createIdentifier, IContextService } from '@univerjs/core';import { sequenceNodeType } from '@univerjs/engine-formula';diff --git a/packages/sheets-formula-ui/src/views/formula-editor/help-function/__tests__/HelpFunction.spec.tsx b/packages/sheets-formula-ui/src/views/formula-editor/help-function/__tests__/HelpFunction.spec.tsxindex fc258ea8dd..5099c322f4 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/help-function/__tests__/HelpFunction.spec.tsx+++ b/packages/sheets-formula-ui/src/views/formula-editor/help-function/__tests__/HelpFunction.spec.tsx@@ -29,7 +29,7 @@ import {} from '@univerjs/core';import { IEditorService } from '@univerjs/docs-ui';import { FunctionType, LexerTreeBuilder } from '@univerjs/engine-formula';-import { IDescriptionService } from '@univerjs/sheets-formula';+import { IDescriptionService } from '@univerjs/formula';import { IEditorBridgeService } from '@univerjs/sheets-ui';import { ISidebarService, RediContext } from '@univerjs/ui';import { act } from 'react';diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/formula-selection-business.spec.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/formula-selection-business.spec.tsindex 4aff6f1740..2f7b99a0e6 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/formula-selection-business.spec.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/formula-selection-business.spec.ts@@ -18,6 +18,13 @@import { DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, toDisposable } from '@univerjs/core';import { sequenceNodeType } from '@univerjs/engine-formula';+import {+ buildFormulaTextRuns as buildTextRuns,+ getFormulaHighlightDataStream,+ getFormulaSequenceCharacterAtOffset as getSequenceNodeCharAtOffset,+ isFormulaReferenceAddingContext,+ isFormulaReferenceAddingTextContext,+} from '@univerjs/formula-ui';import { describe, expect, it, vi } from 'vitest';import {FORMULA_EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE,@@ -27,9 +34,9 @@ import {} from '../../formula-embed-integration.service';import { focusFormulaEditor, hasActiveFormulaEmbedInteraction, shouldRefocusFormulaEditorOnMouseUp, shouldSkipFormulaEditorMouseUpFocus } from '../use-focus';import { FormulaSelectingType, resolveFormulaSelectingIntent, resolveFormulaSelectionCursorIndex, resolveFormulaSelectionDataStream, resolveFormulaSelectionWorkbook, shouldSkipReferenceEditingByPointer } from '../use-formula-selection';-import { buildTextRuns, calcHighlightRanges, createFormulaHighlightBody, getFormulaHighlightDataStream } from '../use-highlight';+import { calcHighlightRanges, createFormulaHighlightBody } from '../use-highlight';import { isFormulaEditorInteractionOwner, shouldMoveFormulaSelectionFromCurrentSelection } from '../use-left-and-right-arrow';-import { createSelectionChangeDuplicateEndGuard, createSelectionChangeHandler, getInitialFormulaReferenceSelectionCount, getLastFormulaSelection, getSelectionsForFormulaRefUpdate, getSequenceNodeCharAtOffset, getSharedSelectionChangeDuplicateEndGuard, insertFormulaReferenceText, isFormulaReferenceAddingContext, isFormulaReferenceAddingTextContext, isSameFormulaSelection, prepareSelectionChangeContext, replaceFormulaControlSelection, shouldSkipFormulaReferenceUpdate } from '../use-sheet-selection-change';+import { createSelectionChangeDuplicateEndGuard, createSelectionChangeHandler, getInitialFormulaReferenceSelectionCount, getLastFormulaSelection, getSelectionsForFormulaRefUpdate, getSharedSelectionChangeDuplicateEndGuard, insertFormulaReferenceText, isSameFormulaSelection, prepareSelectionChangeContext, replaceFormulaControlSelection, shouldSkipFormulaReferenceUpdate } from '../use-sheet-selection-change';function range(row: number, col: number, sheetId = 'sheet1', unitId = 'unit1') {return {diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/use-formula-search.spec.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/use-formula-search.spec.tsindex a2347686db..6805988f19 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/use-formula-search.spec.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/__tests__/use-formula-search.spec.ts@@ -15,8 +15,8 @@*/import { FunctionType, sequenceNodeType } from '@univerjs/engine-formula';+import { getFormulaReplaceResult } from '@univerjs/formula-ui';import { describe, expect, it } from 'vitest';-import { getFormulaReplaceResult } from '../use-formula-search';describe('getFormulaReplaceResult', () => {it('adds the call bracket when replacing a typed function prefix and keeps the rest of the formula', () => {diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-describe.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-describe.tsindex 4d4f97650b..5f6c5eba5e 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-describe.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-describe.ts@@ -17,7 +17,7 @@import type { Editor } from '@univerjs/docs-ui';import type { IFunctionInfo } from '@univerjs/engine-formula';import { LexerTreeBuilder, matchToken } from '@univerjs/engine-formula';-import { IDescriptionService } from '@univerjs/sheets-formula';+import { IDescriptionService } from '@univerjs/formula';import { useDependency } from '@univerjs/ui';import { useEffect, useRef, useState } from 'react';import { debounceTime, distinctUntilChanged, filter, map } from 'rxjs';diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.tsindex 74f37ad92e..844d364861 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts@@ -15,35 +15,20 @@*/import type { Editor } from '@univerjs/docs-ui';-import type { ISearchItemWithType } from '@univerjs/sheets-formula';+import type { FunctionType } from '@univerjs/engine-formula';+import type { ISearchItemWithType } from '@univerjs/formula';import type { INode } from './use-formula-token';-import { FunctionType, matchToken, sequenceNodeType } from '@univerjs/engine-formula';-import { IDescriptionService } from '@univerjs/sheets-formula';+import { sequenceNodeType } from '@univerjs/engine-formula';+import { IDescriptionService } from '@univerjs/formula';+import { getFormulaReplaceResult as getSharedFormulaReplaceResult, searchFormulaFunctions } from '@univerjs/formula-ui';import { useDependency } from '@univerjs/ui';import { useEffect, useRef, useState } from 'react';import { debounceTime } from 'rxjs';import { findIndexFromSequenceNodes } from '../../range-selector/utils/find-index-from-sequence-nodes';-import { sequenceNodeToText } from '../../range-selector/utils/sequence-node-to-text';import { useStateRef } from './use-state-ref';-function shouldAppendOpenBracket(functionType: FunctionType): boolean {- return functionType !== FunctionType.DefinedName && functionType !== FunctionType.Table;-}--export function getFormulaReplaceResult(nodes: INode[], index: number, formulaName: string, functionType: FunctionType) {- const cloneNodes = [...nodes];- if (index !== -1) {- const lastNodes = cloneNodes.splice(index + 1);- const oldNode = cloneNodes.pop() || '';- let offset = (typeof oldNode === 'string' ? oldNode.length : oldNode.token.length) - formulaName.length;- cloneNodes.push(formulaName);- if (lastNodes[0] !== matchToken.OPEN_BRACKET && shouldAppendOpenBracket(functionType)) {- cloneNodes.push(matchToken.OPEN_BRACKET);- offset--;- }- const text = sequenceNodeToText([...cloneNodes, ...lastNodes]);- return { text, offset };- }+function getFormulaReplaceResult(nodes: INode[], index: number, formulaName: string, functionType: FunctionType) {+ return getSharedFormulaReplaceResult(nodes, index, formulaName, functionType);}export const useFormulaSearch = (isNeed: boolean, nodes: INode[] = [], editor?: Editor) => {@@ -75,9 +60,9 @@ export const useFormulaSearch = (isNeed: boolean, nodes: INode[] = [], editor?:if (currentNode && typeof currentNode !== 'string' && currentNode.nodeType === sequenceNodeType.FUNCTION) {indexRef.current = currentNodeIndex;const token = currentNode.token;- const list = descriptionService.getSearchListByNameFirstLetter(token);+ const list = searchFormulaFunctions(descriptionService, token);// Here we limit the maximum number of search results to 10 to prevent performance issues caused by rendering too many items in the dropdown.- setSearchList(list.slice(0, 10));+ setSearchList(list);setSearchText(token);return;}diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.tsindex b2f23c0f5c..d8f4fd18dc 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts@@ -21,10 +21,14 @@ import type { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheimport type { INode } from './use-formula-token';import { ICommandService, IUniverInstanceService, ThemeService, UniverInstanceType } from '@univerjs/core';import { ReplaceTextRunsCommand } from '@univerjs/docs-ui';-import { deserializeRangeWithSheet, sequenceNodeType } from '@univerjs/engine-formula';+import { deserializeRangeWithSheet } from '@univerjs/engine-formula';import { IRenderManagerService } from '@univerjs/engine-render';+import { IDescriptionService } from '@univerjs/formula';+import {+ buildFormulaTextRuns,+ getFormulaHighlightDataStream as getSharedFormulaHighlightDataStream,+} from '@univerjs/formula-ui';import { IRefSelectionsService, setEndForRange } from '@univerjs/sheets';-import { IDescriptionService } from '@univerjs/sheets-formula';import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';import { useDependency, useEvent } from '@univerjs/ui';import { useEffect, useMemo } from 'react';@@ -299,15 +303,8 @@ export function createFormulaHighlightBody(dataStream: string, textRuns: ITextRureturn { dataStream, textRuns };}-export function getFormulaHighlightDataStream(leadingCharacter: string, sequenceNodes: Array<ISequenceNode | string>, sourceText?: string): string {- const text = sourceText ?? sequenceNodes.reduce((pre, cur) => {- if (typeof cur === 'string') {- return `${pre}${cur}`;- }- return `${pre}${cur.token}`;- }, '');-- return `${leadingCharacter}${text}\r\n`;+function getFormulaHighlightDataStream(leadingCharacter: string, sequenceNodes: Array<ISequenceNode | string>, sourceText?: string): string {+ return getSharedFormulaHighlightDataStream(leadingCharacter, sequenceNodes, sourceText);}interface IColorMap {@@ -343,97 +340,6 @@ export function useColor(): IColorMap {return result;}-// eslint-disable-next-line max-lines-per-function-export function buildTextRuns(descriptionService: IDescriptionService, colorMap: IColorMap, sequenceNodes: Array<ISequenceNode | string>) {- const { formulaRefColors, numberColor, stringColor, plainTextColor } = colorMap;- const textRuns: ITextRun[] = [];- const refSelections: IRefSelection[] = [];- const themeColorMap = new Map<string, string>();- let refColorIndex = 0;-- for (let i = 0, len = sequenceNodes.length; i < len; i++) {- const node = sequenceNodes[i];- if (typeof node === 'string') {- const theLastItem = textRuns[textRuns.length - 1];- const start = theLastItem ? (theLastItem.ed) : 0;- const end = start + node.length;- textRuns.push({- st: start,- ed: end,- ts: {- cl: {- rgb: plainTextColor,- },- fs: 11,- },- });- continue;- }- if (descriptionService.hasDefinedNameDescription(node.token.trim())) {- textRuns.push({- st: node.startIndex,- ed: node.endIndex + 1,- ts: {- cl: {- rgb: plainTextColor,- },- fs: 11,- },- });- continue;- }- const { startIndex, endIndex, nodeType, token } = node;- let themeColor = '';- if (nodeType === sequenceNodeType.REFERENCE) {- if (themeColorMap.has(token)) {- themeColor = themeColorMap.get(token)!;- } else {- const colorIndex = refColorIndex % formulaRefColors.length;- themeColor = formulaRefColors[colorIndex];- themeColorMap.set(token, themeColor);- refColorIndex++;- }-- refSelections.push({- refIndex: i,- themeColor,- token,- startIndex: node.startIndex,- endIndex: node.endIndex,- index: refSelections.length,- });- } else if (nodeType === sequenceNodeType.NUMBER) {- themeColor = numberColor;- } else if (nodeType === sequenceNodeType.STRING) {- themeColor = stringColor;- } else if (nodeType === sequenceNodeType.ARRAY) {- themeColor = stringColor;- }-- if (themeColor && themeColor.length > 0) {- textRuns.push({- st: startIndex,- ed: endIndex + 1,- ts: {- cl: {- rgb: themeColor,- },- fs: 11,- },- });- } else {- textRuns.push({- st: startIndex,- ed: endIndex + 1,- ts: {- cl: {- rgb: plainTextColor,- },- fs: 11,- },- });- }- }-- return { textRuns, refSelections };+function buildTextRuns(descriptionService: IDescriptionService, colorMap: IColorMap, sequenceNodes: Array<ISequenceNode | string>) {+ return buildFormulaTextRuns(descriptionService, colorMap, sequenceNodes);};diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.tsindex 2979409d6b..ad8b261d5b 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts@@ -37,16 +37,17 @@ import { IEditorService } from '@univerjs/docs-ui';import {deserializeRangeWithSheet,generateStringWithSequence,- isFormulaLexerToken,LexerTreeBuilder,- matchRefDrawToken,- matchToken,sequenceNodeType,serializeRange,serializeRangeWithSheet,serializeRangeWithSpreadsheet,} from '@univerjs/engine-formula';import { IRenderManagerService } from '@univerjs/engine-render';+import {+ isFormulaReferenceAddingContext,+ isFormulaReferenceAddingTextContext,+} from '@univerjs/formula-ui';import { IRefSelectionsService, SetSelectionsOperation } from '@univerjs/sheets';import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';import { useDependency, useEvent, useObservable } from '@univerjs/ui';@@ -89,31 +90,6 @@ export const prepareSelectionChangeContext = (opts: { editor?: Editor; lexerTree};};-export function getSequenceNodeCharAtOffset(sequenceNodes: (string | { token: string })[], offset: number): string | undefined {- let currentOffset = 0;- for (const node of sequenceNodes) {- const text = typeof node === 'string' ? node : node.token;- const nextOffset = currentOffset + text.length;- if (offset > currentOffset && offset <= nextOffset) {- return text[offset - currentOffset - 1];- }- currentOffset = nextOffset;- }-- return undefined;-}--export function isFormulaReferenceAddingContext(sequenceNodes: (string | { token: string })[], offset: number): boolean {- const char = getSequenceNodeCharAtOffset(sequenceNodes, offset);- return Boolean(char && matchRefDrawToken(char));-}--export function isFormulaReferenceAddingTextContext(formulaText: string, offset: number): boolean {- const char = formulaText[offset - 1];- const nextChar = formulaText[offset];- return Boolean(char && matchRefDrawToken(char) && (!nextChar || (isFormulaLexerToken(nextChar) && nextChar !== matchToken.OPEN_BRACKET)));-}-export function insertFormulaReferenceText(formulaText: string, refText: string, offset: number): string {return `${formulaText.slice(0, offset)}${refText}${formulaText.slice(offset)}`;}diff --git a/packages/sheets-formula-ui/src/views/formula-editor/search-function/__tests__/SearchFunction.spec.tsx b/packages/sheets-formula-ui/src/views/formula-editor/search-function/__tests__/SearchFunction.spec.tsxindex fbe036bb5d..6c4db40af8 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/search-function/__tests__/SearchFunction.spec.tsx+++ b/packages/sheets-formula-ui/src/views/formula-editor/search-function/__tests__/SearchFunction.spec.tsx@@ -31,7 +31,7 @@ import {import { IEditorService } from '@univerjs/docs-ui';import { FunctionType, sequenceNodeType } from '@univerjs/engine-formula';import { DeviceInputEventType } from '@univerjs/engine-render';-import { IDescriptionService } from '@univerjs/sheets-formula';+import { IDescriptionService } from '@univerjs/formula';import { IShortcutService, ISidebarService, KeyCode, RediContext } from '@univerjs/ui';import { act } from 'react';import { createRoot } from 'react-dom/client';diff --git a/packages/sheets-formula-ui/src/views/more-functions/__tests__/MoreFunctions.spec.tsx b/packages/sheets-formula-ui/src/views/more-functions/__tests__/MoreFunctions.spec.tsxindex 106b6587ec..f3fc19739c 100644--- a/packages/sheets-formula-ui/src/views/more-functions/__tests__/MoreFunctions.spec.tsx+++ b/packages/sheets-formula-ui/src/views/more-functions/__tests__/MoreFunctions.spec.tsx@@ -16,7 +16,7 @@import type { ICommandInfo, IDisposable } from '@univerjs/core';import type { IFunctionInfo } from '@univerjs/engine-formula';-import type { ISearchItem } from '@univerjs/sheets-formula';+import type { ISearchItem } from '@univerjs/formula';import type { Root } from 'react-dom/client';import {CommandType,@@ -33,7 +33,7 @@ import {} from '@univerjs/core';import { IEditorService } from '@univerjs/docs-ui';import { FunctionType } from '@univerjs/engine-formula';-import { IDescriptionService } from '@univerjs/sheets-formula';+import { IDescriptionService } from '@univerjs/formula';import { IEditorBridgeService } from '@univerjs/sheets-ui';import { ISidebarService, RediContext } from '@univerjs/ui';import { act } from 'react';diff --git a/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx b/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsxindex 8cb0f34c05..2e3edd6c54 100644--- a/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx+++ b/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx@@ -15,14 +15,16 @@*/import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';-import type { ISearchItem, IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';+import type { ISearchItem } from '@univerjs/formula';+import type { IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';import type { ISidebarMethodOptions } from '@univerjs/ui';import type { KeyboardEvent } from 'react';import type { LocaleKey } from '../../../locale/types';import { IConfigService, LocaleService } from '@univerjs/core';import { borderClassName, clsx, divideYClassName, Input, scrollbarClassName, Select } from '@univerjs/design';+import { IDescriptionService } from '@univerjs/formula';import { CheckMarkIcon } from '@univerjs/icons';-import { IDescriptionService, PLUGIN_CONFIG_KEY_BASE } from '@univerjs/sheets-formula';+import { PLUGIN_CONFIG_KEY_BASE } from '@univerjs/sheets-formula';import { ISidebarService, useDependency, useObservable } from '@univerjs/ui';import { useEffect, useState } from 'react';import { getFunctionTypeValues } from '../../../services/utils';diff --git a/packages/sheets-formula-ui/src/views/range-selector/__tests__/GlobalRangeSelector.spec.tsx b/packages/sheets-formula-ui/src/views/range-selector/__tests__/GlobalRangeSelector.spec.tsxindex b3f1b8761d..523b32b839 100644--- a/packages/sheets-formula-ui/src/views/range-selector/__tests__/GlobalRangeSelector.spec.tsx+++ b/packages/sheets-formula-ui/src/views/range-selector/__tests__/GlobalRangeSelector.spec.tsx@@ -30,8 +30,8 @@ import {} from '@univerjs/core';import { IEditorService } from '@univerjs/docs-ui';import { LexerTreeBuilder } from '@univerjs/engine-formula';+import { IDescriptionService } from '@univerjs/formula';import { SetSelectionsOperation, SheetsSelectionsService } from '@univerjs/sheets';-import { IDescriptionService } from '@univerjs/sheets-formula';import { IMarkSelectionService } from '@univerjs/sheets-ui';import { RediContext } from '@univerjs/ui';import { act, createRef } from 'react';diff --git a/packages/sheets-formula/package.json b/packages/sheets-formula/package.jsonindex 9f2ed04c33..e655a94c03 100644--- a/packages/sheets-formula/package.json+++ b/packages/sheets-formula/package.json@@ -87,6 +87,7 @@"@univerjs/core": "workspace:*","@univerjs/docs": "workspace:*","@univerjs/engine-formula": "workspace:*",+ "@univerjs/formula": "workspace:*","@univerjs/rpc": "workspace:*","@univerjs/sheets": "workspace:*"},diff --git a/packages/sheets-formula/src/controllers/__tests__/defined-name.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/defined-name.controller.spec.tsindex bf95a86bc8..c8db613e63 100644--- a/packages/sheets-formula/src/controllers/__tests__/defined-name.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/defined-name.controller.spec.ts@@ -23,10 +23,10 @@ import {RemoveDefinedNameMutation,SetDefinedNameMutation,} from '@univerjs/engine-formula';+import { DescriptionService, IDescriptionService } from '@univerjs/formula';import { SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SetWorksheetActiveOperation } from '@univerjs/sheets';import { afterEach, describe, expect, it } from 'vitest';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';-import { DescriptionService, IDescriptionService } from '../../services/description.service';import { DefinedNameController } from '../defined-name.controller';function createWorkbookData(id = 'test'): IWorkbookData {diff --git a/packages/sheets-formula/src/controllers/__tests__/super-table.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/super-table.controller.spec.tsindex a869c4ce8e..061e87738c 100644--- a/packages/sheets-formula/src/controllers/__tests__/super-table.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/super-table.controller.spec.ts@@ -19,11 +19,11 @@ import type { ISuperTable } from '@univerjs/engine-formula';import type { ITestBed } from '../../facade/__tests__/create-test-bed';import { ICommandService, IUniverInstanceService, LocaleType, UniverInstanceType } from '@univerjs/core';import { FunctionType, ISuperTableService, RemoveSuperTableMutation, serializeRangeWithSheet, SetSuperTableMutation, SuperTableService } from '@univerjs/engine-formula';+import { DescriptionService, IDescriptionService } from '@univerjs/formula';import { SetWorksheetActiveOperation } from '@univerjs/sheets';-import { afterEach, describe, expect, it } from 'vitest';+import { afterEach, describe, expect, it } from 'vitest';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';-import { DescriptionService, IDescriptionService } from '../../services/description.service';import { SuperTableController } from '../super-table.controller';function createWorkbookData(id = 'test'): IWorkbookData {diff --git a/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.tsindex c0bfbff372..e67cfb4be8 100644--- a/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts@@ -38,13 +38,13 @@ import {SetFormulaStringBatchCalculationMutation,SetTriggerFormulaCalculationStartMutation,} from '@univerjs/engine-formula';+import { FormulaCalculationSessionController, FormulaCalculationSessionService } from '@univerjs/formula';import { SetRangeValuesMutation, SetStyleCommand } from '@univerjs/sheets';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';-import { FormulaCalculationSessionService } from '../../services/formula-calculation-session.service';-import { FormulaCalculationSessionController } from '../formula-calculation-session.controller';+import { SheetFormulaCalculationResultApplyController } from '../sheet-formula-calculation-result-apply.controller';import { TriggerCalculationController } from '../trigger-calculation.controller';function createWorkbookData(): IWorkbookData {@@ -78,6 +78,7 @@ function createControllerTestBed() {[RegisterOtherFormulaService],[FormulaCalculationSessionService],[FormulaCalculationSessionController],+ [SheetFormulaCalculationResultApplyController],[TriggerCalculationController],];@@ -126,6 +127,7 @@ function createControllerTestBed() {injector.get(FormulaCalculationTriggerService).start();injector.get(FormulaCalculationSessionController);+ injector.get(SheetFormulaCalculationResultApplyController);const controller = injector.get(TriggerCalculationController);return {diff --git a/packages/sheets-formula/src/controllers/defined-name.controller.ts b/packages/sheets-formula/src/controllers/defined-name.controller.tsindex d4794f611c..1e08fd333d 100644--- a/packages/sheets-formula/src/controllers/defined-name.controller.ts+++ b/packages/sheets-formula/src/controllers/defined-name.controller.ts@@ -30,12 +30,12 @@ import {RemoveDefinedNameMutation,SetDefinedNameMutation,} from '@univerjs/engine-formula';+import { IDescriptionService } from '@univerjs/formula';import {getSheetCommandTarget,SCOPE_WORKBOOK_VALUE_DEFINED_NAME,SetWorksheetActiveOperation,} from '@univerjs/sheets';-import { IDescriptionService } from '../services/description.service';/*** header highlightdiff --git a/packages/sheets-formula/src/controllers/formula-calculation-session.controller.ts b/packages/sheets-formula/src/controllers/formula-calculation-session.controller.tsdeleted file mode 100644index aecce07916..0000000000--- a/packages/sheets-formula/src/controllers/formula-calculation-session.controller.ts+++ /dev/null@@ -1,79 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { ICommandInfo } from '@univerjs/core';-import type { ISetFormulaCalculationNotificationMutation, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';-import { Disposable, ICommandService, Inject } from '@univerjs/core';-import {- SetFormulaCalculationNotificationMutation,- SetFormulaCalculationResultMutation,- SetFormulaCalculationStartMutation,-} from '@univerjs/engine-formula';-import { SetRangeValuesMutation } from '@univerjs/sheets';-import { FormulaCalculationSessionService } from '../services/formula-calculation-session.service';--export class FormulaCalculationSessionController extends Disposable {- constructor(- @ICommandService private readonly _commandService: ICommandService,- @Inject(FormulaCalculationSessionService) private readonly _sessionService: FormulaCalculationSessionService- ) {- super();-- this._sessionService.initialize();- this._initialize();- }-- private _initialize(): void {- this.disposeWithMe(- this._commandService.onCommandExecuted((command: ICommandInfo, options) => {- if (command.id === SetFormulaCalculationStartMutation.id) {- this._sessionService.start();- return;- }-- if (command.id === SetFormulaCalculationNotificationMutation.id) {- const params = command.params as ISetFormulaCalculationNotificationMutation;- if (params.stageInfo != null) {- this._sessionService.updateProgress(params.stageInfo);- }-- if (params.functionsExecutedState !== undefined) {- this._sessionService.markCompleted(params.functionsExecutedState);- }-- return;- }-- if (command.id === SetFormulaCalculationResultMutation.id) {- const params = command.params as ISetFormulaCalculationResultMutation;- this._sessionService.markResultEmitted(params, this._hasFormulaResultToApply(params));- return;- }-- if (command.id === SetRangeValuesMutation.id && options?.applyFormulaCalculationResult) {- this._sessionService.markResultApplied();- }- })- );- }-- private _hasFormulaResultToApply(result: ISetFormulaCalculationResultMutation): boolean {- const { unitData } = result;- return Object.values(unitData ?? {}).some((sheetData) =>- sheetData != null && Object.values(sheetData).some((cellData) => cellData != null)- );- }-}diff --git a/packages/sheets-formula/src/controllers/sheet-formula-calculation-result-apply.controller.ts b/packages/sheets-formula/src/controllers/sheet-formula-calculation-result-apply.controller.tsnew file mode 100644index 0000000000..ebf18db048--- /dev/null+++ b/packages/sheets-formula/src/controllers/sheet-formula-calculation-result-apply.controller.ts@@ -0,0 +1,36 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import { Disposable, ICommandService, Inject } from '@univerjs/core';+import { FormulaCalculationSessionService, FormulaResultApplicationType } from '@univerjs/formula';+import { SetRangeValuesMutation } from '@univerjs/sheets';++export class SheetFormulaCalculationResultApplyController extends Disposable {+ constructor(+ @ICommandService private readonly _commandService: ICommandService,+ @Inject(FormulaCalculationSessionService) private readonly _sessionService: FormulaCalculationSessionService+ ) {+ super();++ this.disposeWithMe(+ this._commandService.onCommandExecuted((command, options) => {+ if (command.id === SetRangeValuesMutation.id && options?.applyFormulaCalculationResult) {+ this._sessionService.markResultApplied(FormulaResultApplicationType.SHEET);+ }+ })+ );+ }+}diff --git a/packages/sheets-formula/src/controllers/super-table.controller.ts b/packages/sheets-formula/src/controllers/super-table.controller.tsindex 828c973cca..cc079a5e99 100644--- a/packages/sheets-formula/src/controllers/super-table.controller.ts+++ b/packages/sheets-formula/src/controllers/super-table.controller.ts@@ -24,9 +24,9 @@ import {UniverInstanceType,} from '@univerjs/core';import { FunctionType, ISuperTableService, RemoveSuperTableMutation, serializeRangeWithSheet, SetSuperTableMutation } from '@univerjs/engine-formula';-import { SetWorksheetActiveOperation } from '@univerjs/sheets';+import { IDescriptionService } from '@univerjs/formula';-import { IDescriptionService } from '../services/description.service';+import { SetWorksheetActiveOperation } from '@univerjs/sheets';/*** header highlightdiff --git a/packages/sheets-formula/src/facade/__tests__/f-formula.spec.ts b/packages/sheets-formula/src/facade/__tests__/f-formula.spec.tsindex d4751a126c..7de6c1b4b3 100644--- a/packages/sheets-formula/src/facade/__tests__/f-formula.spec.ts+++ b/packages/sheets-formula/src/facade/__tests__/f-formula.spec.ts@@ -18,28 +18,34 @@ import type { Injector } from '@univerjs/core';import type { FUniver } from '@univerjs/core/facade';import { ICommandService, IConfigService, LifecycleService, LifecycleStages } from '@univerjs/core';import {+ ActiveDirtyManagerService,FormulaExecutedStateType,FormulaExecuteStageType,+ IActiveDirtyManagerService,IFunctionService,ISuperTableService,+ RegisterOtherFormulaService,SetFormulaCalculationNotificationMutation,SetFormulaCalculationResultMutation,SetFormulaCalculationStartMutation,SetTriggerFormulaCalculationStartMutation,SuperTableService,} from '@univerjs/engine-formula';-import { SetRangeValuesMutation } from '@univerjs/sheets';-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { FormulaCalculationSessionController } from '../../controllers/formula-calculation-session.controller';import {- CalculationMode,DescriptionService,+ FormulaCalculationSessionController,+ FormulaCalculationSessionService,IDescriptionService,IRegisterFunctionService,- PLUGIN_CONFIG_KEY_BASE,RegisterFunctionService,+} from '@univerjs/formula';+import { SetRangeValuesMutation } from '@univerjs/sheets';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { SheetFormulaCalculationResultApplyController } from '../../controllers/sheet-formula-calculation-result-apply.controller';+import {+ CalculationMode,+ PLUGIN_CONFIG_KEY_BASE,} from '../../index';-import { FormulaCalculationSessionService } from '../../services/formula-calculation-session.service';import { createFacadeTestBed } from './create-test-bed';import '@univerjs/engine-formula/facade';import '@univerjs/sheets/facade';@@ -56,10 +62,14 @@ describe('sheets-formula facade mixins', () => {testBed.injector.add([IDescriptionService, { useClass: DescriptionService }]);testBed.injector.add([ISuperTableService, { useClass: SuperTableService }]);testBed.injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);+ testBed.injector.add([IActiveDirtyManagerService, { useClass: ActiveDirtyManagerService }]);+ testBed.injector.add([RegisterOtherFormulaService]);testBed.injector.add([FormulaCalculationSessionService]);testBed.injector.add([FormulaCalculationSessionController]);+ testBed.injector.add([SheetFormulaCalculationResultApplyController]);testBed.injector.get(FormulaCalculationSessionService);testBed.injector.get(FormulaCalculationSessionController);+ testBed.injector.get(SheetFormulaCalculationResultApplyController);get = testBed.get;univerAPI = testBed.univerAPI;@@ -148,7 +158,16 @@ describe('sheets-formula facade mixins', () => {const formula = univerAPI.getFormula();const resultPayload = {- unitData: {},+ unitData: {+ test: {+ sheet1: {+ 0: {+ 0: { v: 1 },+ },+ },+ },+ },+ unitOtherData: {},};await new Promise<void>((resolve) => {@@ -378,6 +397,56 @@ describe('sheets-formula facade mixins', () => {await expect(waitForResult).resolves.toBeUndefined();});+ it('reads each of ten consecutive sheet results after its own application finishes', async () => {+ vi.stubGlobal('requestIdleCallback', ((callback: IdleRequestCallback) => {+ callback({ didTimeout: false, timeRemaining: () => 16 } as IdleDeadline);+ return 1;+ }) as typeof requestIdleCallback);++ const formula = univerAPI.getFormula();+ const workbook = univerAPI.getActiveWorkbook();+ if (!workbook) {+ throw new Error('Expected an active workbook in the facade test bed.');+ }+ const range = workbook.getActiveSheet().getRange('A1');+ const expectedValues = [10, 3, 77, -5, 1000, 0, 42, 8.5, 999, -1200];+ const actualValues: unknown[] = [];++ for (const value of expectedValues) {+ const resultApplied = formula.onCalculationResultApplied(1_000);+ const resultPayload = {+ unitData: {+ test: {+ sheet1: {+ 0: {+ 0: { v: value },+ },+ },+ },+ },+ unitOtherData: {},+ };++ await commandService.executeCommand(SetFormulaCalculationStartMutation.id, {}, { onlyLocal: true });+ await commandService.executeCommand(SetFormulaCalculationResultMutation.id, resultPayload);+ await commandService.executeCommand(+ SetRangeValuesMutation.id,+ {+ unitId: 'test',+ subUnitId: 'sheet1',+ cellValue: { 0: { 0: { v: value } } },+ },+ {+ applyFormulaCalculationResult: true,+ }+ );+ await resultApplied;+ actualValues.push(range.getValue());+ }++ expect(actualValues).toEqual(expectedValues);+ });+it('rejects onCalculationResultApplied when an explicit timeout is exceeded', async () => {vi.useFakeTimers();diff --git a/packages/sheets-formula/src/facade/f-formula.ts b/packages/sheets-formula/src/facade/f-formula.tsindex af5d63e08a..3a26db5d79 100644--- a/packages/sheets-formula/src/facade/f-formula.ts+++ b/packages/sheets-formula/src/facade/f-formula.ts@@ -15,12 +15,14 @@*/import type { IDisposable, ILocales } from '@univerjs/core';-import type { IFunctionInfo, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';-import type { CalculationMode, IRegisterAsyncFunction, IRegisterFunction, ISingleFunctionRegisterParams, IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';+import type { IFunctionInfo } from '@univerjs/engine-formula';+import type { IRegisterAsyncFunction, IRegisterFunction, ISingleFunctionRegisterParams } from '@univerjs/formula';+import type { CalculationMode, IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';import { debounce, IConfigService, ILogService, LifecycleService, LifecycleStages } from '@univerjs/core';import { SetTriggerFormulaCalculationStartMutation } from '@univerjs/engine-formula';import { FFormula } from '@univerjs/engine-formula/facade';-import { FormulaCalculationSessionService, IRegisterFunctionService, PLUGIN_CONFIG_KEY_BASE, RegisterFunctionService } from '@univerjs/sheets-formula';+import { IRegisterFunctionService } from '@univerjs/formula';+import { PLUGIN_CONFIG_KEY_BASE } from '@univerjs/sheets-formula';/*** @ignore@@ -277,56 +279,6 @@ export interface IFFormulaSheetsMixin {*/registerAsyncFunction(name: string, func: IRegisterAsyncFunction, { locales, description }: { locales?: ILocales; description?: string | IFunctionInfo }): IDisposable;- /**- * Listens for the moment when formula-calculation results are applied.- *- * This event fires after the engine completes a calculation cycle and- * dispatches a `SetFormulaCalculationResultMutation`.- * The callback is invoked during an idle frame to avoid blocking UI updates.- *- * @param {Function} callback - A function called with the calculation result payload- * once the result-application mutation is emitted.- * @returns {IDisposable} A disposable used to unsubscribe from the event.- *- * @example- * ```ts- * const formulaEngine = univerAPI.getFormula();- *- * const dispose = formulaEngine.calculationResultApplied((result) => {- * console.log('Calculation results applied:', result);- * });- *- * // Later…- * dispose.dispose();- * ```- */- calculationResultApplied(callback: (result: ISetFormulaCalculationResultMutation) => void): IDisposable;-- /**- * Waits for formula-calculation results to be applied.- *- * The API follows the latest formula-calculation session. If a running- * calculation is stopped and immediately restarted, the promise waits for- * the restarted session to apply its results.- *- * @param {number} [timeout] Optional timeout in milliseconds. If omitted,- * the promise waits until calculation results are applied or no calculation- * occurs within the start-detection window.- * @returns {Promise<void>} A promise that resolves when calculation results are applied- * or when no calculation occurs within the start-detection window.- *- * @example- * ```ts- * const formulaEngine = univerAPI.getFormula();- *- * // Wait for formula updates to apply before reading values.- * await formulaEngine.onCalculationResultApplied();- *- * const value = sheet.getRange("C24").getValue();- * console.log("Updated value:", value);- * ```- */- onCalculationResultApplied(timeout?: number): Promise<void>;}export class FFormulaSheetsMixin extends FFormula implements IFFormulaSheetsMixin {@@ -382,12 +334,7 @@ export class FFormulaSheetsMixin extends FFormula implements IFFormulaSheetsMixifunc: IRegisterFunction,options?: string | { locales?: ILocales; description?: string | IFunctionInfo }): IDisposable {- let registerFunctionService = this._injector.get(IRegisterFunctionService);-- if (!registerFunctionService) {- this._injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);- registerFunctionService = this._injector.get(IRegisterFunctionService);- }+ const registerFunctionService = this._injector.get(IRegisterFunctionService);const params: ISingleFunctionRegisterParams = {name,@@ -408,12 +355,7 @@ export class FFormulaSheetsMixin extends FFormula implements IFFormulaSheetsMixifunc: IRegisterAsyncFunction,options?: string | { locales?: ILocales; description?: string | IFunctionInfo }): IDisposable {- let registerFunctionService = this._injector.get(IRegisterFunctionService);-- if (!registerFunctionService) {- this._injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);- registerFunctionService = this._injector.get(IRegisterFunctionService);- }+ const registerFunctionService = this._injector.get(IRegisterFunctionService);const params: ISingleFunctionRegisterParams = {name,@@ -426,22 +368,6 @@ export class FFormulaSheetsMixin extends FFormula implements IFFormulaSheetsMixithis._debouncedFormulaCalculation();return functionsDisposable;}-- override calculationResultApplied(callback: (result: ISetFormulaCalculationResultMutation) => void): IDisposable {- const subscription = this._injector.get(FormulaCalculationSessionService).resultApplied$.subscribe((result) => {- requestIdleCallback(() => {- callback(result);- });- });-- return {- dispose: () => subscription.unsubscribe(),- };- }-- override onCalculationResultApplied(timeout?: number): Promise<void> {- return this._injector.get(FormulaCalculationSessionService).waitForLatestApplied(timeout);- }}FFormula.extend(FFormulaSheetsMixin);diff --git a/packages/sheets-formula/src/facade/f-univer.ts b/packages/sheets-formula/src/facade/f-univer.tsindex 0d688a0d3e..8fe57aecb8 100644--- a/packages/sheets-formula/src/facade/f-univer.ts+++ b/packages/sheets-formula/src/facade/f-univer.ts@@ -15,11 +15,11 @@*/import type { IDisposable } from '@univerjs/core';-import type { IRegisterFunctionParams } from '@univerjs/sheets-formula';+import type { IRegisterFunctionParams } from '@univerjs/formula';import { debounce } from '@univerjs/core';import { FUniver } from '@univerjs/core/facade';import { SetTriggerFormulaCalculationStartMutation } from '@univerjs/engine-formula';-import { IRegisterFunctionService, RegisterFunctionService } from '@univerjs/sheets-formula';+import { IRegisterFunctionService } from '@univerjs/formula';/*** @ignore@@ -63,12 +63,7 @@ export class FUniverSheetsFormulaMixin extends FUniver implements IFUniverSheets}override registerFunction(config: IRegisterFunctionParams): IDisposable {- let registerFunctionService = this._injector.get(IRegisterFunctionService);-- if (!registerFunctionService) {- this._injector.add([IRegisterFunctionService, { useClass: RegisterFunctionService }]);- registerFunctionService = this._injector.get(IRegisterFunctionService);- }+ const registerFunctionService = this._injector.get(IRegisterFunctionService);const functionsDisposable = registerFunctionService.registerFunctions(config);diff --git a/packages/sheets-formula/src/facade/index.ts b/packages/sheets-formula/src/facade/index.tsindex 3858ad6e0b..583f12e03d 100644--- a/packages/sheets-formula/src/facade/index.ts+++ b/packages/sheets-formula/src/facade/index.ts@@ -15,6 +15,7 @@*/import './f-univer';+import '@univerjs/formula/facade';import './f-formula';import './f-enum';import './f-workbook';diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.tsindex 697b31eebf..a79102863b 100644--- a/packages/sheets-formula/src/index.ts+++ b/packages/sheets-formula/src/index.ts@@ -20,26 +20,13 @@ export { QuickSumCommand } from './commands/commands/quick-sum.command';export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config/config';export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';export { FormulaAutoFillController } from './controllers/formula-auto-fill.controller';-export { FormulaCalculationSessionController } from './controllers/formula-calculation-session.controller';export { ImageFormulaCellInterceptorController } from './controllers/image-formula-cell-interceptor.controller';export { TriggerCalculationController } from './controllers/trigger-calculation.controller';export { collectUnitQualifierFormulaPatches, UnitQualifierRenameController } from './controllers/unit-qualifier-rename.controller';export { UpdateDefinedNameController } from './controllers/update-defined-name.controller';export { UpdateFormulaController } from './controllers/update-formula.controller';export { UniverRemoteSheetsFormulaPlugin, UniverSheetsFormulaPlugin } from './plugin';-export { DescriptionService, IDescriptionService } from './services/description.service';-export type { ISearchItem, ISearchItemWithType } from './services/description.service';-export { FormulaCalculationSessionService } from './services/formula-calculation-session.service';-export type { IFormulaCalculationSessionState } from './services/formula-calculation-session.service';export { FormulaRefRangeService } from './services/formula-ref-range.service';-export type {- IRegisterAsyncFunction,- IRegisterFunction,- ISingleFunctionRegisterParams,-} from './services/register-function.service';-export type { IRegisterFunctionParams, IUnregisterFunctionParams } from './services/register-function.service';-export { RegisterFunctionService } from './services/register-function.service';-export { IRegisterFunctionService } from './services/register-function.service';export {IRemoteRegisterFunctionService,RemoteRegisterFunctionService,diff --git a/packages/sheets-formula/src/locale/ar-SA.ts b/packages/sheets-formula/src/locale/ar-SA.tsindex f6f67295fa..c07d172ca5 100644--- a/packages/sheets-formula/src/locale/ar-SA.ts+++ b/packages/sheets-formula/src/locale/ar-SA.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/ar-SA';-import compatibility from './function-list/compatibility/ar-SA';-import cube from './function-list/cube/ar-SA';-import database from './function-list/database/ar-SA';-import date from './function-list/date/ar-SA';-import engineering from './function-list/engineering/ar-SA';-import financial from './function-list/financial/ar-SA';-import information from './function-list/information/ar-SA';-import logical from './function-list/logical/ar-SA';-import lookup from './function-list/lookup/ar-SA';-import math from './function-list/math/ar-SA';-import statistical from './function-list/statistical/ar-SA';-import text from './function-list/text/ar-SA';-import univer from './function-list/univer/ar-SA';-import web from './function-list/web/ar-SA';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'جارٍ حساب صيغ الصفائف...',done: 'تم',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/ca-ES.ts b/packages/sheets-formula/src/locale/ca-ES.tsindex 02bf9f2fd7..01b03b43b9 100644--- a/packages/sheets-formula/src/locale/ca-ES.ts+++ b/packages/sheets-formula/src/locale/ca-ES.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/ca-ES';-import compatibility from './function-list/compatibility/ca-ES';-import cube from './function-list/cube/ca-ES';-import database from './function-list/database/ca-ES';-import date from './function-list/date/ca-ES';-import engineering from './function-list/engineering/ca-ES';-import financial from './function-list/financial/ca-ES';-import information from './function-list/information/ca-ES';-import logical from './function-list/logical/ca-ES';-import lookup from './function-list/lookup/ca-ES';-import math from './function-list/math/ca-ES';-import statistical from './function-list/statistical/ca-ES';-import text from './function-list/text/ca-ES';-import univer from './function-list/univer/ca-ES';-import web from './function-list/web/ca-ES';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Calculant fórmules de matriu...',done: 'Fet',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/de-DE.ts b/packages/sheets-formula/src/locale/de-DE.tsindex 4c2a8bfaa8..a856e15d53 100644--- a/packages/sheets-formula/src/locale/de-DE.ts+++ b/packages/sheets-formula/src/locale/de-DE.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/de-DE';-import compatibility from './function-list/compatibility/de-DE';-import cube from './function-list/cube/de-DE';-import database from './function-list/database/de-DE';-import date from './function-list/date/de-DE';-import engineering from './function-list/engineering/de-DE';-import financial from './function-list/financial/de-DE';-import information from './function-list/information/de-DE';-import logical from './function-list/logical/de-DE';-import lookup from './function-list/lookup/de-DE';-import math from './function-list/math/de-DE';-import statistical from './function-list/statistical/de-DE';-import text from './function-list/text/de-DE';-import univer from './function-list/univer/de-DE';-import web from './function-list/web/de-DE';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Matrixformeln werden berechnet...',done: 'Fertig',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/en-US.ts b/packages/sheets-formula/src/locale/en-US.tsindex 5cbb8ca93a..74d62df553 100644--- a/packages/sheets-formula/src/locale/en-US.ts+++ b/packages/sheets-formula/src/locale/en-US.ts@@ -14,22 +14,6 @@* limitations under the License.*/-import array from './function-list/array/en-US';-import compatibility from './function-list/compatibility/en-US';-import cube from './function-list/cube/en-US';-import database from './function-list/database/en-US';-import date from './function-list/date/en-US';-import engineering from './function-list/engineering/en-US';-import financial from './function-list/financial/en-US';-import information from './function-list/information/en-US';-import logical from './function-list/logical/en-US';-import lookup from './function-list/lookup/en-US';-import math from './function-list/math/en-US';-import statistical from './function-list/statistical/en-US';-import text from './function-list/text/en-US';-import univer from './function-list/univer/en-US';-import web from './function-list/web/en-US';-const locale = {'sheets-formula': {progress: {@@ -39,23 +23,6 @@ const locale = {'array-calculation': 'Calculating array formulas...',done: 'Done',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/es-ES.ts b/packages/sheets-formula/src/locale/es-ES.tsindex 8c6f418fc6..6bde1accc7 100644--- a/packages/sheets-formula/src/locale/es-ES.ts+++ b/packages/sheets-formula/src/locale/es-ES.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/es-ES';-import compatibility from './function-list/compatibility/es-ES';-import cube from './function-list/cube/es-ES';-import database from './function-list/database/es-ES';-import date from './function-list/date/es-ES';-import engineering from './function-list/engineering/es-ES';-import financial from './function-list/financial/es-ES';-import information from './function-list/information/es-ES';-import logical from './function-list/logical/es-ES';-import lookup from './function-list/lookup/es-ES';-import math from './function-list/math/es-ES';-import statistical from './function-list/statistical/es-ES';-import text from './function-list/text/es-ES';-import univer from './function-list/univer/es-ES';-import web from './function-list/web/es-ES';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Calculando fórmulas de matriz...',done: 'Listo',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/fa-IR.ts b/packages/sheets-formula/src/locale/fa-IR.tsindex 0c554ad820..2a268dc089 100644--- a/packages/sheets-formula/src/locale/fa-IR.ts+++ b/packages/sheets-formula/src/locale/fa-IR.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/en-US';-import compatibility from './function-list/compatibility/en-US';-import cube from './function-list/cube/en-US';-import database from './function-list/database/en-US';-import date from './function-list/date/en-US';-import engineering from './function-list/engineering/en-US';-import financial from './function-list/financial/en-US';-import information from './function-list/information/en-US';-import logical from './function-list/logical/en-US';-import lookup from './function-list/lookup/en-US';-import math from './function-list/math/en-US';-import statistical from './function-list/statistical/en-US';-import text from './function-list/text/en-US';-import univer from './function-list/univer/en-US';-import web from './function-list/web/en-US';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'در حال محاسبه فرمولهای آرایهای...',done: 'انجام شد',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/fr-FR.ts b/packages/sheets-formula/src/locale/fr-FR.tsindex be3174533c..4313dcaceb 100644--- a/packages/sheets-formula/src/locale/fr-FR.ts+++ b/packages/sheets-formula/src/locale/fr-FR.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/fr-FR';-import compatibility from './function-list/compatibility/fr-FR';-import cube from './function-list/cube/fr-FR';-import database from './function-list/database/fr-FR';-import date from './function-list/date/fr-FR';-import engineering from './function-list/engineering/fr-FR';-import financial from './function-list/financial/fr-FR';-import information from './function-list/information/fr-FR';-import logical from './function-list/logical/fr-FR';-import lookup from './function-list/lookup/fr-FR';-import math from './function-list/math/fr-FR';-import statistical from './function-list/statistical/fr-FR';-import text from './function-list/text/fr-FR';-import univer from './function-list/univer/fr-FR';-import web from './function-list/web/fr-FR';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Calcul des formules matricielles...',done: 'Terminé',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/id-ID.ts b/packages/sheets-formula/src/locale/id-ID.tsindex bf7baaa7b4..1f97ad7317 100644--- a/packages/sheets-formula/src/locale/id-ID.ts+++ b/packages/sheets-formula/src/locale/id-ID.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/id-ID';-import compatibility from './function-list/compatibility/id-ID';-import cube from './function-list/cube/id-ID';-import database from './function-list/database/id-ID';-import date from './function-list/date/id-ID';-import engineering from './function-list/engineering/id-ID';-import financial from './function-list/financial/id-ID';-import information from './function-list/information/id-ID';-import logical from './function-list/logical/id-ID';-import lookup from './function-list/lookup/id-ID';-import math from './function-list/math/id-ID';-import statistical from './function-list/statistical/id-ID';-import text from './function-list/text/id-ID';-import univer from './function-list/univer/id-ID';-import web from './function-list/web/id-ID';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Menghitung rumus array...',done: 'Selesai',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/it-IT.ts b/packages/sheets-formula/src/locale/it-IT.tsindex b66a10b251..ff049c6008 100644--- a/packages/sheets-formula/src/locale/it-IT.ts+++ b/packages/sheets-formula/src/locale/it-IT.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/it-IT';-import compatibility from './function-list/compatibility/it-IT';-import cube from './function-list/cube/it-IT';-import database from './function-list/database/it-IT';-import date from './function-list/date/it-IT';-import engineering from './function-list/engineering/it-IT';-import financial from './function-list/financial/it-IT';-import information from './function-list/information/it-IT';-import logical from './function-list/logical/it-IT';-import lookup from './function-list/lookup/it-IT';-import math from './function-list/math/it-IT';-import statistical from './function-list/statistical/it-IT';-import text from './function-list/text/it-IT';-import univer from './function-list/univer/it-IT';-import web from './function-list/web/it-IT';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Calcolo delle formule matrice...',done: 'Completato',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/ja-JP.ts b/packages/sheets-formula/src/locale/ja-JP.tsindex 55a71faa74..1d1a787efe 100644--- a/packages/sheets-formula/src/locale/ja-JP.ts+++ b/packages/sheets-formula/src/locale/ja-JP.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/ja-JP';-import compatibility from './function-list/compatibility/ja-JP';-import cube from './function-list/cube/ja-JP';-import database from './function-list/database/ja-JP';-import date from './function-list/date/ja-JP';-import engineering from './function-list/engineering/ja-JP';-import financial from './function-list/financial/ja-JP';-import information from './function-list/information/ja-JP';-import logical from './function-list/logical/ja-JP';-import lookup from './function-list/lookup/ja-JP';-import math from './function-list/math/ja-JP';-import statistical from './function-list/statistical/ja-JP';-import text from './function-list/text/ja-JP';-import univer from './function-list/univer/ja-JP';-import web from './function-list/web/ja-JP';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': '配列数式を計算中...',done: '完了',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/ko-KR.ts b/packages/sheets-formula/src/locale/ko-KR.tsindex 666b6eb5c9..b3676f30b4 100644--- a/packages/sheets-formula/src/locale/ko-KR.ts+++ b/packages/sheets-formula/src/locale/ko-KR.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/ko-KR';-import compatibility from './function-list/compatibility/ko-KR';-import cube from './function-list/cube/ko-KR';-import database from './function-list/database/ko-KR';-import date from './function-list/date/ko-KR';-import engineering from './function-list/engineering/ko-KR';-import financial from './function-list/financial/ko-KR';-import information from './function-list/information/ko-KR';-import logical from './function-list/logical/ko-KR';-import lookup from './function-list/lookup/ko-KR';-import math from './function-list/math/ko-KR';-import statistical from './function-list/statistical/ko-KR';-import text from './function-list/text/ko-KR';-import univer from './function-list/univer/ko-KR';-import web from './function-list/web/ko-KR';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': '배열 수식 계산 중...',done: '완료',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/pl-PL.ts b/packages/sheets-formula/src/locale/pl-PL.tsindex 2defd190a4..6d9b9aac6a 100644--- a/packages/sheets-formula/src/locale/pl-PL.ts+++ b/packages/sheets-formula/src/locale/pl-PL.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/pl-PL';-import compatibility from './function-list/compatibility/pl-PL';-import cube from './function-list/cube/pl-PL';-import database from './function-list/database/pl-PL';-import date from './function-list/date/pl-PL';-import engineering from './function-list/engineering/pl-PL';-import financial from './function-list/financial/pl-PL';-import information from './function-list/information/pl-PL';-import logical from './function-list/logical/pl-PL';-import lookup from './function-list/lookup/pl-PL';-import math from './function-list/math/pl-PL';-import statistical from './function-list/statistical/pl-PL';-import text from './function-list/text/pl-PL';-import univer from './function-list/univer/pl-PL';-import web from './function-list/web/pl-PL';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Obliczanie formuł tablicowych...',done: 'Gotowe',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/pt-BR.ts b/packages/sheets-formula/src/locale/pt-BR.tsindex 60ef9842df..3d8e09539e 100644--- a/packages/sheets-formula/src/locale/pt-BR.ts+++ b/packages/sheets-formula/src/locale/pt-BR.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/pt-BR';-import compatibility from './function-list/compatibility/pt-BR';-import cube from './function-list/cube/pt-BR';-import database from './function-list/database/pt-BR';-import date from './function-list/date/pt-BR';-import engineering from './function-list/engineering/pt-BR';-import financial from './function-list/financial/pt-BR';-import information from './function-list/information/pt-BR';-import logical from './function-list/logical/pt-BR';-import lookup from './function-list/lookup/pt-BR';-import math from './function-list/math/pt-BR';-import statistical from './function-list/statistical/pt-BR';-import text from './function-list/text/pt-BR';-import univer from './function-list/univer/pt-BR';-import web from './function-list/web/pt-BR';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Calculando fórmulas de matriz...',done: 'Concluído',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/ru-RU.ts b/packages/sheets-formula/src/locale/ru-RU.tsindex 71063ce7a9..54d8ead819 100644--- a/packages/sheets-formula/src/locale/ru-RU.ts+++ b/packages/sheets-formula/src/locale/ru-RU.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/ru-RU';-import compatibility from './function-list/compatibility/ru-RU';-import cube from './function-list/cube/ru-RU';-import database from './function-list/database/ru-RU';-import date from './function-list/date/ru-RU';-import engineering from './function-list/engineering/ru-RU';-import financial from './function-list/financial/ru-RU';-import information from './function-list/information/ru-RU';-import logical from './function-list/logical/ru-RU';-import lookup from './function-list/lookup/ru-RU';-import math from './function-list/math/ru-RU';-import statistical from './function-list/statistical/ru-RU';-import text from './function-list/text/ru-RU';-import univer from './function-list/univer/ru-RU';-import web from './function-list/web/ru-RU';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Вычисление формул массива...',done: 'Готово',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/sk-SK.ts b/packages/sheets-formula/src/locale/sk-SK.tsindex bcc40ab9d3..d2bb6acd81 100644--- a/packages/sheets-formula/src/locale/sk-SK.ts+++ b/packages/sheets-formula/src/locale/sk-SK.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/sk-SK';-import compatibility from './function-list/compatibility/sk-SK';-import cube from './function-list/cube/sk-SK';-import database from './function-list/database/sk-SK';-import date from './function-list/date/sk-SK';-import engineering from './function-list/engineering/sk-SK';-import financial from './function-list/financial/sk-SK';-import information from './function-list/information/sk-SK';-import logical from './function-list/logical/sk-SK';-import lookup from './function-list/lookup/sk-SK';-import math from './function-list/math/sk-SK';-import statistical from './function-list/statistical/sk-SK';-import text from './function-list/text/sk-SK';-import univer from './function-list/univer/sk-SK';-import web from './function-list/web/sk-SK';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Počítajú sa maticové vzorce...',done: 'Hotovo',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/vi-VN.ts b/packages/sheets-formula/src/locale/vi-VN.tsindex 08bf811ff3..81b7c55cd7 100644--- a/packages/sheets-formula/src/locale/vi-VN.ts+++ b/packages/sheets-formula/src/locale/vi-VN.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/vi-VN';-import compatibility from './function-list/compatibility/vi-VN';-import cube from './function-list/cube/vi-VN';-import database from './function-list/database/vi-VN';-import date from './function-list/date/vi-VN';-import engineering from './function-list/engineering/vi-VN';-import financial from './function-list/financial/vi-VN';-import information from './function-list/information/vi-VN';-import logical from './function-list/logical/vi-VN';-import lookup from './function-list/lookup/vi-VN';-import math from './function-list/math/vi-VN';-import statistical from './function-list/statistical/vi-VN';-import text from './function-list/text/vi-VN';-import univer from './function-list/univer/vi-VN';-import web from './function-list/web/vi-VN';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': 'Đang tính toán công thức mảng...',done: 'Hoàn tất',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/zh-CN.ts b/packages/sheets-formula/src/locale/zh-CN.tsindex d35f0b9905..9ef1e50578 100644--- a/packages/sheets-formula/src/locale/zh-CN.ts+++ b/packages/sheets-formula/src/locale/zh-CN.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/zh-CN';-import compatibility from './function-list/compatibility/zh-CN';-import cube from './function-list/cube/zh-CN';-import database from './function-list/database/zh-CN';-import date from './function-list/date/zh-CN';-import engineering from './function-list/engineering/zh-CN';-import financial from './function-list/financial/zh-CN';-import information from './function-list/information/zh-CN';-import logical from './function-list/logical/zh-CN';-import lookup from './function-list/lookup/zh-CN';-import math from './function-list/math/zh-CN';-import statistical from './function-list/statistical/zh-CN';-import text from './function-list/text/zh-CN';-import univer from './function-list/univer/zh-CN';-import web from './function-list/web/zh-CN';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': '正在计算数组公式...',done: '完成',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/zh-HK.ts b/packages/sheets-formula/src/locale/zh-HK.tsindex da5c3e3ccc..15ff46c427 100644--- a/packages/sheets-formula/src/locale/zh-HK.ts+++ b/packages/sheets-formula/src/locale/zh-HK.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/zh-TW';-import compatibility from './function-list/compatibility/zh-TW';-import cube from './function-list/cube/zh-TW';-import database from './function-list/database/zh-TW';-import date from './function-list/date/zh-TW';-import engineering from './function-list/engineering/zh-TW';-import financial from './function-list/financial/zh-TW';-import information from './function-list/information/zh-TW';-import logical from './function-list/logical/zh-TW';-import lookup from './function-list/lookup/zh-TW';-import math from './function-list/math/zh-TW';-import statistical from './function-list/statistical/zh-TW';-import text from './function-list/text/zh-TW';-import univer from './function-list/univer/zh-TW';-import web from './function-list/web/zh-TW';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': '正在計算陣列公式...',done: '完成',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/locale/zh-TW.ts b/packages/sheets-formula/src/locale/zh-TW.tsindex da5c3e3ccc..15ff46c427 100644--- a/packages/sheets-formula/src/locale/zh-TW.ts+++ b/packages/sheets-formula/src/locale/zh-TW.ts@@ -16,22 +16,6 @@import type enUS from './en-US';-import array from './function-list/array/zh-TW';-import compatibility from './function-list/compatibility/zh-TW';-import cube from './function-list/cube/zh-TW';-import database from './function-list/database/zh-TW';-import date from './function-list/date/zh-TW';-import engineering from './function-list/engineering/zh-TW';-import financial from './function-list/financial/zh-TW';-import information from './function-list/information/zh-TW';-import logical from './function-list/logical/zh-TW';-import lookup from './function-list/lookup/zh-TW';-import math from './function-list/math/zh-TW';-import statistical from './function-list/statistical/zh-TW';-import text from './function-list/text/zh-TW';-import univer from './function-list/univer/zh-TW';-import web from './function-list/web/zh-TW';-const locale: typeof enUS = {'sheets-formula': {progress: {@@ -41,23 +25,6 @@ const locale: typeof enUS = {'array-calculation': '正在計算陣列公式...',done: '完成',},- functionList: {- ...array,- ...compatibility,- ...cube,- ...database,- ...date,- ...engineering,- ...financial,- ...information,- ...logical,- ...lookup,- ...math,- ...statistical,- ...text,- ...univer,- ...web,- },},};diff --git a/packages/sheets-formula/src/plugin.ts b/packages/sheets-formula/src/plugin.tsindex 08979f9f75..43fc15248a 100644--- a/packages/sheets-formula/src/plugin.ts+++ b/packages/sheets-formula/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, isNodeEnv, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';+import { IDescriptionService, UniverFormulaPlugin } from '@univerjs/formula';import { fromModule, IRPCChannelService, toModule } from '@univerjs/rpc';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';@@ -32,18 +33,15 @@ import { ActiveDirtyController } from './controllers/active-dirty.controller';import { ArrayFormulaCellInterceptorController } from './controllers/array-formula-cell-interceptor.controller';import { DefinedNameController } from './controllers/defined-name.controller';import { FormulaAutoFillController } from './controllers/formula-auto-fill.controller';-import { FormulaCalculationSessionController } from './controllers/formula-calculation-session.controller';import { FormulaController } from './controllers/formula.controller';import { ImageFormulaCellInterceptorController } from './controllers/image-formula-cell-interceptor.controller';+import { SheetFormulaCalculationResultApplyController } from './controllers/sheet-formula-calculation-result-apply.controller';import { SuperTableController } from './controllers/super-table.controller';import { TriggerCalculationController } from './controllers/trigger-calculation.controller';import { UnitQualifierRenameController } from './controllers/unit-qualifier-rename.controller';import { UpdateDefinedNameController } from './controllers/update-defined-name.controller';import { UpdateFormulaController } from './controllers/update-formula.controller';-import { DescriptionService, IDescriptionService } from './services/description.service';-import { FormulaCalculationSessionService } from './services/formula-calculation-session.service';import { FormulaRefRangeService } from './services/formula-ref-range.service';-import { IRegisterFunctionService, RegisterFunctionService } from './services/register-function.service';import { IRemoteRegisterFunctionService, RemoteRegisterFunctionService, RemoteRegisterFunctionServiceName } from './services/remote/remote-register-function.service';@DependentOn(UniverFormulaEnginePlugin)@@ -78,7 +76,7 @@ export class UniverRemoteSheetsFormulaPlugin extends Plugin {}}-@DependentOn(UniverSheetsPlugin)+@DependentOn(UniverFormulaPlugin, UniverSheetsPlugin)export class UniverSheetsFormulaPlugin extends Plugin {static override pluginName = SHEETS_FORMULA_PLUGIN_NAME;static override packageName = pkg.name;@@ -104,10 +102,7 @@ export class UniverSheetsFormulaPlugin extends Plugin {override onStarting(): void {const j = this._injector;const dependencies: Dependency[] = [- [IRegisterFunctionService, { useClass: RegisterFunctionService }],- [IDescriptionService, { useClass: DescriptionService }],- [FormulaCalculationSessionService],- [FormulaCalculationSessionController],+ [SheetFormulaCalculationResultApplyController],[FormulaController],[FormulaRefRangeService],[ArrayFormulaCellInterceptorController],@@ -132,6 +127,10 @@ export class UniverSheetsFormulaPlugin extends Plugin {}dependencies.forEach((dependency) => j.add(dependency));++ if (this._config.description?.length) {+ this.disposeWithMe(j.get(IDescriptionService).registerDescriptions(this._config.description));+ }}override onReady(): void {@@ -144,13 +143,13 @@ export class UniverSheetsFormulaPlugin extends Plugin {[UpdateDefinedNameController],[FormulaAutoFillController],[UnitQualifierRenameController],+ [SheetFormulaCalculationResultApplyController],]);// There is no rendering in the nodejs environment, so initialize it hereif (isNodeEnv()) {touchDependencies(this._injector, [[TriggerCalculationController],- [FormulaCalculationSessionController],]);}}@@ -165,7 +164,6 @@ export class UniverSheetsFormulaPlugin extends Plugin {if (!isNodeEnv()) {touchDependencies(this._injector, [[TriggerCalculationController],- [FormulaCalculationSessionController],]);}}diff --git a/packages/sheets-formula/src/services/function-list/compatibility.ts b/packages/sheets-formula/src/services/function-list/compatibility.tsdeleted file mode 100644index 6edec5e492..0000000000--- a/packages/sheets-formula/src/services/function-list/compatibility.ts+++ /dev/null@@ -1,1074 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_COMPATIBILITY, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_COMPATIBILITY.BETADIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.BETADIST.description',- abstract: 'sheets-formula.functionList.BETADIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BETADIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.BETADIST.functionParameter.x.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETADIST.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.BETADIST.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETADIST.functionParameter.beta.name',- detail: 'sheets-formula.functionList.BETADIST.functionParameter.beta.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETADIST.functionParameter.A.name',- detail: 'sheets-formula.functionList.BETADIST.functionParameter.A.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETADIST.functionParameter.B.name',- detail: 'sheets-formula.functionList.BETADIST.functionParameter.B.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.BETAINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.BETAINV.description',- abstract: 'sheets-formula.functionList.BETAINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BETAINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.BETAINV.functionParameter.probability.detail',- example: '0.685470581',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETAINV.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.BETAINV.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETAINV.functionParameter.beta.name',- detail: 'sheets-formula.functionList.BETAINV.functionParameter.beta.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETAINV.functionParameter.A.name',- detail: 'sheets-formula.functionList.BETAINV.functionParameter.A.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETAINV.functionParameter.B.name',- detail: 'sheets-formula.functionList.BETAINV.functionParameter.B.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.BINOMDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.BINOMDIST.description',- abstract: 'sheets-formula.functionList.BINOMDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BINOMDIST.functionParameter.numberS.name',- detail: 'sheets-formula.functionList.BINOMDIST.functionParameter.numberS.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOMDIST.functionParameter.trials.name',- detail: 'sheets-formula.functionList.BINOMDIST.functionParameter.trials.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOMDIST.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.BINOMDIST.functionParameter.probabilityS.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOMDIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.BINOMDIST.functionParameter.cumulative.detail',- example: 'false',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.CHIDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.CHIDIST.description',- abstract: 'sheets-formula.functionList.CHIDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHIDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.CHIDIST.functionParameter.x.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHIDIST.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHIDIST.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.CHIINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.CHIINV.description',- abstract: 'sheets-formula.functionList.CHIINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHIINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.CHIINV.functionParameter.probability.detail',- example: '0.93',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHIINV.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHIINV.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.CHITEST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.CHITEST.description',- abstract: 'sheets-formula.functionList.CHITEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHITEST.functionParameter.actualRange.name',- detail: 'sheets-formula.functionList.CHITEST.functionParameter.actualRange.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHITEST.functionParameter.expectedRange.name',- detail: 'sheets-formula.functionList.CHITEST.functionParameter.expectedRange.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.CONFIDENCE,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.CONFIDENCE.description',- abstract: 'sheets-formula.functionList.CONFIDENCE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONFIDENCE.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.CONFIDENCE.functionParameter.alpha.detail',- example: '0.05',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.CONFIDENCE.functionParameter.standardDev.detail',- example: '2.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE.functionParameter.size.name',- detail: 'sheets-formula.functionList.CONFIDENCE.functionParameter.size.detail',- example: '50',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.COVAR,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.COVAR.description',- abstract: 'sheets-formula.functionList.COVAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COVAR.functionParameter.array1.name',- detail: 'sheets-formula.functionList.COVAR.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COVAR.functionParameter.array2.name',- detail: 'sheets-formula.functionList.COVAR.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.CRITBINOM,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.CRITBINOM.description',- abstract: 'sheets-formula.functionList.CRITBINOM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CRITBINOM.functionParameter.trials.name',- detail: 'sheets-formula.functionList.CRITBINOM.functionParameter.trials.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CRITBINOM.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.CRITBINOM.functionParameter.probabilityS.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CRITBINOM.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.CRITBINOM.functionParameter.alpha.detail',- example: '0.75',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.EXPONDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.EXPONDIST.description',- abstract: 'sheets-formula.functionList.EXPONDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EXPONDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.EXPONDIST.functionParameter.x.detail',- example: '0.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPONDIST.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.EXPONDIST.functionParameter.lambda.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPONDIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.EXPONDIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.FDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.FDIST.description',- abstract: 'sheets-formula.functionList.FDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.FDIST.functionParameter.x.detail',- example: '15.2069',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FDIST.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.FDIST.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FDIST.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.FDIST.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.FINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.FINV.description',- abstract: 'sheets-formula.functionList.FINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.FINV.functionParameter.probability.detail',- example: '0.01',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FINV.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.FINV.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FINV.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.FINV.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.FTEST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.FTEST.description',- abstract: 'sheets-formula.functionList.FTEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FTEST.functionParameter.array1.name',- detail: 'sheets-formula.functionList.FTEST.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FTEST.functionParameter.array2.name',- detail: 'sheets-formula.functionList.FTEST.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.GAMMADIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.GAMMADIST.description',- abstract: 'sheets-formula.functionList.GAMMADIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMADIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.GAMMADIST.functionParameter.x.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMADIST.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.GAMMADIST.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMADIST.functionParameter.beta.name',- detail: 'sheets-formula.functionList.GAMMADIST.functionParameter.beta.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMADIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.GAMMADIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.GAMMAINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.GAMMAINV.description',- abstract: 'sheets-formula.functionList.GAMMAINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMAINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.GAMMAINV.functionParameter.probability.detail',- example: '0.068094',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMAINV.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.GAMMAINV.functionParameter.alpha.detail',- example: '9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMAINV.functionParameter.beta.name',- detail: 'sheets-formula.functionList.GAMMAINV.functionParameter.beta.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.HYPGEOMDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.HYPGEOMDIST.description',- abstract: 'sheets-formula.functionList.HYPGEOMDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.sampleS.name',- detail: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.sampleS.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.numberSample.name',- detail: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.numberSample.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.populationS.name',- detail: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.populationS.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.numberPop.name',- detail: 'sheets-formula.functionList.HYPGEOMDIST.functionParameter.numberPop.detail',- example: '20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.LOGINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.LOGINV.description',- abstract: 'sheets-formula.functionList.LOGINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOGINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.LOGINV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGINV.functionParameter.mean.name',- detail: 'sheets-formula.functionList.LOGINV.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGINV.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.LOGINV.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.LOGNORMDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.LOGNORMDIST.description',- abstract: 'sheets-formula.functionList.LOGNORMDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.x.detail',- example: '42',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.mean.name',- detail: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.LOGNORMDIST.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.MODE,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.MODE.description',- abstract: 'sheets-formula.functionList.MODE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MODE.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MODE.functionParameter.number1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MODE.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MODE.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.NEGBINOMDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.NEGBINOMDIST.description',- abstract: 'sheets-formula.functionList.NEGBINOMDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.numberF.name',- detail: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.numberF.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.numberS.name',- detail: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.numberS.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.NEGBINOMDIST.functionParameter.probabilityS.detail',- example: '0.25',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.NORMDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.NORMDIST.description',- abstract: 'sheets-formula.functionList.NORMDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORMDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.NORMDIST.functionParameter.x.detail',- example: '42',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORMDIST.functionParameter.mean.name',- detail: 'sheets-formula.functionList.NORMDIST.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORMDIST.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.NORMDIST.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORMDIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.NORMDIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.NORMINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.NORMINV.description',- abstract: 'sheets-formula.functionList.NORMINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORMINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.NORMINV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORMINV.functionParameter.mean.name',- detail: 'sheets-formula.functionList.NORMINV.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORMINV.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.NORMINV.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.NORMSDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.NORMSDIST.description',- abstract: 'sheets-formula.functionList.NORMSDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORMSDIST.functionParameter.z.name',- detail: 'sheets-formula.functionList.NORMSDIST.functionParameter.z.detail',- example: '1.333333',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.NORMSINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.NORMSINV.description',- abstract: 'sheets-formula.functionList.NORMSINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORMSINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.NORMSINV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.PERCENTILE,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.PERCENTILE.description',- abstract: 'sheets-formula.functionList.PERCENTILE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTILE.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTILE.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTILE.functionParameter.k.name',- detail: 'sheets-formula.functionList.PERCENTILE.functionParameter.k.detail',- example: '0.3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.PERCENTRANK,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.PERCENTRANK.description',- abstract: 'sheets-formula.functionList.PERCENTRANK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTRANK.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTRANK.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK.functionParameter.x.name',- detail: 'sheets-formula.functionList.PERCENTRANK.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK.functionParameter.significance.name',- detail: 'sheets-formula.functionList.PERCENTRANK.functionParameter.significance.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.POISSON,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.POISSON.description',- abstract: 'sheets-formula.functionList.POISSON.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.POISSON.functionParameter.x.name',- detail: 'sheets-formula.functionList.POISSON.functionParameter.x.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.POISSON.functionParameter.mean.name',- detail: 'sheets-formula.functionList.POISSON.functionParameter.mean.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.POISSON.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.POISSON.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.QUARTILE,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.QUARTILE.description',- abstract: 'sheets-formula.functionList.QUARTILE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.QUARTILE.functionParameter.array.name',- detail: 'sheets-formula.functionList.QUARTILE.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.QUARTILE.functionParameter.quart.name',- detail: 'sheets-formula.functionList.QUARTILE.functionParameter.quart.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.RANK,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.RANK.description',- abstract: 'sheets-formula.functionList.RANK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RANK.functionParameter.number.name',- detail: 'sheets-formula.functionList.RANK.functionParameter.number.detail',- example: 'A3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK.functionParameter.ref.name',- detail: 'sheets-formula.functionList.RANK.functionParameter.ref.detail',- example: 'A2:A6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK.functionParameter.order.name',- detail: 'sheets-formula.functionList.RANK.functionParameter.order.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.STDEV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.STDEV.description',- abstract: 'sheets-formula.functionList.STDEV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEV.functionParameter.number1.name',- detail: 'sheets-formula.functionList.STDEV.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEV.functionParameter.number2.name',- detail: 'sheets-formula.functionList.STDEV.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.STDEVP,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.STDEVP.description',- abstract: 'sheets-formula.functionList.STDEVP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEVP.functionParameter.number1.name',- detail: 'sheets-formula.functionList.STDEVP.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEVP.functionParameter.number2.name',- detail: 'sheets-formula.functionList.STDEVP.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.TDIST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.TDIST.description',- abstract: 'sheets-formula.functionList.TDIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TDIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.TDIST.functionParameter.x.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TDIST.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.TDIST.functionParameter.degFreedom.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TDIST.functionParameter.tails.name',- detail: 'sheets-formula.functionList.TDIST.functionParameter.tails.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.TINV,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.TINV.description',- abstract: 'sheets-formula.functionList.TINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TINV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.TINV.functionParameter.probability.detail',- example: '0.75',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TINV.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.TINV.functionParameter.degFreedom.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.TTEST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.TTEST.description',- abstract: 'sheets-formula.functionList.TTEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TTEST.functionParameter.array1.name',- detail: 'sheets-formula.functionList.TTEST.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TTEST.functionParameter.array2.name',- detail: 'sheets-formula.functionList.TTEST.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TTEST.functionParameter.tails.name',- detail: 'sheets-formula.functionList.TTEST.functionParameter.tails.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TTEST.functionParameter.type.name',- detail: 'sheets-formula.functionList.TTEST.functionParameter.type.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.VAR,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.VAR.description',- abstract: 'sheets-formula.functionList.VAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VAR.functionParameter.number1.name',- detail: 'sheets-formula.functionList.VAR.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VAR.functionParameter.number2.name',- detail: 'sheets-formula.functionList.VAR.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.VARP,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.VARP.description',- abstract: 'sheets-formula.functionList.VARP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VARP.functionParameter.number1.name',- detail: 'sheets-formula.functionList.VARP.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VARP.functionParameter.number2.name',- detail: 'sheets-formula.functionList.VARP.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.WEIBULL,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.WEIBULL.description',- abstract: 'sheets-formula.functionList.WEIBULL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WEIBULL.functionParameter.x.name',- detail: 'sheets-formula.functionList.WEIBULL.functionParameter.x.detail',- example: '105',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.WEIBULL.functionParameter.alpha.detail',- example: '20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL.functionParameter.beta.name',- detail: 'sheets-formula.functionList.WEIBULL.functionParameter.beta.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.WEIBULL.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_COMPATIBILITY.ZTEST,- functionType: FunctionType.Compatibility,- description: 'sheets-formula.functionList.ZTEST.description',- abstract: 'sheets-formula.functionList.ZTEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ZTEST.functionParameter.array.name',- detail: 'sheets-formula.functionList.ZTEST.functionParameter.array.detail',- example: 'A2:A11',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ZTEST.functionParameter.x.name',- detail: 'sheets-formula.functionList.ZTEST.functionParameter.x.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ZTEST.functionParameter.sigma.name',- detail: 'sheets-formula.functionList.ZTEST.functionParameter.sigma.detail',- example: '10',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/cube.ts b/packages/sheets-formula/src/services/function-list/cube.tsdeleted file mode 100644index 67386752a6..0000000000--- a/packages/sheets-formula/src/services/function-list/cube.ts+++ /dev/null@@ -1,231 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_CUBE, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_CUBE: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_CUBE.CUBEKPIMEMBER,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBEKPIMEMBER.description',- abstract: 'sheets-formula.functionList.CUBEKPIMEMBER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.kpiName.name',- detail: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.kpiName.detail',- example: '"Revenue"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.kpiProperty.name',- detail: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.kpiProperty.detail',- example: '"KPIValue"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.caption.name',- detail: 'sheets-formula.functionList.CUBEKPIMEMBER.functionParameter.caption.detail',- example: '"Revenue KPI"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBEMEMBER,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBEMEMBER.description',- abstract: 'sheets-formula.functionList.CUBEMEMBER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.memberExpression.name',- detail: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.memberExpression.detail',- example: '"[Product].[All Products]"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.caption.name',- detail: 'sheets-formula.functionList.CUBEMEMBER.functionParameter.caption.detail',- example: '"All Products"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBEMEMBERPROPERTY,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.description',- abstract: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.memberExpression.name',- detail: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.memberExpression.detail',- example: '"[Product].[All Products]"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.property.name',- detail: 'sheets-formula.functionList.CUBEMEMBERPROPERTY.functionParameter.property.detail',- example: '"Caption"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBERANKEDMEMBER,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBERANKEDMEMBER.description',- abstract: 'sheets-formula.functionList.CUBERANKEDMEMBER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.setExpression.name',- detail: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.setExpression.detail',- example: '"[Product].[All Products].Children"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.rank.name',- detail: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.rank.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.caption.name',- detail: 'sheets-formula.functionList.CUBERANKEDMEMBER.functionParameter.caption.detail',- example: '"Top Product"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBESET,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBESET.description',- abstract: 'sheets-formula.functionList.CUBESET.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBESET.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBESET.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBESET.functionParameter.setExpression.name',- detail: 'sheets-formula.functionList.CUBESET.functionParameter.setExpression.detail',- example: '"[Product].[All Products].Children"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBESET.functionParameter.caption.name',- detail: 'sheets-formula.functionList.CUBESET.functionParameter.caption.detail',- example: '"Products"',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBESET.functionParameter.sortOrder.name',- detail: 'sheets-formula.functionList.CUBESET.functionParameter.sortOrder.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBESET.functionParameter.sortBy.name',- detail: 'sheets-formula.functionList.CUBESET.functionParameter.sortBy.detail',- example: '"[Measures].[Sales]"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBESETCOUNT,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBESETCOUNT.description',- abstract: 'sheets-formula.functionList.CUBESETCOUNT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBESETCOUNT.functionParameter.set.name',- detail: 'sheets-formula.functionList.CUBESETCOUNT.functionParameter.set.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_CUBE.CUBEVALUE,- functionType: FunctionType.Cube,- description: 'sheets-formula.functionList.CUBEVALUE.description',- abstract: 'sheets-formula.functionList.CUBEVALUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUBEVALUE.functionParameter.connection.name',- detail: 'sheets-formula.functionList.CUBEVALUE.functionParameter.connection.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUBEVALUE.functionParameter.memberExpression.name',- detail: 'sheets-formula.functionList.CUBEVALUE.functionParameter.memberExpression.detail',- example: '"[Measures].[Sales]"',- require: 0,- repeat: 1,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/database.ts b/packages/sheets-formula/src/services/function-list/database.tsdeleted file mode 100644index 567fdbff5f..0000000000--- a/packages/sheets-formula/src/services/function-list/database.ts+++ /dev/null@@ -1,369 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_DATABASE, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_DATABASE: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_DATABASE.DAVERAGE,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DAVERAGE.description',- abstract: 'sheets-formula.functionList.DAVERAGE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DAVERAGE.functionParameter.database.name',- detail: 'sheets-formula.functionList.DAVERAGE.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DAVERAGE.functionParameter.field.name',- detail: 'sheets-formula.functionList.DAVERAGE.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DAVERAGE.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DAVERAGE.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DCOUNT,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DCOUNT.description',- abstract: 'sheets-formula.functionList.DCOUNT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DCOUNT.functionParameter.database.name',- detail: 'sheets-formula.functionList.DCOUNT.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DCOUNT.functionParameter.field.name',- detail: 'sheets-formula.functionList.DCOUNT.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DCOUNT.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DCOUNT.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DCOUNTA,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DCOUNTA.description',- abstract: 'sheets-formula.functionList.DCOUNTA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DCOUNTA.functionParameter.database.name',- detail: 'sheets-formula.functionList.DCOUNTA.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DCOUNTA.functionParameter.field.name',- detail: 'sheets-formula.functionList.DCOUNTA.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DCOUNTA.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DCOUNTA.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DGET,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DGET.description',- abstract: 'sheets-formula.functionList.DGET.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DGET.functionParameter.database.name',- detail: 'sheets-formula.functionList.DGET.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DGET.functionParameter.field.name',- detail: 'sheets-formula.functionList.DGET.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DGET.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DGET.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DMAX,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DMAX.description',- abstract: 'sheets-formula.functionList.DMAX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DMAX.functionParameter.database.name',- detail: 'sheets-formula.functionList.DMAX.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DMAX.functionParameter.field.name',- detail: 'sheets-formula.functionList.DMAX.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DMAX.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DMAX.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DMIN,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DMIN.description',- abstract: 'sheets-formula.functionList.DMIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DMIN.functionParameter.database.name',- detail: 'sheets-formula.functionList.DMIN.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DMIN.functionParameter.field.name',- detail: 'sheets-formula.functionList.DMIN.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DMIN.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DMIN.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DPRODUCT,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DPRODUCT.description',- abstract: 'sheets-formula.functionList.DPRODUCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DPRODUCT.functionParameter.database.name',- detail: 'sheets-formula.functionList.DPRODUCT.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DPRODUCT.functionParameter.field.name',- detail: 'sheets-formula.functionList.DPRODUCT.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DPRODUCT.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DPRODUCT.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DSTDEV,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DSTDEV.description',- abstract: 'sheets-formula.functionList.DSTDEV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DSTDEV.functionParameter.database.name',- detail: 'sheets-formula.functionList.DSTDEV.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSTDEV.functionParameter.field.name',- detail: 'sheets-formula.functionList.DSTDEV.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSTDEV.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DSTDEV.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DSTDEVP,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DSTDEVP.description',- abstract: 'sheets-formula.functionList.DSTDEVP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DSTDEVP.functionParameter.database.name',- detail: 'sheets-formula.functionList.DSTDEVP.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSTDEVP.functionParameter.field.name',- detail: 'sheets-formula.functionList.DSTDEVP.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSTDEVP.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DSTDEVP.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DSUM,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DSUM.description',- abstract: 'sheets-formula.functionList.DSUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DSUM.functionParameter.database.name',- detail: 'sheets-formula.functionList.DSUM.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSUM.functionParameter.field.name',- detail: 'sheets-formula.functionList.DSUM.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DSUM.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DSUM.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DVAR,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DVAR.description',- abstract: 'sheets-formula.functionList.DVAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DVAR.functionParameter.database.name',- detail: 'sheets-formula.functionList.DVAR.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DVAR.functionParameter.field.name',- detail: 'sheets-formula.functionList.DVAR.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DVAR.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DVAR.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATABASE.DVARP,- functionType: FunctionType.Database,- description: 'sheets-formula.functionList.DVARP.description',- abstract: 'sheets-formula.functionList.DVARP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DVARP.functionParameter.database.name',- detail: 'sheets-formula.functionList.DVARP.functionParameter.database.detail',- example: 'A4:E10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DVARP.functionParameter.field.name',- detail: 'sheets-formula.functionList.DVARP.functionParameter.field.detail',- example: 'D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DVARP.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.DVARP.functionParameter.criteria.detail',- example: 'A1:B2',- require: 1,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/date.ts b/packages/sheets-formula/src/services/function-list/date.tsdeleted file mode 100644index d21a2bed85..0000000000--- a/packages/sheets-formula/src/services/function-list/date.ts+++ /dev/null@@ -1,594 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_DATE, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_DATE: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_DATE.DATE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DATE.description',- abstract: 'sheets-formula.functionList.DATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DATE.functionParameter.year.name',- detail: 'sheets-formula.functionList.DATE.functionParameter.year.detail',- example: '2024',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DATE.functionParameter.month.name',- detail: 'sheets-formula.functionList.DATE.functionParameter.month.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DATE.functionParameter.day.name',- detail: 'sheets-formula.functionList.DATE.functionParameter.day.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.DATEDIF,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DATEDIF.description',- abstract: 'sheets-formula.functionList.DATEDIF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DATEDIF.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.DATEDIF.functionParameter.startDate.detail',- example: '"2001-6-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DATEDIF.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.DATEDIF.functionParameter.endDate.detail',- example: '"2002-8-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DATEDIF.functionParameter.unit.name',- detail: 'sheets-formula.functionList.DATEDIF.functionParameter.unit.detail',- example: '"D"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.DATEVALUE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DATEVALUE.description',- abstract: 'sheets-formula.functionList.DATEVALUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DATEVALUE.functionParameter.dateText.name',- detail: 'sheets-formula.functionList.DATEVALUE.functionParameter.dateText.detail',- example: '"2024-8-8"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.DAY,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DAY.description',- abstract: 'sheets-formula.functionList.DAY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DAY.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.DAY.functionParameter.serialNumber.detail',- example: '"1969-7-20"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.DAYS,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DAYS.description',- abstract: 'sheets-formula.functionList.DAYS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DAYS.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.DAYS.functionParameter.endDate.detail',- example: '"2021-12-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DAYS.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.DAYS.functionParameter.startDate.detail',- example: '"2021-1-1"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.DAYS360,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.DAYS360.description',- abstract: 'sheets-formula.functionList.DAYS360.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DAYS360.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.DAYS360.functionParameter.startDate.detail',- example: '"2021-1-29"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DAYS360.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.DAYS360.functionParameter.endDate.detail',- example: '"2021-3-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DAYS360.functionParameter.method.name',- detail: 'sheets-formula.functionList.DAYS360.functionParameter.method.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.EDATE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.EDATE.description',- abstract: 'sheets-formula.functionList.EDATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EDATE.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.EDATE.functionParameter.startDate.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EDATE.functionParameter.months.name',- detail: 'sheets-formula.functionList.EDATE.functionParameter.months.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.EOMONTH,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.EOMONTH.description',- abstract: 'sheets-formula.functionList.EOMONTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EOMONTH.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.EOMONTH.functionParameter.startDate.detail',- example: '"2011-1-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EOMONTH.functionParameter.months.name',- detail: 'sheets-formula.functionList.EOMONTH.functionParameter.months.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.EPOCHTODATE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.EPOCHTODATE.description',- abstract: 'sheets-formula.functionList.EPOCHTODATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EPOCHTODATE.functionParameter.timestamp.name',- detail: 'sheets-formula.functionList.EPOCHTODATE.functionParameter.timestamp.detail',- example: '1655906710',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EPOCHTODATE.functionParameter.unit.name',- detail: 'sheets-formula.functionList.EPOCHTODATE.functionParameter.unit.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.HOUR,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.HOUR.description',- abstract: 'sheets-formula.functionList.HOUR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HOUR.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.HOUR.functionParameter.serialNumber.detail',- example: '"2011-7-18 7:45"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.ISOWEEKNUM,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.ISOWEEKNUM.description',- abstract: 'sheets-formula.functionList.ISOWEEKNUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISOWEEKNUM.functionParameter.date.name',- detail: 'sheets-formula.functionList.ISOWEEKNUM.functionParameter.date.detail',- example: '"2012-3-9"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.MINUTE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.MINUTE.description',- abstract: 'sheets-formula.functionList.MINUTE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MINUTE.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.MINUTE.functionParameter.serialNumber.detail',- example: '"12:45"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.MONTH,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.MONTH.description',- abstract: 'sheets-formula.functionList.MONTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MONTH.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.MONTH.functionParameter.serialNumber.detail',- example: '"1969-7-20"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.NETWORKDAYS,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.NETWORKDAYS.description',- abstract: 'sheets-formula.functionList.NETWORKDAYS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.startDate.detail',- example: '"2012-10-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.endDate.detail',- example: '"2013-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.holidays.name',- detail: 'sheets-formula.functionList.NETWORKDAYS.functionParameter.holidays.detail',- example: '"2012-11-22"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.NETWORKDAYS_INTL,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.NETWORKDAYS_INTL.description',- abstract: 'sheets-formula.functionList.NETWORKDAYS_INTL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.detail',- example: '"2012-10-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.detail',- example: '"2013-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.name',- detail: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.detail',- example: '6',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.name',- detail: 'sheets-formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.detail',- example: '"2012-11-22"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.NOW,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.NOW.description',- abstract: 'sheets-formula.functionList.NOW.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_DATE.SECOND,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.SECOND.description',- abstract: 'sheets-formula.functionList.SECOND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SECOND.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.SECOND.functionParameter.serialNumber.detail',- example: '"4:48:18"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.TIME,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.TIME.description',- abstract: 'sheets-formula.functionList.TIME.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TIME.functionParameter.hour.name',- detail: 'sheets-formula.functionList.TIME.functionParameter.hour.detail',- example: '15',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TIME.functionParameter.minute.name',- detail: 'sheets-formula.functionList.TIME.functionParameter.minute.detail',- example: '20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TIME.functionParameter.second.name',- detail: 'sheets-formula.functionList.TIME.functionParameter.second.detail',- example: '59',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.TIMEVALUE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.TIMEVALUE.description',- abstract: 'sheets-formula.functionList.TIMEVALUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TIMEVALUE.functionParameter.timeText.name',- detail: 'sheets-formula.functionList.TIMEVALUE.functionParameter.timeText.detail',- example: '"15:20:59"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.TO_DATE,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.TO_DATE.description',- abstract: 'sheets-formula.functionList.TO_DATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TO_DATE.functionParameter.value.name',- detail: 'sheets-formula.functionList.TO_DATE.functionParameter.value.detail',- example: '40826.4375',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.TODAY,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.TODAY.description',- abstract: 'sheets-formula.functionList.TODAY.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_DATE.WEEKDAY,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.WEEKDAY.description',- abstract: 'sheets-formula.functionList.WEEKDAY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WEEKDAY.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.WEEKDAY.functionParameter.serialNumber.detail',- example: '"2008-2-14"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEEKDAY.functionParameter.returnType.name',- detail: 'sheets-formula.functionList.WEEKDAY.functionParameter.returnType.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.WEEKNUM,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.WEEKNUM.description',- abstract: 'sheets-formula.functionList.WEEKNUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WEEKNUM.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.WEEKNUM.functionParameter.serialNumber.detail',- example: '"2012-3-9"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEEKNUM.functionParameter.returnType.name',- detail: 'sheets-formula.functionList.WEEKNUM.functionParameter.returnType.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.WORKDAY,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.WORKDAY.description',- abstract: 'sheets-formula.functionList.WORKDAY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WORKDAY.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.WORKDAY.functionParameter.startDate.detail',- example: '"2008-10-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WORKDAY.functionParameter.days.name',- detail: 'sheets-formula.functionList.WORKDAY.functionParameter.days.detail',- example: '151',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WORKDAY.functionParameter.holidays.name',- detail: 'sheets-formula.functionList.WORKDAY.functionParameter.holidays.detail',- example: '"2008-11-26"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.WORKDAY_INTL,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.WORKDAY_INTL.description',- abstract: 'sheets-formula.functionList.WORKDAY_INTL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.startDate.detail',- example: '"2008-10-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.days.name',- detail: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.days.detail',- example: '151',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.weekend.name',- detail: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.weekend.detail',- example: '6',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.holidays.name',- detail: 'sheets-formula.functionList.WORKDAY_INTL.functionParameter.holidays.detail',- example: '"2008-11-26"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.YEAR,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.YEAR.description',- abstract: 'sheets-formula.functionList.YEAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.YEAR.functionParameter.serialNumber.name',- detail: 'sheets-formula.functionList.YEAR.functionParameter.serialNumber.detail',- example: '"1969-7-20"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_DATE.YEARFRAC,- functionType: FunctionType.Date,- description: 'sheets-formula.functionList.YEARFRAC.description',- abstract: 'sheets-formula.functionList.YEARFRAC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.YEARFRAC.functionParameter.startDate.name',- detail: 'sheets-formula.functionList.YEARFRAC.functionParameter.startDate.detail',- example: '"2012-1-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YEARFRAC.functionParameter.endDate.name',- detail: 'sheets-formula.functionList.YEARFRAC.functionParameter.endDate.detail',- example: '"2012-7-30"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YEARFRAC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.YEARFRAC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/engineering.ts b/packages/sheets-formula/src/services/function-list/engineering.tsdeleted file mode 100644index 1ffc214604..0000000000--- a/packages/sheets-formula/src/services/function-list/engineering.ts+++ /dev/null@@ -1,1093 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_ENGINEERING, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_ENGINEERING: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_ENGINEERING.BESSELI,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BESSELI.description',- abstract: 'sheets-formula.functionList.BESSELI.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BESSELI.functionParameter.x.name',- detail: 'sheets-formula.functionList.BESSELI.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BESSELI.functionParameter.n.name',- detail: 'sheets-formula.functionList.BESSELI.functionParameter.n.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BESSELJ,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BESSELJ.description',- abstract: 'sheets-formula.functionList.BESSELJ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BESSELJ.functionParameter.x.name',- detail: 'sheets-formula.functionList.BESSELJ.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BESSELJ.functionParameter.n.name',- detail: 'sheets-formula.functionList.BESSELJ.functionParameter.n.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BESSELK,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BESSELK.description',- abstract: 'sheets-formula.functionList.BESSELK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BESSELK.functionParameter.x.name',- detail: 'sheets-formula.functionList.BESSELK.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BESSELK.functionParameter.n.name',- detail: 'sheets-formula.functionList.BESSELK.functionParameter.n.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BESSELY,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BESSELY.description',- abstract: 'sheets-formula.functionList.BESSELY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BESSELY.functionParameter.x.name',- detail: 'sheets-formula.functionList.BESSELY.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BESSELY.functionParameter.n.name',- detail: 'sheets-formula.functionList.BESSELY.functionParameter.n.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BIN2DEC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BIN2DEC.description',- abstract: 'sheets-formula.functionList.BIN2DEC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BIN2DEC.functionParameter.number.name',- detail: 'sheets-formula.functionList.BIN2DEC.functionParameter.number.detail',- example: '1100100',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BIN2HEX,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BIN2HEX.description',- abstract: 'sheets-formula.functionList.BIN2HEX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BIN2HEX.functionParameter.number.name',- detail: 'sheets-formula.functionList.BIN2HEX.functionParameter.number.detail',- example: '11111011',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BIN2HEX.functionParameter.places.name',- detail: 'sheets-formula.functionList.BIN2HEX.functionParameter.places.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BIN2OCT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BIN2OCT.description',- abstract: 'sheets-formula.functionList.BIN2OCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BIN2OCT.functionParameter.number.name',- detail: 'sheets-formula.functionList.BIN2OCT.functionParameter.number.detail',- example: '1001',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BIN2OCT.functionParameter.places.name',- detail: 'sheets-formula.functionList.BIN2OCT.functionParameter.places.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BITAND,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BITAND.description',- abstract: 'sheets-formula.functionList.BITAND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BITAND.functionParameter.number1.name',- detail: 'sheets-formula.functionList.BITAND.functionParameter.number1.detail',- example: '13',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BITAND.functionParameter.number2.name',- detail: 'sheets-formula.functionList.BITAND.functionParameter.number2.detail',- example: '25',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BITLSHIFT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BITLSHIFT.description',- abstract: 'sheets-formula.functionList.BITLSHIFT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BITLSHIFT.functionParameter.number.name',- detail: 'sheets-formula.functionList.BITLSHIFT.functionParameter.number.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BITLSHIFT.functionParameter.shiftAmount.name',- detail: 'sheets-formula.functionList.BITLSHIFT.functionParameter.shiftAmount.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BITOR,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BITOR.description',- abstract: 'sheets-formula.functionList.BITOR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BITOR.functionParameter.number1.name',- detail: 'sheets-formula.functionList.BITOR.functionParameter.number1.detail',- example: '23',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BITOR.functionParameter.number2.name',- detail: 'sheets-formula.functionList.BITOR.functionParameter.number2.detail',- example: '10',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BITRSHIFT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BITRSHIFT.description',- abstract: 'sheets-formula.functionList.BITRSHIFT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BITRSHIFT.functionParameter.number.name',- detail: 'sheets-formula.functionList.BITRSHIFT.functionParameter.number.detail',- example: '13',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BITRSHIFT.functionParameter.shiftAmount.name',- detail: 'sheets-formula.functionList.BITRSHIFT.functionParameter.shiftAmount.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.BITXOR,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.BITXOR.description',- abstract: 'sheets-formula.functionList.BITXOR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BITXOR.functionParameter.number1.name',- detail: 'sheets-formula.functionList.BITXOR.functionParameter.number1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BITXOR.functionParameter.number2.name',- detail: 'sheets-formula.functionList.BITXOR.functionParameter.number2.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.COMPLEX,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.COMPLEX.description',- abstract: 'sheets-formula.functionList.COMPLEX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COMPLEX.functionParameter.realNum.name',- detail: 'sheets-formula.functionList.COMPLEX.functionParameter.realNum.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COMPLEX.functionParameter.iNum.name',- detail: 'sheets-formula.functionList.COMPLEX.functionParameter.iNum.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COMPLEX.functionParameter.suffix.name',- detail: 'sheets-formula.functionList.COMPLEX.functionParameter.suffix.detail',- example: '"i"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.CONVERT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.CONVERT.description',- abstract: 'sheets-formula.functionList.CONVERT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONVERT.functionParameter.number.name',- detail: 'sheets-formula.functionList.CONVERT.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONVERT.functionParameter.fromUnit.name',- detail: 'sheets-formula.functionList.CONVERT.functionParameter.fromUnit.detail',- example: '"lbm"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONVERT.functionParameter.toUnit.name',- detail: 'sheets-formula.functionList.CONVERT.functionParameter.toUnit.detail',- example: '"kg"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.DEC2BIN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.DEC2BIN.description',- abstract: 'sheets-formula.functionList.DEC2BIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DEC2BIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.DEC2BIN.functionParameter.number.detail',- example: '9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DEC2BIN.functionParameter.places.name',- detail: 'sheets-formula.functionList.DEC2BIN.functionParameter.places.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.DEC2HEX,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.DEC2HEX.description',- abstract: 'sheets-formula.functionList.DEC2HEX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DEC2HEX.functionParameter.number.name',- detail: 'sheets-formula.functionList.DEC2HEX.functionParameter.number.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DEC2HEX.functionParameter.places.name',- detail: 'sheets-formula.functionList.DEC2HEX.functionParameter.places.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.DEC2OCT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.DEC2OCT.description',- abstract: 'sheets-formula.functionList.DEC2OCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DEC2OCT.functionParameter.number.name',- detail: 'sheets-formula.functionList.DEC2OCT.functionParameter.number.detail',- example: '58',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DEC2OCT.functionParameter.places.name',- detail: 'sheets-formula.functionList.DEC2OCT.functionParameter.places.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.DELTA,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.DELTA.description',- abstract: 'sheets-formula.functionList.DELTA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DELTA.functionParameter.number1.name',- detail: 'sheets-formula.functionList.DELTA.functionParameter.number1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DELTA.functionParameter.number2.name',- detail: 'sheets-formula.functionList.DELTA.functionParameter.number2.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.ERF,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.ERF.description',- abstract: 'sheets-formula.functionList.ERF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ERF.functionParameter.lowerLimit.name',- detail: 'sheets-formula.functionList.ERF.functionParameter.lowerLimit.detail',- example: '0.745',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ERF.functionParameter.upperLimit.name',- detail: 'sheets-formula.functionList.ERF.functionParameter.upperLimit.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.ERF_PRECISE,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.ERF_PRECISE.description',- abstract: 'sheets-formula.functionList.ERF_PRECISE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ERF_PRECISE.functionParameter.x.name',- detail: 'sheets-formula.functionList.ERF_PRECISE.functionParameter.x.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.ERFC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.ERFC.description',- abstract: 'sheets-formula.functionList.ERFC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ERFC.functionParameter.x.name',- detail: 'sheets-formula.functionList.ERFC.functionParameter.x.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.ERFC_PRECISE,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.ERFC_PRECISE.description',- abstract: 'sheets-formula.functionList.ERFC_PRECISE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ERFC_PRECISE.functionParameter.x.name',- detail: 'sheets-formula.functionList.ERFC_PRECISE.functionParameter.x.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.GESTEP,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.GESTEP.description',- abstract: 'sheets-formula.functionList.GESTEP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GESTEP.functionParameter.number.name',- detail: 'sheets-formula.functionList.GESTEP.functionParameter.number.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GESTEP.functionParameter.step.name',- detail: 'sheets-formula.functionList.GESTEP.functionParameter.step.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.HEX2BIN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.HEX2BIN.description',- abstract: 'sheets-formula.functionList.HEX2BIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HEX2BIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.HEX2BIN.functionParameter.number.detail',- example: '"F"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HEX2BIN.functionParameter.places.name',- detail: 'sheets-formula.functionList.HEX2BIN.functionParameter.places.detail',- example: '8',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.HEX2DEC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.HEX2DEC.description',- abstract: 'sheets-formula.functionList.HEX2DEC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HEX2DEC.functionParameter.number.name',- detail: 'sheets-formula.functionList.HEX2DEC.functionParameter.number.detail',- example: '"A5"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.HEX2OCT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.HEX2OCT.description',- abstract: 'sheets-formula.functionList.HEX2OCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HEX2OCT.functionParameter.number.name',- detail: 'sheets-formula.functionList.HEX2OCT.functionParameter.number.detail',- example: '"F"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HEX2OCT.functionParameter.places.name',- detail: 'sheets-formula.functionList.HEX2OCT.functionParameter.places.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMABS,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMABS.description',- abstract: 'sheets-formula.functionList.IMABS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMABS.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMABS.functionParameter.inumber.detail',- example: '"5+12i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMAGINARY,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMAGINARY.description',- abstract: 'sheets-formula.functionList.IMAGINARY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMAGINARY.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMAGINARY.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMARGUMENT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMARGUMENT.description',- abstract: 'sheets-formula.functionList.IMARGUMENT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMARGUMENT.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMARGUMENT.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCONJUGATE,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCONJUGATE.description',- abstract: 'sheets-formula.functionList.IMCONJUGATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCONJUGATE.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCONJUGATE.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCOS,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCOS.description',- abstract: 'sheets-formula.functionList.IMCOS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCOS.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCOS.functionParameter.inumber.detail',- example: '"1+i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCOSH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCOSH.description',- abstract: 'sheets-formula.functionList.IMCOSH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCOSH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCOSH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCOT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCOT.description',- abstract: 'sheets-formula.functionList.IMCOT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCOT.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCOT.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCOTH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCOTH.description',- abstract: 'sheets-formula.functionList.IMCOTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCOTH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCOTH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCSC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCSC.description',- abstract: 'sheets-formula.functionList.IMCSC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCSC.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCSC.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMCSCH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMCSCH.description',- abstract: 'sheets-formula.functionList.IMCSCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMCSCH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMCSCH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMDIV,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMDIV.description',- abstract: 'sheets-formula.functionList.IMDIV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMDIV.functionParameter.inumber1.name',- detail: 'sheets-formula.functionList.IMDIV.functionParameter.inumber1.detail',- example: '"-238+240i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMDIV.functionParameter.inumber2.name',- detail: 'sheets-formula.functionList.IMDIV.functionParameter.inumber2.detail',- example: '"10+24i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMEXP,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMEXP.description',- abstract: 'sheets-formula.functionList.IMEXP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMEXP.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMEXP.functionParameter.inumber.detail',- example: '"1+i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMLN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMLN.description',- abstract: 'sheets-formula.functionList.IMLN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMLN.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMLN.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMLOG,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMLOG.description',- abstract: 'sheets-formula.functionList.IMLOG.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMLOG.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMLOG.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMLOG.functionParameter.base.name',- detail: 'sheets-formula.functionList.IMLOG.functionParameter.base.detail',- example: '10',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMLOG10,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMLOG10.description',- abstract: 'sheets-formula.functionList.IMLOG10.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMLOG10.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMLOG10.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMLOG2,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMLOG2.description',- abstract: 'sheets-formula.functionList.IMLOG2.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMLOG2.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMLOG2.functionParameter.inumber.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMPOWER,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMPOWER.description',- abstract: 'sheets-formula.functionList.IMPOWER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMPOWER.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMPOWER.functionParameter.inumber.detail',- example: '"2+3i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMPOWER.functionParameter.number.name',- detail: 'sheets-formula.functionList.IMPOWER.functionParameter.number.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMPRODUCT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMPRODUCT.description',- abstract: 'sheets-formula.functionList.IMPRODUCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMPRODUCT.functionParameter.inumber1.name',- detail: 'sheets-formula.functionList.IMPRODUCT.functionParameter.inumber1.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMPRODUCT.functionParameter.inumber2.name',- detail: 'sheets-formula.functionList.IMPRODUCT.functionParameter.inumber2.detail',- example: '"5-3i"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMREAL,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMREAL.description',- abstract: 'sheets-formula.functionList.IMREAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMREAL.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMREAL.functionParameter.inumber.detail',- example: '"6-9i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSEC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSEC.description',- abstract: 'sheets-formula.functionList.IMSEC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSEC.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMSEC.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSECH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSECH.description',- abstract: 'sheets-formula.functionList.IMSECH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSECH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMSECH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSIN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSIN.description',- abstract: 'sheets-formula.functionList.IMSIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSIN.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMSIN.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSINH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSINH.description',- abstract: 'sheets-formula.functionList.IMSINH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSINH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMSINH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSQRT,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSQRT.description',- abstract: 'sheets-formula.functionList.IMSQRT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSQRT.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMSQRT.functionParameter.inumber.detail',- example: '"1+i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSUB,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSUB.description',- abstract: 'sheets-formula.functionList.IMSUB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSUB.functionParameter.inumber1.name',- detail: 'sheets-formula.functionList.IMSUB.functionParameter.inumber1.detail',- example: '"13+4i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMSUB.functionParameter.inumber2.name',- detail: 'sheets-formula.functionList.IMSUB.functionParameter.inumber2.detail',- example: '"5+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMSUM,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMSUM.description',- abstract: 'sheets-formula.functionList.IMSUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMSUM.functionParameter.inumber1.name',- detail: 'sheets-formula.functionList.IMSUM.functionParameter.inumber1.detail',- example: '"3+4i"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMSUM.functionParameter.inumber2.name',- detail: 'sheets-formula.functionList.IMSUM.functionParameter.inumber2.detail',- example: '"5-3i"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMTAN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMTAN.description',- abstract: 'sheets-formula.functionList.IMTAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMTAN.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMTAN.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.IMTANH,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.IMTANH.description',- abstract: 'sheets-formula.functionList.IMTANH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMTANH.functionParameter.inumber.name',- detail: 'sheets-formula.functionList.IMTANH.functionParameter.inumber.detail',- example: '"4+3i"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.OCT2BIN,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.OCT2BIN.description',- abstract: 'sheets-formula.functionList.OCT2BIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.OCT2BIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.OCT2BIN.functionParameter.number.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OCT2BIN.functionParameter.places.name',- detail: 'sheets-formula.functionList.OCT2BIN.functionParameter.places.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.OCT2DEC,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.OCT2DEC.description',- abstract: 'sheets-formula.functionList.OCT2DEC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.OCT2DEC.functionParameter.number.name',- detail: 'sheets-formula.functionList.OCT2DEC.functionParameter.number.detail',- example: '54',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_ENGINEERING.OCT2HEX,- functionType: FunctionType.Engineering,- description: 'sheets-formula.functionList.OCT2HEX.description',- abstract: 'sheets-formula.functionList.OCT2HEX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.OCT2HEX.functionParameter.number.name',- detail: 'sheets-formula.functionList.OCT2HEX.functionParameter.number.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OCT2HEX.functionParameter.places.name',- detail: 'sheets-formula.functionList.OCT2HEX.functionParameter.places.detail',- example: '4',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/financial.ts b/packages/sheets-formula/src/services/function-list/financial.tsdeleted file mode 100644index b5dd17ba2f..0000000000--- a/packages/sheets-formula/src/services/function-list/financial.ts+++ /dev/null@@ -1,2316 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_FINANCIAL, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_FINANCIAL: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_FINANCIAL.ACCRINT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ACCRINT.description',- abstract: 'sheets-formula.functionList.ACCRINT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.issue.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.issue.detail',- example: '"2008-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.firstInterest.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.firstInterest.detail',- example: '"2008-8-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.settlement.detail',- example: '"2008-5-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.rate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.par.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.par.detail',- example: '1000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.basis.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINT.functionParameter.calcMethod.name',- detail: 'sheets-formula.functionList.ACCRINT.functionParameter.calcMethod.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ACCRINTM,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ACCRINTM.description',- abstract: 'sheets-formula.functionList.ACCRINTM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACCRINTM.functionParameter.issue.name',- detail: 'sheets-formula.functionList.ACCRINTM.functionParameter.issue.detail',- example: '"2008-4-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINTM.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ACCRINTM.functionParameter.settlement.detail',- example: '"2008-6-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINTM.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ACCRINTM.functionParameter.rate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINTM.functionParameter.par.name',- detail: 'sheets-formula.functionList.ACCRINTM.functionParameter.par.detail',- example: '1000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ACCRINTM.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ACCRINTM.functionParameter.basis.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.AMORDEGRC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.AMORDEGRC.description',- abstract: 'sheets-formula.functionList.AMORDEGRC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.cost.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.cost.detail',- example: '2400',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.datePurchased.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.datePurchased.detail',- example: '"2008-8-19"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.firstPeriod.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.firstPeriod.detail',- example: '"2008-12-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.salvage.detail',- example: '300',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.period.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.period.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.rate.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.rate.detail',- example: '15%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORDEGRC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.AMORDEGRC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.AMORLINC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.AMORLINC.description',- abstract: 'sheets-formula.functionList.AMORLINC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.cost.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.cost.detail',- example: '2400',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.datePurchased.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.datePurchased.detail',- example: '"2008-8-19"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.firstPeriod.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.firstPeriod.detail',- example: '"2008-12-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.salvage.detail',- example: '300',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.period.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.period.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.rate.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.rate.detail',- example: '15%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AMORLINC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.AMORLINC.functionParameter.basis.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYBS,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPDAYBS.description',- abstract: 'sheets-formula.functionList.COUPDAYBS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPDAYBS.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPDAYBS.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYBS.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPDAYBS.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYBS.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPDAYBS.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYBS.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPDAYBS.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYS,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPDAYS.description',- abstract: 'sheets-formula.functionList.COUPDAYS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPDAYS.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPDAYS.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYS.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPDAYS.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYS.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPDAYS.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYS.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPDAYS.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPDAYSNC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPDAYSNC.description',- abstract: 'sheets-formula.functionList.COUPDAYSNC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPDAYSNC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPNCD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPNCD.description',- abstract: 'sheets-formula.functionList.COUPNCD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPNCD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPNCD.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNCD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPNCD.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNCD.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPNCD.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNCD.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPNCD.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPNUM,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPNUM.description',- abstract: 'sheets-formula.functionList.COUPNUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPNUM.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPNUM.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNUM.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPNUM.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNUM.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPNUM.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPNUM.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPNUM.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.COUPPCD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.COUPPCD.description',- abstract: 'sheets-formula.functionList.COUPPCD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUPPCD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.COUPPCD.functionParameter.settlement.detail',- example: '"2011-1-25"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPPCD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.COUPPCD.functionParameter.maturity.detail',- example: '"2011-11-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPPCD.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.COUPPCD.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUPPCD.functionParameter.basis.name',- detail: 'sheets-formula.functionList.COUPPCD.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.CUMIPMT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.CUMIPMT.description',- abstract: 'sheets-formula.functionList.CUMIPMT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.rate.detail',- example: '9%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.nper.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.nper.detail',- example: '30*12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.pv.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.pv.detail',- example: '125000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.startPeriod.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.startPeriod.detail',- example: '13',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.endPeriod.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.endPeriod.detail',- example: '24',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMIPMT.functionParameter.type.name',- detail: 'sheets-formula.functionList.CUMIPMT.functionParameter.type.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.CUMPRINC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.CUMPRINC.description',- abstract: 'sheets-formula.functionList.CUMPRINC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.rate.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.rate.detail',- example: '9%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.nper.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.nper.detail',- example: '30*12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.pv.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.pv.detail',- example: '125000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.startPeriod.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.startPeriod.detail',- example: '13',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.endPeriod.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.endPeriod.detail',- example: '24',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CUMPRINC.functionParameter.type.name',- detail: 'sheets-formula.functionList.CUMPRINC.functionParameter.type.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DB,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DB.description',- abstract: 'sheets-formula.functionList.DB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DB.functionParameter.cost.name',- detail: 'sheets-formula.functionList.DB.functionParameter.cost.detail',- example: '10000000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DB.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.DB.functionParameter.salvage.detail',- example: '1000000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DB.functionParameter.life.name',- detail: 'sheets-formula.functionList.DB.functionParameter.life.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DB.functionParameter.period.name',- detail: 'sheets-formula.functionList.DB.functionParameter.period.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DB.functionParameter.month.name',- detail: 'sheets-formula.functionList.DB.functionParameter.month.detail',- example: '7',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DDB,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DDB.description',- abstract: 'sheets-formula.functionList.DDB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DDB.functionParameter.cost.name',- detail: 'sheets-formula.functionList.DDB.functionParameter.cost.detail',- example: '24000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DDB.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.DDB.functionParameter.salvage.detail',- example: '3000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DDB.functionParameter.life.name',- detail: 'sheets-formula.functionList.DDB.functionParameter.life.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DDB.functionParameter.period.name',- detail: 'sheets-formula.functionList.DDB.functionParameter.period.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DDB.functionParameter.factor.name',- detail: 'sheets-formula.functionList.DDB.functionParameter.factor.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DISC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DISC.description',- abstract: 'sheets-formula.functionList.DISC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DISC.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.DISC.functionParameter.settlement.detail',- example: '"2018-7-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DISC.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.DISC.functionParameter.maturity.detail',- example: '"2048-1-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DISC.functionParameter.pr.name',- detail: 'sheets-formula.functionList.DISC.functionParameter.pr.detail',- example: '97.975',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DISC.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.DISC.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DISC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.DISC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DOLLARDE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DOLLARDE.description',- abstract: 'sheets-formula.functionList.DOLLARDE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DOLLARDE.functionParameter.fractionalDollar.name',- detail: 'sheets-formula.functionList.DOLLARDE.functionParameter.fractionalDollar.detail',- example: '1.02',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DOLLARDE.functionParameter.fraction.name',- detail: 'sheets-formula.functionList.DOLLARDE.functionParameter.fraction.detail',- example: '16',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DOLLARFR,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DOLLARFR.description',- abstract: 'sheets-formula.functionList.DOLLARFR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DOLLARFR.functionParameter.decimalDollar.name',- detail: 'sheets-formula.functionList.DOLLARFR.functionParameter.decimalDollar.detail',- example: '1.125',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DOLLARFR.functionParameter.fraction.name',- detail: 'sheets-formula.functionList.DOLLARFR.functionParameter.fraction.detail',- example: '16',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.DURATION,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.DURATION.description',- abstract: 'sheets-formula.functionList.DURATION.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DURATION.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.settlement.detail',- example: '"2018-7-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DURATION.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.maturity.detail',- example: '"2048-1-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DURATION.functionParameter.coupon.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.coupon.detail',- example: '8%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DURATION.functionParameter.yld.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.yld.detail',- example: '9%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DURATION.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DURATION.functionParameter.basis.name',- detail: 'sheets-formula.functionList.DURATION.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.EFFECT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.EFFECT.description',- abstract: 'sheets-formula.functionList.EFFECT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EFFECT.functionParameter.nominalRate.name',- detail: 'sheets-formula.functionList.EFFECT.functionParameter.nominalRate.detail',- example: '5.25%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EFFECT.functionParameter.npery.name',- detail: 'sheets-formula.functionList.EFFECT.functionParameter.npery.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.FV,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.FV.description',- abstract: 'sheets-formula.functionList.FV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FV.functionParameter.rate.name',- detail: 'sheets-formula.functionList.FV.functionParameter.rate.detail',- example: '6%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FV.functionParameter.nper.name',- detail: 'sheets-formula.functionList.FV.functionParameter.nper.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FV.functionParameter.pmt.name',- detail: 'sheets-formula.functionList.FV.functionParameter.pmt.detail',- example: '-200',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FV.functionParameter.pv.name',- detail: 'sheets-formula.functionList.FV.functionParameter.pv.detail',- example: '-500',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FV.functionParameter.type.name',- detail: 'sheets-formula.functionList.FV.functionParameter.type.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.FVSCHEDULE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.FVSCHEDULE.description',- abstract: 'sheets-formula.functionList.FVSCHEDULE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FVSCHEDULE.functionParameter.principal.name',- detail: 'sheets-formula.functionList.FVSCHEDULE.functionParameter.principal.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FVSCHEDULE.functionParameter.schedule.name',- detail: 'sheets-formula.functionList.FVSCHEDULE.functionParameter.schedule.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.INTRATE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.INTRATE.description',- abstract: 'sheets-formula.functionList.INTRATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INTRATE.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.INTRATE.functionParameter.settlement.detail',- example: '"2008-2-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INTRATE.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.INTRATE.functionParameter.maturity.detail',- example: '"2008-5-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INTRATE.functionParameter.investment.name',- detail: 'sheets-formula.functionList.INTRATE.functionParameter.investment.detail',- example: '10000000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INTRATE.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.INTRATE.functionParameter.redemption.detail',- example: '10144200',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INTRATE.functionParameter.basis.name',- detail: 'sheets-formula.functionList.INTRATE.functionParameter.basis.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.IPMT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.IPMT.description',- abstract: 'sheets-formula.functionList.IPMT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IPMT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.rate.detail',- example: '10%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IPMT.functionParameter.per.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.per.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IPMT.functionParameter.nper.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.nper.detail',- example: '3*12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IPMT.functionParameter.pv.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.pv.detail',- example: '80000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IPMT.functionParameter.fv.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.fv.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IPMT.functionParameter.type.name',- detail: 'sheets-formula.functionList.IPMT.functionParameter.type.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.IRR,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.IRR.description',- abstract: 'sheets-formula.functionList.IRR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IRR.functionParameter.values.name',- detail: 'sheets-formula.functionList.IRR.functionParameter.values.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IRR.functionParameter.guess.name',- detail: 'sheets-formula.functionList.IRR.functionParameter.guess.detail',- example: '0.1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ISPMT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ISPMT.description',- abstract: 'sheets-formula.functionList.ISPMT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISPMT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ISPMT.functionParameter.rate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISPMT.functionParameter.per.name',- detail: 'sheets-formula.functionList.ISPMT.functionParameter.per.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISPMT.functionParameter.nper.name',- detail: 'sheets-formula.functionList.ISPMT.functionParameter.nper.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISPMT.functionParameter.pv.name',- detail: 'sheets-formula.functionList.ISPMT.functionParameter.pv.detail',- example: '1000',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.MDURATION,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.MDURATION.description',- abstract: 'sheets-formula.functionList.MDURATION.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.settlement.detail',- example: '"2018-7-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.maturity.detail',- example: '"2048-1-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.coupon.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.coupon.detail',- example: '8%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.yld.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.yld.detail',- example: '9%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MDURATION.functionParameter.basis.name',- detail: 'sheets-formula.functionList.MDURATION.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.MIRR,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.MIRR.description',- abstract: 'sheets-formula.functionList.MIRR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MIRR.functionParameter.values.name',- detail: 'sheets-formula.functionList.MIRR.functionParameter.values.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MIRR.functionParameter.financeRate.name',- detail: 'sheets-formula.functionList.MIRR.functionParameter.financeRate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MIRR.functionParameter.reinvestRate.name',- detail: 'sheets-formula.functionList.MIRR.functionParameter.reinvestRate.detail',- example: '12%',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.NOMINAL,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.NOMINAL.description',- abstract: 'sheets-formula.functionList.NOMINAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NOMINAL.functionParameter.effectRate.name',- detail: 'sheets-formula.functionList.NOMINAL.functionParameter.effectRate.detail',- example: '5.3543%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NOMINAL.functionParameter.npery.name',- detail: 'sheets-formula.functionList.NOMINAL.functionParameter.npery.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.NPER,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.NPER.description',- abstract: 'sheets-formula.functionList.NPER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NPER.functionParameter.rate.name',- detail: 'sheets-formula.functionList.NPER.functionParameter.rate.detail',- example: '12%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPER.functionParameter.pmt.name',- detail: 'sheets-formula.functionList.NPER.functionParameter.pmt.detail',- example: '-100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPER.functionParameter.pv.name',- detail: 'sheets-formula.functionList.NPER.functionParameter.pv.detail',- example: '-1000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPER.functionParameter.fv.name',- detail: 'sheets-formula.functionList.NPER.functionParameter.fv.detail',- example: '10000',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPER.functionParameter.type.name',- detail: 'sheets-formula.functionList.NPER.functionParameter.type.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.NPV,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.NPV.description',- abstract: 'sheets-formula.functionList.NPV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NPV.functionParameter.rate.name',- detail: 'sheets-formula.functionList.NPV.functionParameter.rate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPV.functionParameter.value1.name',- detail: 'sheets-formula.functionList.NPV.functionParameter.value1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NPV.functionParameter.value2.name',- detail: 'sheets-formula.functionList.NPV.functionParameter.value2.detail',- example: '-9000',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ODDFPRICE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ODDFPRICE.description',- abstract: 'sheets-formula.functionList.ODDFPRICE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.issue.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.issue.detail',- example: '"2008-10-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.firstCoupon.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.firstCoupon.detail',- example: '"2009-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.rate.detail',- example: '7.85%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.yld.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.yld.detail',- example: '6.25%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFPRICE.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ODDFPRICE.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ODDFYIELD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ODDFYIELD.description',- abstract: 'sheets-formula.functionList.ODDFYIELD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.issue.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.issue.detail',- example: '"2008-10-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.firstCoupon.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.firstCoupon.detail',- example: '"2009-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.rate.detail',- example: '5.75%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.pr.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.pr.detail',- example: '84.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDFYIELD.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ODDFYIELD.functionParameter.basis.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ODDLPRICE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ODDLPRICE.description',- abstract: 'sheets-formula.functionList.ODDLPRICE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.settlement.detail',- example: '"2008-2-7"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.maturity.detail',- example: '"2008-6-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.lastInterest.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.lastInterest.detail',- example: '"2007-10-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.rate.detail',- example: '3.75%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.yld.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.yld.detail',- example: '4.05%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLPRICE.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ODDLPRICE.functionParameter.basis.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.ODDLYIELD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.ODDLYIELD.description',- abstract: 'sheets-formula.functionList.ODDLYIELD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.settlement.detail',- example: '"2008-4-20"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.maturity.detail',- example: '"2008-6-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.lastInterest.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.lastInterest.detail',- example: '"2007-12-24"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.rate.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.rate.detail',- example: '3.75%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.pr.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.pr.detail',- example: '99.875',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ODDLYIELD.functionParameter.basis.name',- detail: 'sheets-formula.functionList.ODDLYIELD.functionParameter.basis.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PDURATION,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PDURATION.description',- abstract: 'sheets-formula.functionList.PDURATION.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PDURATION.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PDURATION.functionParameter.rate.detail',- example: '2.5%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PDURATION.functionParameter.pv.name',- detail: 'sheets-formula.functionList.PDURATION.functionParameter.pv.detail',- example: '2000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PDURATION.functionParameter.fv.name',- detail: 'sheets-formula.functionList.PDURATION.functionParameter.fv.detail',- example: '2200',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PMT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PMT.description',- abstract: 'sheets-formula.functionList.PMT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PMT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PMT.functionParameter.rate.detail',- example: '8%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PMT.functionParameter.nper.name',- detail: 'sheets-formula.functionList.PMT.functionParameter.nper.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PMT.functionParameter.pv.name',- detail: 'sheets-formula.functionList.PMT.functionParameter.pv.detail',- example: '10000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PMT.functionParameter.fv.name',- detail: 'sheets-formula.functionList.PMT.functionParameter.fv.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PMT.functionParameter.type.name',- detail: 'sheets-formula.functionList.PMT.functionParameter.type.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PPMT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PPMT.description',- abstract: 'sheets-formula.functionList.PPMT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PPMT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.rate.detail',- example: '10%/12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PPMT.functionParameter.per.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.per.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PPMT.functionParameter.nper.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.nper.detail',- example: '3*12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PPMT.functionParameter.pv.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.pv.detail',- example: '80000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PPMT.functionParameter.fv.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.fv.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PPMT.functionParameter.type.name',- detail: 'sheets-formula.functionList.PPMT.functionParameter.type.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PRICE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PRICE.description',- abstract: 'sheets-formula.functionList.PRICE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PRICE.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.rate.detail',- example: '7.85%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.yld.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.yld.detail',- example: '6.25%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICE.functionParameter.basis.name',- detail: 'sheets-formula.functionList.PRICE.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PRICEDISC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PRICEDISC.description',- abstract: 'sheets-formula.functionList.PRICEDISC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PRICEDISC.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.PRICEDISC.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEDISC.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.PRICEDISC.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEDISC.functionParameter.discount.name',- detail: 'sheets-formula.functionList.PRICEDISC.functionParameter.discount.detail',- example: '6.25%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEDISC.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.PRICEDISC.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEDISC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.PRICEDISC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PRICEMAT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PRICEMAT.description',- abstract: 'sheets-formula.functionList.PRICEMAT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.issue.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.issue.detail',- example: '"2008-10-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.rate.detail',- example: '7.85%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.yld.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.yld.detail',- example: '6.25%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRICEMAT.functionParameter.basis.name',- detail: 'sheets-formula.functionList.PRICEMAT.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.PV,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.PV.description',- abstract: 'sheets-formula.functionList.PV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PV.functionParameter.rate.name',- detail: 'sheets-formula.functionList.PV.functionParameter.rate.detail',- example: '2%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PV.functionParameter.nper.name',- detail: 'sheets-formula.functionList.PV.functionParameter.nper.detail',- example: '12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PV.functionParameter.pmt.name',- detail: 'sheets-formula.functionList.PV.functionParameter.pmt.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PV.functionParameter.fv.name',- detail: 'sheets-formula.functionList.PV.functionParameter.fv.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PV.functionParameter.type.name',- detail: 'sheets-formula.functionList.PV.functionParameter.type.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.RATE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.RATE.description',- abstract: 'sheets-formula.functionList.RATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RATE.functionParameter.nper.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.nper.detail',- example: '4*12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RATE.functionParameter.pmt.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.pmt.detail',- example: '-200',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RATE.functionParameter.pv.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.pv.detail',- example: '8000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RATE.functionParameter.fv.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.fv.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RATE.functionParameter.type.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.type.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RATE.functionParameter.guess.name',- detail: 'sheets-formula.functionList.RATE.functionParameter.guess.detail',- example: '0.1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.RECEIVED,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.RECEIVED.description',- abstract: 'sheets-formula.functionList.RECEIVED.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RECEIVED.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.RECEIVED.functionParameter.settlement.detail',- example: '"2008-2-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RECEIVED.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.RECEIVED.functionParameter.maturity.detail',- example: '"2008-3-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RECEIVED.functionParameter.investment.name',- detail: 'sheets-formula.functionList.RECEIVED.functionParameter.investment.detail',- example: '10000000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RECEIVED.functionParameter.discount.name',- detail: 'sheets-formula.functionList.RECEIVED.functionParameter.discount.detail',- example: '5.75%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RECEIVED.functionParameter.basis.name',- detail: 'sheets-formula.functionList.RECEIVED.functionParameter.basis.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.RRI,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.RRI.description',- abstract: 'sheets-formula.functionList.RRI.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RRI.functionParameter.nper.name',- detail: 'sheets-formula.functionList.RRI.functionParameter.nper.detail',- example: '96',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RRI.functionParameter.pv.name',- detail: 'sheets-formula.functionList.RRI.functionParameter.pv.detail',- example: '10000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RRI.functionParameter.fv.name',- detail: 'sheets-formula.functionList.RRI.functionParameter.fv.detail',- example: '11000',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.SLN,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.SLN.description',- abstract: 'sheets-formula.functionList.SLN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SLN.functionParameter.cost.name',- detail: 'sheets-formula.functionList.SLN.functionParameter.cost.detail',- example: '300000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SLN.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.SLN.functionParameter.salvage.detail',- example: '75000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SLN.functionParameter.life.name',- detail: 'sheets-formula.functionList.SLN.functionParameter.life.detail',- example: '10',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.SYD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.SYD.description',- abstract: 'sheets-formula.functionList.SYD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SYD.functionParameter.cost.name',- detail: 'sheets-formula.functionList.SYD.functionParameter.cost.detail',- example: '300000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SYD.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.SYD.functionParameter.salvage.detail',- example: '75000',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SYD.functionParameter.life.name',- detail: 'sheets-formula.functionList.SYD.functionParameter.life.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SYD.functionParameter.per.name',- detail: 'sheets-formula.functionList.SYD.functionParameter.per.detail',- example: '10',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.TBILLEQ,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.TBILLEQ.description',- abstract: 'sheets-formula.functionList.TBILLEQ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TBILLEQ.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.TBILLEQ.functionParameter.settlement.detail',- example: '"2008-3-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLEQ.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.TBILLEQ.functionParameter.maturity.detail',- example: '"2008-6-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLEQ.functionParameter.discount.name',- detail: 'sheets-formula.functionList.TBILLEQ.functionParameter.discount.detail',- example: '9.14%',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.TBILLPRICE,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.TBILLPRICE.description',- abstract: 'sheets-formula.functionList.TBILLPRICE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TBILLPRICE.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.TBILLPRICE.functionParameter.settlement.detail',- example: '"2008-3-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLPRICE.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.TBILLPRICE.functionParameter.maturity.detail',- example: '"2008-6-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLPRICE.functionParameter.discount.name',- detail: 'sheets-formula.functionList.TBILLPRICE.functionParameter.discount.detail',- example: '9.14%',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.TBILLYIELD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.TBILLYIELD.description',- abstract: 'sheets-formula.functionList.TBILLYIELD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TBILLYIELD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.TBILLYIELD.functionParameter.settlement.detail',- example: '"2008-3-31"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLYIELD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.TBILLYIELD.functionParameter.maturity.detail',- example: '"2008-6-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TBILLYIELD.functionParameter.pr.name',- detail: 'sheets-formula.functionList.TBILLYIELD.functionParameter.pr.detail',- example: '98.45',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.VDB,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.VDB.description',- abstract: 'sheets-formula.functionList.VDB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VDB.functionParameter.cost.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.cost.detail',- example: '2400',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.salvage.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.salvage.detail',- example: '300',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.life.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.life.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.startPeriod.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.startPeriod.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.endPeriod.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.endPeriod.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.factor.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.factor.detail',- example: '2',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VDB.functionParameter.noSwitch.name',- detail: 'sheets-formula.functionList.VDB.functionParameter.noSwitch.detail',- example: 'false',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.XIRR,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.XIRR.description',- abstract: 'sheets-formula.functionList.XIRR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.XIRR.functionParameter.values.name',- detail: 'sheets-formula.functionList.XIRR.functionParameter.values.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XIRR.functionParameter.dates.name',- detail: 'sheets-formula.functionList.XIRR.functionParameter.dates.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XIRR.functionParameter.guess.name',- detail: 'sheets-formula.functionList.XIRR.functionParameter.guess.detail',- example: '0.1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.XNPV,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.XNPV.description',- abstract: 'sheets-formula.functionList.XNPV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.XNPV.functionParameter.rate.name',- detail: 'sheets-formula.functionList.XNPV.functionParameter.rate.detail',- example: '10%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XNPV.functionParameter.values.name',- detail: 'sheets-formula.functionList.XNPV.functionParameter.values.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XNPV.functionParameter.dates.name',- detail: 'sheets-formula.functionList.XNPV.functionParameter.dates.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.YIELD,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.YIELD.description',- abstract: 'sheets-formula.functionList.YIELD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.YIELD.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.rate.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.rate.detail',- example: '7.85%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.pr.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.pr.detail',- example: '98.45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.frequency.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.frequency.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELD.functionParameter.basis.name',- detail: 'sheets-formula.functionList.YIELD.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.YIELDDISC,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.YIELDDISC.description',- abstract: 'sheets-formula.functionList.YIELDDISC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.YIELDDISC.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.YIELDDISC.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDDISC.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.YIELDDISC.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDDISC.functionParameter.pr.name',- detail: 'sheets-formula.functionList.YIELDDISC.functionParameter.pr.detail',- example: '98.45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDDISC.functionParameter.redemption.name',- detail: 'sheets-formula.functionList.YIELDDISC.functionParameter.redemption.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDDISC.functionParameter.basis.name',- detail: 'sheets-formula.functionList.YIELDDISC.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_FINANCIAL.YIELDMAT,- functionType: FunctionType.Financial,- description: 'sheets-formula.functionList.YIELDMAT.description',- abstract: 'sheets-formula.functionList.YIELDMAT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.settlement.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.settlement.detail',- example: '"2008-11-11"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.maturity.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.maturity.detail',- example: '"2021-3-1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.issue.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.issue.detail',- example: '"2008-10-15"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.rate.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.rate.detail',- example: '7.85%',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.pr.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.pr.detail',- example: '98.45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.YIELDMAT.functionParameter.basis.name',- detail: 'sheets-formula.functionList.YIELDMAT.functionParameter.basis.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/information.ts b/packages/sheets-formula/src/services/function-list/information.tsdeleted file mode 100644index e8df3d839e..0000000000--- a/packages/sheets-formula/src/services/function-list/information.ts+++ /dev/null@@ -1,417 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_INFORMATION, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_INFORMATION: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_INFORMATION.CELL,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.CELL.description',- abstract: 'sheets-formula.functionList.CELL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CELL.functionParameter.infoType.name',- detail: 'sheets-formula.functionList.CELL.functionParameter.infoType.detail',- example: '"type"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CELL.functionParameter.reference.name',- detail: 'sheets-formula.functionList.CELL.functionParameter.reference.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ERROR_TYPE,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ERROR_TYPE.description',- abstract: 'sheets-formula.functionList.ERROR_TYPE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ERROR_TYPE.functionParameter.errorVal.name',- detail: 'sheets-formula.functionList.ERROR_TYPE.functionParameter.errorVal.detail',- example: '"#NULL!"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.INFO,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.INFO.description',- abstract: 'sheets-formula.functionList.INFO.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INFO.functionParameter.typeText.name',- detail: 'sheets-formula.functionList.INFO.functionParameter.typeText.detail',- example: '"system"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISBETWEEN,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISBETWEEN.description',- abstract: 'sheets-formula.functionList.ISBETWEEN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISBETWEEN.functionParameter.valueToCompare.name',- detail: 'sheets-formula.functionList.ISBETWEEN.functionParameter.valueToCompare.detail',- example: '7.9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISBETWEEN.functionParameter.lowerValue.name',- detail: 'sheets-formula.functionList.ISBETWEEN.functionParameter.lowerValue.detail',- example: '1.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISBETWEEN.functionParameter.upperValue.name',- detail: 'sheets-formula.functionList.ISBETWEEN.functionParameter.upperValue.detail',- example: '12.45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISBETWEEN.functionParameter.lowerValueIsInclusive.name',- detail: 'sheets-formula.functionList.ISBETWEEN.functionParameter.lowerValueIsInclusive.detail',- example: 'true',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISBETWEEN.functionParameter.upperValueIsInclusive.name',- detail: 'sheets-formula.functionList.ISBETWEEN.functionParameter.upperValueIsInclusive.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISBLANK,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISBLANK.description',- abstract: 'sheets-formula.functionList.ISBLANK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISBLANK.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISBLANK.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISDATE,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISDATE.description',- abstract: 'sheets-formula.functionList.ISDATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISDATE.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISDATE.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISEMAIL,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISEMAIL.description',- abstract: 'sheets-formula.functionList.ISEMAIL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISEMAIL.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISEMAIL.functionParameter.value.detail',- example: '"[email protected]"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISERR,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISERR.description',- abstract: 'sheets-formula.functionList.ISERR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISERR.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISERR.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISERROR,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISERROR.description',- abstract: 'sheets-formula.functionList.ISERROR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISERROR.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISERROR.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISEVEN,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISEVEN.description',- abstract: 'sheets-formula.functionList.ISEVEN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISEVEN.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISEVEN.functionParameter.value.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISFORMULA,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISFORMULA.description',- abstract: 'sheets-formula.functionList.ISFORMULA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISFORMULA.functionParameter.reference.name',- detail: 'sheets-formula.functionList.ISFORMULA.functionParameter.reference.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISLOGICAL,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISLOGICAL.description',- abstract: 'sheets-formula.functionList.ISLOGICAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISLOGICAL.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISLOGICAL.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISNA,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISNA.description',- abstract: 'sheets-formula.functionList.ISNA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISNA.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISNA.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISNONTEXT,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISNONTEXT.description',- abstract: 'sheets-formula.functionList.ISNONTEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISNONTEXT.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISNONTEXT.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISNUMBER,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISNUMBER.description',- abstract: 'sheets-formula.functionList.ISNUMBER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISNUMBER.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISNUMBER.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISODD,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISODD.description',- abstract: 'sheets-formula.functionList.ISODD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISODD.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISODD.functionParameter.value.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISOMITTED,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISOMITTED.description',- abstract: 'sheets-formula.functionList.ISOMITTED.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISOMITTED.functionParameter.argument.name',- detail: 'sheets-formula.functionList.ISOMITTED.functionParameter.argument.detail',- example: 'value',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISREF,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISREF.description',- abstract: 'sheets-formula.functionList.ISREF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISREF.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISREF.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISTEXT,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISTEXT.description',- abstract: 'sheets-formula.functionList.ISTEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISTEXT.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISTEXT.functionParameter.value.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.ISURL,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.ISURL.description',- abstract: 'sheets-formula.functionList.ISURL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISURL.functionParameter.value.name',- detail: 'sheets-formula.functionList.ISURL.functionParameter.value.detail',- example: '"univer.ai"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.N,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.N.description',- abstract: 'sheets-formula.functionList.N.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.N.functionParameter.value.name',- detail: 'sheets-formula.functionList.N.functionParameter.value.detail',- example: '7',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.NA,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.NA.description',- abstract: 'sheets-formula.functionList.NA.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.SHEET,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.SHEET.description',- abstract: 'sheets-formula.functionList.SHEET.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SHEET.functionParameter.value.name',- detail: 'sheets-formula.functionList.SHEET.functionParameter.value.detail',- example: 'A1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.SHEETS,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.SHEETS.description',- abstract: 'sheets-formula.functionList.SHEETS.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_INFORMATION.TYPE,- functionType: FunctionType.Information,- description: 'sheets-formula.functionList.TYPE.description',- abstract: 'sheets-formula.functionList.TYPE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TYPE.functionParameter.value.name',- detail: 'sheets-formula.functionList.TYPE.functionParameter.value.detail',- example: 'A2',- require: 1,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/logical.ts b/packages/sheets-formula/src/services/function-list/logical.tsdeleted file mode 100644index 2701b6ca15..0000000000--- a/packages/sheets-formula/src/services/function-list/logical.ts+++ /dev/null@@ -1,496 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_LOGICAL, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_LOGICAL: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_LOGICAL.AND,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.AND.description',- abstract: 'sheets-formula.functionList.AND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AND.functionParameter.logical1.name',- detail: 'sheets-formula.functionList.AND.functionParameter.logical1.detail',- example: 'A1=1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AND.functionParameter.logical2.name',- detail: 'sheets-formula.functionList.AND.functionParameter.logical2.detail',- example: 'A2=2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.BYCOL,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.BYCOL.description',- abstract: 'sheets-formula.functionList.BYCOL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BYCOL.functionParameter.array.name',- detail: 'sheets-formula.functionList.BYCOL.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BYCOL.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.BYCOL.functionParameter.lambda.detail',- example: 'LAMBDA(array, MAX(array))',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.BYROW,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.BYROW.description',- abstract: 'sheets-formula.functionList.BYROW.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BYROW.functionParameter.array.name',- detail: 'sheets-formula.functionList.BYROW.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BYROW.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.BYROW.functionParameter.lambda.detail',- example: 'LAMBDA(array, MAX(array))',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.FALSE,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.FALSE.description',- abstract: 'sheets-formula.functionList.FALSE.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.IF,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.IF.description',- abstract: 'sheets-formula.functionList.IF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IF.functionParameter.logicalTest.name',- detail: 'sheets-formula.functionList.IF.functionParameter.logicalTest.detail',- example: 'A2 = "foo"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IF.functionParameter.valueIfTrue.name',- detail: 'sheets-formula.functionList.IF.functionParameter.valueIfTrue.detail',- example: '"A2 is foo"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IF.functionParameter.valueIfFalse.name',- detail: 'sheets-formula.functionList.IF.functionParameter.valueIfFalse.detail',- example: '"A2 is not foo"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.IFERROR,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.IFERROR.description',- abstract: 'sheets-formula.functionList.IFERROR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IFERROR.functionParameter.value.name',- detail: 'sheets-formula.functionList.IFERROR.functionParameter.value.detail',- example: 'A2/B2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IFERROR.functionParameter.valueIfError.name',- detail: 'sheets-formula.functionList.IFERROR.functionParameter.valueIfError.detail',- example: '"Error in calculation"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.IFNA,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.IFNA.description',- abstract: 'sheets-formula.functionList.IFNA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IFNA.functionParameter.value.name',- detail: 'sheets-formula.functionList.IFNA.functionParameter.value.detail',- example: 'VLOOKUP(C3,C6:D11,2,FALSE)',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IFNA.functionParameter.valueIfNa.name',- detail: 'sheets-formula.functionList.IFNA.functionParameter.valueIfNa.detail',- example: '"Not Found"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.IFS,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.IFS.description',- abstract: 'sheets-formula.functionList.IFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IFS.functionParameter.logicalTest1.name',- detail: 'sheets-formula.functionList.IFS.functionParameter.logicalTest1.detail',- example: 'A2 = "foo"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IFS.functionParameter.valueIfTrue1.name',- detail: 'sheets-formula.functionList.IFS.functionParameter.valueIfTrue1.detail',- example: '"A2 is foo"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IFS.functionParameter.logicalTest2.name',- detail: 'sheets-formula.functionList.IFS.functionParameter.logicalTest2.detail',- example: 'F2=1',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.IFS.functionParameter.valueIfTrue2.name',- detail: 'sheets-formula.functionList.IFS.functionParameter.valueIfTrue2.detail',- example: 'D2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.LAMBDA,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.LAMBDA.description',- abstract: 'sheets-formula.functionList.LAMBDA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LAMBDA.functionParameter.parameter.name',- detail: 'sheets-formula.functionList.LAMBDA.functionParameter.parameter.detail',- example: '[x, y, …,]',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.LAMBDA.functionParameter.calculation.name',- detail: 'sheets-formula.functionList.LAMBDA.functionParameter.calculation.detail',- example: 'x+y',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.LET,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.LET.description',- abstract: 'sheets-formula.functionList.LET.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LET.functionParameter.name1.name',- detail: 'sheets-formula.functionList.LET.functionParameter.name1.detail',- example: 'x',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LET.functionParameter.nameValue1.name',- detail: 'sheets-formula.functionList.LET.functionParameter.nameValue1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LET.functionParameter.calculationOrName2.name',- detail: 'sheets-formula.functionList.LET.functionParameter.calculationOrName2.detail',- example: 'y',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LET.functionParameter.nameValue2.name',- detail: 'sheets-formula.functionList.LET.functionParameter.nameValue2.detail',- example: '6',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.LET.functionParameter.calculationOrName3.name',- detail: 'sheets-formula.functionList.LET.functionParameter.calculationOrName3.detail',- example: 'SUM(x,y)',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.MAKEARRAY,- aliasFunctionName: 'sheets-formula.functionList.MAKEARRAY.aliasFunctionName',- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.MAKEARRAY.description',- abstract: 'sheets-formula.functionList.MAKEARRAY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MAKEARRAY.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MAKEARRAY.functionParameter.number1.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAKEARRAY.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MAKEARRAY.functionParameter.number2.detail',- example: '7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAKEARRAY.functionParameter.value3.name',- detail: 'sheets-formula.functionList.MAKEARRAY.functionParameter.value3.detail',- example: 'LAMBDA(r,c, r*c)',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.MAP,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.MAP.description',- abstract: 'sheets-formula.functionList.MAP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MAP.functionParameter.array1.name',- detail: 'sheets-formula.functionList.MAP.functionParameter.array1.detail',- example: 'D2:D11',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAP.functionParameter.array2.name',- detail: 'sheets-formula.functionList.MAP.functionParameter.array2.detail',- example: 'E2:E11',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.MAP.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.MAP.functionParameter.lambda.detail',- example: 'LAMBDA(s,c,AND(s="Large",c="Red"))',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.NOT,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.NOT.description',- abstract: 'sheets-formula.functionList.NOT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NOT.functionParameter.logical.name',- detail: 'sheets-formula.functionList.NOT.functionParameter.logical.detail',- example: 'A2>100',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.OR,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.OR.description',- abstract: 'sheets-formula.functionList.OR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.OR.functionParameter.logical1.name',- detail: 'sheets-formula.functionList.OR.functionParameter.logical1.detail',- example: 'A1=1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OR.functionParameter.logical2.name',- detail: 'sheets-formula.functionList.OR.functionParameter.logical2.detail',- example: 'A2=2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.REDUCE,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.REDUCE.description',- abstract: 'sheets-formula.functionList.REDUCE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REDUCE.functionParameter.initialValue.name',- detail: 'sheets-formula.functionList.REDUCE.functionParameter.initialValue.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REDUCE.functionParameter.array.name',- detail: 'sheets-formula.functionList.REDUCE.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REDUCE.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.REDUCE.functionParameter.lambda.detail',- example: 'LAMBDA(a,b,a+b^2)',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.SCAN,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.SCAN.description',- abstract: 'sheets-formula.functionList.SCAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SCAN.functionParameter.initialValue.name',- detail: 'sheets-formula.functionList.SCAN.functionParameter.initialValue.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SCAN.functionParameter.array.name',- detail: 'sheets-formula.functionList.SCAN.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SCAN.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.SCAN.functionParameter.lambda.detail',- example: 'LAMBDA(a,b,a+b^2)',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.SWITCH,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.SWITCH.description',- abstract: 'sheets-formula.functionList.SWITCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SWITCH.functionParameter.expression.name',- detail: 'sheets-formula.functionList.SWITCH.functionParameter.expression.detail',- example: 'WEEKDAY(A2)',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SWITCH.functionParameter.value1.name',- detail: 'sheets-formula.functionList.SWITCH.functionParameter.value1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SWITCH.functionParameter.result1.name',- detail: 'sheets-formula.functionList.SWITCH.functionParameter.result1.detail',- example: '"Sunday"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SWITCH.functionParameter.defaultOrValue2.name',- detail: 'sheets-formula.functionList.SWITCH.functionParameter.defaultOrValue2.detail',- example: '2',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.SWITCH.functionParameter.result2.name',- detail: 'sheets-formula.functionList.SWITCH.functionParameter.result2.detail',- example: '"Monday"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.TRUE,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.TRUE.description',- abstract: 'sheets-formula.functionList.TRUE.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_LOGICAL.XOR,- functionType: FunctionType.Logical,- description: 'sheets-formula.functionList.XOR.description',- abstract: 'sheets-formula.functionList.XOR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.XOR.functionParameter.logical1.name',- detail: 'sheets-formula.functionList.XOR.functionParameter.logical1.detail',- example: '3>0',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XOR.functionParameter.logical2.name',- detail: 'sheets-formula.functionList.XOR.functionParameter.logical2.detail',- example: '2<9',- require: 0,- repeat: 1,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/lookup.ts b/packages/sheets-formula/src/services/function-list/lookup.tsdeleted file mode 100644index f06cbcb83d..0000000000--- a/packages/sheets-formula/src/services/function-list/lookup.ts+++ /dev/null@@ -1,1101 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_LOOKUP, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_LOOKUP: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_LOOKUP.ADDRESS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.ADDRESS.description',- abstract: 'sheets-formula.functionList.ADDRESS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ADDRESS.functionParameter.row_num.name',- detail: 'sheets-formula.functionList.ADDRESS.functionParameter.row_num.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ADDRESS.functionParameter.column_num.name',- detail: 'sheets-formula.functionList.ADDRESS.functionParameter.column_num.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ADDRESS.functionParameter.abs_num.name',- detail: 'sheets-formula.functionList.ADDRESS.functionParameter.abs_num.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ADDRESS.functionParameter.a1.name',- detail: 'sheets-formula.functionList.ADDRESS.functionParameter.a1.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ADDRESS.functionParameter.sheet_text.name',- detail: 'sheets-formula.functionList.ADDRESS.functionParameter.sheet_text.detail',- example: '"Sheet2"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.AREAS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.AREAS.description',- abstract: 'sheets-formula.functionList.AREAS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AREAS.functionParameter.reference.name',- detail: 'sheets-formula.functionList.AREAS.functionParameter.reference.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.CHOOSE,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.CHOOSE.description',- abstract: 'sheets-formula.functionList.CHOOSE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHOOSE.functionParameter.indexNum.name',- detail: 'sheets-formula.functionList.CHOOSE.functionParameter.indexNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSE.functionParameter.value1.name',- detail: 'sheets-formula.functionList.CHOOSE.functionParameter.value1.detail',- example: '"Hello"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSE.functionParameter.value2.name',- detail: 'sheets-formula.functionList.CHOOSE.functionParameter.value2.detail',- example: '"Univer"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.CHOOSECOLS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.CHOOSECOLS.description',- abstract: 'sheets-formula.functionList.CHOOSECOLS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.array.name',- detail: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.colNum1.name',- detail: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.colNum1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.colNum2.name',- detail: 'sheets-formula.functionList.CHOOSECOLS.functionParameter.colNum2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.CHOOSEROWS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.CHOOSEROWS.description',- abstract: 'sheets-formula.functionList.CHOOSEROWS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.array.name',- detail: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.array.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.rowNum1.name',- detail: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.rowNum1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.rowNum2.name',- detail: 'sheets-formula.functionList.CHOOSEROWS.functionParameter.rowNum2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.COLUMN,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.COLUMN.description',- abstract: 'sheets-formula.functionList.COLUMN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COLUMN.functionParameter.reference.name',- detail: 'sheets-formula.functionList.COLUMN.functionParameter.reference.detail',- example: 'A1:A20',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.COLUMNS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.COLUMNS.description',- abstract: 'sheets-formula.functionList.COLUMNS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COLUMNS.functionParameter.array.name',- detail: 'sheets-formula.functionList.COLUMNS.functionParameter.array.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.DROP,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.DROP.description',- abstract: 'sheets-formula.functionList.DROP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DROP.functionParameter.array.name',- detail: 'sheets-formula.functionList.DROP.functionParameter.array.detail',- example: 'A2:C4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DROP.functionParameter.rows.name',- detail: 'sheets-formula.functionList.DROP.functionParameter.rows.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DROP.functionParameter.columns.name',- detail: 'sheets-formula.functionList.DROP.functionParameter.columns.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.EXPAND,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.EXPAND.description',- abstract: 'sheets-formula.functionList.EXPAND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EXPAND.functionParameter.array.name',- detail: 'sheets-formula.functionList.EXPAND.functionParameter.array.detail',- example: 'A2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPAND.functionParameter.rows.name',- detail: 'sheets-formula.functionList.EXPAND.functionParameter.rows.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPAND.functionParameter.columns.name',- detail: 'sheets-formula.functionList.EXPAND.functionParameter.columns.detail',- example: '3',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPAND.functionParameter.padWith.name',- detail: 'sheets-formula.functionList.EXPAND.functionParameter.padWith.detail',- example: '"-"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.FILTER,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.FILTER.description',- abstract: 'sheets-formula.functionList.FILTER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FILTER.functionParameter.array.name',- detail: 'sheets-formula.functionList.FILTER.functionParameter.array.detail',- example: 'A5:D20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FILTER.functionParameter.include.name',- detail: 'sheets-formula.functionList.FILTER.functionParameter.include.detail',- example: '(C5:C20="Apple")*(A5:A20="East")',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FILTER.functionParameter.ifEmpty.name',- detail: 'sheets-formula.functionList.FILTER.functionParameter.ifEmpty.detail',- example: '""',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.FORMULATEXT,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.FORMULATEXT.description',- abstract: 'sheets-formula.functionList.FORMULATEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORMULATEXT.functionParameter.reference.name',- detail: 'sheets-formula.functionList.FORMULATEXT.functionParameter.reference.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.GETPIVOTDATA,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.GETPIVOTDATA.description',- abstract: 'sheets-formula.functionList.GETPIVOTDATA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.dataField.name',- detail: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.dataField.detail',- example: '"Sales"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.pivotTable.name',- detail: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.pivotTable.detail',- example: 'A3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.field1.name',- detail: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.field1.detail',- example: '"Month"',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.item1.name',- detail: 'sheets-formula.functionList.GETPIVOTDATA.functionParameter.item1.detail',- example: '"March"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.HLOOKUP,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.HLOOKUP.description',- abstract: 'sheets-formula.functionList.HLOOKUP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HLOOKUP.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.HLOOKUP.functionParameter.lookupValue.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HLOOKUP.functionParameter.tableArray.name',- detail: 'sheets-formula.functionList.HLOOKUP.functionParameter.tableArray.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HLOOKUP.functionParameter.rowIndexNum.name',- detail: 'sheets-formula.functionList.HLOOKUP.functionParameter.rowIndexNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HLOOKUP.functionParameter.rangeLookup.name',- detail: 'sheets-formula.functionList.HLOOKUP.functionParameter.rangeLookup.detail',- example: 'false',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.HSTACK,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.HSTACK.description',- abstract: 'sheets-formula.functionList.HSTACK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HSTACK.functionParameter.array1.name',- detail: 'sheets-formula.functionList.HSTACK.functionParameter.array1.detail',- example: 'A2:C3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HSTACK.functionParameter.array2.name',- detail: 'sheets-formula.functionList.HSTACK.functionParameter.array2.detail',- example: 'E2:G3',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.HYPERLINK,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.HYPERLINK.description',- abstract: 'sheets-formula.functionList.HYPERLINK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HYPERLINK.functionParameter.url.name',- detail: 'sheets-formula.functionList.HYPERLINK.functionParameter.url.detail',- example: '"https://univer.ai/"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPERLINK.functionParameter.linkLabel.name',- detail: 'sheets-formula.functionList.HYPERLINK.functionParameter.linkLabel.detail',- example: '"Univer"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.IMAGE,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.IMAGE.description',- abstract: 'sheets-formula.functionList.IMAGE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.IMAGE.functionParameter.source.name',- detail: 'sheets-formula.functionList.IMAGE.functionParameter.source.detail',- example: '"https://github.com/dream-num.png"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMAGE.functionParameter.altText.name',- detail: 'sheets-formula.functionList.IMAGE.functionParameter.altText.detail',- example: '"Univer Logo"',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMAGE.functionParameter.sizing.name',- detail: 'sheets-formula.functionList.IMAGE.functionParameter.sizing.detail',- example: '3',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMAGE.functionParameter.height.name',- detail: 'sheets-formula.functionList.IMAGE.functionParameter.height.detail',- example: '100',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.IMAGE.functionParameter.width.name',- detail: 'sheets-formula.functionList.IMAGE.functionParameter.width.detail',- example: '100',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.INDEX,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.INDEX.description',- abstract: 'sheets-formula.functionList.INDEX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INDEX.functionParameter.reference.name',- detail: 'sheets-formula.functionList.INDEX.functionParameter.reference.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INDEX.functionParameter.rowNum.name',- detail: 'sheets-formula.functionList.INDEX.functionParameter.rowNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INDEX.functionParameter.columnNum.name',- detail: 'sheets-formula.functionList.INDEX.functionParameter.columnNum.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INDEX.functionParameter.areaNum.name',- detail: 'sheets-formula.functionList.INDEX.functionParameter.areaNum.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.INDIRECT,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.INDIRECT.description',- abstract: 'sheets-formula.functionList.INDIRECT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INDIRECT.functionParameter.refText.name',- detail: 'sheets-formula.functionList.INDIRECT.functionParameter.refText.detail',- example: '"A1"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INDIRECT.functionParameter.a1.name',- detail: 'sheets-formula.functionList.INDIRECT.functionParameter.a1.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.LOOKUP,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.LOOKUP.description',- abstract: 'sheets-formula.functionList.LOOKUP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOOKUP.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.LOOKUP.functionParameter.lookupValue.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.name',- detail: 'sheets-formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOOKUP.functionParameter.resultVector.name',- detail: 'sheets-formula.functionList.LOOKUP.functionParameter.resultVector.detail',- example: 'A1:A20',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.MATCH,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.MATCH.description',- abstract: 'sheets-formula.functionList.MATCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MATCH.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.MATCH.functionParameter.lookupValue.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MATCH.functionParameter.lookupArray.name',- detail: 'sheets-formula.functionList.MATCH.functionParameter.lookupArray.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MATCH.functionParameter.matchType.name',- detail: 'sheets-formula.functionList.MATCH.functionParameter.matchType.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.OFFSET,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.OFFSET.description',- abstract: 'sheets-formula.functionList.OFFSET.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.OFFSET.functionParameter.reference.name',- detail: 'sheets-formula.functionList.OFFSET.functionParameter.reference.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OFFSET.functionParameter.rows.name',- detail: 'sheets-formula.functionList.OFFSET.functionParameter.rows.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OFFSET.functionParameter.cols.name',- detail: 'sheets-formula.functionList.OFFSET.functionParameter.cols.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OFFSET.functionParameter.height.name',- detail: 'sheets-formula.functionList.OFFSET.functionParameter.height.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.OFFSET.functionParameter.width.name',- detail: 'sheets-formula.functionList.OFFSET.functionParameter.width.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.ROW,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.ROW.description',- abstract: 'sheets-formula.functionList.ROW.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROW.functionParameter.reference.name',- detail: 'sheets-formula.functionList.ROW.functionParameter.reference.detail',- example: 'A1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.ROWS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.ROWS.description',- abstract: 'sheets-formula.functionList.ROWS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROWS.functionParameter.array.name',- detail: 'sheets-formula.functionList.ROWS.functionParameter.array.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.RTD,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.RTD.description',- abstract: 'sheets-formula.functionList.RTD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RTD.functionParameter.progId.name',- detail: 'sheets-formula.functionList.RTD.functionParameter.progId.detail',- example: '"mycomaddin.progid"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RTD.functionParameter.server.name',- detail: 'sheets-formula.functionList.RTD.functionParameter.server.detail',- example: '""',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RTD.functionParameter.topic1.name',- detail: 'sheets-formula.functionList.RTD.functionParameter.topic1.detail',- example: '"Topic"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RTD.functionParameter.topic2.name',- detail: 'sheets-formula.functionList.RTD.functionParameter.topic2.detail',- example: '"Item"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.SORT,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.SORT.description',- abstract: 'sheets-formula.functionList.SORT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SORT.functionParameter.array.name',- detail: 'sheets-formula.functionList.SORT.functionParameter.array.detail',- example: 'A2:A17',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORT.functionParameter.sortIndex.name',- detail: 'sheets-formula.functionList.SORT.functionParameter.sortIndex.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORT.functionParameter.sortOrder.name',- detail: 'sheets-formula.functionList.SORT.functionParameter.sortOrder.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORT.functionParameter.byCol.name',- detail: 'sheets-formula.functionList.SORT.functionParameter.byCol.detail',- example: 'false',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.SORTBY,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.SORTBY.description',- abstract: 'sheets-formula.functionList.SORTBY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SORTBY.functionParameter.array.name',- detail: 'sheets-formula.functionList.SORTBY.functionParameter.array.detail',- example: 'D2:D9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORTBY.functionParameter.byArray1.name',- detail: 'sheets-formula.functionList.SORTBY.functionParameter.byArray1.detail',- example: 'E2:E9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORTBY.functionParameter.sortOrder1.name',- detail: 'sheets-formula.functionList.SORTBY.functionParameter.sortOrder1.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SORTBY.functionParameter.byArray2.name',- detail: 'sheets-formula.functionList.SORTBY.functionParameter.byArray2.detail',- example: 'E2:E9',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.SORTBY.functionParameter.sortOrder2.name',- detail: 'sheets-formula.functionList.SORTBY.functionParameter.sortOrder2.detail',- example: '1',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.TAKE,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.TAKE.description',- abstract: 'sheets-formula.functionList.TAKE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TAKE.functionParameter.array.name',- detail: 'sheets-formula.functionList.TAKE.functionParameter.array.detail',- example: 'A2:C4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TAKE.functionParameter.rows.name',- detail: 'sheets-formula.functionList.TAKE.functionParameter.rows.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TAKE.functionParameter.columns.name',- detail: 'sheets-formula.functionList.TAKE.functionParameter.columns.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.TOCOL,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.TOCOL.description',- abstract: 'sheets-formula.functionList.TOCOL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TOCOL.functionParameter.array.name',- detail: 'sheets-formula.functionList.TOCOL.functionParameter.array.detail',- example: 'A2:D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TOCOL.functionParameter.ignore.name',- detail: 'sheets-formula.functionList.TOCOL.functionParameter.ignore.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TOCOL.functionParameter.scanByColumn.name',- detail: 'sheets-formula.functionList.TOCOL.functionParameter.scanByColumn.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.TOROW,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.TOROW.description',- abstract: 'sheets-formula.functionList.TOROW.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TOROW.functionParameter.array.name',- detail: 'sheets-formula.functionList.TOROW.functionParameter.array.detail',- example: 'A2:D4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TOROW.functionParameter.ignore.name',- detail: 'sheets-formula.functionList.TOROW.functionParameter.ignore.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TOROW.functionParameter.scanByColumn.name',- detail: 'sheets-formula.functionList.TOROW.functionParameter.scanByColumn.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.TRANSPOSE,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.TRANSPOSE.description',- abstract: 'sheets-formula.functionList.TRANSPOSE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TRANSPOSE.functionParameter.array.name',- detail: 'sheets-formula.functionList.TRANSPOSE.functionParameter.array.detail',- example: 'A2:F9',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.UNIQUE,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.UNIQUE.description',- abstract: 'sheets-formula.functionList.UNIQUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.UNIQUE.functionParameter.array.name',- detail: 'sheets-formula.functionList.UNIQUE.functionParameter.array.detail',- example: 'A2:A12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.UNIQUE.functionParameter.byCol.name',- detail: 'sheets-formula.functionList.UNIQUE.functionParameter.byCol.detail',- example: 'false',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.UNIQUE.functionParameter.exactlyOnce.name',- detail: 'sheets-formula.functionList.UNIQUE.functionParameter.exactlyOnce.detail',- example: 'false',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.VLOOKUP,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.VLOOKUP.description',- abstract: 'sheets-formula.functionList.VLOOKUP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VLOOKUP.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.VLOOKUP.functionParameter.lookupValue.detail',- example: 'B2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VLOOKUP.functionParameter.tableArray.name',- detail: 'sheets-formula.functionList.VLOOKUP.functionParameter.tableArray.detail',- example: 'C2:E7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VLOOKUP.functionParameter.colIndexNum.name',- detail: 'sheets-formula.functionList.VLOOKUP.functionParameter.colIndexNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VLOOKUP.functionParameter.rangeLookup.name',- detail: 'sheets-formula.functionList.VLOOKUP.functionParameter.rangeLookup.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.VSTACK,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.VSTACK.description',- abstract: 'sheets-formula.functionList.VSTACK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VSTACK.functionParameter.array1.name',- detail: 'sheets-formula.functionList.VSTACK.functionParameter.array1.detail',- example: 'A2:C3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VSTACK.functionParameter.array2.name',- detail: 'sheets-formula.functionList.VSTACK.functionParameter.array2.detail',- example: 'E2:G3',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.WRAPCOLS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.WRAPCOLS.description',- abstract: 'sheets-formula.functionList.WRAPCOLS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WRAPCOLS.functionParameter.vector.name',- detail: 'sheets-formula.functionList.WRAPCOLS.functionParameter.vector.detail',- example: 'A2:G2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WRAPCOLS.functionParameter.wrapCount.name',- detail: 'sheets-formula.functionList.WRAPCOLS.functionParameter.wrapCount.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WRAPCOLS.functionParameter.padWith.name',- detail: 'sheets-formula.functionList.WRAPCOLS.functionParameter.padWith.detail',- example: '"x"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.WRAPROWS,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.WRAPROWS.description',- abstract: 'sheets-formula.functionList.WRAPROWS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WRAPROWS.functionParameter.vector.name',- detail: 'sheets-formula.functionList.WRAPROWS.functionParameter.vector.detail',- example: 'A2:G2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WRAPROWS.functionParameter.wrapCount.name',- detail: 'sheets-formula.functionList.WRAPROWS.functionParameter.wrapCount.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WRAPROWS.functionParameter.padWith.name',- detail: 'sheets-formula.functionList.WRAPROWS.functionParameter.padWith.detail',- example: '"x"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.XLOOKUP,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.XLOOKUP.description',- abstract: 'sheets-formula.functionList.XLOOKUP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.lookupValue.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.lookupArray.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.lookupArray.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.returnArray.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.returnArray.detail',- example: 'B1:B20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.ifNotFound.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.ifNotFound.detail',- example: 'default',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.matchMode.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.matchMode.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XLOOKUP.functionParameter.searchMode.name',- detail: 'sheets-formula.functionList.XLOOKUP.functionParameter.searchMode.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_LOOKUP.XMATCH,- functionType: FunctionType.Lookup,- description: 'sheets-formula.functionList.XMATCH.description',- abstract: 'sheets-formula.functionList.XMATCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.XMATCH.functionParameter.lookupValue.name',- detail: 'sheets-formula.functionList.XMATCH.functionParameter.lookupValue.detail',- example: 'B1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XMATCH.functionParameter.lookupArray.name',- detail: 'sheets-formula.functionList.XMATCH.functionParameter.lookupArray.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XMATCH.functionParameter.matchMode.name',- detail: 'sheets-formula.functionList.XMATCH.functionParameter.matchMode.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.XMATCH.functionParameter.searchMode.name',- detail: 'sheets-formula.functionList.XMATCH.functionParameter.searchMode.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/math.ts b/packages/sheets-formula/src/services/function-list/math.tsdeleted file mode 100644index 0c021ca7a6..0000000000--- a/packages/sheets-formula/src/services/function-list/math.ts+++ /dev/null@@ -1,1652 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_MATH, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_MATH: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_MATH.ABS,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ABS.description',- abstract: 'sheets-formula.functionList.ABS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ABS.functionParameter.number.name',- detail: 'sheets-formula.functionList.ABS.functionParameter.number.detail',- example: '-2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ACOS,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ACOS.description',- abstract: 'sheets-formula.functionList.ACOS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACOS.functionParameter.number.name',- detail: 'sheets-formula.functionList.ACOS.functionParameter.number.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ACOSH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ACOSH.description',- abstract: 'sheets-formula.functionList.ACOSH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACOSH.functionParameter.number.name',- detail: 'sheets-formula.functionList.ACOSH.functionParameter.number.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ACOT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ACOT.description',- abstract: 'sheets-formula.functionList.ACOT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACOT.functionParameter.number.name',- detail: 'sheets-formula.functionList.ACOT.functionParameter.number.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ACOTH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ACOTH.description',- abstract: 'sheets-formula.functionList.ACOTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ACOTH.functionParameter.number.name',- detail: 'sheets-formula.functionList.ACOTH.functionParameter.number.detail',- example: '6',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.AGGREGATE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.AGGREGATE.description',- abstract: 'sheets-formula.functionList.AGGREGATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AGGREGATE.functionParameter.functionNum.name',- detail: 'sheets-formula.functionList.AGGREGATE.functionParameter.functionNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AGGREGATE.functionParameter.options.name',- detail: 'sheets-formula.functionList.AGGREGATE.functionParameter.options.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AGGREGATE.functionParameter.ref1.name',- detail: 'sheets-formula.functionList.AGGREGATE.functionParameter.ref1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AGGREGATE.functionParameter.ref2.name',- detail: 'sheets-formula.functionList.AGGREGATE.functionParameter.ref2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ARABIC,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ARABIC.description',- abstract: 'sheets-formula.functionList.ARABIC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ARABIC.functionParameter.text.name',- detail: 'sheets-formula.functionList.ARABIC.functionParameter.text.detail',- example: '"LVII"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ASIN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ASIN.description',- abstract: 'sheets-formula.functionList.ASIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ASIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.ASIN.functionParameter.number.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ASINH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ASINH.description',- abstract: 'sheets-formula.functionList.ASINH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ASINH.functionParameter.number.name',- detail: 'sheets-formula.functionList.ASINH.functionParameter.number.detail',- example: '10',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ATAN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ATAN.description',- abstract: 'sheets-formula.functionList.ATAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ATAN.functionParameter.number.name',- detail: 'sheets-formula.functionList.ATAN.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ATAN2,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ATAN2.description',- abstract: 'sheets-formula.functionList.ATAN2.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ATAN2.functionParameter.xNum.name',- detail: 'sheets-formula.functionList.ATAN2.functionParameter.xNum.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ATAN2.functionParameter.yNum.name',- detail: 'sheets-formula.functionList.ATAN2.functionParameter.yNum.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ATANH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ATANH.description',- abstract: 'sheets-formula.functionList.ATANH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ATANH.functionParameter.number.name',- detail: 'sheets-formula.functionList.ATANH.functionParameter.number.detail',- example: '0.1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.BASE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.BASE.description',- abstract: 'sheets-formula.functionList.BASE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BASE.functionParameter.number.name',- detail: 'sheets-formula.functionList.BASE.functionParameter.number.detail',- example: '15',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BASE.functionParameter.radix.name',- detail: 'sheets-formula.functionList.BASE.functionParameter.radix.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BASE.functionParameter.minLength.name',- detail: 'sheets-formula.functionList.BASE.functionParameter.minLength.detail',- example: '10',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.CEILING,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.CEILING.description',- abstract: 'sheets-formula.functionList.CEILING.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CEILING.functionParameter.number.name',- detail: 'sheets-formula.functionList.CEILING.functionParameter.number.detail',- example: '2.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CEILING.functionParameter.significance.name',- detail: 'sheets-formula.functionList.CEILING.functionParameter.significance.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.CEILING_MATH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.CEILING_MATH.description',- abstract: 'sheets-formula.functionList.CEILING_MATH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CEILING_MATH.functionParameter.number.name',- detail: 'sheets-formula.functionList.CEILING_MATH.functionParameter.number.detail',- example: '-5.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CEILING_MATH.functionParameter.significance.name',- detail: 'sheets-formula.functionList.CEILING_MATH.functionParameter.significance.detail',- example: '2',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CEILING_MATH.functionParameter.mode.name',- detail: 'sheets-formula.functionList.CEILING_MATH.functionParameter.mode.detail',- example: '-1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.CEILING_PRECISE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.CEILING_PRECISE.description',- abstract: 'sheets-formula.functionList.CEILING_PRECISE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CEILING_PRECISE.functionParameter.number.name',- detail: 'sheets-formula.functionList.CEILING_PRECISE.functionParameter.number.detail',- example: '4.3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CEILING_PRECISE.functionParameter.significance.name',- detail: 'sheets-formula.functionList.CEILING_PRECISE.functionParameter.significance.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COMBIN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COMBIN.description',- abstract: 'sheets-formula.functionList.COMBIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COMBIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.COMBIN.functionParameter.number.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COMBIN.functionParameter.numberChosen.name',- detail: 'sheets-formula.functionList.COMBIN.functionParameter.numberChosen.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COMBINA,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COMBINA.description',- abstract: 'sheets-formula.functionList.COMBINA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COMBINA.functionParameter.number.name',- detail: 'sheets-formula.functionList.COMBINA.functionParameter.number.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COMBINA.functionParameter.numberChosen.name',- detail: 'sheets-formula.functionList.COMBINA.functionParameter.numberChosen.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COS,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COS.description',- abstract: 'sheets-formula.functionList.COS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COS.functionParameter.number.name',- detail: 'sheets-formula.functionList.COS.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COSH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COSH.description',- abstract: 'sheets-formula.functionList.COSH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COSH.functionParameter.number.name',- detail: 'sheets-formula.functionList.COSH.functionParameter.number.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COT.description',- abstract: 'sheets-formula.functionList.COT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COT.functionParameter.number.name',- detail: 'sheets-formula.functionList.COT.functionParameter.number.detail',- example: '30',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.COTH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.COTH.description',- abstract: 'sheets-formula.functionList.COTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COTH.functionParameter.number.name',- detail: 'sheets-formula.functionList.COTH.functionParameter.number.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.CSC,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.CSC.description',- abstract: 'sheets-formula.functionList.CSC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CSC.functionParameter.number.name',- detail: 'sheets-formula.functionList.CSC.functionParameter.number.detail',- example: '15',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.CSCH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.CSCH.description',- abstract: 'sheets-formula.functionList.CSCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CSCH.functionParameter.number.name',- detail: 'sheets-formula.functionList.CSCH.functionParameter.number.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.DECIMAL,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.DECIMAL.description',- abstract: 'sheets-formula.functionList.DECIMAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DECIMAL.functionParameter.text.name',- detail: 'sheets-formula.functionList.DECIMAL.functionParameter.text.detail',- example: '"FF"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DECIMAL.functionParameter.radix.name',- detail: 'sheets-formula.functionList.DECIMAL.functionParameter.radix.detail',- example: '16',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.DEGREES,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.DEGREES.description',- abstract: 'sheets-formula.functionList.DEGREES.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DEGREES.functionParameter.angle.name',- detail: 'sheets-formula.functionList.DEGREES.functionParameter.angle.detail',- example: 'PI()',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.EVEN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.EVEN.description',- abstract: 'sheets-formula.functionList.EVEN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EVEN.functionParameter.number.name',- detail: 'sheets-formula.functionList.EVEN.functionParameter.number.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.EXP,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.EXP.description',- abstract: 'sheets-formula.functionList.EXP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EXP.functionParameter.number.name',- detail: 'sheets-formula.functionList.EXP.functionParameter.number.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.FACT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.FACT.description',- abstract: 'sheets-formula.functionList.FACT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FACT.functionParameter.number.name',- detail: 'sheets-formula.functionList.FACT.functionParameter.number.detail',- example: '5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.FACTDOUBLE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.FACTDOUBLE.description',- abstract: 'sheets-formula.functionList.FACTDOUBLE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FACTDOUBLE.functionParameter.number.name',- detail: 'sheets-formula.functionList.FACTDOUBLE.functionParameter.number.detail',- example: '6',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.FLOOR,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.FLOOR.description',- abstract: 'sheets-formula.functionList.FLOOR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FLOOR.functionParameter.number.name',- detail: 'sheets-formula.functionList.FLOOR.functionParameter.number.detail',- example: '3.7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FLOOR.functionParameter.significance.name',- detail: 'sheets-formula.functionList.FLOOR.functionParameter.significance.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.FLOOR_MATH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.FLOOR_MATH.description',- abstract: 'sheets-formula.functionList.FLOOR_MATH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.number.name',- detail: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.number.detail',- example: '-5.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.significance.name',- detail: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.significance.detail',- example: '2',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.mode.name',- detail: 'sheets-formula.functionList.FLOOR_MATH.functionParameter.mode.detail',- example: '-1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.FLOOR_PRECISE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.FLOOR_PRECISE.description',- abstract: 'sheets-formula.functionList.FLOOR_PRECISE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FLOOR_PRECISE.functionParameter.number.name',- detail: 'sheets-formula.functionList.FLOOR_PRECISE.functionParameter.number.detail',- example: '-3.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FLOOR_PRECISE.functionParameter.significance.name',- detail: 'sheets-formula.functionList.FLOOR_PRECISE.functionParameter.significance.detail',- example: '-1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.GCD,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.GCD.description',- abstract: 'sheets-formula.functionList.GCD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GCD.functionParameter.number1.name',- detail: 'sheets-formula.functionList.GCD.functionParameter.number1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GCD.functionParameter.number2.name',- detail: 'sheets-formula.functionList.GCD.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.INT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.INT.description',- abstract: 'sheets-formula.functionList.INT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INT.functionParameter.number.name',- detail: 'sheets-formula.functionList.INT.functionParameter.number.detail',- example: '8.9',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ISO_CEILING,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ISO_CEILING.description',- abstract: 'sheets-formula.functionList.ISO_CEILING.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ISO_CEILING.functionParameter.number.name',- detail: 'sheets-formula.functionList.ISO_CEILING.functionParameter.number.detail',- example: '-4.3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ISO_CEILING.functionParameter.significance.name',- detail: 'sheets-formula.functionList.ISO_CEILING.functionParameter.significance.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.LCM,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.LCM.description',- abstract: 'sheets-formula.functionList.LCM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LCM.functionParameter.number1.name',- detail: 'sheets-formula.functionList.LCM.functionParameter.number1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LCM.functionParameter.number2.name',- detail: 'sheets-formula.functionList.LCM.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.LN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.LN.description',- abstract: 'sheets-formula.functionList.LN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LN.functionParameter.number.name',- detail: 'sheets-formula.functionList.LN.functionParameter.number.detail',- example: 'EXP(3)',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.LOG,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.LOG.description',- abstract: 'sheets-formula.functionList.LOG.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOG.functionParameter.number.name',- detail: 'sheets-formula.functionList.LOG.functionParameter.number.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOG.functionParameter.base.name',- detail: 'sheets-formula.functionList.LOG.functionParameter.base.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.LOG10,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.LOG10.description',- abstract: 'sheets-formula.functionList.LOG10.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOG10.functionParameter.number.name',- detail: 'sheets-formula.functionList.LOG10.functionParameter.number.detail',- example: '100000',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MDETERM,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MDETERM.description',- abstract: 'sheets-formula.functionList.MDETERM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MDETERM.functionParameter.array.name',- detail: 'sheets-formula.functionList.MDETERM.functionParameter.array.detail',- example: 'A1:C3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MINVERSE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MINVERSE.description',- abstract: 'sheets-formula.functionList.MINVERSE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MINVERSE.functionParameter.array.name',- detail: 'sheets-formula.functionList.MINVERSE.functionParameter.array.detail',- example: 'A1:C3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MMULT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MMULT.description',- abstract: 'sheets-formula.functionList.MMULT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MMULT.functionParameter.array1.name',- detail: 'sheets-formula.functionList.MMULT.functionParameter.array1.detail',- example: 'A2:B3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MMULT.functionParameter.array2.name',- detail: 'sheets-formula.functionList.MMULT.functionParameter.array2.detail',- example: 'A5:B6',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MOD,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MOD.description',- abstract: 'sheets-formula.functionList.MOD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MOD.functionParameter.number.name',- detail: 'sheets-formula.functionList.MOD.functionParameter.number.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MOD.functionParameter.divisor.name',- detail: 'sheets-formula.functionList.MOD.functionParameter.divisor.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MROUND,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MROUND.description',- abstract: 'sheets-formula.functionList.MROUND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MROUND.functionParameter.number.name',- detail: 'sheets-formula.functionList.MROUND.functionParameter.number.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MROUND.functionParameter.multiple.name',- detail: 'sheets-formula.functionList.MROUND.functionParameter.multiple.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MULTINOMIAL,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MULTINOMIAL.description',- abstract: 'sheets-formula.functionList.MULTINOMIAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MULTINOMIAL.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MULTINOMIAL.functionParameter.number1.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MULTINOMIAL.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MULTINOMIAL.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.MUNIT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.MUNIT.description',- abstract: 'sheets-formula.functionList.MUNIT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MUNIT.functionParameter.dimension.name',- detail: 'sheets-formula.functionList.MUNIT.functionParameter.dimension.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ODD,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ODD.description',- abstract: 'sheets-formula.functionList.ODD.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ODD.functionParameter.number.name',- detail: 'sheets-formula.functionList.ODD.functionParameter.number.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.PI,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.PI.description',- abstract: 'sheets-formula.functionList.PI.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_MATH.POWER,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.POWER.description',- abstract: 'sheets-formula.functionList.POWER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.POWER.functionParameter.number.name',- detail: 'sheets-formula.functionList.POWER.functionParameter.number.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.POWER.functionParameter.power.name',- detail: 'sheets-formula.functionList.POWER.functionParameter.power.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.PRODUCT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.PRODUCT.description',- abstract: 'sheets-formula.functionList.PRODUCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PRODUCT.functionParameter.number1.name',- detail: 'sheets-formula.functionList.PRODUCT.functionParameter.number1.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PRODUCT.functionParameter.number2.name',- detail: 'sheets-formula.functionList.PRODUCT.functionParameter.number2.detail',- example: 'A2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.QUOTIENT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.QUOTIENT.description',- abstract: 'sheets-formula.functionList.QUOTIENT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.QUOTIENT.functionParameter.numerator.name',- detail: 'sheets-formula.functionList.QUOTIENT.functionParameter.numerator.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.QUOTIENT.functionParameter.denominator.name',- detail: 'sheets-formula.functionList.QUOTIENT.functionParameter.denominator.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.RADIANS,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.RADIANS.description',- abstract: 'sheets-formula.functionList.RADIANS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RADIANS.functionParameter.angle.name',- detail: 'sheets-formula.functionList.RADIANS.functionParameter.angle.detail',- example: '270',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.RAND,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.RAND.description',- abstract: 'sheets-formula.functionList.RAND.abstract',- functionParameter: [- ],- },- {- functionName: FUNCTION_NAMES_MATH.RANDARRAY,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.RANDARRAY.description',- abstract: 'sheets-formula.functionList.RANDARRAY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RANDARRAY.functionParameter.rows.name',- detail: 'sheets-formula.functionList.RANDARRAY.functionParameter.rows.detail',- example: '5',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANDARRAY.functionParameter.columns.name',- detail: 'sheets-formula.functionList.RANDARRAY.functionParameter.columns.detail',- example: '3',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANDARRAY.functionParameter.min.name',- detail: 'sheets-formula.functionList.RANDARRAY.functionParameter.min.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANDARRAY.functionParameter.max.name',- detail: 'sheets-formula.functionList.RANDARRAY.functionParameter.max.detail',- example: '100',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANDARRAY.functionParameter.wholeNumber.name',- detail: 'sheets-formula.functionList.RANDARRAY.functionParameter.wholeNumber.detail',- example: 'TRUE',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.RANDBETWEEN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.RANDBETWEEN.description',- abstract: 'sheets-formula.functionList.RANDBETWEEN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RANDBETWEEN.functionParameter.bottom.name',- detail: 'sheets-formula.functionList.RANDBETWEEN.functionParameter.bottom.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANDBETWEEN.functionParameter.top.name',- detail: 'sheets-formula.functionList.RANDBETWEEN.functionParameter.top.detail',- example: '100',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ROMAN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ROMAN.description',- abstract: 'sheets-formula.functionList.ROMAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROMAN.functionParameter.number.name',- detail: 'sheets-formula.functionList.ROMAN.functionParameter.number.detail',- example: '499',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ROMAN.functionParameter.form.name',- detail: 'sheets-formula.functionList.ROMAN.functionParameter.form.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ROUND,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ROUND.description',- abstract: 'sheets-formula.functionList.ROUND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROUND.functionParameter.number.name',- detail: 'sheets-formula.functionList.ROUND.functionParameter.number.detail',- example: '2.15',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ROUND.functionParameter.numDigits.name',- detail: 'sheets-formula.functionList.ROUND.functionParameter.numDigits.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ROUNDBANK,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ROUNDBANK.description',- abstract: 'sheets-formula.functionList.ROUNDBANK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROUNDBANK.functionParameter.number.name',- detail: 'sheets-formula.functionList.ROUNDBANK.functionParameter.number.detail',- example: '2.345',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ROUNDBANK.functionParameter.numDigits.name',- detail: 'sheets-formula.functionList.ROUNDBANK.functionParameter.numDigits.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ROUNDDOWN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ROUNDDOWN.description',- abstract: 'sheets-formula.functionList.ROUNDDOWN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROUNDDOWN.functionParameter.number.name',- detail: 'sheets-formula.functionList.ROUNDDOWN.functionParameter.number.detail',- example: '3.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ROUNDDOWN.functionParameter.numDigits.name',- detail: 'sheets-formula.functionList.ROUNDDOWN.functionParameter.numDigits.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.ROUNDUP,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.ROUNDUP.description',- abstract: 'sheets-formula.functionList.ROUNDUP.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ROUNDUP.functionParameter.number.name',- detail: 'sheets-formula.functionList.ROUNDUP.functionParameter.number.detail',- example: '3.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ROUNDUP.functionParameter.numDigits.name',- detail: 'sheets-formula.functionList.ROUNDUP.functionParameter.numDigits.detail',- example: '0',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SEC,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SEC.description',- abstract: 'sheets-formula.functionList.SEC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SEC.functionParameter.number.name',- detail: 'sheets-formula.functionList.SEC.functionParameter.number.detail',- example: '30',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SECH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SECH.description',- abstract: 'sheets-formula.functionList.SECH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SECH.functionParameter.number.name',- detail: 'sheets-formula.functionList.SECH.functionParameter.number.detail',- example: '30',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SERIESSUM,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SERIESSUM.description',- abstract: 'sheets-formula.functionList.SERIESSUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SERIESSUM.functionParameter.x.name',- detail: 'sheets-formula.functionList.SERIESSUM.functionParameter.x.detail',- example: '0.785398163',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SERIESSUM.functionParameter.n.name',- detail: 'sheets-formula.functionList.SERIESSUM.functionParameter.n.detail',- example: '0',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SERIESSUM.functionParameter.m.name',- detail: 'sheets-formula.functionList.SERIESSUM.functionParameter.m.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SERIESSUM.functionParameter.coefficients.name',- detail: 'sheets-formula.functionList.SERIESSUM.functionParameter.coefficients.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SEQUENCE,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SEQUENCE.description',- abstract: 'sheets-formula.functionList.SEQUENCE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SEQUENCE.functionParameter.rows.name',- detail: 'sheets-formula.functionList.SEQUENCE.functionParameter.rows.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEQUENCE.functionParameter.columns.name',- detail: 'sheets-formula.functionList.SEQUENCE.functionParameter.columns.detail',- example: '5',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEQUENCE.functionParameter.start.name',- detail: 'sheets-formula.functionList.SEQUENCE.functionParameter.start.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEQUENCE.functionParameter.step.name',- detail: 'sheets-formula.functionList.SEQUENCE.functionParameter.step.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SIGN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SIGN.description',- abstract: 'sheets-formula.functionList.SIGN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SIGN.functionParameter.number.name',- detail: 'sheets-formula.functionList.SIGN.functionParameter.number.detail',- example: '10',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SIN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SIN.description',- abstract: 'sheets-formula.functionList.SIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SIN.functionParameter.number.name',- detail: 'sheets-formula.functionList.SIN.functionParameter.number.detail',- example: '30*PI()/180',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SINH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SINH.description',- abstract: 'sheets-formula.functionList.SINH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SINH.functionParameter.number.name',- detail: 'sheets-formula.functionList.SINH.functionParameter.number.detail',- example: '0.0342*1.03',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SQRT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SQRT.description',- abstract: 'sheets-formula.functionList.SQRT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SQRT.functionParameter.number.name',- detail: 'sheets-formula.functionList.SQRT.functionParameter.number.detail',- example: '16',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SQRTPI,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SQRTPI.description',- abstract: 'sheets-formula.functionList.SQRTPI.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SQRTPI.functionParameter.number.name',- detail: 'sheets-formula.functionList.SQRTPI.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUBTOTAL,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUBTOTAL.description',- abstract: 'sheets-formula.functionList.SUBTOTAL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUBTOTAL.functionParameter.functionNum.name',- detail: 'sheets-formula.functionList.SUBTOTAL.functionParameter.functionNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUBTOTAL.functionParameter.ref1.name',- detail: 'sheets-formula.functionList.SUBTOTAL.functionParameter.ref1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUBTOTAL.functionParameter.ref2.name',- detail: 'sheets-formula.functionList.SUBTOTAL.functionParameter.ref2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUM,- aliasFunctionName: 'sheets-formula.functionList.SUM.aliasFunctionName',- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUM.description',- abstract: 'sheets-formula.functionList.SUM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUM.functionParameter.number1.name',- detail: 'sheets-formula.functionList.SUM.functionParameter.number1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUM.functionParameter.number2.name',- detail: 'sheets-formula.functionList.SUM.functionParameter.number2.detail',- example: 'B2:B10',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMIF,- aliasFunctionName: 'sheets-formula.functionList.SUMIF.aliasFunctionName',- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMIF.description',- abstract: 'sheets-formula.functionList.SUMIF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMIF.functionParameter.range.name',- detail: 'sheets-formula.functionList.SUMIF.functionParameter.range.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMIF.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.SUMIF.functionParameter.criteria.detail',- example: '">5"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMIF.functionParameter.sumRange.name',- detail: 'sheets-formula.functionList.SUMIF.functionParameter.sumRange.detail',- example: 'B1:B20',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMIFS,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMIFS.description',- abstract: 'sheets-formula.functionList.SUMIFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMIFS.functionParameter.sumRange.name',- detail: 'sheets-formula.functionList.SUMIFS.functionParameter.sumRange.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMIFS.functionParameter.criteriaRange1.name',- detail: 'sheets-formula.functionList.SUMIFS.functionParameter.criteriaRange1.detail',- example: 'B1:B20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMIFS.functionParameter.criteria1.name',- detail: 'sheets-formula.functionList.SUMIFS.functionParameter.criteria1.detail',- example: '">10"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMIFS.functionParameter.criteriaRange2.name',- detail: 'sheets-formula.functionList.SUMIFS.functionParameter.criteriaRange2.detail',- example: 'C1:C20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.SUMIFS.functionParameter.criteria2.name',- detail: 'sheets-formula.functionList.SUMIFS.functionParameter.criteria2.detail',- example: '"<20"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMPRODUCT,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMPRODUCT.description',- abstract: 'sheets-formula.functionList.SUMPRODUCT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMPRODUCT.functionParameter.array1.name',- detail: 'sheets-formula.functionList.SUMPRODUCT.functionParameter.array1.detail',- example: 'C2:C5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMPRODUCT.functionParameter.array2.name',- detail: 'sheets-formula.functionList.SUMPRODUCT.functionParameter.array2.detail',- example: 'D2:D5',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMSQ,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMSQ.description',- abstract: 'sheets-formula.functionList.SUMSQ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMSQ.functionParameter.number1.name',- detail: 'sheets-formula.functionList.SUMSQ.functionParameter.number1.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMSQ.functionParameter.number2.name',- detail: 'sheets-formula.functionList.SUMSQ.functionParameter.number2.detail',- example: '4',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMX2MY2,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMX2MY2.description',- abstract: 'sheets-formula.functionList.SUMX2MY2.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMX2MY2.functionParameter.arrayX.name',- detail: 'sheets-formula.functionList.SUMX2MY2.functionParameter.arrayX.detail',- example: 'A2:A8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMX2MY2.functionParameter.arrayY.name',- detail: 'sheets-formula.functionList.SUMX2MY2.functionParameter.arrayY.detail',- example: 'B2:B8',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMX2PY2,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMX2PY2.description',- abstract: 'sheets-formula.functionList.SUMX2PY2.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMX2PY2.functionParameter.arrayX.name',- detail: 'sheets-formula.functionList.SUMX2PY2.functionParameter.arrayX.detail',- example: 'A2:A8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMX2PY2.functionParameter.arrayY.name',- detail: 'sheets-formula.functionList.SUMX2PY2.functionParameter.arrayY.detail',- example: 'B2:B8',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.SUMXMY2,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.SUMXMY2.description',- abstract: 'sheets-formula.functionList.SUMXMY2.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUMXMY2.functionParameter.arrayX.name',- detail: 'sheets-formula.functionList.SUMXMY2.functionParameter.arrayX.detail',- example: 'A2:A8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUMXMY2.functionParameter.arrayY.name',- detail: 'sheets-formula.functionList.SUMXMY2.functionParameter.arrayY.detail',- example: 'B2:B8',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.TAN,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.TAN.description',- abstract: 'sheets-formula.functionList.TAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TAN.functionParameter.number.name',- detail: 'sheets-formula.functionList.TAN.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.TANH,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.TANH.description',- abstract: 'sheets-formula.functionList.TANH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TANH.functionParameter.number.name',- detail: 'sheets-formula.functionList.TANH.functionParameter.number.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_MATH.TRUNC,- functionType: FunctionType.Math,- description: 'sheets-formula.functionList.TRUNC.description',- abstract: 'sheets-formula.functionList.TRUNC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TRUNC.functionParameter.number.name',- detail: 'sheets-formula.functionList.TRUNC.functionParameter.number.detail',- example: '0.45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TRUNC.functionParameter.numDigits.name',- detail: 'sheets-formula.functionList.TRUNC.functionParameter.numDigits.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/statistical.ts b/packages/sheets-formula/src/services/function-list/statistical.tsdeleted file mode 100644index cfcf23f073..0000000000--- a/packages/sheets-formula/src/services/function-list/statistical.ts+++ /dev/null@@ -1,3067 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_STATISTICAL, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_STATISTICAL: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_STATISTICAL.AVEDEV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVEDEV.description',- abstract: 'sheets-formula.functionList.AVEDEV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVEDEV.functionParameter.number1.name',- detail: 'sheets-formula.functionList.AVEDEV.functionParameter.number1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVEDEV.functionParameter.number2.name',- detail: 'sheets-formula.functionList.AVEDEV.functionParameter.number2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.AVERAGE,- aliasFunctionName: 'sheets-formula.functionList.AVERAGE.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVERAGE.description',- abstract: 'sheets-formula.functionList.AVERAGE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVERAGE.functionParameter.number1.name',- detail: 'sheets-formula.functionList.AVERAGE.functionParameter.number1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGE.functionParameter.number2.name',- detail: 'sheets-formula.functionList.AVERAGE.functionParameter.number2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.AVERAGE_WEIGHTED,- aliasFunctionName: 'sheets-formula.functionList.AVERAGE_WEIGHTED.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVERAGE_WEIGHTED.description',- abstract: 'sheets-formula.functionList.AVERAGE_WEIGHTED.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.values.name',- detail: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.values.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.weights.name',- detail: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.weights.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalValues.name',- detail: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalValues.detail',- example: '20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalWeights.name',- detail: 'sheets-formula.functionList.AVERAGE_WEIGHTED.functionParameter.additionalWeights.detail',- example: '3',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVERAGEA.description',- abstract: 'sheets-formula.functionList.AVERAGEA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVERAGEA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.AVERAGEA.functionParameter.value1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.AVERAGEA.functionParameter.value2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEIF,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVERAGEIF.description',- abstract: 'sheets-formula.functionList.AVERAGEIF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVERAGEIF.functionParameter.range.name',- detail: 'sheets-formula.functionList.AVERAGEIF.functionParameter.range.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEIF.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.AVERAGEIF.functionParameter.criteria.detail',- example: '">5"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEIF.functionParameter.averageRange.name',- detail: 'sheets-formula.functionList.AVERAGEIF.functionParameter.averageRange.detail',- example: 'B1:B20',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.AVERAGEIFS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.AVERAGEIFS.description',- abstract: 'sheets-formula.functionList.AVERAGEIFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.averageRange.name',- detail: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.averageRange.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.name',- detail: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.detail',- example: 'B1:B20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteria1.name',- detail: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteria1.detail',- example: '">10"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.name',- detail: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.detail',- example: 'C1:C20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteria2.name',- detail: 'sheets-formula.functionList.AVERAGEIFS.functionParameter.criteria2.detail',- example: '"<20"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.BETA_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.BETA_DIST.description',- abstract: 'sheets-formula.functionList.BETA_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.x.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.beta.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.beta.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.A.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.A.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_DIST.functionParameter.B.name',- detail: 'sheets-formula.functionList.BETA_DIST.functionParameter.B.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.BETA_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.BETA_INV.description',- abstract: 'sheets-formula.functionList.BETA_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BETA_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.BETA_INV.functionParameter.probability.detail',- example: '0.685470581',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_INV.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.BETA_INV.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_INV.functionParameter.beta.name',- detail: 'sheets-formula.functionList.BETA_INV.functionParameter.beta.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_INV.functionParameter.A.name',- detail: 'sheets-formula.functionList.BETA_INV.functionParameter.A.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BETA_INV.functionParameter.B.name',- detail: 'sheets-formula.functionList.BETA_INV.functionParameter.B.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.BINOM_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.BINOM_DIST.description',- abstract: 'sheets-formula.functionList.BINOM_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BINOM_DIST.functionParameter.numberS.name',- detail: 'sheets-formula.functionList.BINOM_DIST.functionParameter.numberS.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST.functionParameter.trials.name',- detail: 'sheets-formula.functionList.BINOM_DIST.functionParameter.trials.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.BINOM_DIST.functionParameter.probabilityS.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.BINOM_DIST.functionParameter.cumulative.detail',- example: 'false',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.BINOM_DIST_RANGE,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.BINOM_DIST_RANGE.description',- abstract: 'sheets-formula.functionList.BINOM_DIST_RANGE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.trials.name',- detail: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.trials.detail',- example: '60',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.probabilityS.detail',- example: '0.75',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS.name',- detail: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS.detail',- example: '45',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS2.name',- detail: 'sheets-formula.functionList.BINOM_DIST_RANGE.functionParameter.numberS2.detail',- example: '50',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.BINOM_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.BINOM_INV.description',- abstract: 'sheets-formula.functionList.BINOM_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BINOM_INV.functionParameter.trials.name',- detail: 'sheets-formula.functionList.BINOM_INV.functionParameter.trials.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_INV.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.BINOM_INV.functionParameter.probabilityS.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.BINOM_INV.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.BINOM_INV.functionParameter.alpha.detail',- example: '0.75',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CHISQ_DIST.description',- abstract: 'sheets-formula.functionList.CHISQ_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.x.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.CHISQ_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_DIST_RT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CHISQ_DIST_RT.description',- abstract: 'sheets-formula.functionList.CHISQ_DIST_RT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHISQ_DIST_RT.functionParameter.x.name',- detail: 'sheets-formula.functionList.CHISQ_DIST_RT.functionParameter.x.detail',- example: '0.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_DIST_RT.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHISQ_DIST_RT.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CHISQ_INV.description',- abstract: 'sheets-formula.functionList.CHISQ_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHISQ_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.CHISQ_INV.functionParameter.probability.detail',- example: '0.93',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_INV.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHISQ_INV.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_INV_RT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CHISQ_INV_RT.description',- abstract: 'sheets-formula.functionList.CHISQ_INV_RT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHISQ_INV_RT.functionParameter.probability.name',- detail: 'sheets-formula.functionList.CHISQ_INV_RT.functionParameter.probability.detail',- example: '0.93',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_INV_RT.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.CHISQ_INV_RT.functionParameter.degFreedom.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CHISQ_TEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CHISQ_TEST.description',- abstract: 'sheets-formula.functionList.CHISQ_TEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHISQ_TEST.functionParameter.actualRange.name',- detail: 'sheets-formula.functionList.CHISQ_TEST.functionParameter.actualRange.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CHISQ_TEST.functionParameter.expectedRange.name',- detail: 'sheets-formula.functionList.CHISQ_TEST.functionParameter.expectedRange.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CONFIDENCE_NORM,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CONFIDENCE_NORM.description',- abstract: 'sheets-formula.functionList.CONFIDENCE_NORM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.alpha.detail',- example: '0.05',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.standardDev.detail',- example: '2.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.size.name',- detail: 'sheets-formula.functionList.CONFIDENCE_NORM.functionParameter.size.detail',- example: '50',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CONFIDENCE_T,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CONFIDENCE_T.description',- abstract: 'sheets-formula.functionList.CONFIDENCE_T.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.alpha.detail',- example: '0.05',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.standardDev.detail',- example: '2.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.size.name',- detail: 'sheets-formula.functionList.CONFIDENCE_T.functionParameter.size.detail',- example: '50',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.CORREL,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.CORREL.description',- abstract: 'sheets-formula.functionList.CORREL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CORREL.functionParameter.array1.name',- detail: 'sheets-formula.functionList.CORREL.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CORREL.functionParameter.array2.name',- detail: 'sheets-formula.functionList.CORREL.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COUNT,- aliasFunctionName: 'sheets-formula.functionList.COUNT.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COUNT.description',- abstract: 'sheets-formula.functionList.COUNT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUNT.functionParameter.value1.name',- detail: 'sheets-formula.functionList.COUNT.functionParameter.value1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUNT.functionParameter.value2.name',- detail: 'sheets-formula.functionList.COUNT.functionParameter.value2.detail',- example: 'B2:B10',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COUNTA,- aliasFunctionName: 'sheets-formula.functionList.COUNTA.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COUNTA.description',- abstract: 'sheets-formula.functionList.COUNTA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUNTA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.COUNTA.functionParameter.value1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUNTA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.COUNTA.functionParameter.value2.detail',- example: 'B2:B10',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COUNTBLANK,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COUNTBLANK.description',- abstract: 'sheets-formula.functionList.COUNTBLANK.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUNTBLANK.functionParameter.range.name',- detail: 'sheets-formula.functionList.COUNTBLANK.functionParameter.range.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COUNTIF,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COUNTIF.description',- abstract: 'sheets-formula.functionList.COUNTIF.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUNTIF.functionParameter.range.name',- detail: 'sheets-formula.functionList.COUNTIF.functionParameter.range.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUNTIF.functionParameter.criteria.name',- detail: 'sheets-formula.functionList.COUNTIF.functionParameter.criteria.detail',- example: '">5"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COUNTIFS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COUNTIFS.description',- abstract: 'sheets-formula.functionList.COUNTIFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteriaRange1.name',- detail: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteriaRange1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteria1.name',- detail: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteria1.detail',- example: '">10"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteriaRange2.name',- detail: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteriaRange2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteria2.name',- detail: 'sheets-formula.functionList.COUNTIFS.functionParameter.criteria2.detail',- example: '"<20"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COVARIANCE_P,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COVARIANCE_P.description',- abstract: 'sheets-formula.functionList.COVARIANCE_P.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COVARIANCE_P.functionParameter.array1.name',- detail: 'sheets-formula.functionList.COVARIANCE_P.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COVARIANCE_P.functionParameter.array2.name',- detail: 'sheets-formula.functionList.COVARIANCE_P.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.COVARIANCE_S,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.COVARIANCE_S.description',- abstract: 'sheets-formula.functionList.COVARIANCE_S.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.COVARIANCE_S.functionParameter.array1.name',- detail: 'sheets-formula.functionList.COVARIANCE_S.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.COVARIANCE_S.functionParameter.array2.name',- detail: 'sheets-formula.functionList.COVARIANCE_S.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.DEVSQ,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.DEVSQ.description',- abstract: 'sheets-formula.functionList.DEVSQ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DEVSQ.functionParameter.number1.name',- detail: 'sheets-formula.functionList.DEVSQ.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DEVSQ.functionParameter.number2.name',- detail: 'sheets-formula.functionList.DEVSQ.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.EXPON_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.EXPON_DIST.description',- abstract: 'sheets-formula.functionList.EXPON_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EXPON_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.EXPON_DIST.functionParameter.x.detail',- example: '0.2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPON_DIST.functionParameter.lambda.name',- detail: 'sheets-formula.functionList.EXPON_DIST.functionParameter.lambda.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXPON_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.EXPON_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.F_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.F_DIST.description',- abstract: 'sheets-formula.functionList.F_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.F_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.F_DIST.functionParameter.x.detail',- example: '15.2069',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_DIST.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.F_DIST.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_DIST.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.F_DIST.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.F_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.F_DIST_RT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.F_DIST_RT.description',- abstract: 'sheets-formula.functionList.F_DIST_RT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.F_DIST_RT.functionParameter.x.name',- detail: 'sheets-formula.functionList.F_DIST_RT.functionParameter.x.detail',- example: '15.2069',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_DIST_RT.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.F_DIST_RT.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_DIST_RT.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.F_DIST_RT.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.F_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.F_INV.description',- abstract: 'sheets-formula.functionList.F_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.F_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.F_INV.functionParameter.probability.detail',- example: '0.01',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_INV.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.F_INV.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_INV.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.F_INV.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.F_INV_RT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.F_INV_RT.description',- abstract: 'sheets-formula.functionList.F_INV_RT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.F_INV_RT.functionParameter.probability.name',- detail: 'sheets-formula.functionList.F_INV_RT.functionParameter.probability.detail',- example: '0.01',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_INV_RT.functionParameter.degFreedom1.name',- detail: 'sheets-formula.functionList.F_INV_RT.functionParameter.degFreedom1.detail',- example: '6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_INV_RT.functionParameter.degFreedom2.name',- detail: 'sheets-formula.functionList.F_INV_RT.functionParameter.degFreedom2.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.F_TEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.F_TEST.description',- abstract: 'sheets-formula.functionList.F_TEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.F_TEST.functionParameter.array1.name',- detail: 'sheets-formula.functionList.F_TEST.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.F_TEST.functionParameter.array2.name',- detail: 'sheets-formula.functionList.F_TEST.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FISHER,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FISHER.description',- abstract: 'sheets-formula.functionList.FISHER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FISHER.functionParameter.x.name',- detail: 'sheets-formula.functionList.FISHER.functionParameter.x.detail',- example: '0.75',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FISHERINV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FISHERINV.description',- abstract: 'sheets-formula.functionList.FISHERINV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FISHERINV.functionParameter.y.name',- detail: 'sheets-formula.functionList.FISHERINV.functionParameter.y.detail',- example: '0.75',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST.description',- abstract: 'sheets-formula.functionList.FORECAST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST.functionParameter.x.name',- detail: 'sheets-formula.functionList.FORECAST.functionParameter.x.detail',- example: '30',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.FORECAST.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.FORECAST.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST_ETS.description',- abstract: 'sheets-formula.functionList.FORECAST_ETS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.targetDate.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.targetDate.detail',- example: 'A10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.values.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.values.detail',- example: 'B2:B9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.timeline.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.timeline.detail',- example: 'A2:A9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.seasonality.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.seasonality.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.dataCompletion.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.dataCompletion.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.aggregation.name',- detail: 'sheets-formula.functionList.FORECAST_ETS.functionParameter.aggregation.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_CONFINT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.description',- abstract: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.targetDate.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.targetDate.detail',- example: 'A10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.values.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.values.detail',- example: 'B2:B9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.timeline.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.timeline.detail',- example: 'A2:A9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.confidenceLevel.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.confidenceLevel.detail',- example: '0.95',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.seasonality.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.seasonality.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.dataCompletion.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.dataCompletion.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.aggregation.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_CONFINT.functionParameter.aggregation.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_SEASONALITY,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.description',- abstract: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.values.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.values.detail',- example: 'B2:B9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.timeline.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.timeline.detail',- example: 'A2:A9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.dataCompletion.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.dataCompletion.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.aggregation.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.aggregation.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_ETS_STAT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST_ETS_STAT.description',- abstract: 'sheets-formula.functionList.FORECAST_ETS_STAT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.values.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.values.detail',- example: 'B2:B9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.timeline.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.timeline.detail',- example: 'A2:A9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.statisticType.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.statisticType.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.seasonality.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.seasonality.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.dataCompletion.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.dataCompletion.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.aggregation.name',- detail: 'sheets-formula.functionList.FORECAST_ETS_STAT.functionParameter.aggregation.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FORECAST_LINEAR,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FORECAST_LINEAR.description',- abstract: 'sheets-formula.functionList.FORECAST_LINEAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.x.name',- detail: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.x.detail',- example: '30',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.FORECAST_LINEAR.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.FREQUENCY,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.FREQUENCY.description',- abstract: 'sheets-formula.functionList.FREQUENCY.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FREQUENCY.functionParameter.dataArray.name',- detail: 'sheets-formula.functionList.FREQUENCY.functionParameter.dataArray.detail',- example: 'A2:A10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FREQUENCY.functionParameter.binsArray.name',- detail: 'sheets-formula.functionList.FREQUENCY.functionParameter.binsArray.detail',- example: 'B2:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAMMA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAMMA.description',- abstract: 'sheets-formula.functionList.GAMMA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMA.functionParameter.number.name',- detail: 'sheets-formula.functionList.GAMMA.functionParameter.number.detail',- example: '2.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAMMA_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAMMA_DIST.description',- abstract: 'sheets-formula.functionList.GAMMA_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.x.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.alpha.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.beta.name',- detail: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.beta.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.GAMMA_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAMMA_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAMMA_INV.description',- abstract: 'sheets-formula.functionList.GAMMA_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMA_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.GAMMA_INV.functionParameter.probability.detail',- example: '0.068094',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMA_INV.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.GAMMA_INV.functionParameter.alpha.detail',- example: '9',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GAMMA_INV.functionParameter.beta.name',- detail: 'sheets-formula.functionList.GAMMA_INV.functionParameter.beta.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAMMALN,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAMMALN.description',- abstract: 'sheets-formula.functionList.GAMMALN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMALN.functionParameter.x.name',- detail: 'sheets-formula.functionList.GAMMALN.functionParameter.x.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAMMALN_PRECISE,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAMMALN_PRECISE.description',- abstract: 'sheets-formula.functionList.GAMMALN_PRECISE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAMMALN_PRECISE.functionParameter.x.name',- detail: 'sheets-formula.functionList.GAMMALN_PRECISE.functionParameter.x.detail',- example: '4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GAUSS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GAUSS.description',- abstract: 'sheets-formula.functionList.GAUSS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GAUSS.functionParameter.z.name',- detail: 'sheets-formula.functionList.GAUSS.functionParameter.z.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GEOMEAN,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GEOMEAN.description',- abstract: 'sheets-formula.functionList.GEOMEAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GEOMEAN.functionParameter.number1.name',- detail: 'sheets-formula.functionList.GEOMEAN.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GEOMEAN.functionParameter.number2.name',- detail: 'sheets-formula.functionList.GEOMEAN.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.GROWTH,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.GROWTH.description',- abstract: 'sheets-formula.functionList.GROWTH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.GROWTH.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.GROWTH.functionParameter.knownYs.detail',- example: 'B2:B7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GROWTH.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.GROWTH.functionParameter.knownXs.detail',- example: 'A2:A7',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GROWTH.functionParameter.newXs.name',- detail: 'sheets-formula.functionList.GROWTH.functionParameter.newXs.detail',- example: 'A9:A10',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.GROWTH.functionParameter.constb.name',- detail: 'sheets-formula.functionList.GROWTH.functionParameter.constb.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.HARMEAN,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.HARMEAN.description',- abstract: 'sheets-formula.functionList.HARMEAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HARMEAN.functionParameter.number1.name',- detail: 'sheets-formula.functionList.HARMEAN.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HARMEAN.functionParameter.number2.name',- detail: 'sheets-formula.functionList.HARMEAN.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.HYPGEOM_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.HYPGEOM_DIST.description',- abstract: 'sheets-formula.functionList.HYPGEOM_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.sampleS.name',- detail: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.sampleS.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.numberSample.name',- detail: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.numberSample.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.populationS.name',- detail: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.populationS.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.numberPop.name',- detail: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.numberPop.detail',- example: '20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.HYPGEOM_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.INTERCEPT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.INTERCEPT.description',- abstract: 'sheets-formula.functionList.INTERCEPT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.INTERCEPT.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.INTERCEPT.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.INTERCEPT.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.INTERCEPT.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.KURT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.KURT.description',- abstract: 'sheets-formula.functionList.KURT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.KURT.functionParameter.number1.name',- detail: 'sheets-formula.functionList.KURT.functionParameter.number1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.KURT.functionParameter.number2.name',- detail: 'sheets-formula.functionList.KURT.functionParameter.number2.detail',- example: '4',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.LARGE,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.LARGE.description',- abstract: 'sheets-formula.functionList.LARGE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LARGE.functionParameter.array.name',- detail: 'sheets-formula.functionList.LARGE.functionParameter.array.detail',- example: 'A2:B6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LARGE.functionParameter.k.name',- detail: 'sheets-formula.functionList.LARGE.functionParameter.k.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.LINEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.LINEST.description',- abstract: 'sheets-formula.functionList.LINEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LINEST.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.LINEST.functionParameter.knownYs.detail',- example: 'B2:B7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LINEST.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.LINEST.functionParameter.knownXs.detail',- example: 'A2:A7',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LINEST.functionParameter.constb.name',- detail: 'sheets-formula.functionList.LINEST.functionParameter.constb.detail',- example: 'true',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LINEST.functionParameter.stats.name',- detail: 'sheets-formula.functionList.LINEST.functionParameter.stats.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.LOGEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.LOGEST.description',- abstract: 'sheets-formula.functionList.LOGEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOGEST.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.LOGEST.functionParameter.knownYs.detail',- example: 'B2:B7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGEST.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.LOGEST.functionParameter.knownXs.detail',- example: 'A2:A7',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGEST.functionParameter.constb.name',- detail: 'sheets-formula.functionList.LOGEST.functionParameter.constb.detail',- example: 'true',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGEST.functionParameter.stats.name',- detail: 'sheets-formula.functionList.LOGEST.functionParameter.stats.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.LOGNORM_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.LOGNORM_DIST.description',- abstract: 'sheets-formula.functionList.LOGNORM_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.x.detail',- example: '42',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.mean.name',- detail: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.LOGNORM_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.LOGNORM_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.LOGNORM_INV.description',- abstract: 'sheets-formula.functionList.LOGNORM_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.mean.name',- detail: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.LOGNORM_INV.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MARGINOFERROR,- aliasFunctionName: 'sheets-formula.functionList.MARGINOFERROR.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MARGINOFERROR.description',- abstract: 'sheets-formula.functionList.MARGINOFERROR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MARGINOFERROR.functionParameter.range.name',- detail: 'sheets-formula.functionList.MARGINOFERROR.functionParameter.range.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MARGINOFERROR.functionParameter.confidence.name',- detail: 'sheets-formula.functionList.MARGINOFERROR.functionParameter.confidence.detail',- example: '0.95',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MAX,- aliasFunctionName: 'sheets-formula.functionList.MAX.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MAX.description',- abstract: 'sheets-formula.functionList.MAX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MAX.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MAX.functionParameter.number1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAX.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MAX.functionParameter.number2.detail',- example: 'B2:B10',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MAXA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MAXA.description',- abstract: 'sheets-formula.functionList.MAXA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MAXA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.MAXA.functionParameter.value1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAXA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.MAXA.functionParameter.value2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MAXIFS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MAXIFS.description',- abstract: 'sheets-formula.functionList.MAXIFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MAXIFS.functionParameter.maxRange.name',- detail: 'sheets-formula.functionList.MAXIFS.functionParameter.maxRange.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAXIFS.functionParameter.criteriaRange1.name',- detail: 'sheets-formula.functionList.MAXIFS.functionParameter.criteriaRange1.detail',- example: 'B1:B20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAXIFS.functionParameter.criteria1.name',- detail: 'sheets-formula.functionList.MAXIFS.functionParameter.criteria1.detail',- example: '">10"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MAXIFS.functionParameter.criteriaRange2.name',- detail: 'sheets-formula.functionList.MAXIFS.functionParameter.criteriaRange2.detail',- example: 'C1:C20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.MAXIFS.functionParameter.criteria2.name',- detail: 'sheets-formula.functionList.MAXIFS.functionParameter.criteria2.detail',- example: '"<20"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MEDIAN,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MEDIAN.description',- abstract: 'sheets-formula.functionList.MEDIAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MEDIAN.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MEDIAN.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MEDIAN.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MEDIAN.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MIN,- aliasFunctionName: 'sheets-formula.functionList.MIN.aliasFunctionName',- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MIN.description',- abstract: 'sheets-formula.functionList.MIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MIN.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MIN.functionParameter.number1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MIN.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MIN.functionParameter.number2.detail',- example: 'B2:B10',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MINA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MINA.description',- abstract: 'sheets-formula.functionList.MINA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MINA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.MINA.functionParameter.value1.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MINA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.MINA.functionParameter.value2.detail',- example: 'B1:B20',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MINIFS,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MINIFS.description',- abstract: 'sheets-formula.functionList.MINIFS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MINIFS.functionParameter.minRange.name',- detail: 'sheets-formula.functionList.MINIFS.functionParameter.minRange.detail',- example: 'A1:A20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MINIFS.functionParameter.criteriaRange1.name',- detail: 'sheets-formula.functionList.MINIFS.functionParameter.criteriaRange1.detail',- example: 'B1:B20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MINIFS.functionParameter.criteria1.name',- detail: 'sheets-formula.functionList.MINIFS.functionParameter.criteria1.detail',- example: '">10"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MINIFS.functionParameter.criteriaRange2.name',- detail: 'sheets-formula.functionList.MINIFS.functionParameter.criteriaRange2.detail',- example: 'C1:C20',- require: 0,- repeat: 1,- },- {- name: 'sheets-formula.functionList.MINIFS.functionParameter.criteria2.name',- detail: 'sheets-formula.functionList.MINIFS.functionParameter.criteria2.detail',- example: '"<20"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MODE_MULT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MODE_MULT.description',- abstract: 'sheets-formula.functionList.MODE_MULT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MODE_MULT.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MODE_MULT.functionParameter.number1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MODE_MULT.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MODE_MULT.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.MODE_SNGL,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.MODE_SNGL.description',- abstract: 'sheets-formula.functionList.MODE_SNGL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MODE_SNGL.functionParameter.number1.name',- detail: 'sheets-formula.functionList.MODE_SNGL.functionParameter.number1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MODE_SNGL.functionParameter.number2.name',- detail: 'sheets-formula.functionList.MODE_SNGL.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.NEGBINOM_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.NEGBINOM_DIST.description',- abstract: 'sheets-formula.functionList.NEGBINOM_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.numberF.name',- detail: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.numberF.detail',- example: '10',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.numberS.name',- detail: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.numberS.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.probabilityS.name',- detail: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.probabilityS.detail',- example: '0.25',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.NEGBINOM_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.NORM_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.NORM_DIST.description',- abstract: 'sheets-formula.functionList.NORM_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORM_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.NORM_DIST.functionParameter.x.detail',- example: '42',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_DIST.functionParameter.mean.name',- detail: 'sheets-formula.functionList.NORM_DIST.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_DIST.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.NORM_DIST.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.NORM_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.NORM_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.NORM_INV.description',- abstract: 'sheets-formula.functionList.NORM_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORM_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.NORM_INV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_INV.functionParameter.mean.name',- detail: 'sheets-formula.functionList.NORM_INV.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_INV.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.NORM_INV.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.NORM_S_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.NORM_S_DIST.description',- abstract: 'sheets-formula.functionList.NORM_S_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORM_S_DIST.functionParameter.z.name',- detail: 'sheets-formula.functionList.NORM_S_DIST.functionParameter.z.detail',- example: '1.333333',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NORM_S_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.NORM_S_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.NORM_S_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.NORM_S_INV.description',- abstract: 'sheets-formula.functionList.NORM_S_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NORM_S_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.NORM_S_INV.functionParameter.probability.detail',- example: '0.908789',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PEARSON,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PEARSON.description',- abstract: 'sheets-formula.functionList.PEARSON.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PEARSON.functionParameter.array1.name',- detail: 'sheets-formula.functionList.PEARSON.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PEARSON.functionParameter.array2.name',- detail: 'sheets-formula.functionList.PEARSON.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERCENTILE_EXC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERCENTILE_EXC.description',- abstract: 'sheets-formula.functionList.PERCENTILE_EXC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTILE_EXC.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTILE_EXC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTILE_EXC.functionParameter.k.name',- detail: 'sheets-formula.functionList.PERCENTILE_EXC.functionParameter.k.detail',- example: '0.3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERCENTILE_INC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERCENTILE_INC.description',- abstract: 'sheets-formula.functionList.PERCENTILE_INC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTILE_INC.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTILE_INC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTILE_INC.functionParameter.k.name',- detail: 'sheets-formula.functionList.PERCENTILE_INC.functionParameter.k.detail',- example: '0.3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERCENTRANK_EXC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERCENTRANK_EXC.description',- abstract: 'sheets-formula.functionList.PERCENTRANK_EXC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.x.name',- detail: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.significance.name',- detail: 'sheets-formula.functionList.PERCENTRANK_EXC.functionParameter.significance.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERCENTRANK_INC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERCENTRANK_INC.description',- abstract: 'sheets-formula.functionList.PERCENTRANK_INC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.array.name',- detail: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.x.name',- detail: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.x.detail',- example: '1.5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.significance.name',- detail: 'sheets-formula.functionList.PERCENTRANK_INC.functionParameter.significance.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERMUT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERMUT.description',- abstract: 'sheets-formula.functionList.PERMUT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERMUT.functionParameter.number.name',- detail: 'sheets-formula.functionList.PERMUT.functionParameter.number.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERMUT.functionParameter.numberChosen.name',- detail: 'sheets-formula.functionList.PERMUT.functionParameter.numberChosen.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PERMUTATIONA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PERMUTATIONA.description',- abstract: 'sheets-formula.functionList.PERMUTATIONA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PERMUT.functionParameter.number.name',- detail: 'sheets-formula.functionList.PERMUT.functionParameter.number.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PERMUT.functionParameter.numberChosen.name',- detail: 'sheets-formula.functionList.PERMUT.functionParameter.numberChosen.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PHI,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PHI.description',- abstract: 'sheets-formula.functionList.PHI.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PHI.functionParameter.x.name',- detail: 'sheets-formula.functionList.PHI.functionParameter.x.detail',- example: '0.75',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.POISSON_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.POISSON_DIST.description',- abstract: 'sheets-formula.functionList.POISSON_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.POISSON_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.POISSON_DIST.functionParameter.x.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.POISSON_DIST.functionParameter.mean.name',- detail: 'sheets-formula.functionList.POISSON_DIST.functionParameter.mean.detail',- example: '5',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.POISSON_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.POISSON_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.PROB,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.PROB.description',- abstract: 'sheets-formula.functionList.PROB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PROB.functionParameter.xRange.name',- detail: 'sheets-formula.functionList.PROB.functionParameter.xRange.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PROB.functionParameter.probRange.name',- detail: 'sheets-formula.functionList.PROB.functionParameter.probRange.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PROB.functionParameter.lowerLimit.name',- detail: 'sheets-formula.functionList.PROB.functionParameter.lowerLimit.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.PROB.functionParameter.upperLimit.name',- detail: 'sheets-formula.functionList.PROB.functionParameter.upperLimit.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.QUARTILE_EXC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.QUARTILE_EXC.description',- abstract: 'sheets-formula.functionList.QUARTILE_EXC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.QUARTILE_EXC.functionParameter.array.name',- detail: 'sheets-formula.functionList.QUARTILE_EXC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.QUARTILE_EXC.functionParameter.quart.name',- detail: 'sheets-formula.functionList.QUARTILE_EXC.functionParameter.quart.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.QUARTILE_INC,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.QUARTILE_INC.description',- abstract: 'sheets-formula.functionList.QUARTILE_INC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.QUARTILE_INC.functionParameter.array.name',- detail: 'sheets-formula.functionList.QUARTILE_INC.functionParameter.array.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.QUARTILE_INC.functionParameter.quart.name',- detail: 'sheets-formula.functionList.QUARTILE_INC.functionParameter.quart.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.RANK_AVG,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.RANK_AVG.description',- abstract: 'sheets-formula.functionList.RANK_AVG.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RANK_AVG.functionParameter.number.name',- detail: 'sheets-formula.functionList.RANK_AVG.functionParameter.number.detail',- example: 'A3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK_AVG.functionParameter.ref.name',- detail: 'sheets-formula.functionList.RANK_AVG.functionParameter.ref.detail',- example: 'A2:A6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK_AVG.functionParameter.order.name',- detail: 'sheets-formula.functionList.RANK_AVG.functionParameter.order.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.RANK_EQ,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.RANK_EQ.description',- abstract: 'sheets-formula.functionList.RANK_EQ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RANK_EQ.functionParameter.number.name',- detail: 'sheets-formula.functionList.RANK_EQ.functionParameter.number.detail',- example: 'A3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK_EQ.functionParameter.ref.name',- detail: 'sheets-formula.functionList.RANK_EQ.functionParameter.ref.detail',- example: 'A2:A6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RANK_EQ.functionParameter.order.name',- detail: 'sheets-formula.functionList.RANK_EQ.functionParameter.order.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.RSQ,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.RSQ.description',- abstract: 'sheets-formula.functionList.RSQ.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RSQ.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.RSQ.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RSQ.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.RSQ.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.SKEW,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.SKEW.description',- abstract: 'sheets-formula.functionList.SKEW.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SKEW.functionParameter.number1.name',- detail: 'sheets-formula.functionList.SKEW.functionParameter.number1.detail',- example: 'A1:C3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SKEW.functionParameter.number2.name',- detail: 'sheets-formula.functionList.SKEW.functionParameter.number2.detail',- example: '4',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.SKEW_P,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.SKEW_P.description',- abstract: 'sheets-formula.functionList.SKEW_P.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SKEW_P.functionParameter.number1.name',- detail: 'sheets-formula.functionList.SKEW_P.functionParameter.number1.detail',- example: 'A1:C3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SKEW_P.functionParameter.number2.name',- detail: 'sheets-formula.functionList.SKEW_P.functionParameter.number2.detail',- example: '4',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.SLOPE,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.SLOPE.description',- abstract: 'sheets-formula.functionList.SLOPE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SLOPE.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.SLOPE.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SLOPE.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.SLOPE.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.SMALL,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.SMALL.description',- abstract: 'sheets-formula.functionList.SMALL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SMALL.functionParameter.array.name',- detail: 'sheets-formula.functionList.SMALL.functionParameter.array.detail',- example: 'A2:B6',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SMALL.functionParameter.k.name',- detail: 'sheets-formula.functionList.SMALL.functionParameter.k.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STANDARDIZE,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STANDARDIZE.description',- abstract: 'sheets-formula.functionList.STANDARDIZE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STANDARDIZE.functionParameter.x.name',- detail: 'sheets-formula.functionList.STANDARDIZE.functionParameter.x.detail',- example: '42',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STANDARDIZE.functionParameter.mean.name',- detail: 'sheets-formula.functionList.STANDARDIZE.functionParameter.mean.detail',- example: '40',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STANDARDIZE.functionParameter.standardDev.name',- detail: 'sheets-formula.functionList.STANDARDIZE.functionParameter.standardDev.detail',- example: '1.5',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STDEV_P,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STDEV_P.description',- abstract: 'sheets-formula.functionList.STDEV_P.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEV_P.functionParameter.number1.name',- detail: 'sheets-formula.functionList.STDEV_P.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEV_P.functionParameter.number2.name',- detail: 'sheets-formula.functionList.STDEV_P.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STDEV_S,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STDEV_S.description',- abstract: 'sheets-formula.functionList.STDEV_S.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEV_S.functionParameter.number1.name',- detail: 'sheets-formula.functionList.STDEV_S.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEV_S.functionParameter.number2.name',- detail: 'sheets-formula.functionList.STDEV_S.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STDEVA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STDEVA.description',- abstract: 'sheets-formula.functionList.STDEVA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEVA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.STDEVA.functionParameter.value1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEVA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.STDEVA.functionParameter.value2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STDEVPA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STDEVPA.description',- abstract: 'sheets-formula.functionList.STDEVPA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STDEVPA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.STDEVPA.functionParameter.value1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STDEVPA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.STDEVPA.functionParameter.value2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.STEYX,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.STEYX.description',- abstract: 'sheets-formula.functionList.STEYX.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.STEYX.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.STEYX.functionParameter.knownYs.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.STEYX.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.STEYX.functionParameter.knownXs.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_DIST.description',- abstract: 'sheets-formula.functionList.T_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.T_DIST.functionParameter.x.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_DIST.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.T_DIST.functionParameter.degFreedom.detail',- example: '3',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.T_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_DIST_2T,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_DIST_2T.description',- abstract: 'sheets-formula.functionList.T_DIST_2T.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_DIST_2T.functionParameter.x.name',- detail: 'sheets-formula.functionList.T_DIST_2T.functionParameter.x.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_DIST_2T.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.T_DIST_2T.functionParameter.degFreedom.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_DIST_RT,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_DIST_RT.description',- abstract: 'sheets-formula.functionList.T_DIST_RT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_DIST_RT.functionParameter.x.name',- detail: 'sheets-formula.functionList.T_DIST_RT.functionParameter.x.detail',- example: '8',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_DIST_RT.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.T_DIST_RT.functionParameter.degFreedom.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_INV,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_INV.description',- abstract: 'sheets-formula.functionList.T_INV.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_INV.functionParameter.probability.name',- detail: 'sheets-formula.functionList.T_INV.functionParameter.probability.detail',- example: '0.75',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_INV.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.T_INV.functionParameter.degFreedom.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_INV_2T,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_INV_2T.description',- abstract: 'sheets-formula.functionList.T_INV_2T.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_INV_2T.functionParameter.probability.name',- detail: 'sheets-formula.functionList.T_INV_2T.functionParameter.probability.detail',- example: '0.75',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_INV_2T.functionParameter.degFreedom.name',- detail: 'sheets-formula.functionList.T_INV_2T.functionParameter.degFreedom.detail',- example: '2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.T_TEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.T_TEST.description',- abstract: 'sheets-formula.functionList.T_TEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T_TEST.functionParameter.array1.name',- detail: 'sheets-formula.functionList.T_TEST.functionParameter.array1.detail',- example: 'A1:A4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_TEST.functionParameter.array2.name',- detail: 'sheets-formula.functionList.T_TEST.functionParameter.array2.detail',- example: 'B1:B4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_TEST.functionParameter.tails.name',- detail: 'sheets-formula.functionList.T_TEST.functionParameter.tails.detail',- example: '2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.T_TEST.functionParameter.type.name',- detail: 'sheets-formula.functionList.T_TEST.functionParameter.type.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.TREND,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.TREND.description',- abstract: 'sheets-formula.functionList.TREND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TREND.functionParameter.knownYs.name',- detail: 'sheets-formula.functionList.TREND.functionParameter.knownYs.detail',- example: 'B2:B7',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TREND.functionParameter.knownXs.name',- detail: 'sheets-formula.functionList.TREND.functionParameter.knownXs.detail',- example: 'A2:A7',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TREND.functionParameter.newXs.name',- detail: 'sheets-formula.functionList.TREND.functionParameter.newXs.detail',- example: 'A9:A10',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TREND.functionParameter.constb.name',- detail: 'sheets-formula.functionList.TREND.functionParameter.constb.detail',- example: 'true',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.TRIMMEAN,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.TRIMMEAN.description',- abstract: 'sheets-formula.functionList.TRIMMEAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TRIMMEAN.functionParameter.array.name',- detail: 'sheets-formula.functionList.TRIMMEAN.functionParameter.array.detail',- example: 'A2:A12',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TRIMMEAN.functionParameter.percent.name',- detail: 'sheets-formula.functionList.TRIMMEAN.functionParameter.percent.detail',- example: '0.2',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.VAR_P,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.VAR_P.description',- abstract: 'sheets-formula.functionList.VAR_P.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VAR_P.functionParameter.number1.name',- detail: 'sheets-formula.functionList.VAR_P.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VAR_P.functionParameter.number2.name',- detail: 'sheets-formula.functionList.VAR_P.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.VAR_S,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.VAR_S.description',- abstract: 'sheets-formula.functionList.VAR_S.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VAR_S.functionParameter.number1.name',- detail: 'sheets-formula.functionList.VAR_S.functionParameter.number1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VAR_S.functionParameter.number2.name',- detail: 'sheets-formula.functionList.VAR_S.functionParameter.number2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.VARA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.VARA.description',- abstract: 'sheets-formula.functionList.VARA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VARA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.VARA.functionParameter.value1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VARA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.VARA.functionParameter.value2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.VARPA,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.VARPA.description',- abstract: 'sheets-formula.functionList.VARPA.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VARPA.functionParameter.value1.name',- detail: 'sheets-formula.functionList.VARPA.functionParameter.value1.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VARPA.functionParameter.value2.name',- detail: 'sheets-formula.functionList.VARPA.functionParameter.value2.detail',- example: '2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.WEIBULL_DIST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.WEIBULL_DIST.description',- abstract: 'sheets-formula.functionList.WEIBULL_DIST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.x.name',- detail: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.x.detail',- example: '105',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.alpha.name',- detail: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.alpha.detail',- example: '20',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.beta.name',- detail: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.beta.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.cumulative.name',- detail: 'sheets-formula.functionList.WEIBULL_DIST.functionParameter.cumulative.detail',- example: 'true',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_STATISTICAL.Z_TEST,- functionType: FunctionType.Statistical,- description: 'sheets-formula.functionList.Z_TEST.description',- abstract: 'sheets-formula.functionList.Z_TEST.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.Z_TEST.functionParameter.array.name',- detail: 'sheets-formula.functionList.Z_TEST.functionParameter.array.detail',- example: 'A2:A11',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.Z_TEST.functionParameter.x.name',- detail: 'sheets-formula.functionList.Z_TEST.functionParameter.x.detail',- example: '4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.Z_TEST.functionParameter.sigma.name',- detail: 'sheets-formula.functionList.Z_TEST.functionParameter.sigma.detail',- example: '10',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-formula/src/services/function-list/text.ts b/packages/sheets-formula/src/services/function-list/text.tsdeleted file mode 100644index d112ce3d49..0000000000--- a/packages/sheets-formula/src/services/function-list/text.ts+++ /dev/null@@ -1,1269 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IFunctionInfo } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_TEXT, FunctionType } from '@univerjs/engine-formula';--export const FUNCTION_LIST_TEXT: IFunctionInfo[] = [- {- functionName: FUNCTION_NAMES_TEXT.ASC,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.ASC.description',- abstract: 'sheets-formula.functionList.ASC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ASC.functionParameter.text.name',- detail: 'sheets-formula.functionList.ASC.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.ARRAYTOTEXT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.ARRAYTOTEXT.description',- abstract: 'sheets-formula.functionList.ARRAYTOTEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.ARRAYTOTEXT.functionParameter.array.name',- detail: 'sheets-formula.functionList.ARRAYTOTEXT.functionParameter.array.detail',- example: 'A2:B4',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.ARRAYTOTEXT.functionParameter.format.name',- detail: 'sheets-formula.functionList.ARRAYTOTEXT.functionParameter.format.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.BAHTTEXT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.BAHTTEXT.description',- abstract: 'sheets-formula.functionList.BAHTTEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.BAHTTEXT.functionParameter.number.name',- detail: 'sheets-formula.functionList.BAHTTEXT.functionParameter.number.detail',- example: '1234',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CHAR,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CHAR.description',- abstract: 'sheets-formula.functionList.CHAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CHAR.functionParameter.number.name',- detail: 'sheets-formula.functionList.CHAR.functionParameter.number.detail',- example: '65',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CLEAN,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CLEAN.description',- abstract: 'sheets-formula.functionList.CLEAN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CLEAN.functionParameter.text.name',- detail: 'sheets-formula.functionList.CLEAN.functionParameter.text.detail',- example: 'CHAR(1)&"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CODE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CODE.description',- abstract: 'sheets-formula.functionList.CODE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CODE.functionParameter.text.name',- detail: 'sheets-formula.functionList.CODE.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CONCAT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CONCAT.description',- abstract: 'sheets-formula.functionList.CONCAT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONCAT.functionParameter.text1.name',- detail: 'sheets-formula.functionList.CONCAT.functionParameter.text1.detail',- example: '"Hello"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONCAT.functionParameter.text2.name',- detail: 'sheets-formula.functionList.CONCAT.functionParameter.text2.detail',- example: '"Univer"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CONCATENATE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CONCATENATE.description',- abstract: 'sheets-formula.functionList.CONCATENATE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CONCATENATE.functionParameter.text1.name',- detail: 'sheets-formula.functionList.CONCATENATE.functionParameter.text1.detail',- example: 'A1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CONCATENATE.functionParameter.text2.name',- detail: 'sheets-formula.functionList.CONCATENATE.functionParameter.text2.detail',- example: 'A2',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.DBCS,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.DBCS.description',- abstract: 'sheets-formula.functionList.DBCS.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DBCS.functionParameter.text.name',- detail: 'sheets-formula.functionList.DBCS.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.DOLLAR,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.DOLLAR.description',- abstract: 'sheets-formula.functionList.DOLLAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.DOLLAR.functionParameter.number.name',- detail: 'sheets-formula.functionList.DOLLAR.functionParameter.number.detail',- example: '1234.567',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.DOLLAR.functionParameter.decimals.name',- detail: 'sheets-formula.functionList.DOLLAR.functionParameter.decimals.detail',- example: '2',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.EXACT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.EXACT.description',- abstract: 'sheets-formula.functionList.EXACT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EXACT.functionParameter.text1.name',- detail: 'sheets-formula.functionList.EXACT.functionParameter.text1.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EXACT.functionParameter.text2.name',- detail: 'sheets-formula.functionList.EXACT.functionParameter.text2.detail',- example: '"univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.FIND,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.FIND.description',- abstract: 'sheets-formula.functionList.FIND.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FIND.functionParameter.findText.name',- detail: 'sheets-formula.functionList.FIND.functionParameter.findText.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FIND.functionParameter.withinText.name',- detail: 'sheets-formula.functionList.FIND.functionParameter.withinText.detail',- example: '"Hello Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FIND.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.FIND.functionParameter.startNum.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.FINDB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.FINDB.description',- abstract: 'sheets-formula.functionList.FINDB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FINDB.functionParameter.findText.name',- detail: 'sheets-formula.functionList.FINDB.functionParameter.findText.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FINDB.functionParameter.withinText.name',- detail: 'sheets-formula.functionList.FINDB.functionParameter.withinText.detail',- example: '"Hello Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FINDB.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.FINDB.functionParameter.startNum.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.FIXED,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.FIXED.description',- abstract: 'sheets-formula.functionList.FIXED.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.FIXED.functionParameter.number.name',- detail: 'sheets-formula.functionList.FIXED.functionParameter.number.detail',- example: '1234.567',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FIXED.functionParameter.decimals.name',- detail: 'sheets-formula.functionList.FIXED.functionParameter.decimals.detail',- example: '2',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.FIXED.functionParameter.noCommas.name',- detail: 'sheets-formula.functionList.FIXED.functionParameter.noCommas.detail',- example: '0',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.LEFT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.LEFT.description',- abstract: 'sheets-formula.functionList.LEFT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LEFT.functionParameter.text.name',- detail: 'sheets-formula.functionList.LEFT.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LEFT.functionParameter.numChars.name',- detail: 'sheets-formula.functionList.LEFT.functionParameter.numChars.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.LEFTB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.LEFTB.description',- abstract: 'sheets-formula.functionList.LEFTB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LEFTB.functionParameter.text.name',- detail: 'sheets-formula.functionList.LEFTB.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.LEFTB.functionParameter.numBytes.name',- detail: 'sheets-formula.functionList.LEFTB.functionParameter.numBytes.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.LEN,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.LEN.description',- abstract: 'sheets-formula.functionList.LEN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LEN.functionParameter.text.name',- detail: 'sheets-formula.functionList.LEN.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.LENB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.LENB.description',- abstract: 'sheets-formula.functionList.LENB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LENB.functionParameter.text.name',- detail: 'sheets-formula.functionList.LENB.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.LOWER,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.LOWER.description',- abstract: 'sheets-formula.functionList.LOWER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.LOWER.functionParameter.text.name',- detail: 'sheets-formula.functionList.LOWER.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.MID,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.MID.description',- abstract: 'sheets-formula.functionList.MID.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MID.functionParameter.text.name',- detail: 'sheets-formula.functionList.MID.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MID.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.MID.functionParameter.startNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MID.functionParameter.numChars.name',- detail: 'sheets-formula.functionList.MID.functionParameter.numChars.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.MIDB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.MIDB.description',- abstract: 'sheets-formula.functionList.MIDB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.MIDB.functionParameter.text.name',- detail: 'sheets-formula.functionList.MIDB.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MIDB.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.MIDB.functionParameter.startNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.MIDB.functionParameter.numBytes.name',- detail: 'sheets-formula.functionList.MIDB.functionParameter.numBytes.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.NUMBERSTRING,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.NUMBERSTRING.description',- abstract: 'sheets-formula.functionList.NUMBERSTRING.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NUMBERSTRING.functionParameter.number.name',- detail: 'sheets-formula.functionList.NUMBERSTRING.functionParameter.number.detail',- example: '123',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NUMBERSTRING.functionParameter.type.name',- detail: 'sheets-formula.functionList.NUMBERSTRING.functionParameter.type.detail',- example: '1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.NUMBERVALUE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.NUMBERVALUE.description',- abstract: 'sheets-formula.functionList.NUMBERVALUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.text.name',- detail: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.text.detail',- example: '"2.500,27"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.decimalSeparator.name',- detail: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.decimalSeparator.detail',- example: '","',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.groupSeparator.name',- detail: 'sheets-formula.functionList.NUMBERVALUE.functionParameter.groupSeparator.detail',- example: '"."',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.PHONETIC,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.PHONETIC.description',- abstract: 'sheets-formula.functionList.PHONETIC.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PHONETIC.functionParameter.reference.name',- detail: 'sheets-formula.functionList.PHONETIC.functionParameter.reference.detail',- example: 'A1',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.PROPER,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.PROPER.description',- abstract: 'sheets-formula.functionList.PROPER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.PROPER.functionParameter.text.name',- detail: 'sheets-formula.functionList.PROPER.functionParameter.text.detail',- example: '"hello univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REGEXEXTRACT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REGEXEXTRACT.description',- abstract: 'sheets-formula.functionList.REGEXEXTRACT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REGEXEXTRACT.functionParameter.text.name',- detail: 'sheets-formula.functionList.REGEXEXTRACT.functionParameter.text.detail',- example: '"abcdefg"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGEXEXTRACT.functionParameter.regularExpression.name',- detail: 'sheets-formula.functionList.REGEXEXTRACT.functionParameter.regularExpression.detail',- example: '"c.*f"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REGEXMATCH,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REGEXMATCH.description',- abstract: 'sheets-formula.functionList.REGEXMATCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REGEXMATCH.functionParameter.text.name',- detail: 'sheets-formula.functionList.REGEXMATCH.functionParameter.text.detail',- example: '"Spreadsheets"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGEXMATCH.functionParameter.regularExpression.name',- detail: 'sheets-formula.functionList.REGEXMATCH.functionParameter.regularExpression.detail',- example: '"S.r"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REGEXREPLACE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REGEXREPLACE.description',- abstract: 'sheets-formula.functionList.REGEXREPLACE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.text.name',- detail: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.text.detail',- example: '"abcedfg"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.regularExpression.name',- detail: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.regularExpression.detail',- example: '"a.*d"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.replacement.name',- detail: 'sheets-formula.functionList.REGEXREPLACE.functionParameter.replacement.detail',- example: '"xyz"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REPLACE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REPLACE.description',- abstract: 'sheets-formula.functionList.REPLACE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REPLACE.functionParameter.oldText.name',- detail: 'sheets-formula.functionList.REPLACE.functionParameter.oldText.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACE.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.REPLACE.functionParameter.startNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACE.functionParameter.numChars.name',- detail: 'sheets-formula.functionList.REPLACE.functionParameter.numChars.detail',- example: '0',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACE.functionParameter.newText.name',- detail: 'sheets-formula.functionList.REPLACE.functionParameter.newText.detail',- example: '"Hello "',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REPLACEB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REPLACEB.description',- abstract: 'sheets-formula.functionList.REPLACEB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REPLACEB.functionParameter.oldText.name',- detail: 'sheets-formula.functionList.REPLACEB.functionParameter.oldText.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACEB.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.REPLACEB.functionParameter.startNum.detail',- example: '1',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACEB.functionParameter.numBytes.name',- detail: 'sheets-formula.functionList.REPLACEB.functionParameter.numBytes.detail',- example: '0',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPLACEB.functionParameter.newText.name',- detail: 'sheets-formula.functionList.REPLACEB.functionParameter.newText.detail',- example: '"Hello "',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REPT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REPT.description',- abstract: 'sheets-formula.functionList.REPT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REPT.functionParameter.text.name',- detail: 'sheets-formula.functionList.REPT.functionParameter.text.detail',- example: '"*-"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REPT.functionParameter.numberTimes.name',- detail: 'sheets-formula.functionList.REPT.functionParameter.numberTimes.detail',- example: '3',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.RIGHT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.RIGHT.description',- abstract: 'sheets-formula.functionList.RIGHT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RIGHT.functionParameter.text.name',- detail: 'sheets-formula.functionList.RIGHT.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RIGHT.functionParameter.numChars.name',- detail: 'sheets-formula.functionList.RIGHT.functionParameter.numChars.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.RIGHTB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.RIGHTB.description',- abstract: 'sheets-formula.functionList.RIGHTB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.RIGHTB.functionParameter.text.name',- detail: 'sheets-formula.functionList.RIGHTB.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.RIGHTB.functionParameter.numBytes.name',- detail: 'sheets-formula.functionList.RIGHTB.functionParameter.numBytes.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.SEARCH,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.SEARCH.description',- abstract: 'sheets-formula.functionList.SEARCH.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SEARCH.functionParameter.findText.name',- detail: 'sheets-formula.functionList.SEARCH.functionParameter.findText.detail',- example: '"univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEARCH.functionParameter.withinText.name',- detail: 'sheets-formula.functionList.SEARCH.functionParameter.withinText.detail',- example: '"Hello Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEARCH.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.SEARCH.functionParameter.startNum.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.SEARCHB,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.SEARCHB.description',- abstract: 'sheets-formula.functionList.SEARCHB.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SEARCHB.functionParameter.findText.name',- detail: 'sheets-formula.functionList.SEARCHB.functionParameter.findText.detail',- example: '"univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEARCHB.functionParameter.withinText.name',- detail: 'sheets-formula.functionList.SEARCHB.functionParameter.withinText.detail',- example: '"Hello Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SEARCHB.functionParameter.startNum.name',- detail: 'sheets-formula.functionList.SEARCHB.functionParameter.startNum.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.SUBSTITUTE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.SUBSTITUTE.description',- abstract: 'sheets-formula.functionList.SUBSTITUTE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.text.name',- detail: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.text.detail',- example: '"Hello Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.oldText.name',- detail: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.oldText.detail',- example: '"Hello"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.newText.name',- detail: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.newText.detail',- example: '"Hi"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.instanceNum.name',- detail: 'sheets-formula.functionList.SUBSTITUTE.functionParameter.instanceNum.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.T,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.T.description',- abstract: 'sheets-formula.functionList.T.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.T.functionParameter.value.name',- detail: 'sheets-formula.functionList.T.functionParameter.value.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TEXT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TEXT.description',- abstract: 'sheets-formula.functionList.TEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TEXT.functionParameter.value.name',- detail: 'sheets-formula.functionList.TEXT.functionParameter.value.detail',- example: '1.23',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXT.functionParameter.formatText.name',- detail: 'sheets-formula.functionList.TEXT.functionParameter.formatText.detail',- example: '"$0.00"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TEXTAFTER,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TEXTAFTER.description',- abstract: 'sheets-formula.functionList.TEXTAFTER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.text.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.text.detail',- example: '"Red riding hood’s, red hood"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.delimiter.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.delimiter.detail',- example: '"hood"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.instanceNum.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.instanceNum.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.matchMode.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.matchMode.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.matchEnd.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.matchEnd.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTAFTER.functionParameter.ifNotFound.name',- detail: 'sheets-formula.functionList.TEXTAFTER.functionParameter.ifNotFound.detail',- example: '"not found"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TEXTBEFORE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TEXTBEFORE.description',- abstract: 'sheets-formula.functionList.TEXTBEFORE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.text.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.text.detail',- example: '"Red riding hood’s, red hood"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.delimiter.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.delimiter.detail',- example: '"hood"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.instanceNum.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.instanceNum.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.matchMode.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.matchMode.detail',- example: '1',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.matchEnd.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.matchEnd.detail',- example: '0',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.name',- detail: 'sheets-formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.detail',- example: '"not found"',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TEXTJOIN,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TEXTJOIN.description',- abstract: 'sheets-formula.functionList.TEXTJOIN.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TEXTJOIN.functionParameter.delimiter.name',- detail: 'sheets-formula.functionList.TEXTJOIN.functionParameter.delimiter.detail',- example: '", "',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTJOIN.functionParameter.ignoreEmpty.name',- detail: 'sheets-formula.functionList.TEXTJOIN.functionParameter.ignoreEmpty.detail',- example: 'true',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTJOIN.functionParameter.text1.name',- detail: 'sheets-formula.functionList.TEXTJOIN.functionParameter.text1.detail',- example: '"Hi"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTJOIN.functionParameter.text2.name',- detail: 'sheets-formula.functionList.TEXTJOIN.functionParameter.text2.detail',- example: '"Univer"',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TEXTSPLIT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TEXTSPLIT.description',- abstract: 'sheets-formula.functionList.TEXTSPLIT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.text.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.text.detail',- example: 'A1:C2',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.detail',- example: '","',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.detail',- example: '";"',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.detail',- example: '',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.matchMode.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.matchMode.detail',- example: '',- require: 0,- repeat: 0,- },- {- name: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.padWith.name',- detail: 'sheets-formula.functionList.TEXTSPLIT.functionParameter.padWith.detail',- example: '',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.TRIM,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.TRIM.description',- abstract: 'sheets-formula.functionList.TRIM.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.TRIM.functionParameter.text.name',- detail: 'sheets-formula.functionList.TRIM.functionParameter.text.detail',- example: '" Hello Univer "',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.UNICHAR,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.UNICHAR.description',- abstract: 'sheets-formula.functionList.UNICHAR.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.UNICHAR.functionParameter.number.name',- detail: 'sheets-formula.functionList.UNICHAR.functionParameter.number.detail',- example: '65',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.UNICODE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.UNICODE.description',- abstract: 'sheets-formula.functionList.UNICODE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.UNICODE.functionParameter.text.name',- detail: 'sheets-formula.functionList.UNICODE.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.UPPER,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.UPPER.description',- abstract: 'sheets-formula.functionList.UPPER.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.UPPER.functionParameter.text.name',- detail: 'sheets-formula.functionList.UPPER.functionParameter.text.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.VALUE,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.VALUE.description',- abstract: 'sheets-formula.functionList.VALUE.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VALUE.functionParameter.text.name',- detail: 'sheets-formula.functionList.VALUE.functionParameter.text.detail',- example: '"123"',- require: 1,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.VALUETOTEXT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.VALUETOTEXT.description',- abstract: 'sheets-formula.functionList.VALUETOTEXT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.VALUETOTEXT.functionParameter.value.name',- detail: 'sheets-formula.functionList.VALUETOTEXT.functionParameter.value.detail',- example: '"Univer"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.VALUETOTEXT.functionParameter.format.name',- detail: 'sheets-formula.functionList.VALUETOTEXT.functionParameter.format.detail',- example: '1',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.CALL,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.CALL.description',- abstract: 'sheets-formula.functionList.CALL.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.CALL.functionParameter.moduleText.name',- detail: 'sheets-formula.functionList.CALL.functionParameter.moduleText.detail',- example: '"MyLibrary"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CALL.functionParameter.procedure.name',- detail: 'sheets-formula.functionList.CALL.functionParameter.procedure.detail',- example: '"MyFunction"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CALL.functionParameter.typeText.name',- detail: 'sheets-formula.functionList.CALL.functionParameter.typeText.detail',- example: '"JJ"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.CALL.functionParameter.argument1.name',- detail: 'sheets-formula.functionList.CALL.functionParameter.argument1.detail',- example: '1',- require: 0,- repeat: 1,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.EUROCONVERT,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.EUROCONVERT.description',- abstract: 'sheets-formula.functionList.EUROCONVERT.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.EUROCONVERT.functionParameter.number.name',- detail: 'sheets-formula.functionList.EUROCONVERT.functionParameter.number.detail',- example: '100',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EUROCONVERT.functionParameter.source.name',- detail: 'sheets-formula.functionList.EUROCONVERT.functionParameter.source.detail',- example: '"DEM"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EUROCONVERT.functionParameter.target.name',- detail: 'sheets-formula.functionList.EUROCONVERT.functionParameter.target.detail',- example: '"EUR"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EUROCONVERT.functionParameter.fullPrecision.name',- detail: 'sheets-formula.functionList.EUROCONVERT.functionParameter.fullPrecision.detail',- example: 'false',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.EUROCONVERT.functionParameter.triangulationPrecision.name',- detail: 'sheets-formula.functionList.EUROCONVERT.functionParameter.triangulationPrecision.detail',- example: '3',- require: 0,- repeat: 0,- },- ],- },- {- functionName: FUNCTION_NAMES_TEXT.REGISTER_ID,- functionType: FunctionType.Text,- description: 'sheets-formula.functionList.REGISTER_ID.description',- abstract: 'sheets-formula.functionList.REGISTER_ID.abstract',- functionParameter: [- {- name: 'sheets-formula.functionList.REGISTER_ID.functionParameter.moduleText.name',- detail: 'sheets-formula.functionList.REGISTER_ID.functionParameter.moduleText.detail',- example: '"MyLibrary"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGISTER_ID.functionParameter.procedure.name',- detail: 'sheets-formula.functionList.REGISTER_ID.functionParameter.procedure.detail',- example: '"MyFunction"',- require: 1,- repeat: 0,- },- {- name: 'sheets-formula.functionList.REGISTER_ID.functionParameter.typeText.name',- detail: 'sheets-formula.functionList.REGISTER_ID.functionParameter.typeText.detail',- example: '"JJ"',- require: 0,- repeat: 0,- },- ],- },-];diff --git a/packages/sheets-ui/src/services/editor/__tests__/cell-editor-resize.service.spec.ts b/packages/sheets-ui/src/services/editor/__tests__/cell-editor-resize.service.spec.tsindex 0e328d3586..b85e6f0a8f 100644--- a/packages/sheets-ui/src/services/editor/__tests__/cell-editor-resize.service.spec.ts+++ b/packages/sheets-ui/src/services/editor/__tests__/cell-editor-resize.service.spec.ts@@ -42,7 +42,7 @@ import { SheetInterceptorService, SheetSkeletonService } from '@univerjs/sheets'import { DesktopLayoutService, ILayoutService } from '@univerjs/ui';import { afterEach, describe, expect, it, vi } from 'vitest';import { EditorBridgeService, IEditorBridgeService } from '../../editor-bridge.service';-import { EmbedFloatingGeometryService } from '../../sheet-embed-integration.service';+import { EmbedFloatingGeometryService, ISheetEmbedFloatingGeometryService } from '../../sheet-embed-integration.service';import { SheetSkeletonManagerService } from '../../sheet-skeleton-manager.service';import { CellEditorManagerService, ICellEditorManagerService } from '../cell-editor-manager.service';import { SheetCellEditorResizeService } from '../cell-editor-resize.service';@@ -274,6 +274,18 @@ class TestViewportEdgeRenderManagerService extends TestRenderManagerService {};}+class TestTransformedEmbedRenderManagerService extends TestRenderManagerService {+ override readonly sheetCanvasElement = {+ style: { width: '800px', height: '600px' },+ getBoundingClientRect: () => ({ left: 30, top: 50, width: 1600, height: 1200 }),+ };++ override readonly sheetEngine = {+ width: 800,+ getCanvasElement: () => this.sheetCanvasElement,+ };+}+describe('SheetCellEditorResizeService', () => {afterEach(() => {vi.unstubAllGlobals();@@ -380,7 +392,7 @@ describe('SheetCellEditorResizeService', () => {}));});- it('positions embedded sheet editors against the child content root', async () => {+ it('does not apply an embed container transform twice when positioning the cell editor', async () => {vi.stubGlobal('window', new EventTarget());vi.stubGlobal('document', { activeElement: { dataset: {} } });const injector = new Injector();@@ -397,17 +409,20 @@ describe('SheetCellEditorResizeService', () => {injector.add([IEditorService, { useClass: EditorService }]);injector.add([ICellEditorManagerService, { useClass: TestCellEditorManagerService as never }]);injector.add([IEditorBridgeService, { useClass: TestEditorBridgeService as never }]);- injector.add([IRenderManagerService, { useClass: TestRenderManagerService as never }]);+ injector.add([IRenderManagerService, { useClass: TestTransformedEmbedRenderManagerService as never }]);injector.add([IConfigService, { useClass: ConfigService }]);- injector.add([EmbedFloatingGeometryService]);+ const geometryService = new EmbedFloatingGeometryService();+ injector.add([EmbedFloatingGeometryService, { useValue: geometryService }]);+ injector.add([ISheetEmbedFloatingGeometryService, { useValue: geometryService }]);injector.add([SheetCellEditorResizeService]);- const geometryService = injector.get(EmbedFloatingGeometryService);geometryService.register({embedId: 'embed-1',childUnitId: 'unit-1',root: {} as HTMLElement,contentRoot: {- getBoundingClientRect: () => ({ left: 30, top: 50 }),+ offsetHeight: 600,+ offsetWidth: 800,+ getBoundingClientRect: () => ({ left: 30, top: 50, width: 1600, height: 1200 }),} as HTMLElement,});@@ -416,10 +431,10 @@ describe('SheetCellEditorResizeService', () => {const editorManager = injector.get(ICellEditorManagerService) as unknown as TestCellEditorManagerService;expect(editorManager.getState()).toEqual(expect.objectContaining({- startX: 120,- startY: 90,- endX: 250,- endY: 134,+ startX: 100,+ startY: 60,+ endX: 230,+ endY: 104,show: true,}));});diff --git a/packages/sheets-ui/src/services/editor/cell-editor-resize.service.ts b/packages/sheets-ui/src/services/editor/cell-editor-resize.service.tsindex 83bb3466b0..1b6af8fe21 100644--- a/packages/sheets-ui/src/services/editor/cell-editor-resize.service.ts+++ b/packages/sheets-ui/src/services/editor/cell-editor-resize.service.ts@@ -239,8 +239,8 @@ export class SheetCellEditorResizeService extends Disposable {if (editorObject == null) {return;}- function pxToNum(width: string): number {- return Number.parseInt(width.replace('px', ''));+ function pxToNum(size: string | undefined): number {+ return Number.parseFloat(size?.replace('px', '') ?? '');}const engine = this.engine;@@ -250,15 +250,23 @@ export class SheetCellEditorResizeService extends Disposable {// We should take the scale into account when canvas is scaled by CSS.const widthOfCanvas = pxToNum(canvasElement.style.width); // declared width+ const heightOfCanvas = pxToNum(canvasElement.style.height); // declared heightconst { width, height } = canvasClientRect; // real width affected by scale- const scaleAdjust = width / widthOfCanvas;+ const contentElement = this._getEditorContentElement();+ const contentBoundingRect = contentElement.getBoundingClientRect();+ const contentScaleX = resolveElementScale(contentBoundingRect.width, contentElement.offsetWidth);+ const contentScaleY = resolveElementScale(contentBoundingRect.height, contentElement.offsetHeight, contentScaleX);+ const scaleAdjustX = width / widthOfCanvas / contentScaleX;+ const scaleAdjustY = Number.isFinite(heightOfCanvas) && heightOfCanvas > 0+ ? height / heightOfCanvas / contentScaleY+ : scaleAdjustX;const { startX, startY, endX } = position;const enginWidth = engine.width;- const maxHeight = height - startY - EDITOR_BORDER_SIZE * 2;+ const maxHeight = height / contentScaleY - startY - EDITOR_BORDER_SIZE * 2;const cellWidth = endX - startX;- let maxWidth = width - startX;+ let maxWidth = width / contentScaleX - startX;if (horizontalAlign === HorizontalAlign.CENTER) {const rightGap = enginWidth - endX;const leftGap = startX;@@ -272,7 +280,10 @@ export class SheetCellEditorResizeService extends Disposable {return {height: maxHeight,width: maxWidth,- scaleAdjust,+ contentScaleX,+ contentScaleY,+ scaleAdjustX,+ scaleAdjustY,};}@@ -310,7 +321,7 @@ export class SheetCellEditorResizeService extends Disposable {const info = this._getEditorMaxSize(actualRangeWithCoord, canvasOffset, horizontalAlign)!;- const { height: clientHeight, width: clientWidth, scaleAdjust } = info;+ const { height: clientHeight, width: clientWidth, contentScaleX, contentScaleY, scaleAdjustX, scaleAdjustY } = info;let physicHeight = editorHeight;@@ -343,13 +354,13 @@ export class SheetCellEditorResizeService extends Disposable {const { scaleX: precisionScaleX, scaleY: precisionScaleY } = editorScene.getPrecisionScale();editorScene.transformByState({- width: editorWidth * scaleAdjust / scaleX,- height: editorHeight * scaleAdjust / scaleY,- scaleX: scaleX * scaleAdjust,- scaleY: scaleY * scaleAdjust,+ width: editorWidth * scaleAdjustX / scaleX,+ height: editorHeight * scaleAdjustY / scaleY,+ scaleX: scaleX * scaleAdjustX,+ scaleY: scaleY * scaleAdjustY,});- documentComponent.resize(editorWidth * scaleAdjust / scaleX, editorHeight * scaleAdjust / scaleY);+ documentComponent.resize(editorWidth * scaleAdjustX / scaleX, editorHeight * scaleAdjustY / scaleY);/*** sometimes requestIdleCallback is invalid, so use setTimeout to ensure the successful execution of the resizeBySize method.@@ -367,22 +378,22 @@ export class SheetCellEditorResizeService extends Disposable {const contentBoundingRect = this._getEditorContentElement().getBoundingClientRect();const canvasBoundingRect = canvasElement.getBoundingClientRect();- startX = startX * scaleAdjust + (canvasBoundingRect.left - contentBoundingRect.left);- startY = startY * scaleAdjust + (canvasBoundingRect.top - contentBoundingRect.top);+ startX = startX * scaleAdjustX + (canvasBoundingRect.left - contentBoundingRect.left) / contentScaleX;+ startY = startY * scaleAdjustY + (canvasBoundingRect.top - contentBoundingRect.top) / contentScaleY;const cellWidth = actualRangeWithCoord.endX - actualRangeWithCoord.startX;if (horizontalAlign === HorizontalAlign.RIGHT) {- startX += (cellWidth - editorWidth) * scaleAdjust;+ startX += (cellWidth - editorWidth) * scaleAdjustX;} else if (horizontalAlign === HorizontalAlign.CENTER) {- startX += (cellWidth - editorWidth * scaleAdjust) / 2;+ startX += (cellWidth - editorWidth * scaleAdjustX) / 2;}// Update cell editor container position and size.this._cellEditorManagerService.setState({startX,startY,- endX: editorWidth * scaleAdjust + startX,- endY: physicHeight * scaleAdjust + startY,+ endX: editorWidth * scaleAdjustX + startX,+ endY: physicHeight * scaleAdjustY + startY,show: true,});}@@ -445,11 +456,11 @@ export class SheetCellEditorResizeService extends Disposable {const { horizontalAlign } = documentLayoutObject;const maxSize = this._getEditorMaxSize(position, canvasOffset, horizontalAlign);if (!maxSize) return;- const { height: clientHeight, width: clientWidth, scaleAdjust } = maxSize;+ const { height: clientHeight, width: clientWidth, scaleAdjustX, scaleAdjustY } = maxSize;const cell = skeleton.getCellWithCoordByIndex(row, column);- const height = Math.min((cell.mergeInfo.endY - cell.mergeInfo.startY) * scaleY, clientHeight) * scaleAdjust;- const width = Math.min((cell.mergeInfo.endX - cell.mergeInfo.startX) * scaleX, clientWidth) * scaleAdjust;+ const height = Math.min((cell.mergeInfo.endY - cell.mergeInfo.startY) * scaleY, clientHeight) * scaleAdjustY;+ const width = Math.min((cell.mergeInfo.endX - cell.mergeInfo.startX) * scaleX, clientWidth) * scaleAdjustX;const currentHeight = state.endY! - state.startY!;const currentWidth = state.endX! - state.startX!;@@ -472,3 +483,11 @@ export class SheetCellEditorResizeService extends Disposable {return this._renderManagerService.getRenderById(DOCS_NORMAL_EDITOR_UNIT_ID_KEY)?.with(DocSkeletonManagerService).getSkeleton();}}++function resolveElementScale(renderedSize: number, layoutSize: number, fallback = 1): number {+ if (!Number.isFinite(renderedSize) || !Number.isFinite(layoutSize) || renderedSize <= 0 || layoutSize <= 0) {+ return fallback;+ }++ return renderedSize / layoutSize;+}diff --git a/packages/sheets-ui/src/services/selection/__tests__/base-selection-render.service.spec.ts b/packages/sheets-ui/src/services/selection/__tests__/base-selection-render.service.spec.tsindex 47dcbb9ba0..b1d15857d9 100644--- a/packages/sheets-ui/src/services/selection/__tests__/base-selection-render.service.spec.ts+++ b/packages/sheets-ui/src/services/selection/__tests__/base-selection-render.service.spec.ts@@ -30,7 +30,14 @@ import {} from '@univerjs/core';import { ScrollTimerType, SHEET_VIEWPORT_KEY } from '@univerjs/engine-render';import { REF_SELECTIONS_ENABLED, SELECTIONS_ENABLED } from '@univerjs/sheets';-import { IPlatformService, IShortcutService, PlatformService, ShortcutService } from '@univerjs/ui';+import {+ IPlatformService,+ IShortcutService,+ IUIRuntimeScopeService,+ PlatformService,+ ShortcutService,+ UIRuntimeScopeService,+} from '@univerjs/ui';import { afterEach, describe, expect, it, vi } from 'vitest';import {createFakeEngine,@@ -207,6 +214,7 @@ function createSelectionRenderService() {injector.add([ICommandService, { useClass: CommandService }]);injector.add([IContextService, { useClass: ContextService }]);injector.add([IPlatformService, { useClass: PlatformService }]);+ injector.add([IUIRuntimeScopeService, { useClass: UIRuntimeScopeService }]);injector.add([IShortcutService, { useClass: ShortcutService }]);injector.add([ThemeService]);injector.add([SheetSkeletonManagerService, { useClass: TestSheetSkeletonManagerService as never }]);diff --git a/packages/ui/src/facade/__tests__/f-ui.spec.ts b/packages/ui/src/facade/__tests__/f-ui.spec.tsindex d532300d17..3c5214b4e3 100644--- a/packages/ui/src/facade/__tests__/f-ui.spec.ts+++ b/packages/ui/src/facade/__tests__/f-ui.spec.ts@@ -42,12 +42,14 @@ import {IShortcutService,ISidebarService,IUIPartsService,+ IUIRuntimeScopeService,KeyCode,MenuManagerService,PasteCommand,PlatformService,ShortcutService,UIPartsService,+ UIRuntimeScopeService,} from '@univerjs/ui';import { afterEach, beforeEach, describe, expect, it } from 'vitest';import { FShortcut } from '../f-shortcut';@@ -98,6 +100,7 @@ describe('ui facade', () => {injector.add([IPlatformService, { useClass: PlatformService }]);injector.add([ISidebarService, { useClass: DesktopSidebarService }]);injector.add([IUIPartsService, { useClass: UIPartsService }]);+ injector.add([IUIRuntimeScopeService, { useClass: UIRuntimeScopeService }]);injector.add([IShortcutService, { useClass: ShortcutService }]);injector.add([IRenderingEngine, { useFactory: () => new Engine() }]);injector.add([IRenderManagerService, { useClass: RenderManagerService }]);diff --git a/packages/ui/src/services/shortcut/__tests__/shortcut.service.spec.ts b/packages/ui/src/services/shortcut/__tests__/shortcut.service.spec.tsindex 73064a1c12..c82a76c37b 100644--- a/packages/ui/src/services/shortcut/__tests__/shortcut.service.spec.ts+++ b/packages/ui/src/services/shortcut/__tests__/shortcut.service.spec.ts@@ -20,8 +20,10 @@import { ICommandService, IContextService, Injector } from '@univerjs/core';import { afterEach, describe, expect, it, vi } from 'vitest';+import { EMBED_CHILD_UNIT_ID_ATTRIBUTE } from '../../../utils/embed-boundary';import { ILayoutService } from '../../layout/layout.service';import { IPlatformService } from '../../platform/platform.service';+import { IUIRuntimeScopeService } from '../../runtime-scope/ui-runtime-scope.service';import { KeyCode, MetaKeys } from '../keycode';import { ShortcutService } from '../shortcut.service';@@ -75,6 +77,7 @@ function createService(options?: {const layoutService = {checkElementInCurrentContainers: vi.fn(() => options?.layoutAllowed),};+ const getRuntimeScope = vi.fn();class TestCommandService {executeCommand = executeCommand;@@ -92,17 +95,23 @@ function createService(options?: {checkElementInCurrentContainers = layoutService.checkElementInCurrentContainers;}+ class TestRuntimeScopeService {+ register = vi.fn();+ get = getRuntimeScope;+ }+const injector = new Injector();injector.add([ICommandService, { useClass: TestCommandService as never }]);injector.add([IPlatformService, { useClass: TestPlatformService }]);injector.add([IContextService, { useClass: TestContextService }]);+ injector.add([IUIRuntimeScopeService, { useClass: TestRuntimeScopeService }]);if (options?.layoutAllowed !== undefined) {injector.add([ILayoutService, { useClass: TestLayoutService as never }]);}injector.add([ShortcutService]);const service = injector.get(ShortcutService);- return { service, executeCommand, layoutService };+ return { service, executeCommand, getRuntimeScope, layoutService };}describe('ShortcutService', () => {@@ -256,6 +265,46 @@ describe('ShortcutService', () => {service.dispose();});+ it('uses the embedded child runtime context and command service for shortcuts', () => {+ const runtime = document.createElement('div');+ const canvas = document.createElement('canvas');+ runtime.setAttribute(EMBED_CHILD_UNIT_ID_ATTRIBUTE, 'child-board');+ runtime.appendChild(canvas);++ const scopedExecuteCommand = vi.fn(() => Promise.resolve(true));+ const scopedContextService = {+ getContextValue: vi.fn((key: string) => key === 'FOCUSING_BOARD'),+ };+ const scopedCommandService = {+ executeCommand: scopedExecuteCommand,+ };+ const runtimeScope = {+ has: vi.fn(() => true),+ get: vi.fn((identifier: unknown) => identifier === IContextService ? scopedContextService : scopedCommandService),+ };+ const { service, executeCommand, getRuntimeScope } = createService();+ getRuntimeScope.mockReturnValue(runtimeScope);+ service.registerShortcut({+ id: 'board.operation.grouping-shortcut',+ binding: KeyCode.ENTER,+ preconditions: (contextService) => contextService.getContextValue('FOCUSING_BOARD'),+ });++ const event = createKeyboardEvent(KeyCode.ENTER);+ Object.defineProperty(event, 'target', {+ configurable: true,+ get: () => canvas,+ });+ window.dispatchEvent(event);++ expect(getRuntimeScope).toHaveBeenCalledWith('child-board');+ expect(scopedContextService.getContextValue).toHaveBeenCalledWith('FOCUSING_BOARD');+ expect(scopedExecuteCommand).toHaveBeenCalledWith('board.operation.grouping-shortcut', undefined);+ expect(executeCommand).not.toHaveBeenCalled();+ expect(event.defaultPrevented).toBe(true);+ service.dispose();+ });+it('lets embed-owned native text editors handle select-all without dispatching Univer shortcuts', () => {const embedRoot = document.createElement('div');embedRoot.setAttribute('data-embed-interaction-boundary-owner', 'embed-1');diff --git a/packages/ui/src/services/shortcut/shortcut.service.ts b/packages/ui/src/services/shortcut/shortcut.service.tsindex 61cc116166..13ddbd9826 100644--- a/packages/ui/src/services/shortcut/shortcut.service.ts+++ b/packages/ui/src/services/shortcut/shortcut.service.ts@@ -19,9 +19,10 @@ import type { Observable } from 'rxjs';import { createIdentifier, Disposable, ICommandService, IContextService, Optional, toDisposable } from '@univerjs/core';import { Subject } from 'rxjs';import { fromGlobalEvent } from '../../common/lifecycle';-import { isEmbedBoundaryTarget } from '../../utils/embed-boundary';+import { getEmbedChildUnitId, isEmbedBoundaryTarget } from '../../utils/embed-boundary';import { ILayoutService } from '../layout/layout.service';import { IPlatformService } from '../platform/platform.service';+import { IUIRuntimeScopeService } from '../runtime-scope/ui-runtime-scope.service';import { KeyCode, KeyCodeToChar, MetaKeys } from './keycode';/**@@ -163,6 +164,7 @@ export class ShortcutService extends Disposable implements IShortcutService {@ICommandService private readonly _commandService: ICommandService,@IPlatformService private readonly _platformService: IPlatformService,@IContextService private readonly _contextService: IContextService,+ @IUIRuntimeScopeService private readonly _runtimeScopeService: IUIRuntimeScopeService,@Optional(ILayoutService) private readonly _layoutService?: ILayoutService) {super();@@ -269,7 +271,8 @@ export class ShortcutService extends Disposable implements IShortcutService {private _resolveKeyboardEvent(e: KeyboardEvent): void {const candidate = this.dispatch(e);if (candidate) {- this._commandService.executeCommand(candidate.id, candidate.staticParameters);+ this._getRuntimeService<ICommandService>(e, ICommandService)?.executeCommand(candidate.id, candidate.staticParameters) ??+ this._commandService.executeCommand(candidate.id, candidate.staticParameters);e.preventDefault();}}@@ -302,9 +305,10 @@ export class ShortcutService extends Disposable implements IShortcutService {return undefined;}+ const contextService = this._getRuntimeService<IContextService>(e, IContextService) ?? this._contextService;const candidateShortcut = Array.from(shortcuts).sort((s1, s2) => (s2.priority ?? 0) - (s1.priority ?? 0))- .find((s) => s.preconditions?.(this._contextService) ?? true);+ .find((s) => s.preconditions?.(contextService) ?? true);return candidateShortcut;}@@ -366,4 +370,10 @@ export class ShortcutService extends Disposable implements IShortcutService {return isNativeTextEditor && isEmbedBoundaryTarget(target);}++ private _getRuntimeService<T>(event: KeyboardEvent, identifier: unknown): T | undefined {+ const childUnitId = getEmbedChildUnitId(event.target);+ const runtimeScope = this._runtimeScopeService.get(childUnitId);+ return runtimeScope?.has(identifier) ? runtimeScope.get<T>(identifier) : undefined;+ }}diff --git a/packages/ui/src/utils/__tests__/embed-boundary.spec.ts b/packages/ui/src/utils/__tests__/embed-boundary.spec.tsindex 237c87a2d0..d13ef93006 100644--- a/packages/ui/src/utils/__tests__/embed-boundary.spec.ts+++ b/packages/ui/src/utils/__tests__/embed-boundary.spec.ts@@ -19,7 +19,14 @@*/import { describe, expect, it, vi } from 'vitest';-import { EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE, getEmbedBoundaryOwner, isEmbedBoundaryTarget, keepInteractionInsideSameEmbedBoundary } from '../embed-boundary';+import {+ EMBED_CHILD_UNIT_ID_ATTRIBUTE,+ EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE,+ getEmbedBoundaryOwner,+ getEmbedChildUnitId,+ isEmbedBoundaryTarget,+ keepInteractionInsideSameEmbedBoundary,+} from '../embed-boundary';describe('embed boundary utilities', () => {it('returns undefined for non-element targets so non-embed UI keeps the default behavior', () => {@@ -39,6 +46,17 @@ describe('embed boundary utilities', () => {expect(isEmbedBoundaryTarget(target)).toBe(true);});+ it('resolves the child unit owning an embedded runtime target', () => {+ const runtime = document.createElement('div');+ const target = document.createElement('canvas');++ runtime.setAttribute(EMBED_CHILD_UNIT_ID_ATTRIBUTE, 'child-board');+ runtime.appendChild(target);++ expect(getEmbedChildUnitId(target)).toBe('child-board');+ expect(getEmbedChildUnitId(new EventTarget())).toBeUndefined();+ });+it('prevents outside handling only when both targets belong to the same embed boundary', () => {const currentOwner = document.createElement('div');const current = document.createElement('button');diff --git a/packages/ui/src/utils/embed-boundary.ts b/packages/ui/src/utils/embed-boundary.tsindex bf3ecc4502..2f1d452248 100644--- a/packages/ui/src/utils/embed-boundary.ts+++ b/packages/ui/src/utils/embed-boundary.ts@@ -15,6 +15,7 @@*/export const EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE = 'data-embed-interaction-boundary-owner';+export const EMBED_CHILD_UNIT_ID_ATTRIBUTE = 'data-embed-child-unit-id';interface IEmbedBoundaryElementLike {getAttribute: (name: string) => string | null;@@ -37,6 +38,17 @@ export function isEmbedBoundaryTarget(target: EventTarget | null): boolean {return hasClosest(target) && target.closest(`[${EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE}]`) != null;}+export function getEmbedChildUnitId(target: EventTarget | null): string | undefined {+ if (!hasClosest(target)) {+ return undefined;+ }++ const childRuntime = target.closest(`[${EMBED_CHILD_UNIT_ID_ATTRIBUTE}]`);+ return getAttributeValue(target, EMBED_CHILD_UNIT_ID_ATTRIBUTE) ??+ getAttributeValue(childRuntime, EMBED_CHILD_UNIT_ID_ATTRIBUTE) ??+ undefined;+}+export function keepInteractionInsideSameEmbedBoundary(event: {currentTarget: EventTarget | null;target: EventTarget | null;diff --git a/packages/ui/src/views/components/shortcut-panel/__tests__/ShortcutPanel.spec.tsx b/packages/ui/src/views/components/shortcut-panel/__tests__/ShortcutPanel.spec.tsxindex 8d6b41fb4a..9ed162c60f 100644--- a/packages/ui/src/views/components/shortcut-panel/__tests__/ShortcutPanel.spec.tsx+++ b/packages/ui/src/views/components/shortcut-panel/__tests__/ShortcutPanel.spec.tsx@@ -20,6 +20,7 @@ import { act, cleanup, render, screen } from '@testing-library/react';import { ICommandService, IContextService, Injector, LocaleService, LocaleType } from '@univerjs/core';import { afterEach, describe, expect, it } from 'vitest';import { IPlatformService } from '../../../../services/platform/platform.service';+import { IUIRuntimeScopeService, UIRuntimeScopeService } from '../../../../services/runtime-scope/ui-runtime-scope.service';import { KeyCode, MetaKeys } from '../../../../services/shortcut/keycode';import { IShortcutService, ShortcutService } from '../../../../services/shortcut/shortcut.service';import { RediProvider } from '../../../../utils/di';@@ -46,6 +47,7 @@ function renderWithDependencies(element: ReactElement) {injector.add([ICommandService, { useClass: TestCommandService as never }]);injector.add([IContextService, { useClass: TestContextService as never }]);injector.add([IPlatformService, { useClass: TestPlatformService }]);+ injector.add([IUIRuntimeScopeService, { useClass: UIRuntimeScopeService }]);injector.add([IShortcutService, { useClass: ShortcutService }]);injector.add([LocaleService]);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 780cd33c37..58fc26f83f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -202,6 +202,9 @@ importers:'@univerjs/find-replace':specifier: workspace:*version: link:../../packages/find-replace+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../../packages/formula'@univerjs/sheets':specifier: workspace:*version: link:../../packages/sheets@@ -1473,6 +1476,50 @@ importers:specifier: ^4.1.10version: 4.1.10(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ packages/formula:+ dependencies:+ '@univerjs/core':+ specifier: workspace:*+ version: link:../core+ '@univerjs/engine-formula':+ specifier: workspace:*+ version: link:../engine-formula+ rxjs:+ specifier: '>=7.0.0'+ version: 7.8.2+ devDependencies:+ '@univerjs-infra/shared':+ specifier: workspace:*+ version: link:../../common/shared+ typescript:+ specifier: ^6.0.3+ version: 6.0.3+ vitest:+ specifier: ^4.1.10+ version: 4.1.10(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))++ packages/formula-ui:+ dependencies:+ '@univerjs/engine-formula':+ specifier: workspace:*+ version: link:../engine-formula+ devDependencies:+ '@univerjs-infra/shared':+ specifier: workspace:*+ version: link:../../common/shared+ '@univerjs/core':+ specifier: workspace:*+ version: link:../core+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../formula+ typescript:+ specifier: ^6.0.3+ version: 6.0.3+ vitest:+ specifier: ^4.1.10+ version: 4.1.10(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+packages/network:dependencies:'@univerjs/core':@@ -1604,6 +1651,9 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../formula'@univerjs/icons-svg':specifier: ^1.32.0version: 1.32.0@@ -1748,6 +1798,9 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../formularxjs:specifier: ^7.8.2version: 7.8.2@@ -2033,6 +2086,9 @@ importers:'@univerjs/engine-formula':specifier: workspace:*version: link:../engine-formula+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../formula'@univerjs/rpc':specifier: workspace:*version: link:../rpc@@ -2076,6 +2132,12 @@ importers:'@univerjs/engine-render':specifier: workspace:*version: link:../engine-render+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../formula+ '@univerjs/formula-ui':+ specifier: workspace:*+ version: link:../formula-ui'@univerjs/icons':specifier: 1.32.0@@ -3219,6 +3281,9 @@ importers:'@univerjs/engine-render':specifier: workspace:*version: link:../../../packages/engine-render+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../../../packages/formula'@univerjs/network':specifier: workspace:*version: link:../../../packages/network@@ -3444,6 +3509,9 @@ importers:'@univerjs/engine-formula':specifier: workspace:*version: link:../../../packages/engine-formula+ '@univerjs/formula':+ specifier: workspace:*+ version: link:../../../packages/formula'@univerjs/rpc-node':specifier: workspace:*version: link:../../../packages/rpc-nodediff --git a/presets/packages/preset-sheets-core/package.json b/presets/packages/preset-sheets-core/package.jsonindex 87831d31ff..a6a8037a7a 100644--- a/presets/packages/preset-sheets-core/package.json+++ b/presets/packages/preset-sheets-core/package.json@@ -81,6 +81,7 @@"@univerjs/docs-ui": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",+ "@univerjs/formula": "workspace:*","@univerjs/network": "workspace:*","@univerjs/rpc": "workspace:*","@univerjs/sheets": "workspace:*",diff --git a/presets/packages/preset-sheets-node-core/package.json b/presets/packages/preset-sheets-node-core/package.jsonindex bdd8393f40..fee70d640c 100644--- a/presets/packages/preset-sheets-node-core/package.json+++ b/presets/packages/preset-sheets-node-core/package.json@@ -77,6 +77,7 @@"dependencies": {"@univerjs/docs": "workspace:*","@univerjs/engine-formula": "workspace:*",+ "@univerjs/formula": "workspace:*","@univerjs/rpc-node": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/sheets-data-validation": "workspace:*",