@univerjs/sheets-formula 0.2.8 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +908 -451
  3. package/lib/locale/en-US.json +595 -351
  4. package/lib/locale/ru-RU.json +595 -351
  5. package/lib/locale/vi-VN.json +666 -322
  6. package/lib/locale/zh-CN.json +604 -360
  7. package/lib/locale/zh-TW.json +603 -359
  8. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  9. package/lib/types/controllers/prompt.controller.d.ts +6 -1
  10. package/lib/types/locale/en-US.d.ts +464 -220
  11. package/lib/types/locale/function-list/compatibility/en-US.d.ts +6 -2
  12. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +6 -2
  13. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +6 -2
  14. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +6 -2
  15. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +6 -2
  16. package/lib/types/locale/function-list/engineering/en-US.d.ts +32 -112
  17. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +32 -112
  18. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +32 -112
  19. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +32 -112
  20. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +32 -112
  21. package/lib/types/locale/function-list/financial/en-US.d.ts +364 -52
  22. package/lib/types/locale/function-list/financial/ja-JP.d.ts +364 -52
  23. package/lib/types/locale/function-list/financial/vi-VN.d.ts +412 -46
  24. package/lib/types/locale/function-list/financial/zh-CN.d.ts +364 -52
  25. package/lib/types/locale/function-list/financial/zh-TW.d.ts +364 -52
  26. package/lib/types/locale/function-list/statistical/en-US.d.ts +12 -4
  27. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +12 -4
  28. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +44 -0
  29. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +12 -4
  30. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +12 -4
  31. package/lib/types/locale/ru-RU.d.ts +464 -220
  32. package/lib/types/locale/vi-VN.d.ts +494 -160
  33. package/lib/types/locale/zh-CN.d.ts +464 -220
  34. package/lib/types/locale/zh-TW.d.ts +464 -220
  35. package/lib/types/services/render-services/ref-selections.render-service.d.ts +8 -3
  36. package/lib/umd/index.js +4 -4
  37. package/package.json +24 -24
package/lib/es/index.js CHANGED
@@ -2,12 +2,12 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
3
3
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
5
- import { Disposable, ObjectMatrix, Dimension, OnLifecycle, LifecycleStages, Inject, IUniverInstanceService, CellValueType, ThemeService, ICommandService, isFormulaString, isFormulaId, Tools, Direction, UniverInstanceType, Injector, DEFAULT_EMPTY_DOCUMENT_VALUE, toDisposable, ColorKit, Rectangle, CommandType, createIdentifier, IContextService, isRealNum, getCellValueType, useDependency, LocaleService, useInjector, FOCUSING_DOC, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, connectInjector, throttle, cellToRange, RANGE_TYPE, DisposableCollection, Optional, isICellData, RxDisposable, FORMULA_EDITOR_ACTIVATED, FOCUSING_EDITOR_INPUT_FORMULA, getCellInfoInMergeData, AbsoluteRefType, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, Plugin, DependentOn } from "@univerjs/core";
5
+ import { Disposable, ObjectMatrix, Dimension, OnLifecycle, LifecycleStages, Inject, IUniverInstanceService, CellValueType, ThemeService, ICommandService, isFormulaString, isFormulaId, Tools, Direction, UniverInstanceType, Injector, DEFAULT_EMPTY_DOCUMENT_VALUE, toDisposable, ColorKit, Rectangle, ILogService, CommandType, createIdentifier, IContextService, isRealNum, getCellValueType, useDependency, LocaleService, useInjector, FOCUSING_DOC, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, connectInjector, throttle, cellToRange, RANGE_TYPE, DisposableCollection, Optional, isICellData, RxDisposable, FORMULA_EDITOR_ACTIVATED, FOCUSING_EDITOR_INPUT_FORMULA, getCellInfoInMergeData, AbsoluteRefType, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, Plugin, DependentOn } from "@univerjs/core";
6
6
  import { IRPCChannelService, fromModule, toModule } from "@univerjs/rpc";
7
7
  import { SetDefinedNameMutation, RemoveDefinedNameMutation, FormulaDataModel, IActiveDirtyManagerService, IDefinedNamesService, SetArrayFormulaDataMutation, stripErrorMargin, LexerTreeBuilder, SetFormulaCalculationResultMutation, ErrorType, sequenceNodeType, serializeRange, FUNCTION_NAMES_COMPATIBILITY, FunctionType, FUNCTION_NAMES_CUBE, FUNCTION_NAMES_DATABASE, FUNCTION_NAMES_DATE, FUNCTION_NAMES_ENGINEERING, FUNCTION_NAMES_FINANCIAL, FUNCTION_NAMES_INFORMATION, FUNCTION_NAMES_LOGICAL, FUNCTION_NAMES_LOOKUP, FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL, FUNCTION_NAMES_TEXT, FUNCTION_NAMES_WEB, isReferenceStrings, functionArray, functionCompatibility, functionCube, functionDatabase, functionDate, functionEngineering, functionFinancial, functionInformation, functionLogical, functionLookup, functionMath, functionMeta, functionStatistical, functionText, functionUniver, functionWeb, IFunctionService, ERROR_TYPE_SET, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaCalculationNotificationMutation, FormulaExecuteStageType, FormulaExecutedStateType, SetFormulaDataMutation, initSheetFormulaData, deserializeRangeWithSheet, serializeRangeToRefString, generateStringWithSequence, CustomFunction, serializeRangeWithSpreadsheet, serializeRangeWithSheet, SetOtherFormulaMutation, RemoveOtherFormulaMutation, matchRefDrawToken, matchToken, compareToken, normalizeSheetName, getAbsoluteRefTypeWitString, UniverFormulaEnginePlugin } from "@univerjs/engine-formula";
8
8
  import { IRenderManagerService, ITextSelectionRenderManager, DeviceInputEventType, ScrollTimerType, SHEET_VIEWPORT_KEY, Vector2 } from "@univerjs/engine-render";
9
- import { SetRangeValuesMutation, SetStyleCommand, MoveRangeMutation, MoveRowsMutation, MoveColsMutation, ReorderRangeMutation, RemoveRowMutation, RemoveColMutation, RemoveSheetMutation, InsertSheetMutation, SetDefinedNameCommand, INTERCEPTOR_POINT, SheetInterceptorService, SetRangeValuesUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetColWidthMutation, SetColHiddenMutation, SetColVisibleMutation, SetRowHiddenMutation, SetRowVisibleMutation, SetWorksheetRowAutoHeightMutation, SetRangeValuesCommand, SheetsSelectionsService, getSheetCommandTarget, getCellAtRowCol, SetSelectionsOperation, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellValuePermission, RangeProtectionPermissionEditPoint, SetBorderCommand, ClearSelectionFormatCommand, INumfmtService, handleMoveRange, EffectRefRangId, runRefRangeMutations, handleMoveRows, handleMoveCols, handleInsertRow, handleInsertCol, handleIRemoveRow, handleIRemoveCol, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertRangeMoveDown, handleInsertRangeMoveRight, RemoveSheetCommand, SetWorksheetNameCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, RemoveColCommand, RemoveRowCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertColCommand, InsertRowCommand, MoveColsCommand, MoveRowsCommand, MoveRangeCommand, SetWorksheetActiveOperation, InsertDefinedNameCommand, RemoveDefinedNameCommand, RefRangeService, handleDefaultRangeChangeWithEffectRefCommands, convertSelectionDataToRange, getNormalSelectionStyle, IRefSelectionsService, DISABLE_NORMAL_SELECTIONS, setEndForRange, getPrimaryForRange, RefSelectionsService } from "@univerjs/sheets";
10
- import { DATA_TYPE, APPLY_TYPE, IAutoFillService, PREDEFINED_HOOK_NAME, COPY_TYPE, ISheetClipboardService, ISheetSelectionRenderService, SelectionShape, IEditorBridgeService, SheetSkeletonManagerService, SheetPasteCommand, useActiveWorkbook, getCurrentRangeDisable$, PASTE_SPECIAL_MENU_ID, whenFormulaEditorActivated, CellAlertType, HoverManagerService, CellAlertManagerService, BaseSelectionRenderService, getCoordByOffset, checkInHeaderRanges, getAllSelection, attachSelectionWithCoord, getSheetObject, getEditorObject, MoveSelectionCommand, JumpOver, ExpandSelectionCommand } from "@univerjs/sheets-ui";
9
+ import { SetRangeValuesMutation, SetStyleCommand, MoveRangeMutation, MoveRowsMutation, MoveColsMutation, ReorderRangeMutation, RemoveRowMutation, RemoveColMutation, RemoveSheetMutation, InsertSheetMutation, SetDefinedNameCommand, INTERCEPTOR_POINT, SheetInterceptorService, SetRangeValuesUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetColWidthMutation, SetColHiddenMutation, SetColVisibleMutation, SetRowHiddenMutation, SetRowVisibleMutation, SetWorksheetRowAutoHeightMutation, SetRangeValuesCommand, SheetsSelectionsService, getSheetCommandTarget, getCellAtRowCol, SetSelectionsOperation, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSetCellValuePermission, RangeProtectionPermissionEditPoint, SetBorderCommand, ClearSelectionFormatCommand, INumfmtService, handleMoveRange, EffectRefRangId, runRefRangeMutations, handleMoveRows, handleMoveCols, handleInsertRow, handleInsertCol, handleIRemoveRow, handleIRemoveCol, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertRangeMoveDown, handleInsertRangeMoveRight, RemoveSheetCommand, SetWorksheetNameCommand, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, RemoveColCommand, RemoveRowCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertColCommand, InsertRowCommand, MoveColsCommand, MoveRowsCommand, MoveRangeCommand, SetWorksheetActiveOperation, InsertDefinedNameCommand, RemoveDefinedNameCommand, RefRangeService, handleDefaultRangeChangeWithEffectRefCommands, SelectionMoveType, convertSelectionDataToRange, getNormalSelectionStyle, IRefSelectionsService, DISABLE_NORMAL_SELECTIONS, setEndForRange, getPrimaryForRange, RefSelectionsService } from "@univerjs/sheets";
10
+ import { DATA_TYPE, APPLY_TYPE, IAutoFillService, PREDEFINED_HOOK_NAME, COPY_TYPE, ISheetClipboardService, ISheetSelectionRenderService, SelectionShape, SELECTION_SHAPE_DEPTH, IEditorBridgeService, SheetSkeletonManagerService, SheetPasteCommand, useActiveWorkbook, getCurrentRangeDisable$, PASTE_SPECIAL_MENU_ID, whenFormulaEditorActivated, CellAlertType, HoverManagerService, CellAlertManagerService, BaseSelectionRenderService, getCoordByOffset, checkInHeaderRanges, getAllSelection, attachSelectionWithCoord, getSheetObject, getEditorObject, MoveSelectionCommand, JumpOver, ExpandSelectionCommand } from "@univerjs/sheets-ui";
11
11
  import { IEditorService, ISidebarService, MenuGroup, MenuItemType, MenuPosition, getMenuHiddenObservable, IClipboardInterfaceService, KeyCode, MetaKeys, ComponentManager, BuiltInUIPart, IMenuService, IShortcutService, IUIPartsService, IProgressService, UNI_DISABLE_CHANGING_FOCUS_KEY, SetEditorResizeOperation, IContextMenuService } from "@univerjs/ui";
12
12
  import { Subject, throttleTime, combineLatestWith, map, switchMap, of, Observable, merge, filter, bufferTime, distinctUntilKeyChanged, distinctUntilChanged } from "rxjs";
13
13
  import require$$0, { forwardRef, useRef, createElement, useEffect, useState } from "react";
@@ -544,10 +544,27 @@ const REFRESH_ARRAY_SHAPE_MUTATIONS = [
544
544
  ];
545
545
  var _a5;
546
546
  let FormulaEditorShowController = (_a5 = class extends Disposable {
547
- constructor(_context, _editorBridgeService, _formulaDataModel, _themeService, _renderManagerService, _sheetSkeletonManagerService, _commandService) {
547
+ constructor(_context, _editorBridgeService, _formulaDataModel, _themeService, _renderManagerService, _sheetSkeletonManagerService, _commandService, _logService) {
548
548
  super();
549
549
  __publicField(this, "_previousShape");
550
- this._context = _context, this._editorBridgeService = _editorBridgeService, this._formulaDataModel = _formulaDataModel, this._themeService = _themeService, this._renderManagerService = _renderManagerService, this._sheetSkeletonManagerService = _sheetSkeletonManagerService, this._commandService = _commandService, this._initInterceptorEditorStart(), this._commandExecutedListener();
550
+ __publicField(this, "_skeleton");
551
+ this._context = _context, this._editorBridgeService = _editorBridgeService, this._formulaDataModel = _formulaDataModel, this._themeService = _themeService, this._renderManagerService = _renderManagerService, this._sheetSkeletonManagerService = _sheetSkeletonManagerService, this._commandService = _commandService, this._logService = _logService, this._initSkeletonChangeListener(), this._initInterceptorEditorStart(), this._commandExecutedListener();
552
+ }
553
+ _initSkeletonChangeListener() {
554
+ this.disposeWithMe(
555
+ this._sheetSkeletonManagerService.currentSkeleton$.subscribe((param) => {
556
+ var _a23, _b;
557
+ if (param == null)
558
+ this._logService.debug("[FormulaEditorShowController]: should not receive currentSkeleton$ as null!");
559
+ else {
560
+ const { skeleton } = param, prevSheetId = (_b = (_a23 = this._skeleton) == null ? void 0 : _a23.worksheet) == null ? void 0 : _b.getSheetId();
561
+ this._changeRuntime(skeleton), prevSheetId !== skeleton.worksheet.getSheetId() && this._removeArrayFormulaRangeShape();
562
+ }
563
+ })
564
+ );
565
+ }
566
+ _changeRuntime(skeleton) {
567
+ this._skeleton = skeleton;
551
568
  }
552
569
  _initInterceptorEditorStart() {
553
570
  this.disposeWithMe(
@@ -628,7 +645,7 @@ let FormulaEditorShowController = (_a5 = class extends Disposable {
628
645
  style
629
646
  }), skeleton = this._sheetSkeletonManagerService.getCurrentSkeleton();
630
647
  if (!scene || !skeleton) return;
631
- const { rowHeaderWidth, columnHeaderHeight } = skeleton, control = new SelectionShape(scene, 100, !1, this._themeService);
648
+ const { rowHeaderWidth, columnHeaderHeight } = skeleton, control = new SelectionShape(scene, SELECTION_SHAPE_DEPTH.FORMULA_EDITOR_SHOW, this._themeService, !1);
632
649
  control.update(rangeWithCoord, rowHeaderWidth, columnHeaderHeight, style, primaryWithCoord), control.setEvent(!1), this._previousShape = control;
633
650
  }
634
651
  _removeArrayFormulaRangeShape() {
@@ -700,7 +717,8 @@ FormulaEditorShowController = __decorateClass$f([
700
717
  __decorateParam$f(3, Inject(ThemeService)),
701
718
  __decorateParam$f(4, IRenderManagerService),
702
719
  __decorateParam$f(5, Inject(SheetSkeletonManagerService)),
703
- __decorateParam$f(6, ICommandService)
720
+ __decorateParam$f(6, ICommandService),
721
+ __decorateParam$f(7, ILogService)
704
722
  ], FormulaEditorShowController);
705
723
  const SheetOnlyPasteFormulaCommand = {
706
724
  id: "sheet.command.paste-formula",
@@ -2137,18 +2155,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
2137
2155
  abstract: "formula.functionList.RANK.abstract",
2138
2156
  functionParameter: [
2139
2157
  {
2140
- name: "formula.functionList.RANK.functionParameter.number1.name",
2141
- detail: "formula.functionList.RANK.functionParameter.number1.detail",
2142
- example: "A1:A20",
2158
+ name: "formula.functionList.RANK.functionParameter.number.name",
2159
+ detail: "formula.functionList.RANK.functionParameter.number.detail",
2160
+ example: "A3",
2143
2161
  require: 1,
2144
2162
  repeat: 0
2145
2163
  },
2146
2164
  {
2147
- name: "formula.functionList.RANK.functionParameter.number2.name",
2148
- detail: "formula.functionList.RANK.functionParameter.number2.detail",
2149
- example: "A1:A20",
2165
+ name: "formula.functionList.RANK.functionParameter.ref.name",
2166
+ detail: "formula.functionList.RANK.functionParameter.ref.detail",
2167
+ example: "A2:A6",
2150
2168
  require: 1,
2151
2169
  repeat: 0
2170
+ },
2171
+ {
2172
+ name: "formula.functionList.RANK.functionParameter.order.name",
2173
+ detail: "formula.functionList.RANK.functionParameter.order.detail",
2174
+ example: "1",
2175
+ require: 0,
2176
+ repeat: 0
2152
2177
  }
2153
2178
  ]
2154
2179
  },
@@ -3783,17 +3808,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3783
3808
  abstract: "formula.functionList.GESTEP.abstract",
3784
3809
  functionParameter: [
3785
3810
  {
3786
- name: "formula.functionList.GESTEP.functionParameter.number1.name",
3787
- detail: "formula.functionList.GESTEP.functionParameter.number1.detail",
3788
- example: "A1:A20",
3811
+ name: "formula.functionList.GESTEP.functionParameter.number.name",
3812
+ detail: "formula.functionList.GESTEP.functionParameter.number.detail",
3813
+ example: "5",
3789
3814
  require: 1,
3790
3815
  repeat: 0
3791
3816
  },
3792
3817
  {
3793
- name: "formula.functionList.GESTEP.functionParameter.number2.name",
3794
- detail: "formula.functionList.GESTEP.functionParameter.number2.detail",
3795
- example: "A1:A20",
3796
- require: 1,
3818
+ name: "formula.functionList.GESTEP.functionParameter.step.name",
3819
+ detail: "formula.functionList.GESTEP.functionParameter.step.detail",
3820
+ example: "4",
3821
+ require: 0,
3797
3822
  repeat: 0
3798
3823
  }
3799
3824
  ]
@@ -3864,16 +3889,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3864
3889
  abstract: "formula.functionList.IMABS.abstract",
3865
3890
  functionParameter: [
3866
3891
  {
3867
- name: "formula.functionList.IMABS.functionParameter.number1.name",
3868
- detail: "formula.functionList.IMABS.functionParameter.number1.detail",
3869
- example: "A1:A20",
3870
- require: 1,
3871
- repeat: 0
3872
- },
3873
- {
3874
- name: "formula.functionList.IMABS.functionParameter.number2.name",
3875
- detail: "formula.functionList.IMABS.functionParameter.number2.detail",
3876
- example: "A1:A20",
3892
+ name: "formula.functionList.IMABS.functionParameter.inumber.name",
3893
+ detail: "formula.functionList.IMABS.functionParameter.inumber.detail",
3894
+ example: '"5+12i"',
3877
3895
  require: 1,
3878
3896
  repeat: 0
3879
3897
  }
@@ -3886,16 +3904,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3886
3904
  abstract: "formula.functionList.IMAGINARY.abstract",
3887
3905
  functionParameter: [
3888
3906
  {
3889
- name: "formula.functionList.IMAGINARY.functionParameter.number1.name",
3890
- detail: "formula.functionList.IMAGINARY.functionParameter.number1.detail",
3891
- example: "A1:A20",
3892
- require: 1,
3893
- repeat: 0
3894
- },
3895
- {
3896
- name: "formula.functionList.IMAGINARY.functionParameter.number2.name",
3897
- detail: "formula.functionList.IMAGINARY.functionParameter.number2.detail",
3898
- example: "A1:A20",
3907
+ name: "formula.functionList.IMAGINARY.functionParameter.inumber.name",
3908
+ detail: "formula.functionList.IMAGINARY.functionParameter.inumber.detail",
3909
+ example: '"3+4i"',
3899
3910
  require: 1,
3900
3911
  repeat: 0
3901
3912
  }
@@ -3908,16 +3919,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3908
3919
  abstract: "formula.functionList.IMARGUMENT.abstract",
3909
3920
  functionParameter: [
3910
3921
  {
3911
- name: "formula.functionList.IMARGUMENT.functionParameter.number1.name",
3912
- detail: "formula.functionList.IMARGUMENT.functionParameter.number1.detail",
3913
- example: "A1:A20",
3914
- require: 1,
3915
- repeat: 0
3916
- },
3917
- {
3918
- name: "formula.functionList.IMARGUMENT.functionParameter.number2.name",
3919
- detail: "formula.functionList.IMARGUMENT.functionParameter.number2.detail",
3920
- example: "A1:A20",
3922
+ name: "formula.functionList.IMARGUMENT.functionParameter.inumber.name",
3923
+ detail: "formula.functionList.IMARGUMENT.functionParameter.inumber.detail",
3924
+ example: '"3+4i"',
3921
3925
  require: 1,
3922
3926
  repeat: 0
3923
3927
  }
@@ -3930,16 +3934,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3930
3934
  abstract: "formula.functionList.IMCONJUGATE.abstract",
3931
3935
  functionParameter: [
3932
3936
  {
3933
- name: "formula.functionList.IMCONJUGATE.functionParameter.number1.name",
3934
- detail: "formula.functionList.IMCONJUGATE.functionParameter.number1.detail",
3935
- example: "A1:A20",
3936
- require: 1,
3937
- repeat: 0
3938
- },
3939
- {
3940
- name: "formula.functionList.IMCONJUGATE.functionParameter.number2.name",
3941
- detail: "formula.functionList.IMCONJUGATE.functionParameter.number2.detail",
3942
- example: "A1:A20",
3937
+ name: "formula.functionList.IMCONJUGATE.functionParameter.inumber.name",
3938
+ detail: "formula.functionList.IMCONJUGATE.functionParameter.inumber.detail",
3939
+ example: '"3+4i"',
3943
3940
  require: 1,
3944
3941
  repeat: 0
3945
3942
  }
@@ -3952,16 +3949,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3952
3949
  abstract: "formula.functionList.IMCOS.abstract",
3953
3950
  functionParameter: [
3954
3951
  {
3955
- name: "formula.functionList.IMCOS.functionParameter.number1.name",
3956
- detail: "formula.functionList.IMCOS.functionParameter.number1.detail",
3957
- example: "A1:A20",
3958
- require: 1,
3959
- repeat: 0
3960
- },
3961
- {
3962
- name: "formula.functionList.IMCOS.functionParameter.number2.name",
3963
- detail: "formula.functionList.IMCOS.functionParameter.number2.detail",
3964
- example: "A1:A20",
3952
+ name: "formula.functionList.IMCOS.functionParameter.inumber.name",
3953
+ detail: "formula.functionList.IMCOS.functionParameter.inumber.detail",
3954
+ example: '"1+i"',
3965
3955
  require: 1,
3966
3956
  repeat: 0
3967
3957
  }
@@ -3974,16 +3964,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3974
3964
  abstract: "formula.functionList.IMCOSH.abstract",
3975
3965
  functionParameter: [
3976
3966
  {
3977
- name: "formula.functionList.IMCOSH.functionParameter.number1.name",
3978
- detail: "formula.functionList.IMCOSH.functionParameter.number1.detail",
3979
- example: "A1:A20",
3980
- require: 1,
3981
- repeat: 0
3982
- },
3983
- {
3984
- name: "formula.functionList.IMCOSH.functionParameter.number2.name",
3985
- detail: "formula.functionList.IMCOSH.functionParameter.number2.detail",
3986
- example: "A1:A20",
3967
+ name: "formula.functionList.IMCOSH.functionParameter.inumber.name",
3968
+ detail: "formula.functionList.IMCOSH.functionParameter.inumber.detail",
3969
+ example: '"4+3i"',
3987
3970
  require: 1,
3988
3971
  repeat: 0
3989
3972
  }
@@ -3996,16 +3979,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
3996
3979
  abstract: "formula.functionList.IMCOT.abstract",
3997
3980
  functionParameter: [
3998
3981
  {
3999
- name: "formula.functionList.IMCOT.functionParameter.number1.name",
4000
- detail: "formula.functionList.IMCOT.functionParameter.number1.detail",
4001
- example: "A1:A20",
4002
- require: 1,
4003
- repeat: 0
4004
- },
4005
- {
4006
- name: "formula.functionList.IMCOT.functionParameter.number2.name",
4007
- detail: "formula.functionList.IMCOT.functionParameter.number2.detail",
4008
- example: "A1:A20",
3982
+ name: "formula.functionList.IMCOT.functionParameter.inumber.name",
3983
+ detail: "formula.functionList.IMCOT.functionParameter.inumber.detail",
3984
+ example: '"4+3i"',
4009
3985
  require: 1,
4010
3986
  repeat: 0
4011
3987
  }
@@ -4018,16 +3994,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4018
3994
  abstract: "formula.functionList.IMCSC.abstract",
4019
3995
  functionParameter: [
4020
3996
  {
4021
- name: "formula.functionList.IMCSC.functionParameter.number1.name",
4022
- detail: "formula.functionList.IMCSC.functionParameter.number1.detail",
4023
- example: "A1:A20",
4024
- require: 1,
4025
- repeat: 0
4026
- },
4027
- {
4028
- name: "formula.functionList.IMCSC.functionParameter.number2.name",
4029
- detail: "formula.functionList.IMCSC.functionParameter.number2.detail",
4030
- example: "A1:A20",
3997
+ name: "formula.functionList.IMCSC.functionParameter.inumber.name",
3998
+ detail: "formula.functionList.IMCSC.functionParameter.inumber.detail",
3999
+ example: '"4+3i"',
4031
4000
  require: 1,
4032
4001
  repeat: 0
4033
4002
  }
@@ -4040,16 +4009,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4040
4009
  abstract: "formula.functionList.IMCSCH.abstract",
4041
4010
  functionParameter: [
4042
4011
  {
4043
- name: "formula.functionList.IMCSCH.functionParameter.number1.name",
4044
- detail: "formula.functionList.IMCSCH.functionParameter.number1.detail",
4045
- example: "A1:A20",
4046
- require: 1,
4047
- repeat: 0
4048
- },
4049
- {
4050
- name: "formula.functionList.IMCSCH.functionParameter.number2.name",
4051
- detail: "formula.functionList.IMCSCH.functionParameter.number2.detail",
4052
- example: "A1:A20",
4012
+ name: "formula.functionList.IMCSCH.functionParameter.inumber.name",
4013
+ detail: "formula.functionList.IMCSCH.functionParameter.inumber.detail",
4014
+ example: '"4+3i"',
4053
4015
  require: 1,
4054
4016
  repeat: 0
4055
4017
  }
@@ -4062,16 +4024,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4062
4024
  abstract: "formula.functionList.IMDIV.abstract",
4063
4025
  functionParameter: [
4064
4026
  {
4065
- name: "formula.functionList.IMDIV.functionParameter.number1.name",
4066
- detail: "formula.functionList.IMDIV.functionParameter.number1.detail",
4067
- example: "A1:A20",
4027
+ name: "formula.functionList.IMDIV.functionParameter.inumber1.name",
4028
+ detail: "formula.functionList.IMDIV.functionParameter.inumber1.detail",
4029
+ example: '"-238+240i"',
4068
4030
  require: 1,
4069
4031
  repeat: 0
4070
4032
  },
4071
4033
  {
4072
- name: "formula.functionList.IMDIV.functionParameter.number2.name",
4073
- detail: "formula.functionList.IMDIV.functionParameter.number2.detail",
4074
- example: "A1:A20",
4034
+ name: "formula.functionList.IMDIV.functionParameter.inumber2.name",
4035
+ detail: "formula.functionList.IMDIV.functionParameter.inumber2.detail",
4036
+ example: '"10+24i"',
4075
4037
  require: 1,
4076
4038
  repeat: 0
4077
4039
  }
@@ -4084,16 +4046,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4084
4046
  abstract: "formula.functionList.IMEXP.abstract",
4085
4047
  functionParameter: [
4086
4048
  {
4087
- name: "formula.functionList.IMEXP.functionParameter.number1.name",
4088
- detail: "formula.functionList.IMEXP.functionParameter.number1.detail",
4089
- example: "A1:A20",
4090
- require: 1,
4091
- repeat: 0
4092
- },
4093
- {
4094
- name: "formula.functionList.IMEXP.functionParameter.number2.name",
4095
- detail: "formula.functionList.IMEXP.functionParameter.number2.detail",
4096
- example: "A1:A20",
4049
+ name: "formula.functionList.IMEXP.functionParameter.inumber.name",
4050
+ detail: "formula.functionList.IMEXP.functionParameter.inumber.detail",
4051
+ example: '"1+i"',
4097
4052
  require: 1,
4098
4053
  repeat: 0
4099
4054
  }
@@ -4106,16 +4061,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4106
4061
  abstract: "formula.functionList.IMLN.abstract",
4107
4062
  functionParameter: [
4108
4063
  {
4109
- name: "formula.functionList.IMLN.functionParameter.number1.name",
4110
- detail: "formula.functionList.IMLN.functionParameter.number1.detail",
4111
- example: "A1:A20",
4112
- require: 1,
4113
- repeat: 0
4114
- },
4115
- {
4116
- name: "formula.functionList.IMLN.functionParameter.number2.name",
4117
- detail: "formula.functionList.IMLN.functionParameter.number2.detail",
4118
- example: "A1:A20",
4064
+ name: "formula.functionList.IMLN.functionParameter.inumber.name",
4065
+ detail: "formula.functionList.IMLN.functionParameter.inumber.detail",
4066
+ example: '"3+4i"',
4119
4067
  require: 1,
4120
4068
  repeat: 0
4121
4069
  }
@@ -4128,16 +4076,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4128
4076
  abstract: "formula.functionList.IMLOG10.abstract",
4129
4077
  functionParameter: [
4130
4078
  {
4131
- name: "formula.functionList.IMLOG10.functionParameter.number1.name",
4132
- detail: "formula.functionList.IMLOG10.functionParameter.number1.detail",
4133
- example: "A1:A20",
4134
- require: 1,
4135
- repeat: 0
4136
- },
4137
- {
4138
- name: "formula.functionList.IMLOG10.functionParameter.number2.name",
4139
- detail: "formula.functionList.IMLOG10.functionParameter.number2.detail",
4140
- example: "A1:A20",
4079
+ name: "formula.functionList.IMLOG10.functionParameter.inumber.name",
4080
+ detail: "formula.functionList.IMLOG10.functionParameter.inumber.detail",
4081
+ example: '"3+4i"',
4141
4082
  require: 1,
4142
4083
  repeat: 0
4143
4084
  }
@@ -4150,16 +4091,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4150
4091
  abstract: "formula.functionList.IMLOG2.abstract",
4151
4092
  functionParameter: [
4152
4093
  {
4153
- name: "formula.functionList.IMLOG2.functionParameter.number1.name",
4154
- detail: "formula.functionList.IMLOG2.functionParameter.number1.detail",
4155
- example: "A1:A20",
4156
- require: 1,
4157
- repeat: 0
4158
- },
4159
- {
4160
- name: "formula.functionList.IMLOG2.functionParameter.number2.name",
4161
- detail: "formula.functionList.IMLOG2.functionParameter.number2.detail",
4162
- example: "A1:A20",
4094
+ name: "formula.functionList.IMLOG2.functionParameter.inumber.name",
4095
+ detail: "formula.functionList.IMLOG2.functionParameter.inumber.detail",
4096
+ example: '"3+4i"',
4163
4097
  require: 1,
4164
4098
  repeat: 0
4165
4099
  }
@@ -4172,16 +4106,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4172
4106
  abstract: "formula.functionList.IMPOWER.abstract",
4173
4107
  functionParameter: [
4174
4108
  {
4175
- name: "formula.functionList.IMPOWER.functionParameter.number1.name",
4176
- detail: "formula.functionList.IMPOWER.functionParameter.number1.detail",
4177
- example: "A1:A20",
4109
+ name: "formula.functionList.IMPOWER.functionParameter.inumber.name",
4110
+ detail: "formula.functionList.IMPOWER.functionParameter.inumber.detail",
4111
+ example: '"2+3i"',
4178
4112
  require: 1,
4179
4113
  repeat: 0
4180
4114
  },
4181
4115
  {
4182
- name: "formula.functionList.IMPOWER.functionParameter.number2.name",
4183
- detail: "formula.functionList.IMPOWER.functionParameter.number2.detail",
4184
- example: "A1:A20",
4116
+ name: "formula.functionList.IMPOWER.functionParameter.number.name",
4117
+ detail: "formula.functionList.IMPOWER.functionParameter.number.detail",
4118
+ example: "3",
4185
4119
  require: 1,
4186
4120
  repeat: 0
4187
4121
  }
@@ -4194,18 +4128,18 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4194
4128
  abstract: "formula.functionList.IMPRODUCT.abstract",
4195
4129
  functionParameter: [
4196
4130
  {
4197
- name: "formula.functionList.IMPRODUCT.functionParameter.number1.name",
4198
- detail: "formula.functionList.IMPRODUCT.functionParameter.number1.detail",
4199
- example: "A1:A20",
4131
+ name: "formula.functionList.IMPRODUCT.functionParameter.inumber1.name",
4132
+ detail: "formula.functionList.IMPRODUCT.functionParameter.inumber1.detail",
4133
+ example: '"3+4i"',
4200
4134
  require: 1,
4201
4135
  repeat: 0
4202
4136
  },
4203
4137
  {
4204
- name: "formula.functionList.IMPRODUCT.functionParameter.number2.name",
4205
- detail: "formula.functionList.IMPRODUCT.functionParameter.number2.detail",
4206
- example: "A1:A20",
4207
- require: 1,
4208
- repeat: 0
4138
+ name: "formula.functionList.IMPRODUCT.functionParameter.inumber2.name",
4139
+ detail: "formula.functionList.IMPRODUCT.functionParameter.inumber2.detail",
4140
+ example: '"5-3i"',
4141
+ require: 0,
4142
+ repeat: 1
4209
4143
  }
4210
4144
  ]
4211
4145
  },
@@ -4216,16 +4150,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4216
4150
  abstract: "formula.functionList.IMREAL.abstract",
4217
4151
  functionParameter: [
4218
4152
  {
4219
- name: "formula.functionList.IMREAL.functionParameter.number1.name",
4220
- detail: "formula.functionList.IMREAL.functionParameter.number1.detail",
4221
- example: "A1:A20",
4222
- require: 1,
4223
- repeat: 0
4224
- },
4225
- {
4226
- name: "formula.functionList.IMREAL.functionParameter.number2.name",
4227
- detail: "formula.functionList.IMREAL.functionParameter.number2.detail",
4228
- example: "A1:A20",
4153
+ name: "formula.functionList.IMREAL.functionParameter.inumber.name",
4154
+ detail: "formula.functionList.IMREAL.functionParameter.inumber.detail",
4155
+ example: '"6-9i"',
4229
4156
  require: 1,
4230
4157
  repeat: 0
4231
4158
  }
@@ -4238,16 +4165,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4238
4165
  abstract: "formula.functionList.IMSEC.abstract",
4239
4166
  functionParameter: [
4240
4167
  {
4241
- name: "formula.functionList.IMSEC.functionParameter.number1.name",
4242
- detail: "formula.functionList.IMSEC.functionParameter.number1.detail",
4243
- example: "A1:A20",
4244
- require: 1,
4245
- repeat: 0
4246
- },
4247
- {
4248
- name: "formula.functionList.IMSEC.functionParameter.number2.name",
4249
- detail: "formula.functionList.IMSEC.functionParameter.number2.detail",
4250
- example: "A1:A20",
4168
+ name: "formula.functionList.IMSEC.functionParameter.inumber.name",
4169
+ detail: "formula.functionList.IMSEC.functionParameter.inumber.detail",
4170
+ example: '"4+3i"',
4251
4171
  require: 1,
4252
4172
  repeat: 0
4253
4173
  }
@@ -4260,16 +4180,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4260
4180
  abstract: "formula.functionList.IMSECH.abstract",
4261
4181
  functionParameter: [
4262
4182
  {
4263
- name: "formula.functionList.IMSECH.functionParameter.number1.name",
4264
- detail: "formula.functionList.IMSECH.functionParameter.number1.detail",
4265
- example: "A1:A20",
4266
- require: 1,
4267
- repeat: 0
4268
- },
4269
- {
4270
- name: "formula.functionList.IMSECH.functionParameter.number2.name",
4271
- detail: "formula.functionList.IMSECH.functionParameter.number2.detail",
4272
- example: "A1:A20",
4183
+ name: "formula.functionList.IMSECH.functionParameter.inumber.name",
4184
+ detail: "formula.functionList.IMSECH.functionParameter.inumber.detail",
4185
+ example: '"4+3i"',
4273
4186
  require: 1,
4274
4187
  repeat: 0
4275
4188
  }
@@ -4282,16 +4195,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4282
4195
  abstract: "formula.functionList.IMSIN.abstract",
4283
4196
  functionParameter: [
4284
4197
  {
4285
- name: "formula.functionList.IMSIN.functionParameter.number1.name",
4286
- detail: "formula.functionList.IMSIN.functionParameter.number1.detail",
4287
- example: "A1:A20",
4288
- require: 1,
4289
- repeat: 0
4290
- },
4291
- {
4292
- name: "formula.functionList.IMSIN.functionParameter.number2.name",
4293
- detail: "formula.functionList.IMSIN.functionParameter.number2.detail",
4294
- example: "A1:A20",
4198
+ name: "formula.functionList.IMSIN.functionParameter.inumber.name",
4199
+ detail: "formula.functionList.IMSIN.functionParameter.inumber.detail",
4200
+ example: '"4+3i"',
4295
4201
  require: 1,
4296
4202
  repeat: 0
4297
4203
  }
@@ -4304,16 +4210,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4304
4210
  abstract: "formula.functionList.IMSINH.abstract",
4305
4211
  functionParameter: [
4306
4212
  {
4307
- name: "formula.functionList.IMSINH.functionParameter.number1.name",
4308
- detail: "formula.functionList.IMSINH.functionParameter.number1.detail",
4309
- example: "A1:A20",
4310
- require: 1,
4311
- repeat: 0
4312
- },
4313
- {
4314
- name: "formula.functionList.IMSINH.functionParameter.number2.name",
4315
- detail: "formula.functionList.IMSINH.functionParameter.number2.detail",
4316
- example: "A1:A20",
4213
+ name: "formula.functionList.IMSINH.functionParameter.inumber.name",
4214
+ detail: "formula.functionList.IMSINH.functionParameter.inumber.detail",
4215
+ example: '"4+3i"',
4317
4216
  require: 1,
4318
4217
  repeat: 0
4319
4218
  }
@@ -4326,16 +4225,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4326
4225
  abstract: "formula.functionList.IMSQRT.abstract",
4327
4226
  functionParameter: [
4328
4227
  {
4329
- name: "formula.functionList.IMSQRT.functionParameter.number1.name",
4330
- detail: "formula.functionList.IMSQRT.functionParameter.number1.detail",
4331
- example: "A1:A20",
4332
- require: 1,
4333
- repeat: 0
4334
- },
4335
- {
4336
- name: "formula.functionList.IMSQRT.functionParameter.number2.name",
4337
- detail: "formula.functionList.IMSQRT.functionParameter.number2.detail",
4338
- example: "A1:A20",
4228
+ name: "formula.functionList.IMSQRT.functionParameter.inumber.name",
4229
+ detail: "formula.functionList.IMSQRT.functionParameter.inumber.detail",
4230
+ example: '"1+i"',
4339
4231
  require: 1,
4340
4232
  repeat: 0
4341
4233
  }
@@ -4348,16 +4240,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4348
4240
  abstract: "formula.functionList.IMSUB.abstract",
4349
4241
  functionParameter: [
4350
4242
  {
4351
- name: "formula.functionList.IMSUB.functionParameter.number1.name",
4352
- detail: "formula.functionList.IMSUB.functionParameter.number1.detail",
4353
- example: "A1:A20",
4243
+ name: "formula.functionList.IMSUB.functionParameter.inumber1.name",
4244
+ detail: "formula.functionList.IMSUB.functionParameter.inumber1.detail",
4245
+ example: '"13+4i"',
4354
4246
  require: 1,
4355
4247
  repeat: 0
4356
4248
  },
4357
4249
  {
4358
- name: "formula.functionList.IMSUB.functionParameter.number2.name",
4359
- detail: "formula.functionList.IMSUB.functionParameter.number2.detail",
4360
- example: "A1:A20",
4250
+ name: "formula.functionList.IMSUB.functionParameter.inumber2.name",
4251
+ detail: "formula.functionList.IMSUB.functionParameter.inumber2.detail",
4252
+ example: '"5+3i"',
4361
4253
  require: 1,
4362
4254
  repeat: 0
4363
4255
  }
@@ -4370,18 +4262,18 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4370
4262
  abstract: "formula.functionList.IMSUM.abstract",
4371
4263
  functionParameter: [
4372
4264
  {
4373
- name: "formula.functionList.IMSUM.functionParameter.number1.name",
4374
- detail: "formula.functionList.IMSUM.functionParameter.number1.detail",
4375
- example: "A1:A20",
4265
+ name: "formula.functionList.IMSUM.functionParameter.inumber1.name",
4266
+ detail: "formula.functionList.IMSUM.functionParameter.inumber1.detail",
4267
+ example: '"3+4i"',
4376
4268
  require: 1,
4377
4269
  repeat: 0
4378
4270
  },
4379
4271
  {
4380
- name: "formula.functionList.IMSUM.functionParameter.number2.name",
4381
- detail: "formula.functionList.IMSUM.functionParameter.number2.detail",
4382
- example: "A1:A20",
4383
- require: 1,
4384
- repeat: 0
4272
+ name: "formula.functionList.IMSUM.functionParameter.inumber2.name",
4273
+ detail: "formula.functionList.IMSUM.functionParameter.inumber2.detail",
4274
+ example: '"5-3i"',
4275
+ require: 0,
4276
+ repeat: 1
4385
4277
  }
4386
4278
  ]
4387
4279
  },
@@ -4392,16 +4284,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
4392
4284
  abstract: "formula.functionList.IMTAN.abstract",
4393
4285
  functionParameter: [
4394
4286
  {
4395
- name: "formula.functionList.IMTAN.functionParameter.number1.name",
4396
- detail: "formula.functionList.IMTAN.functionParameter.number1.detail",
4397
- example: "A1:A20",
4398
- require: 1,
4399
- repeat: 0
4400
- },
4401
- {
4402
- name: "formula.functionList.IMTAN.functionParameter.number2.name",
4403
- detail: "formula.functionList.IMTAN.functionParameter.number2.detail",
4404
- example: "A1:A20",
4287
+ name: "formula.functionList.IMTAN.functionParameter.inumber.name",
4288
+ detail: "formula.functionList.IMTAN.functionParameter.inumber.detail",
4289
+ example: '"4+3i"',
4405
4290
  require: 1,
4406
4291
  repeat: 0
4407
4292
  }
@@ -5149,18 +5034,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5149
5034
  abstract: "formula.functionList.DURATION.abstract",
5150
5035
  functionParameter: [
5151
5036
  {
5152
- name: "formula.functionList.DURATION.functionParameter.number1.name",
5153
- detail: "formula.functionList.DURATION.functionParameter.number1.detail",
5154
- example: "A1:A20",
5037
+ name: "formula.functionList.DURATION.functionParameter.settlement.name",
5038
+ detail: "formula.functionList.DURATION.functionParameter.settlement.detail",
5039
+ example: '"2018-7-1"',
5155
5040
  require: 1,
5156
5041
  repeat: 0
5157
5042
  },
5158
5043
  {
5159
- name: "formula.functionList.DURATION.functionParameter.number2.name",
5160
- detail: "formula.functionList.DURATION.functionParameter.number2.detail",
5161
- example: "A1:A20",
5044
+ name: "formula.functionList.DURATION.functionParameter.maturity.name",
5045
+ detail: "formula.functionList.DURATION.functionParameter.maturity.detail",
5046
+ example: '"2048-1-1"',
5047
+ require: 1,
5048
+ repeat: 0
5049
+ },
5050
+ {
5051
+ name: "formula.functionList.DURATION.functionParameter.coupon.name",
5052
+ detail: "formula.functionList.DURATION.functionParameter.coupon.detail",
5053
+ example: "0.08",
5162
5054
  require: 1,
5163
5055
  repeat: 0
5056
+ },
5057
+ {
5058
+ name: "formula.functionList.DURATION.functionParameter.yld.name",
5059
+ detail: "formula.functionList.DURATION.functionParameter.yld.detail",
5060
+ example: "0.09",
5061
+ require: 1,
5062
+ repeat: 0
5063
+ },
5064
+ {
5065
+ name: "formula.functionList.DURATION.functionParameter.frequency.name",
5066
+ detail: "formula.functionList.DURATION.functionParameter.frequency.detail",
5067
+ example: "2",
5068
+ require: 1,
5069
+ repeat: 0
5070
+ },
5071
+ {
5072
+ name: "formula.functionList.DURATION.functionParameter.basis.name",
5073
+ detail: "formula.functionList.DURATION.functionParameter.basis.detail",
5074
+ example: "1",
5075
+ require: 0,
5076
+ repeat: 0
5164
5077
  }
5165
5078
  ]
5166
5079
  },
@@ -5351,17 +5264,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5351
5264
  abstract: "formula.functionList.IRR.abstract",
5352
5265
  functionParameter: [
5353
5266
  {
5354
- name: "formula.functionList.IRR.functionParameter.number1.name",
5355
- detail: "formula.functionList.IRR.functionParameter.number1.detail",
5356
- example: "A1:A20",
5267
+ name: "formula.functionList.IRR.functionParameter.values.name",
5268
+ detail: "formula.functionList.IRR.functionParameter.values.detail",
5269
+ example: "{-700000,120000,150000,180000,210000,260000}",
5357
5270
  require: 1,
5358
5271
  repeat: 0
5359
5272
  },
5360
5273
  {
5361
- name: "formula.functionList.IRR.functionParameter.number2.name",
5362
- detail: "formula.functionList.IRR.functionParameter.number2.detail",
5363
- example: "A1:A20",
5364
- require: 1,
5274
+ name: "formula.functionList.IRR.functionParameter.guess.name",
5275
+ detail: "formula.functionList.IRR.functionParameter.guess.detail",
5276
+ example: "0.1",
5277
+ require: 0,
5365
5278
  repeat: 0
5366
5279
  }
5367
5280
  ]
@@ -5409,18 +5322,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5409
5322
  abstract: "formula.functionList.MDURATION.abstract",
5410
5323
  functionParameter: [
5411
5324
  {
5412
- name: "formula.functionList.MDURATION.functionParameter.number1.name",
5413
- detail: "formula.functionList.MDURATION.functionParameter.number1.detail",
5414
- example: "A1:A20",
5325
+ name: "formula.functionList.MDURATION.functionParameter.settlement.name",
5326
+ detail: "formula.functionList.MDURATION.functionParameter.settlement.detail",
5327
+ example: '"2018-7-1"',
5415
5328
  require: 1,
5416
5329
  repeat: 0
5417
5330
  },
5418
5331
  {
5419
- name: "formula.functionList.MDURATION.functionParameter.number2.name",
5420
- detail: "formula.functionList.MDURATION.functionParameter.number2.detail",
5421
- example: "A1:A20",
5332
+ name: "formula.functionList.MDURATION.functionParameter.maturity.name",
5333
+ detail: "formula.functionList.MDURATION.functionParameter.maturity.detail",
5334
+ example: '"2048-1-1"',
5335
+ require: 1,
5336
+ repeat: 0
5337
+ },
5338
+ {
5339
+ name: "formula.functionList.MDURATION.functionParameter.coupon.name",
5340
+ detail: "formula.functionList.MDURATION.functionParameter.coupon.detail",
5341
+ example: "0.08",
5422
5342
  require: 1,
5423
5343
  repeat: 0
5344
+ },
5345
+ {
5346
+ name: "formula.functionList.MDURATION.functionParameter.yld.name",
5347
+ detail: "formula.functionList.MDURATION.functionParameter.yld.detail",
5348
+ example: "0.09",
5349
+ require: 1,
5350
+ repeat: 0
5351
+ },
5352
+ {
5353
+ name: "formula.functionList.MDURATION.functionParameter.frequency.name",
5354
+ detail: "formula.functionList.MDURATION.functionParameter.frequency.detail",
5355
+ example: "2",
5356
+ require: 1,
5357
+ repeat: 0
5358
+ },
5359
+ {
5360
+ name: "formula.functionList.MDURATION.functionParameter.basis.name",
5361
+ detail: "formula.functionList.MDURATION.functionParameter.basis.detail",
5362
+ example: "1",
5363
+ require: 0,
5364
+ repeat: 0
5424
5365
  }
5425
5366
  ]
5426
5367
  },
@@ -5431,16 +5372,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5431
5372
  abstract: "formula.functionList.MIRR.abstract",
5432
5373
  functionParameter: [
5433
5374
  {
5434
- name: "formula.functionList.MIRR.functionParameter.number1.name",
5435
- detail: "formula.functionList.MIRR.functionParameter.number1.detail",
5436
- example: "A1:A20",
5375
+ name: "formula.functionList.MIRR.functionParameter.values.name",
5376
+ detail: "formula.functionList.MIRR.functionParameter.values.detail",
5377
+ example: "{-120000,39000,30000,21000,37000,46000}",
5437
5378
  require: 1,
5438
5379
  repeat: 0
5439
5380
  },
5440
5381
  {
5441
- name: "formula.functionList.MIRR.functionParameter.number2.name",
5442
- detail: "formula.functionList.MIRR.functionParameter.number2.detail",
5443
- example: "A1:A20",
5382
+ name: "formula.functionList.MIRR.functionParameter.financeRate.name",
5383
+ detail: "formula.functionList.MIRR.functionParameter.financeRate.detail",
5384
+ example: "0.1",
5385
+ require: 1,
5386
+ repeat: 0
5387
+ },
5388
+ {
5389
+ name: "formula.functionList.MIRR.functionParameter.reinvestRate.name",
5390
+ detail: "formula.functionList.MIRR.functionParameter.reinvestRate.detail",
5391
+ example: "0.12",
5444
5392
  require: 1,
5445
5393
  repeat: 0
5446
5394
  }
@@ -5518,18 +5466,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5518
5466
  abstract: "formula.functionList.NPV.abstract",
5519
5467
  functionParameter: [
5520
5468
  {
5521
- name: "formula.functionList.NPV.functionParameter.number1.name",
5522
- detail: "formula.functionList.NPV.functionParameter.number1.detail",
5523
- example: "A1:A20",
5469
+ name: "formula.functionList.NPV.functionParameter.rate.name",
5470
+ detail: "formula.functionList.NPV.functionParameter.rate.detail",
5471
+ example: "0.1",
5524
5472
  require: 1,
5525
5473
  repeat: 0
5526
5474
  },
5527
5475
  {
5528
- name: "formula.functionList.NPV.functionParameter.number2.name",
5529
- detail: "formula.functionList.NPV.functionParameter.number2.detail",
5530
- example: "A1:A20",
5476
+ name: "formula.functionList.NPV.functionParameter.value1.name",
5477
+ detail: "formula.functionList.NPV.functionParameter.value1.detail",
5478
+ example: "{-10000,3000,4200,6800}",
5531
5479
  require: 1,
5532
5480
  repeat: 0
5481
+ },
5482
+ {
5483
+ name: "formula.functionList.NPV.functionParameter.value2.name",
5484
+ detail: "formula.functionList.NPV.functionParameter.value2.detail",
5485
+ example: "-9000",
5486
+ require: 0,
5487
+ repeat: 1
5533
5488
  }
5534
5489
  ]
5535
5490
  },
@@ -5540,18 +5495,67 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5540
5495
  abstract: "formula.functionList.ODDFPRICE.abstract",
5541
5496
  functionParameter: [
5542
5497
  {
5543
- name: "formula.functionList.ODDFPRICE.functionParameter.number1.name",
5544
- detail: "formula.functionList.ODDFPRICE.functionParameter.number1.detail",
5545
- example: "A1:A20",
5498
+ name: "formula.functionList.ODDFPRICE.functionParameter.settlement.name",
5499
+ detail: "formula.functionList.ODDFPRICE.functionParameter.settlement.detail",
5500
+ example: '"2008-11-11"',
5546
5501
  require: 1,
5547
5502
  repeat: 0
5548
5503
  },
5549
5504
  {
5550
- name: "formula.functionList.ODDFPRICE.functionParameter.number2.name",
5551
- detail: "formula.functionList.ODDFPRICE.functionParameter.number2.detail",
5552
- example: "A1:A20",
5505
+ name: "formula.functionList.ODDFPRICE.functionParameter.maturity.name",
5506
+ detail: "formula.functionList.ODDFPRICE.functionParameter.maturity.detail",
5507
+ example: '"2021-3-1"',
5508
+ require: 1,
5509
+ repeat: 0
5510
+ },
5511
+ {
5512
+ name: "formula.functionList.ODDFPRICE.functionParameter.issue.name",
5513
+ detail: "formula.functionList.ODDFPRICE.functionParameter.issue.detail",
5514
+ example: '"2008-10-15"',
5515
+ require: 1,
5516
+ repeat: 0
5517
+ },
5518
+ {
5519
+ name: "formula.functionList.ODDFPRICE.functionParameter.firstCoupon.name",
5520
+ detail: "formula.functionList.ODDFPRICE.functionParameter.firstCoupon.detail",
5521
+ example: '"2009-3-1"',
5553
5522
  require: 1,
5554
5523
  repeat: 0
5524
+ },
5525
+ {
5526
+ name: "formula.functionList.ODDFPRICE.functionParameter.rate.name",
5527
+ detail: "formula.functionList.ODDFPRICE.functionParameter.rate.detail",
5528
+ example: "0.0785",
5529
+ require: 1,
5530
+ repeat: 0
5531
+ },
5532
+ {
5533
+ name: "formula.functionList.ODDFPRICE.functionParameter.yld.name",
5534
+ detail: "formula.functionList.ODDFPRICE.functionParameter.yld.detail",
5535
+ example: "0.0625",
5536
+ require: 1,
5537
+ repeat: 0
5538
+ },
5539
+ {
5540
+ name: "formula.functionList.ODDFPRICE.functionParameter.redemption.name",
5541
+ detail: "formula.functionList.ODDFPRICE.functionParameter.redemption.detail",
5542
+ example: "100",
5543
+ require: 1,
5544
+ repeat: 0
5545
+ },
5546
+ {
5547
+ name: "formula.functionList.ODDFPRICE.functionParameter.frequency.name",
5548
+ detail: "formula.functionList.ODDFPRICE.functionParameter.frequency.detail",
5549
+ example: "2",
5550
+ require: 1,
5551
+ repeat: 0
5552
+ },
5553
+ {
5554
+ name: "formula.functionList.ODDFPRICE.functionParameter.basis.name",
5555
+ detail: "formula.functionList.ODDFPRICE.functionParameter.basis.detail",
5556
+ example: "1",
5557
+ require: 0,
5558
+ repeat: 0
5555
5559
  }
5556
5560
  ]
5557
5561
  },
@@ -5562,18 +5566,67 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5562
5566
  abstract: "formula.functionList.ODDFYIELD.abstract",
5563
5567
  functionParameter: [
5564
5568
  {
5565
- name: "formula.functionList.ODDFYIELD.functionParameter.number1.name",
5566
- detail: "formula.functionList.ODDFYIELD.functionParameter.number1.detail",
5567
- example: "A1:A20",
5569
+ name: "formula.functionList.ODDFYIELD.functionParameter.settlement.name",
5570
+ detail: "formula.functionList.ODDFYIELD.functionParameter.settlement.detail",
5571
+ example: '"2008-11-11"',
5568
5572
  require: 1,
5569
5573
  repeat: 0
5570
5574
  },
5571
5575
  {
5572
- name: "formula.functionList.ODDFYIELD.functionParameter.number2.name",
5573
- detail: "formula.functionList.ODDFYIELD.functionParameter.number2.detail",
5574
- example: "A1:A20",
5576
+ name: "formula.functionList.ODDFYIELD.functionParameter.maturity.name",
5577
+ detail: "formula.functionList.ODDFYIELD.functionParameter.maturity.detail",
5578
+ example: '"2021-3-1"',
5579
+ require: 1,
5580
+ repeat: 0
5581
+ },
5582
+ {
5583
+ name: "formula.functionList.ODDFYIELD.functionParameter.issue.name",
5584
+ detail: "formula.functionList.ODDFYIELD.functionParameter.issue.detail",
5585
+ example: '"2008-10-15"',
5586
+ require: 1,
5587
+ repeat: 0
5588
+ },
5589
+ {
5590
+ name: "formula.functionList.ODDFYIELD.functionParameter.firstCoupon.name",
5591
+ detail: "formula.functionList.ODDFYIELD.functionParameter.firstCoupon.detail",
5592
+ example: '"2009-3-1"',
5593
+ require: 1,
5594
+ repeat: 0
5595
+ },
5596
+ {
5597
+ name: "formula.functionList.ODDFYIELD.functionParameter.rate.name",
5598
+ detail: "formula.functionList.ODDFYIELD.functionParameter.rate.detail",
5599
+ example: "0.0575",
5575
5600
  require: 1,
5576
5601
  repeat: 0
5602
+ },
5603
+ {
5604
+ name: "formula.functionList.ODDFYIELD.functionParameter.pr.name",
5605
+ detail: "formula.functionList.ODDFYIELD.functionParameter.pr.detail",
5606
+ example: "84.5",
5607
+ require: 1,
5608
+ repeat: 0
5609
+ },
5610
+ {
5611
+ name: "formula.functionList.ODDFYIELD.functionParameter.redemption.name",
5612
+ detail: "formula.functionList.ODDFYIELD.functionParameter.redemption.detail",
5613
+ example: "100",
5614
+ require: 1,
5615
+ repeat: 0
5616
+ },
5617
+ {
5618
+ name: "formula.functionList.ODDFYIELD.functionParameter.frequency.name",
5619
+ detail: "formula.functionList.ODDFYIELD.functionParameter.frequency.detail",
5620
+ example: "2",
5621
+ require: 1,
5622
+ repeat: 0
5623
+ },
5624
+ {
5625
+ name: "formula.functionList.ODDFYIELD.functionParameter.basis.name",
5626
+ detail: "formula.functionList.ODDFYIELD.functionParameter.basis.detail",
5627
+ example: "0",
5628
+ require: 0,
5629
+ repeat: 0
5577
5630
  }
5578
5631
  ]
5579
5632
  },
@@ -5584,18 +5637,60 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5584
5637
  abstract: "formula.functionList.ODDLPRICE.abstract",
5585
5638
  functionParameter: [
5586
5639
  {
5587
- name: "formula.functionList.ODDLPRICE.functionParameter.number1.name",
5588
- detail: "formula.functionList.ODDLPRICE.functionParameter.number1.detail",
5589
- example: "A1:A20",
5640
+ name: "formula.functionList.ODDLPRICE.functionParameter.settlement.name",
5641
+ detail: "formula.functionList.ODDLPRICE.functionParameter.settlement.detail",
5642
+ example: '"2008-11-11"',
5590
5643
  require: 1,
5591
5644
  repeat: 0
5592
5645
  },
5593
5646
  {
5594
- name: "formula.functionList.ODDLPRICE.functionParameter.number2.name",
5595
- detail: "formula.functionList.ODDLPRICE.functionParameter.number2.detail",
5596
- example: "A1:A20",
5647
+ name: "formula.functionList.ODDLPRICE.functionParameter.maturity.name",
5648
+ detail: "formula.functionList.ODDLPRICE.functionParameter.maturity.detail",
5649
+ example: '"2021-3-1"',
5650
+ require: 1,
5651
+ repeat: 0
5652
+ },
5653
+ {
5654
+ name: "formula.functionList.ODDLPRICE.functionParameter.lastInterest.name",
5655
+ detail: "formula.functionList.ODDLPRICE.functionParameter.lastInterest.detail",
5656
+ example: '"2009-3-1"',
5657
+ require: 1,
5658
+ repeat: 0
5659
+ },
5660
+ {
5661
+ name: "formula.functionList.ODDLPRICE.functionParameter.rate.name",
5662
+ detail: "formula.functionList.ODDLPRICE.functionParameter.rate.detail",
5663
+ example: "0.0785",
5664
+ require: 1,
5665
+ repeat: 0
5666
+ },
5667
+ {
5668
+ name: "formula.functionList.ODDLPRICE.functionParameter.yld.name",
5669
+ detail: "formula.functionList.ODDLPRICE.functionParameter.yld.detail",
5670
+ example: "0.0625",
5671
+ require: 1,
5672
+ repeat: 0
5673
+ },
5674
+ {
5675
+ name: "formula.functionList.ODDLPRICE.functionParameter.redemption.name",
5676
+ detail: "formula.functionList.ODDLPRICE.functionParameter.redemption.detail",
5677
+ example: "100",
5678
+ require: 1,
5679
+ repeat: 0
5680
+ },
5681
+ {
5682
+ name: "formula.functionList.ODDLPRICE.functionParameter.frequency.name",
5683
+ detail: "formula.functionList.ODDLPRICE.functionParameter.frequency.detail",
5684
+ example: "2",
5597
5685
  require: 1,
5598
5686
  repeat: 0
5687
+ },
5688
+ {
5689
+ name: "formula.functionList.ODDLPRICE.functionParameter.basis.name",
5690
+ detail: "formula.functionList.ODDLPRICE.functionParameter.basis.detail",
5691
+ example: "1",
5692
+ require: 0,
5693
+ repeat: 0
5599
5694
  }
5600
5695
  ]
5601
5696
  },
@@ -5606,17 +5701,59 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5606
5701
  abstract: "formula.functionList.ODDLYIELD.abstract",
5607
5702
  functionParameter: [
5608
5703
  {
5609
- name: "formula.functionList.ODDLYIELD.functionParameter.number1.name",
5610
- detail: "formula.functionList.ODDLYIELD.functionParameter.number1.detail",
5611
- example: "A1:A20",
5704
+ name: "formula.functionList.ODDLYIELD.functionParameter.settlement.name",
5705
+ detail: "formula.functionList.ODDLYIELD.functionParameter.settlement.detail",
5706
+ example: '"2008-11-11"',
5707
+ require: 1,
5708
+ repeat: 0
5709
+ },
5710
+ {
5711
+ name: "formula.functionList.ODDLYIELD.functionParameter.maturity.name",
5712
+ detail: "formula.functionList.ODDLYIELD.functionParameter.maturity.detail",
5713
+ example: '"2021-3-1"',
5714
+ require: 1,
5715
+ repeat: 0
5716
+ },
5717
+ {
5718
+ name: "formula.functionList.ODDLYIELD.functionParameter.lastInterest.name",
5719
+ detail: "formula.functionList.ODDLYIELD.functionParameter.lastInterest.detail",
5720
+ example: '"2008-10-15"',
5721
+ require: 1,
5722
+ repeat: 0
5723
+ },
5724
+ {
5725
+ name: "formula.functionList.ODDLYIELD.functionParameter.rate.name",
5726
+ detail: "formula.functionList.ODDLYIELD.functionParameter.rate.detail",
5727
+ example: "0.0575",
5728
+ require: 1,
5729
+ repeat: 0
5730
+ },
5731
+ {
5732
+ name: "formula.functionList.ODDLYIELD.functionParameter.pr.name",
5733
+ detail: "formula.functionList.ODDLYIELD.functionParameter.pr.detail",
5734
+ example: "84.5",
5735
+ require: 1,
5736
+ repeat: 0
5737
+ },
5738
+ {
5739
+ name: "formula.functionList.ODDLYIELD.functionParameter.redemption.name",
5740
+ detail: "formula.functionList.ODDLYIELD.functionParameter.redemption.detail",
5741
+ example: "100",
5742
+ require: 1,
5743
+ repeat: 0
5744
+ },
5745
+ {
5746
+ name: "formula.functionList.ODDLYIELD.functionParameter.frequency.name",
5747
+ detail: "formula.functionList.ODDLYIELD.functionParameter.frequency.detail",
5748
+ example: "2",
5612
5749
  require: 1,
5613
5750
  repeat: 0
5614
5751
  },
5615
5752
  {
5616
- name: "formula.functionList.ODDLYIELD.functionParameter.number2.name",
5617
- detail: "formula.functionList.ODDLYIELD.functionParameter.number2.detail",
5618
- example: "A1:A20",
5619
- require: 1,
5753
+ name: "formula.functionList.ODDLYIELD.functionParameter.basis.name",
5754
+ detail: "formula.functionList.ODDLYIELD.functionParameter.basis.detail",
5755
+ example: "0",
5756
+ require: 0,
5620
5757
  repeat: 0
5621
5758
  }
5622
5759
  ]
@@ -5628,16 +5765,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5628
5765
  abstract: "formula.functionList.PDURATION.abstract",
5629
5766
  functionParameter: [
5630
5767
  {
5631
- name: "formula.functionList.PDURATION.functionParameter.number1.name",
5632
- detail: "formula.functionList.PDURATION.functionParameter.number1.detail",
5633
- example: "A1:A20",
5768
+ name: "formula.functionList.PDURATION.functionParameter.rate.name",
5769
+ detail: "formula.functionList.PDURATION.functionParameter.rate.detail",
5770
+ example: "0.025",
5634
5771
  require: 1,
5635
5772
  repeat: 0
5636
5773
  },
5637
5774
  {
5638
- name: "formula.functionList.PDURATION.functionParameter.number2.name",
5639
- detail: "formula.functionList.PDURATION.functionParameter.number2.detail",
5640
- example: "A1:A20",
5775
+ name: "formula.functionList.PDURATION.functionParameter.pv.name",
5776
+ detail: "formula.functionList.PDURATION.functionParameter.pv.detail",
5777
+ example: "2000",
5778
+ require: 1,
5779
+ repeat: 0
5780
+ },
5781
+ {
5782
+ name: "formula.functionList.PDURATION.functionParameter.fv.name",
5783
+ detail: "formula.functionList.PDURATION.functionParameter.fv.detail",
5784
+ example: "2200",
5641
5785
  require: 1,
5642
5786
  repeat: 0
5643
5787
  }
@@ -5743,18 +5887,53 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5743
5887
  abstract: "formula.functionList.PRICE.abstract",
5744
5888
  functionParameter: [
5745
5889
  {
5746
- name: "formula.functionList.PRICE.functionParameter.number1.name",
5747
- detail: "formula.functionList.PRICE.functionParameter.number1.detail",
5748
- example: "A1:A20",
5890
+ name: "formula.functionList.PRICE.functionParameter.settlement.name",
5891
+ detail: "formula.functionList.PRICE.functionParameter.settlement.detail",
5892
+ example: '"2008-11-11"',
5749
5893
  require: 1,
5750
5894
  repeat: 0
5751
5895
  },
5752
5896
  {
5753
- name: "formula.functionList.PRICE.functionParameter.number2.name",
5754
- detail: "formula.functionList.PRICE.functionParameter.number2.detail",
5755
- example: "A1:A20",
5897
+ name: "formula.functionList.PRICE.functionParameter.maturity.name",
5898
+ detail: "formula.functionList.PRICE.functionParameter.maturity.detail",
5899
+ example: '"2021-3-1"',
5900
+ require: 1,
5901
+ repeat: 0
5902
+ },
5903
+ {
5904
+ name: "formula.functionList.PRICE.functionParameter.rate.name",
5905
+ detail: "formula.functionList.PRICE.functionParameter.rate.detail",
5906
+ example: "0.0785",
5756
5907
  require: 1,
5757
5908
  repeat: 0
5909
+ },
5910
+ {
5911
+ name: "formula.functionList.PRICE.functionParameter.yld.name",
5912
+ detail: "formula.functionList.PRICE.functionParameter.yld.detail",
5913
+ example: "0.0625",
5914
+ require: 1,
5915
+ repeat: 0
5916
+ },
5917
+ {
5918
+ name: "formula.functionList.PRICE.functionParameter.redemption.name",
5919
+ detail: "formula.functionList.PRICE.functionParameter.redemption.detail",
5920
+ example: "100",
5921
+ require: 1,
5922
+ repeat: 0
5923
+ },
5924
+ {
5925
+ name: "formula.functionList.PRICE.functionParameter.frequency.name",
5926
+ detail: "formula.functionList.PRICE.functionParameter.frequency.detail",
5927
+ example: "2",
5928
+ require: 1,
5929
+ repeat: 0
5930
+ },
5931
+ {
5932
+ name: "formula.functionList.PRICE.functionParameter.basis.name",
5933
+ detail: "formula.functionList.PRICE.functionParameter.basis.detail",
5934
+ example: "1",
5935
+ require: 0,
5936
+ repeat: 0
5758
5937
  }
5759
5938
  ]
5760
5939
  },
@@ -5765,18 +5944,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5765
5944
  abstract: "formula.functionList.PRICEDISC.abstract",
5766
5945
  functionParameter: [
5767
5946
  {
5768
- name: "formula.functionList.PRICEDISC.functionParameter.number1.name",
5769
- detail: "formula.functionList.PRICEDISC.functionParameter.number1.detail",
5770
- example: "A1:A20",
5947
+ name: "formula.functionList.PRICEDISC.functionParameter.settlement.name",
5948
+ detail: "formula.functionList.PRICEDISC.functionParameter.settlement.detail",
5949
+ example: '"2008-11-11"',
5771
5950
  require: 1,
5772
5951
  repeat: 0
5773
5952
  },
5774
5953
  {
5775
- name: "formula.functionList.PRICEDISC.functionParameter.number2.name",
5776
- detail: "formula.functionList.PRICEDISC.functionParameter.number2.detail",
5777
- example: "A1:A20",
5954
+ name: "formula.functionList.PRICEDISC.functionParameter.maturity.name",
5955
+ detail: "formula.functionList.PRICEDISC.functionParameter.maturity.detail",
5956
+ example: '"2021-3-1"',
5957
+ require: 1,
5958
+ repeat: 0
5959
+ },
5960
+ {
5961
+ name: "formula.functionList.PRICEDISC.functionParameter.discount.name",
5962
+ detail: "formula.functionList.PRICEDISC.functionParameter.discount.detail",
5963
+ example: "0.0625",
5964
+ require: 1,
5965
+ repeat: 0
5966
+ },
5967
+ {
5968
+ name: "formula.functionList.PRICEDISC.functionParameter.redemption.name",
5969
+ detail: "formula.functionList.PRICEDISC.functionParameter.redemption.detail",
5970
+ example: "100",
5778
5971
  require: 1,
5779
5972
  repeat: 0
5973
+ },
5974
+ {
5975
+ name: "formula.functionList.PRICEDISC.functionParameter.basis.name",
5976
+ detail: "formula.functionList.PRICEDISC.functionParameter.basis.detail",
5977
+ example: "1",
5978
+ require: 0,
5979
+ repeat: 0
5780
5980
  }
5781
5981
  ]
5782
5982
  },
@@ -5787,18 +5987,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5787
5987
  abstract: "formula.functionList.PRICEMAT.abstract",
5788
5988
  functionParameter: [
5789
5989
  {
5790
- name: "formula.functionList.PRICEMAT.functionParameter.number1.name",
5791
- detail: "formula.functionList.PRICEMAT.functionParameter.number1.detail",
5792
- example: "A1:A20",
5990
+ name: "formula.functionList.PRICEMAT.functionParameter.settlement.name",
5991
+ detail: "formula.functionList.PRICEMAT.functionParameter.settlement.detail",
5992
+ example: '"2008-11-11"',
5793
5993
  require: 1,
5794
5994
  repeat: 0
5795
5995
  },
5796
5996
  {
5797
- name: "formula.functionList.PRICEMAT.functionParameter.number2.name",
5798
- detail: "formula.functionList.PRICEMAT.functionParameter.number2.detail",
5799
- example: "A1:A20",
5997
+ name: "formula.functionList.PRICEMAT.functionParameter.maturity.name",
5998
+ detail: "formula.functionList.PRICEMAT.functionParameter.maturity.detail",
5999
+ example: '"2021-3-1"',
6000
+ require: 1,
6001
+ repeat: 0
6002
+ },
6003
+ {
6004
+ name: "formula.functionList.PRICEMAT.functionParameter.issue.name",
6005
+ detail: "formula.functionList.PRICEMAT.functionParameter.issue.detail",
6006
+ example: '"2008-10-15"',
6007
+ require: 1,
6008
+ repeat: 0
6009
+ },
6010
+ {
6011
+ name: "formula.functionList.PRICEMAT.functionParameter.rate.name",
6012
+ detail: "formula.functionList.PRICEMAT.functionParameter.rate.detail",
6013
+ example: "0.0785",
6014
+ require: 1,
6015
+ repeat: 0
6016
+ },
6017
+ {
6018
+ name: "formula.functionList.PRICEMAT.functionParameter.yld.name",
6019
+ detail: "formula.functionList.PRICEMAT.functionParameter.yld.detail",
6020
+ example: "0.0625",
5800
6021
  require: 1,
5801
6022
  repeat: 0
6023
+ },
6024
+ {
6025
+ name: "formula.functionList.PRICEMAT.functionParameter.basis.name",
6026
+ detail: "formula.functionList.PRICEMAT.functionParameter.basis.detail",
6027
+ example: "1",
6028
+ require: 0,
6029
+ repeat: 0
5802
6030
  }
5803
6031
  ]
5804
6032
  },
@@ -5902,18 +6130,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5902
6130
  abstract: "formula.functionList.RECEIVED.abstract",
5903
6131
  functionParameter: [
5904
6132
  {
5905
- name: "formula.functionList.RECEIVED.functionParameter.number1.name",
5906
- detail: "formula.functionList.RECEIVED.functionParameter.number1.detail",
5907
- example: "A1:A20",
6133
+ name: "formula.functionList.RECEIVED.functionParameter.settlement.name",
6134
+ detail: "formula.functionList.RECEIVED.functionParameter.settlement.detail",
6135
+ example: '"2008-2-15"',
5908
6136
  require: 1,
5909
6137
  repeat: 0
5910
6138
  },
5911
6139
  {
5912
- name: "formula.functionList.RECEIVED.functionParameter.number2.name",
5913
- detail: "formula.functionList.RECEIVED.functionParameter.number2.detail",
5914
- example: "A1:A20",
6140
+ name: "formula.functionList.RECEIVED.functionParameter.maturity.name",
6141
+ detail: "formula.functionList.RECEIVED.functionParameter.maturity.detail",
6142
+ example: '"2008-3-15"',
6143
+ require: 1,
6144
+ repeat: 0
6145
+ },
6146
+ {
6147
+ name: "formula.functionList.RECEIVED.functionParameter.investment.name",
6148
+ detail: "formula.functionList.RECEIVED.functionParameter.investment.detail",
6149
+ example: "10000000",
6150
+ require: 1,
6151
+ repeat: 0
6152
+ },
6153
+ {
6154
+ name: "formula.functionList.RECEIVED.functionParameter.discount.name",
6155
+ detail: "formula.functionList.RECEIVED.functionParameter.discount.detail",
6156
+ example: "0.0575",
5915
6157
  require: 1,
5916
6158
  repeat: 0
6159
+ },
6160
+ {
6161
+ name: "formula.functionList.RECEIVED.functionParameter.basis.name",
6162
+ detail: "formula.functionList.RECEIVED.functionParameter.basis.detail",
6163
+ example: "2",
6164
+ require: 0,
6165
+ repeat: 0
5917
6166
  }
5918
6167
  ]
5919
6168
  },
@@ -5924,16 +6173,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5924
6173
  abstract: "formula.functionList.RRI.abstract",
5925
6174
  functionParameter: [
5926
6175
  {
5927
- name: "formula.functionList.RRI.functionParameter.number1.name",
5928
- detail: "formula.functionList.RRI.functionParameter.number1.detail",
5929
- example: "A1:A20",
6176
+ name: "formula.functionList.RRI.functionParameter.nper.name",
6177
+ detail: "formula.functionList.RRI.functionParameter.nper.detail",
6178
+ example: "96",
5930
6179
  require: 1,
5931
6180
  repeat: 0
5932
6181
  },
5933
6182
  {
5934
- name: "formula.functionList.RRI.functionParameter.number2.name",
5935
- detail: "formula.functionList.RRI.functionParameter.number2.detail",
5936
- example: "A1:A20",
6183
+ name: "formula.functionList.RRI.functionParameter.pv.name",
6184
+ detail: "formula.functionList.RRI.functionParameter.pv.detail",
6185
+ example: "10000",
6186
+ require: 1,
6187
+ repeat: 0
6188
+ },
6189
+ {
6190
+ name: "formula.functionList.RRI.functionParameter.fv.name",
6191
+ detail: "formula.functionList.RRI.functionParameter.fv.detail",
6192
+ example: "11000",
5937
6193
  require: 1,
5938
6194
  repeat: 0
5939
6195
  }
@@ -5946,16 +6202,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5946
6202
  abstract: "formula.functionList.SLN.abstract",
5947
6203
  functionParameter: [
5948
6204
  {
5949
- name: "formula.functionList.SLN.functionParameter.number1.name",
5950
- detail: "formula.functionList.SLN.functionParameter.number1.detail",
5951
- example: "A1:A20",
6205
+ name: "formula.functionList.SLN.functionParameter.cost.name",
6206
+ detail: "formula.functionList.SLN.functionParameter.cost.detail",
6207
+ example: "300000",
5952
6208
  require: 1,
5953
6209
  repeat: 0
5954
6210
  },
5955
6211
  {
5956
- name: "formula.functionList.SLN.functionParameter.number2.name",
5957
- detail: "formula.functionList.SLN.functionParameter.number2.detail",
5958
- example: "A1:A20",
6212
+ name: "formula.functionList.SLN.functionParameter.salvage.name",
6213
+ detail: "formula.functionList.SLN.functionParameter.salvage.detail",
6214
+ example: "75000",
6215
+ require: 1,
6216
+ repeat: 0
6217
+ },
6218
+ {
6219
+ name: "formula.functionList.SLN.functionParameter.life.name",
6220
+ detail: "formula.functionList.SLN.functionParameter.life.detail",
6221
+ example: "10",
5959
6222
  require: 1,
5960
6223
  repeat: 0
5961
6224
  }
@@ -5968,16 +6231,30 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5968
6231
  abstract: "formula.functionList.SYD.abstract",
5969
6232
  functionParameter: [
5970
6233
  {
5971
- name: "formula.functionList.SYD.functionParameter.number1.name",
5972
- detail: "formula.functionList.SYD.functionParameter.number1.detail",
5973
- example: "A1:A20",
6234
+ name: "formula.functionList.SYD.functionParameter.cost.name",
6235
+ detail: "formula.functionList.SYD.functionParameter.cost.detail",
6236
+ example: "300000",
5974
6237
  require: 1,
5975
6238
  repeat: 0
5976
6239
  },
5977
6240
  {
5978
- name: "formula.functionList.SYD.functionParameter.number2.name",
5979
- detail: "formula.functionList.SYD.functionParameter.number2.detail",
5980
- example: "A1:A20",
6241
+ name: "formula.functionList.SYD.functionParameter.salvage.name",
6242
+ detail: "formula.functionList.SYD.functionParameter.salvage.detail",
6243
+ example: "75000",
6244
+ require: 1,
6245
+ repeat: 0
6246
+ },
6247
+ {
6248
+ name: "formula.functionList.SYD.functionParameter.life.name",
6249
+ detail: "formula.functionList.SYD.functionParameter.life.detail",
6250
+ example: "10",
6251
+ require: 1,
6252
+ repeat: 0
6253
+ },
6254
+ {
6255
+ name: "formula.functionList.SYD.functionParameter.per.name",
6256
+ detail: "formula.functionList.SYD.functionParameter.per.detail",
6257
+ example: "10",
5981
6258
  require: 1,
5982
6259
  repeat: 0
5983
6260
  }
@@ -5990,16 +6267,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
5990
6267
  abstract: "formula.functionList.TBILLEQ.abstract",
5991
6268
  functionParameter: [
5992
6269
  {
5993
- name: "formula.functionList.TBILLEQ.functionParameter.number1.name",
5994
- detail: "formula.functionList.TBILLEQ.functionParameter.number1.detail",
5995
- example: "A1:A20",
6270
+ name: "formula.functionList.TBILLEQ.functionParameter.settlement.name",
6271
+ detail: "formula.functionList.TBILLEQ.functionParameter.settlement.detail",
6272
+ example: '"2008-3-31"',
5996
6273
  require: 1,
5997
6274
  repeat: 0
5998
6275
  },
5999
6276
  {
6000
- name: "formula.functionList.TBILLEQ.functionParameter.number2.name",
6001
- detail: "formula.functionList.TBILLEQ.functionParameter.number2.detail",
6002
- example: "A1:A20",
6277
+ name: "formula.functionList.TBILLEQ.functionParameter.maturity.name",
6278
+ detail: "formula.functionList.TBILLEQ.functionParameter.maturity.detail",
6279
+ example: '"2008-6-1"',
6280
+ require: 1,
6281
+ repeat: 0
6282
+ },
6283
+ {
6284
+ name: "formula.functionList.TBILLEQ.functionParameter.discount.name",
6285
+ detail: "formula.functionList.TBILLEQ.functionParameter.discount.detail",
6286
+ example: "0.0914",
6003
6287
  require: 1,
6004
6288
  repeat: 0
6005
6289
  }
@@ -6012,16 +6296,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6012
6296
  abstract: "formula.functionList.TBILLPRICE.abstract",
6013
6297
  functionParameter: [
6014
6298
  {
6015
- name: "formula.functionList.TBILLPRICE.functionParameter.number1.name",
6016
- detail: "formula.functionList.TBILLPRICE.functionParameter.number1.detail",
6017
- example: "A1:A20",
6299
+ name: "formula.functionList.TBILLPRICE.functionParameter.settlement.name",
6300
+ detail: "formula.functionList.TBILLPRICE.functionParameter.settlement.detail",
6301
+ example: '"2008-3-31"',
6018
6302
  require: 1,
6019
6303
  repeat: 0
6020
6304
  },
6021
6305
  {
6022
- name: "formula.functionList.TBILLPRICE.functionParameter.number2.name",
6023
- detail: "formula.functionList.TBILLPRICE.functionParameter.number2.detail",
6024
- example: "A1:A20",
6306
+ name: "formula.functionList.TBILLPRICE.functionParameter.maturity.name",
6307
+ detail: "formula.functionList.TBILLPRICE.functionParameter.maturity.detail",
6308
+ example: '"2008-6-1"',
6309
+ require: 1,
6310
+ repeat: 0
6311
+ },
6312
+ {
6313
+ name: "formula.functionList.TBILLPRICE.functionParameter.discount.name",
6314
+ detail: "formula.functionList.TBILLPRICE.functionParameter.discount.detail",
6315
+ example: "0.0914",
6025
6316
  require: 1,
6026
6317
  repeat: 0
6027
6318
  }
@@ -6034,16 +6325,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6034
6325
  abstract: "formula.functionList.TBILLYIELD.abstract",
6035
6326
  functionParameter: [
6036
6327
  {
6037
- name: "formula.functionList.TBILLYIELD.functionParameter.number1.name",
6038
- detail: "formula.functionList.TBILLYIELD.functionParameter.number1.detail",
6039
- example: "A1:A20",
6328
+ name: "formula.functionList.TBILLYIELD.functionParameter.settlement.name",
6329
+ detail: "formula.functionList.TBILLYIELD.functionParameter.settlement.detail",
6330
+ example: '"2008-3-31"',
6040
6331
  require: 1,
6041
6332
  repeat: 0
6042
6333
  },
6043
6334
  {
6044
- name: "formula.functionList.TBILLYIELD.functionParameter.number2.name",
6045
- detail: "formula.functionList.TBILLYIELD.functionParameter.number2.detail",
6046
- example: "A1:A20",
6335
+ name: "formula.functionList.TBILLYIELD.functionParameter.maturity.name",
6336
+ detail: "formula.functionList.TBILLYIELD.functionParameter.maturity.detail",
6337
+ example: '"2008-6-1"',
6338
+ require: 1,
6339
+ repeat: 0
6340
+ },
6341
+ {
6342
+ name: "formula.functionList.TBILLYIELD.functionParameter.pr.name",
6343
+ detail: "formula.functionList.TBILLYIELD.functionParameter.pr.detail",
6344
+ example: "98.45",
6047
6345
  require: 1,
6048
6346
  repeat: 0
6049
6347
  }
@@ -6056,18 +6354,53 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6056
6354
  abstract: "formula.functionList.VDB.abstract",
6057
6355
  functionParameter: [
6058
6356
  {
6059
- name: "formula.functionList.VDB.functionParameter.number1.name",
6060
- detail: "formula.functionList.VDB.functionParameter.number1.detail",
6061
- example: "A1:A20",
6357
+ name: "formula.functionList.VDB.functionParameter.cost.name",
6358
+ detail: "formula.functionList.VDB.functionParameter.cost.detail",
6359
+ example: "2400",
6062
6360
  require: 1,
6063
6361
  repeat: 0
6064
6362
  },
6065
6363
  {
6066
- name: "formula.functionList.VDB.functionParameter.number2.name",
6067
- detail: "formula.functionList.VDB.functionParameter.number2.detail",
6068
- example: "A1:A20",
6364
+ name: "formula.functionList.VDB.functionParameter.salvage.name",
6365
+ detail: "formula.functionList.VDB.functionParameter.salvage.detail",
6366
+ example: "300",
6367
+ require: 1,
6368
+ repeat: 0
6369
+ },
6370
+ {
6371
+ name: "formula.functionList.VDB.functionParameter.life.name",
6372
+ detail: "formula.functionList.VDB.functionParameter.life.detail",
6373
+ example: "10",
6374
+ require: 1,
6375
+ repeat: 0
6376
+ },
6377
+ {
6378
+ name: "formula.functionList.VDB.functionParameter.startPeriod.name",
6379
+ detail: "formula.functionList.VDB.functionParameter.startPeriod.detail",
6380
+ example: "1",
6381
+ require: 1,
6382
+ repeat: 0
6383
+ },
6384
+ {
6385
+ name: "formula.functionList.VDB.functionParameter.endPeriod.name",
6386
+ detail: "formula.functionList.VDB.functionParameter.endPeriod.detail",
6387
+ example: "2",
6069
6388
  require: 1,
6070
6389
  repeat: 0
6390
+ },
6391
+ {
6392
+ name: "formula.functionList.VDB.functionParameter.factor.name",
6393
+ detail: "formula.functionList.VDB.functionParameter.factor.detail",
6394
+ example: "2",
6395
+ require: 0,
6396
+ repeat: 0
6397
+ },
6398
+ {
6399
+ name: "formula.functionList.VDB.functionParameter.noSwitch.name",
6400
+ detail: "formula.functionList.VDB.functionParameter.noSwitch.detail",
6401
+ example: "false",
6402
+ require: 0,
6403
+ repeat: 0
6071
6404
  }
6072
6405
  ]
6073
6406
  },
@@ -6078,18 +6411,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6078
6411
  abstract: "formula.functionList.XIRR.abstract",
6079
6412
  functionParameter: [
6080
6413
  {
6081
- name: "formula.functionList.XIRR.functionParameter.number1.name",
6082
- detail: "formula.functionList.XIRR.functionParameter.number1.detail",
6083
- example: "A1:A20",
6414
+ name: "formula.functionList.XIRR.functionParameter.values.name",
6415
+ detail: "formula.functionList.XIRR.functionParameter.values.detail",
6416
+ example: "{-10000,2750,4250,3250,2750}",
6084
6417
  require: 1,
6085
6418
  repeat: 0
6086
6419
  },
6087
6420
  {
6088
- name: "formula.functionList.XIRR.functionParameter.number2.name",
6089
- detail: "formula.functionList.XIRR.functionParameter.number2.detail",
6090
- example: "A1:A20",
6421
+ name: "formula.functionList.XIRR.functionParameter.dates.name",
6422
+ detail: "formula.functionList.XIRR.functionParameter.dates.detail",
6423
+ example: "{39448,39508,39751,39859,39904}",
6091
6424
  require: 1,
6092
6425
  repeat: 0
6426
+ },
6427
+ {
6428
+ name: "formula.functionList.XIRR.functionParameter.guess.name",
6429
+ detail: "formula.functionList.XIRR.functionParameter.guess.detail",
6430
+ example: "0.1",
6431
+ require: 0,
6432
+ repeat: 0
6093
6433
  }
6094
6434
  ]
6095
6435
  },
@@ -6100,16 +6440,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6100
6440
  abstract: "formula.functionList.XNPV.abstract",
6101
6441
  functionParameter: [
6102
6442
  {
6103
- name: "formula.functionList.XNPV.functionParameter.number1.name",
6104
- detail: "formula.functionList.XNPV.functionParameter.number1.detail",
6105
- example: "A1:A20",
6443
+ name: "formula.functionList.XNPV.functionParameter.rate.name",
6444
+ detail: "formula.functionList.XNPV.functionParameter.rate.detail",
6445
+ example: "0.1",
6106
6446
  require: 1,
6107
6447
  repeat: 0
6108
6448
  },
6109
6449
  {
6110
- name: "formula.functionList.XNPV.functionParameter.number2.name",
6111
- detail: "formula.functionList.XNPV.functionParameter.number2.detail",
6112
- example: "A1:A20",
6450
+ name: "formula.functionList.XNPV.functionParameter.values.name",
6451
+ detail: "formula.functionList.XNPV.functionParameter.values.detail",
6452
+ example: "{-10000,2750,4250,3250,2750}",
6453
+ require: 1,
6454
+ repeat: 0
6455
+ },
6456
+ {
6457
+ name: "formula.functionList.XNPV.functionParameter.dates.name",
6458
+ detail: "formula.functionList.XNPV.functionParameter.dates.detail",
6459
+ example: "{39448,39508,39751,39859,39904}",
6113
6460
  require: 1,
6114
6461
  repeat: 0
6115
6462
  }
@@ -6122,18 +6469,53 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6122
6469
  abstract: "formula.functionList.YIELD.abstract",
6123
6470
  functionParameter: [
6124
6471
  {
6125
- name: "formula.functionList.YIELD.functionParameter.number1.name",
6126
- detail: "formula.functionList.YIELD.functionParameter.number1.detail",
6127
- example: "A1:A20",
6472
+ name: "formula.functionList.YIELD.functionParameter.settlement.name",
6473
+ detail: "formula.functionList.YIELD.functionParameter.settlement.detail",
6474
+ example: '"2008-11-11"',
6128
6475
  require: 1,
6129
6476
  repeat: 0
6130
6477
  },
6131
6478
  {
6132
- name: "formula.functionList.YIELD.functionParameter.number2.name",
6133
- detail: "formula.functionList.YIELD.functionParameter.number2.detail",
6134
- example: "A1:A20",
6479
+ name: "formula.functionList.YIELD.functionParameter.maturity.name",
6480
+ detail: "formula.functionList.YIELD.functionParameter.maturity.detail",
6481
+ example: '"2021-3-1"',
6482
+ require: 1,
6483
+ repeat: 0
6484
+ },
6485
+ {
6486
+ name: "formula.functionList.YIELD.functionParameter.rate.name",
6487
+ detail: "formula.functionList.YIELD.functionParameter.rate.detail",
6488
+ example: "0.0785",
6489
+ require: 1,
6490
+ repeat: 0
6491
+ },
6492
+ {
6493
+ name: "formula.functionList.YIELD.functionParameter.pr.name",
6494
+ detail: "formula.functionList.YIELD.functionParameter.pr.detail",
6495
+ example: "98.45",
6496
+ require: 1,
6497
+ repeat: 0
6498
+ },
6499
+ {
6500
+ name: "formula.functionList.YIELD.functionParameter.redemption.name",
6501
+ detail: "formula.functionList.YIELD.functionParameter.redemption.detail",
6502
+ example: "100",
6503
+ require: 1,
6504
+ repeat: 0
6505
+ },
6506
+ {
6507
+ name: "formula.functionList.YIELD.functionParameter.frequency.name",
6508
+ detail: "formula.functionList.YIELD.functionParameter.frequency.detail",
6509
+ example: "2",
6135
6510
  require: 1,
6136
6511
  repeat: 0
6512
+ },
6513
+ {
6514
+ name: "formula.functionList.YIELD.functionParameter.basis.name",
6515
+ detail: "formula.functionList.YIELD.functionParameter.basis.detail",
6516
+ example: "1",
6517
+ require: 0,
6518
+ repeat: 0
6137
6519
  }
6138
6520
  ]
6139
6521
  },
@@ -6144,18 +6526,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6144
6526
  abstract: "formula.functionList.YIELDDISC.abstract",
6145
6527
  functionParameter: [
6146
6528
  {
6147
- name: "formula.functionList.YIELDDISC.functionParameter.number1.name",
6148
- detail: "formula.functionList.YIELDDISC.functionParameter.number1.detail",
6149
- example: "A1:A20",
6529
+ name: "formula.functionList.YIELDDISC.functionParameter.settlement.name",
6530
+ detail: "formula.functionList.YIELDDISC.functionParameter.settlement.detail",
6531
+ example: '"2008-11-11"',
6150
6532
  require: 1,
6151
6533
  repeat: 0
6152
6534
  },
6153
6535
  {
6154
- name: "formula.functionList.YIELDDISC.functionParameter.number2.name",
6155
- detail: "formula.functionList.YIELDDISC.functionParameter.number2.detail",
6156
- example: "A1:A20",
6536
+ name: "formula.functionList.YIELDDISC.functionParameter.maturity.name",
6537
+ detail: "formula.functionList.YIELDDISC.functionParameter.maturity.detail",
6538
+ example: '"2021-3-1"',
6539
+ require: 1,
6540
+ repeat: 0
6541
+ },
6542
+ {
6543
+ name: "formula.functionList.YIELDDISC.functionParameter.pr.name",
6544
+ detail: "formula.functionList.YIELDDISC.functionParameter.pr.detail",
6545
+ example: "98.45",
6546
+ require: 1,
6547
+ repeat: 0
6548
+ },
6549
+ {
6550
+ name: "formula.functionList.YIELDDISC.functionParameter.redemption.name",
6551
+ detail: "formula.functionList.YIELDDISC.functionParameter.redemption.detail",
6552
+ example: "100",
6157
6553
  require: 1,
6158
6554
  repeat: 0
6555
+ },
6556
+ {
6557
+ name: "formula.functionList.YIELDDISC.functionParameter.basis.name",
6558
+ detail: "formula.functionList.YIELDDISC.functionParameter.basis.detail",
6559
+ example: "1",
6560
+ require: 0,
6561
+ repeat: 0
6159
6562
  }
6160
6563
  ]
6161
6564
  },
@@ -6166,18 +6569,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
6166
6569
  abstract: "formula.functionList.YIELDMAT.abstract",
6167
6570
  functionParameter: [
6168
6571
  {
6169
- name: "formula.functionList.YIELDMAT.functionParameter.number1.name",
6170
- detail: "formula.functionList.YIELDMAT.functionParameter.number1.detail",
6171
- example: "A1:A20",
6572
+ name: "formula.functionList.YIELDMAT.functionParameter.settlement.name",
6573
+ detail: "formula.functionList.YIELDMAT.functionParameter.settlement.detail",
6574
+ example: '"2008-11-11"',
6172
6575
  require: 1,
6173
6576
  repeat: 0
6174
6577
  },
6175
6578
  {
6176
- name: "formula.functionList.YIELDMAT.functionParameter.number2.name",
6177
- detail: "formula.functionList.YIELDMAT.functionParameter.number2.detail",
6178
- example: "A1:A20",
6579
+ name: "formula.functionList.YIELDMAT.functionParameter.maturity.name",
6580
+ detail: "formula.functionList.YIELDMAT.functionParameter.maturity.detail",
6581
+ example: '"2021-3-1"',
6582
+ require: 1,
6583
+ repeat: 0
6584
+ },
6585
+ {
6586
+ name: "formula.functionList.YIELDMAT.functionParameter.issue.name",
6587
+ detail: "formula.functionList.YIELDMAT.functionParameter.issue.detail",
6588
+ example: '"2008-10-15"',
6589
+ require: 1,
6590
+ repeat: 0
6591
+ },
6592
+ {
6593
+ name: "formula.functionList.YIELDMAT.functionParameter.rate.name",
6594
+ detail: "formula.functionList.YIELDMAT.functionParameter.rate.detail",
6595
+ example: "0.0785",
6596
+ require: 1,
6597
+ repeat: 0
6598
+ },
6599
+ {
6600
+ name: "formula.functionList.YIELDMAT.functionParameter.pr.name",
6601
+ detail: "formula.functionList.YIELDMAT.functionParameter.pr.detail",
6602
+ example: "98.45",
6179
6603
  require: 1,
6180
6604
  repeat: 0
6605
+ },
6606
+ {
6607
+ name: "formula.functionList.YIELDMAT.functionParameter.basis.name",
6608
+ detail: "formula.functionList.YIELDMAT.functionParameter.basis.detail",
6609
+ example: "1",
6610
+ require: 0,
6611
+ repeat: 0
6181
6612
  }
6182
6613
  ]
6183
6614
  }
@@ -11571,18 +12002,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
11571
12002
  abstract: "formula.functionList.RANK_AVG.abstract",
11572
12003
  functionParameter: [
11573
12004
  {
11574
- name: "formula.functionList.RANK_AVG.functionParameter.number1.name",
11575
- detail: "formula.functionList.RANK_AVG.functionParameter.number1.detail",
11576
- example: "A1:A20",
12005
+ name: "formula.functionList.RANK_AVG.functionParameter.number.name",
12006
+ detail: "formula.functionList.RANK_AVG.functionParameter.number.detail",
12007
+ example: "A3",
11577
12008
  require: 1,
11578
12009
  repeat: 0
11579
12010
  },
11580
12011
  {
11581
- name: "formula.functionList.RANK_AVG.functionParameter.number2.name",
11582
- detail: "formula.functionList.RANK_AVG.functionParameter.number2.detail",
11583
- example: "A1:A20",
12012
+ name: "formula.functionList.RANK_AVG.functionParameter.ref.name",
12013
+ detail: "formula.functionList.RANK_AVG.functionParameter.ref.detail",
12014
+ example: "A2:A6",
11584
12015
  require: 1,
11585
12016
  repeat: 0
12017
+ },
12018
+ {
12019
+ name: "formula.functionList.RANK_AVG.functionParameter.order.name",
12020
+ detail: "formula.functionList.RANK_AVG.functionParameter.order.detail",
12021
+ example: "1",
12022
+ require: 0,
12023
+ repeat: 0
11586
12024
  }
11587
12025
  ]
11588
12026
  },
@@ -11593,18 +12031,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
11593
12031
  abstract: "formula.functionList.RANK_EQ.abstract",
11594
12032
  functionParameter: [
11595
12033
  {
11596
- name: "formula.functionList.RANK_EQ.functionParameter.number1.name",
11597
- detail: "formula.functionList.RANK_EQ.functionParameter.number1.detail",
11598
- example: "A1:A20",
12034
+ name: "formula.functionList.RANK_EQ.functionParameter.number.name",
12035
+ detail: "formula.functionList.RANK_EQ.functionParameter.number.detail",
12036
+ example: "A3",
11599
12037
  require: 1,
11600
12038
  repeat: 0
11601
12039
  },
11602
12040
  {
11603
- name: "formula.functionList.RANK_EQ.functionParameter.number2.name",
11604
- detail: "formula.functionList.RANK_EQ.functionParameter.number2.detail",
11605
- example: "A1:A20",
12041
+ name: "formula.functionList.RANK_EQ.functionParameter.ref.name",
12042
+ detail: "formula.functionList.RANK_EQ.functionParameter.ref.detail",
12043
+ example: "A2:A6",
11606
12044
  require: 1,
11607
12045
  repeat: 0
12046
+ },
12047
+ {
12048
+ name: "formula.functionList.RANK_EQ.functionParameter.order.name",
12049
+ detail: "formula.functionList.RANK_EQ.functionParameter.order.detail",
12050
+ example: "1",
12051
+ require: 0,
12052
+ repeat: 0
11608
12053
  }
11609
12054
  ]
11610
12055
  },
@@ -13365,17 +13810,17 @@ let DescriptionService = (_a7 = class {
13365
13810
  return this._functionService.getDescriptions().get(searchText.toLocaleUpperCase());
13366
13811
  }
13367
13812
  getSearchListByName(searchText) {
13368
- const searchList = [], functionList = this._functionService.getDescriptions();
13369
- return searchText = searchText.toLocaleUpperCase(), functionList.forEach((item) => {
13813
+ const searchList = [], functionList = this._functionService.getDescriptions(), _searchText = searchText.toLocaleUpperCase().trim();
13814
+ return functionList.forEach((item) => {
13370
13815
  const { functionName, abstract, functionType } = item;
13371
- functionName.toLocaleUpperCase().indexOf(searchText) > -1 && functionType !== FunctionType.DefinedName && searchList.push({ name: functionName, desc: abstract });
13816
+ functionName.toLocaleUpperCase().indexOf(_searchText) > -1 && functionType !== FunctionType.DefinedName && searchList.push({ name: functionName, desc: abstract });
13372
13817
  }), searchList;
13373
13818
  }
13374
13819
  getSearchListByNameFirstLetter(searchText) {
13375
- const searchList = [], functionList = this._functionService.getDescriptions();
13376
- return searchText = searchText.toLocaleUpperCase(), functionList.forEach((item) => {
13820
+ const searchList = [], functionList = this._functionService.getDescriptions(), _searchText = searchText.toLocaleUpperCase().trim();
13821
+ return functionList.forEach((item) => {
13377
13822
  const { functionName, abstract } = item;
13378
- functionName.toLocaleUpperCase().indexOf(searchText) === 0 && searchList.push({ name: functionName, desc: abstract });
13823
+ functionName.toLocaleUpperCase().indexOf(_searchText) === 0 && searchList.push({ name: functionName, desc: abstract });
13379
13824
  }), searchList;
13380
13825
  }
13381
13826
  getSearchListByType(type) {
@@ -15662,16 +16107,16 @@ var __defProp$2 = Object.defineProperty, __getOwnPropDesc$2 = Object.getOwnPrope
15662
16107
  return kind && result && __defProp$2(target, key, result), result;
15663
16108
  }, "__decorateClass$2"), __decorateParam$2 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$2"), _a18;
15664
16109
  let RefSelectionsRenderService = (_a18 = class extends BaseSelectionRenderService {
15665
- constructor(_context, injector, themeService, shortcutService, renderManagerService, _refSelectionsService, _sheetSkeletonManagerService) {
16110
+ constructor(_context, injector, themeService, shortcutService, sheetSkeletonManagerService, _refSelectionsService) {
15666
16111
  super(
15667
16112
  injector,
15668
16113
  themeService,
15669
16114
  shortcutService,
15670
- renderManagerService
16115
+ sheetSkeletonManagerService
15671
16116
  );
15672
16117
  __publicField(this, "_workbookSelections");
15673
16118
  __publicField(this, "_eventDisposables");
15674
- this._context = _context, this._refSelectionsService = _refSelectionsService, this._sheetSkeletonManagerService = _sheetSkeletonManagerService, this._workbookSelections = this._refSelectionsService.getWorkbookSelections(this._context.unitId), this._initSelectionChangeListener(), this._initSkeletonChangeListener(), this._initUserActionSyncListener(), this._setStyle(getDefaultRefSelectionStyle(this._themeService)), this._remainLastEnabled = !0;
16119
+ this._context = _context, this._refSelectionsService = _refSelectionsService, this._workbookSelections = this._refSelectionsService.getWorkbookSelections(this._context.unitId), this._initSelectionChangeListener(), this._initSkeletonChangeListener(), this._initUserActionSyncListener(), this._setSelectionStyle(getDefaultRefSelectionStyle(this._themeService)), this._remainLastEnabled = !0;
15675
16120
  }
15676
16121
  getLocation() {
15677
16122
  return this._skeleton.getLocation();
@@ -15711,17 +16156,27 @@ let RefSelectionsRenderService = (_a18 = class extends BaseSelectionRenderServic
15711
16156
  })), listenerDisposables.add(spreadsheetLeftTopPlaceholder == null ? void 0 : spreadsheetLeftTopPlaceholder.onPointerDown$.subscribeEvent((evt, state) => {
15712
16157
  this._reset();
15713
16158
  const skeleton = this._sheetSkeletonManagerService.getCurrent().skeleton, selectionWithStyle = getAllSelection(skeleton), selectionData = this.attachSelectionWithCoord(selectionWithStyle);
15714
- this._addSelectionControlBySelectionData(selectionData), this.refreshSelectionMoveStart(), evt.button !== 2 && state.stopPropagation();
16159
+ this._addSelectionControlBySelectionData(selectionData), this._selectionMoveStart$.next(this.getSelectionDataWithStyle()), evt.button !== 2 && state.stopPropagation();
15715
16160
  })), listenerDisposables;
15716
16161
  }
16162
+ /**
16163
+ * Update selectionModel in this._workbookSelections by user action in spreadsheet area.
16164
+ */
15717
16165
  _initUserActionSyncListener() {
15718
- this.disposeWithMe(this.selectionMoveEnd$.subscribe((params) => this._updateSelections(params)));
16166
+ this.disposeWithMe(this.selectionMoveStart$.subscribe((selectionDataWithStyle) => {
16167
+ this._updateSelections(selectionDataWithStyle, SelectionMoveType.MOVE_START);
16168
+ })), this.disposeWithMe(this.selectionMoving$.subscribe((selectionDataWithStyle) => {
16169
+ this._updateSelections(selectionDataWithStyle, SelectionMoveType.MOVING);
16170
+ })), this.disposeWithMe(this.selectionMoveEnd$.subscribe((selectionDataWithStyle) => {
16171
+ this._updateSelections(selectionDataWithStyle, SelectionMoveType.MOVE_END);
16172
+ }));
15719
16173
  }
15720
- _updateSelections(selectionDataWithStyleList) {
16174
+ _updateSelections(selectionDataWithStyleList, type) {
15721
16175
  const sheetId = this._context.unit.getActiveSheet().getSheetId();
15722
16176
  selectionDataWithStyleList.length !== 0 && this._workbookSelections.setSelections(
15723
16177
  sheetId,
15724
- selectionDataWithStyleList.map((selectionDataWithStyle) => convertSelectionDataToRange(selectionDataWithStyle))
16178
+ selectionDataWithStyleList.map((selectionDataWithStyle) => convertSelectionDataToRange(selectionDataWithStyle)),
16179
+ type
15725
16180
  );
15726
16181
  }
15727
16182
  _initSelectionChangeListener() {
@@ -15759,13 +16214,12 @@ RefSelectionsRenderService = __decorateClass$2([
15759
16214
  __decorateParam$2(1, Inject(Injector)),
15760
16215
  __decorateParam$2(2, Inject(ThemeService)),
15761
16216
  __decorateParam$2(3, IShortcutService),
15762
- __decorateParam$2(4, IRenderManagerService),
15763
- __decorateParam$2(5, IRefSelectionsService),
15764
- __decorateParam$2(6, Inject(SheetSkeletonManagerService))
16217
+ __decorateParam$2(4, Inject(SheetSkeletonManagerService)),
16218
+ __decorateParam$2(5, IRefSelectionsService)
15765
16219
  ], RefSelectionsRenderService);
15766
16220
  function getDefaultRefSelectionStyle(themeService) {
15767
16221
  const style = getNormalSelectionStyle(themeService);
15768
- return style.strokeDash = 8, style.hasAutoFill = !1, style.hasRowHeader = !1, style.hasColumnHeader = !1, style;
16222
+ return style.hasAutoFill = !1, style.hasRowHeader = !1, style.hasColumnHeader = !1, style.widgets = { tl: !0, tc: !0, tr: !0, ml: !0, mr: !0, bl: !0, bc: !0, br: !0 }, style;
15769
16223
  }
15770
16224
  __name(getDefaultRefSelectionStyle, "getDefaultRefSelectionStyle");
15771
16225
  function getFormulaRefSelectionStyle(themeService, refColor, id) {
@@ -15822,7 +16276,7 @@ let PromptController = (_a19 = class extends Disposable {
15822
16276
  ).with(RefSelectionsRenderService);
15823
16277
  }
15824
16278
  /**
15825
- * If there are multiple sheet instances, we should enable or disable all of them.
16279
+ * For multiple sheet instances.
15826
16280
  */
15827
16281
  get _allSelectionRenderServices() {
15828
16282
  return this._renderManagerService.getAllRenderersOfType(UniverInstanceType.UNIVER_SHEET).map((renderer) => renderer.with(RefSelectionsRenderService));
@@ -15908,13 +16362,14 @@ let PromptController = (_a19 = class extends Disposable {
15908
16362
  const d = new DisposableCollection();
15909
16363
  this.disposeWithMe(this._refSelectionsService.selectionMoveEnd$.subscribe((selections) => {
15910
16364
  if (d.dispose(), selections.length === 0) return;
15911
- this._allSelectionRenderServices.forEach((r) => this._updateRefSelectionStyle(r, this._isSelectionMovingRefSelections)), this._allSelectionRenderServices.map((s) => s.getSelectionControls()).flat().forEach((c) => {
16365
+ this._allSelectionRenderServices.map((s) => s.getSelectionControls()).flat().forEach((c) => {
15912
16366
  c.disableHelperSelection(), d.add(c.selectionMoving$.subscribe((toRange) => this._onSelectionControlChange(toRange, c))), d.add(c.selectionScaling$.subscribe((toRange) => this._onSelectionControlChange(toRange, c))), d.add(c.selectionMoved$.subscribe(() => this._formulaPromptService.disableLockedSelectionChange())), d.add(c.selectionScaled$.subscribe(() => this._formulaPromptService.disableLockedSelectionChange()));
15913
16367
  });
15914
16368
  }));
15915
16369
  }
15916
- // #region - Selecting Mode: user can use cursor to select a range on the canvas and move the selection
15917
- // with keyboard shortcuts
16370
+ /**
16371
+ * For interaction with mouse & keyboard shortcuts on spreadsheet. Not in formula editor.
16372
+ */
15918
16373
  _updateSelecting(selectionsWithStyles, performInsertion = !1) {
15919
16374
  if (selectionsWithStyles.length !== 0 && !(this._editorService.selectionChangingState() && !this._formulaPromptService.isLockedSelectionInsert()) && (this._insertControlSelections(selectionsWithStyles), performInsertion)) {
15920
16375
  const currentSelection = selectionsWithStyles[selectionsWithStyles.length - 1];
@@ -15952,7 +16407,6 @@ let PromptController = (_a19 = class extends Disposable {
15952
16407
  }
15953
16408
  this._arrowMoveActionState = 2, this._previousRangesCount = selections.length;
15954
16409
  }
15955
- // #endregion
15956
16410
  _initAcceptFormula() {
15957
16411
  this.disposeWithMe(
15958
16412
  this._formulaPromptService.acceptFormulaName$.subscribe((formulaString) => {
@@ -16094,7 +16548,7 @@ let PromptController = (_a19 = class extends Disposable {
16094
16548
  const config = this._getCurrentBodyDataStreamAndOffset();
16095
16549
  if (config && isFormulaString(config.dataStream)) {
16096
16550
  this._contextService.setContextValue(FOCUSING_EDITOR_INPUT_FORMULA, !0), this._contextService.setContextValue(DISABLE_NORMAL_SELECTIONS, !0), this._contextService.setContextValue(UNI_DISABLE_CHANGING_FOCUS_KEY, !0);
16097
- const lastSequenceNodes = this._lexerTreeBuilder.sequenceNodesBuilder(config.dataStream.replace(/\r/g, "").replace(/\n/g, "")) || [];
16551
+ const lastSequenceNodes = this._lexerTreeBuilder.sequenceNodesBuilder(config.dataStream) || [];
16098
16552
  this._formulaPromptService.setSequenceNodes(lastSequenceNodes);
16099
16553
  const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
16100
16554
  if (activeRange == null)
@@ -16288,7 +16742,9 @@ let PromptController = (_a19 = class extends Disposable {
16288
16742
  });
16289
16743
  }
16290
16744
  /**
16745
+ * Update Editor formula text in prompt editor by current selection in spreadsheet.
16291
16746
  * Restore the sequenceNode generated by the lexer to the text in the editor, and set the cursor position.
16747
+ *
16292
16748
  * @param sequenceNodes
16293
16749
  * @param textSelectionOffset
16294
16750
  */
@@ -16296,16 +16752,17 @@ let PromptController = (_a19 = class extends Disposable {
16296
16752
  _syncToEditor(sequenceNodes, textSelectionOffset, editorUnitId, canUndo = !0, fromSelection = !0) {
16297
16753
  let dataStream = generateStringWithSequence(sequenceNodes);
16298
16754
  const { textRuns, refSelections } = this._buildTextRuns(sequenceNodes);
16299
- this._isSelectionMovingRefSelections = refSelections;
16755
+ this._isSelectionMovingRefSelections = refSelections, this._allSelectionRenderServices.forEach((r) => this._updateRefSelectionStyle(r, this._isSelectionMovingRefSelections));
16300
16756
  const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
16301
16757
  if (activeRange == null)
16302
16758
  return;
16303
- const { collapsed, style } = activeRange;
16304
16759
  this._currentInsertRefStringIndex = textSelectionOffset, editorUnitId == null && (editorUnitId = this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()), this._fitEditorSize();
16305
16760
  const editor = this._editorService.getEditor(editorUnitId);
16306
16761
  editor != null && editor.isSingleChoice() ? (dataStream = dataStream.split(",")[0], this._selectionRenderService.setSingleSelectionEnabled(!0)) : this._selectionRenderService.setSingleSelectionEnabled(!1);
16307
16762
  let formulaString = dataStream, offset = 1;
16308
- (!editor || !editor.onlyInputRange()) && (formulaString = `${compareToken.EQUALS}${dataStream}`, offset = 0), canUndo ? (this._commandService.executeCommand(ReplaceContentCommand.id, {
16763
+ (!editor || !editor.onlyInputRange()) && (formulaString = `${compareToken.EQUALS}${dataStream}`, offset = 0);
16764
+ const { collapsed, style } = activeRange;
16765
+ canUndo ? (this._commandService.executeCommand(ReplaceContentCommand.id, {
16309
16766
  unitId: editorUnitId,
16310
16767
  body: {
16311
16768
  dataStream: formulaString,
@@ -16419,7 +16876,7 @@ let PromptController = (_a19 = class extends Disposable {
16419
16876
  var _a23;
16420
16877
  const { skeleton } = this._getCurrentUnitIdAndSheetId();
16421
16878
  this._formulaPromptService.enableLockedSelectionChange();
16422
- const id = (_a23 = selectionControl.selectionStyle) == null ? void 0 : _a23.id;
16879
+ const id = (_a23 = selectionControl.currentStyle) == null ? void 0 : _a23.id;
16423
16880
  if (!id || !Tools.isStringNumber(id))
16424
16881
  return;
16425
16882
  let { startRow, endRow, startColumn, endColumn } = toRange;