@univerjs/sheets-formula 0.2.6 → 0.2.8
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.
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +1185 -724
- package/lib/locale/en-US.json +706 -428
- package/lib/locale/ru-RU.json +703 -425
- package/lib/locale/vi-VN.json +2644 -1855
- package/lib/locale/zh-CN.json +750 -472
- package/lib/locale/zh-TW.json +834 -588
- package/lib/types/commands/commands/formula-clipboard.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-function.command.d.ts +0 -1
- package/lib/types/commands/mutations/formula.mutation.d.ts +0 -1
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/commands/operations/editor-formula.operation.d.ts +0 -1
- package/lib/types/commands/operations/help-function.operation.d.ts +0 -1
- package/lib/types/commands/operations/insert-function.operation.d.ts +0 -1
- package/lib/types/commands/operations/more-functions.operation.d.ts +0 -1
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +0 -1
- package/lib/types/commands/operations/search-function.operation.d.ts +0 -1
- package/lib/types/common/selection.d.ts +0 -1
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/controllers/active-dirty.controller.d.ts +0 -1
- package/lib/types/controllers/array-formula-display.controller.d.ts +0 -1
- package/lib/types/controllers/defined-name.controller.d.ts +0 -1
- package/lib/types/controllers/formula-alert-render.controller.d.ts +0 -1
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +0 -1
- package/lib/types/controllers/formula-clipboard.controller.d.ts +0 -1
- package/lib/types/controllers/formula-editor-show.controller.d.ts +0 -1
- package/lib/types/controllers/formula-render.controller.d.ts +0 -1
- package/lib/types/controllers/formula-ui.controller.d.ts +0 -1
- package/lib/types/controllers/menu.d.ts +0 -1
- package/lib/types/controllers/prompt.controller.d.ts +3 -2
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +0 -1
- package/lib/types/controllers/trigger-calculation.controller.d.ts +0 -1
- package/lib/types/controllers/update-formula.controller.d.ts +0 -1
- package/lib/types/controllers/utils/offset-formula-data.d.ts +0 -1
- package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -1
- package/lib/types/controllers/utils/utils.d.ts +0 -1
- package/lib/types/formula-ui-plugin.d.ts +0 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +440 -162
- package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
- package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
- package/lib/types/locale/function-list/engineering/en-US.d.ts +50 -66
- package/lib/types/locale/function-list/engineering/ja-JP.d.ts +50 -66
- package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/engineering/vi-VN.d.ts +50 -66
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +50 -66
- package/lib/types/locale/function-list/engineering/zh-TW.d.ts +50 -66
- package/lib/types/locale/function-list/financial/en-US.d.ts +344 -56
- package/lib/types/locale/function-list/financial/ja-JP.d.ts +344 -56
- package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/financial/vi-VN.d.ts +344 -56
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +344 -56
- package/lib/types/locale/function-list/financial/zh-TW.d.ts +344 -56
- package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
- package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
- package/lib/types/locale/function-list/logical/en-US.d.ts +45 -35
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +45 -35
- package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +45 -35
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +45 -35
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +45 -35
- package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
- package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
- package/lib/types/locale/function-list/math/zh-TW.d.ts +21 -77
- package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -1
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
- package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
- package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +440 -162
- package/lib/types/locale/vi-VN.d.ts +1378 -623
- package/lib/types/locale/zh-CN.d.ts +440 -162
- package/lib/types/locale/zh-TW.d.ts +493 -247
- package/lib/types/services/description.service.d.ts +0 -1
- package/lib/types/services/formula-common.d.ts +0 -1
- package/lib/types/services/formula-ref-range.service.d.ts +0 -1
- package/lib/types/services/function-list/array.d.ts +0 -1
- package/lib/types/services/function-list/compatibility.d.ts +0 -1
- package/lib/types/services/function-list/cube.d.ts +0 -1
- package/lib/types/services/function-list/database.d.ts +0 -1
- package/lib/types/services/function-list/date.d.ts +0 -1
- package/lib/types/services/function-list/engineering.d.ts +0 -1
- package/lib/types/services/function-list/financial.d.ts +0 -1
- package/lib/types/services/function-list/function-list.d.ts +0 -1
- package/lib/types/services/function-list/information.d.ts +0 -1
- package/lib/types/services/function-list/logical.d.ts +0 -1
- package/lib/types/services/function-list/lookup.d.ts +0 -1
- package/lib/types/services/function-list/math.d.ts +0 -1
- package/lib/types/services/function-list/statistical.d.ts +0 -1
- package/lib/types/services/function-list/text.d.ts +0 -1
- package/lib/types/services/function-list/univer.d.ts +0 -1
- package/lib/types/services/function-list/web.d.ts +0 -1
- package/lib/types/services/prompt.service.d.ts +5 -2
- package/lib/types/services/register-function.service.d.ts +0 -1
- package/lib/types/services/register-other-formula.service.d.ts +0 -1
- package/lib/types/services/remote/remote-register-function.service.d.ts +0 -1
- package/lib/types/services/render-services/ref-selections.render-service.d.ts +0 -1
- package/lib/types/services/utils.d.ts +0 -1
- package/lib/types/views/FormulaPromptContainer.d.ts +0 -1
- package/lib/types/views/more-functions/MoreFunctions.d.ts +0 -1
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +0 -1
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +0 -1
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +0 -1
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +0 -1
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +0 -1
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +0 -1
- package/lib/umd/index.js +4 -4
- package/package.json +24 -24
package/lib/es/index.js
CHANGED
|
@@ -2,23 +2,23 @@ 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, 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, FOCUSING_EDITOR_INPUT_FORMULA, getCellInfoInMergeData, AbsoluteRefType, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
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";
|
|
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
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
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";
|
|
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
|
-
import { Subject, throttleTime, combineLatestWith, map, switchMap, of, Observable, merge, filter, bufferTime } from "rxjs";
|
|
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";
|
|
14
14
|
import { Popup, Select, Input, Button } from "@univerjs/design";
|
|
15
15
|
import { ReplaceContentCommand, DocSkeletonManagerService, MoveCursorOperation, TextSelectionManagerService } from "@univerjs/docs";
|
|
16
16
|
const FORMULA_UI_PLUGIN_NAME = "formula-ui";
|
|
17
|
-
var __defProp$
|
|
18
|
-
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
17
|
+
var __defProp$j = Object.defineProperty, __getOwnPropDesc$j = Object.getOwnPropertyDescriptor, __decorateClass$j = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
18
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
19
19
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
20
|
-
return kind && result && __defProp$
|
|
21
|
-
}, "__decorateClass$
|
|
20
|
+
return kind && result && __defProp$j(target, key, result), result;
|
|
21
|
+
}, "__decorateClass$j"), __decorateParam$j = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$j"), _a;
|
|
22
22
|
let ActiveDirtyController = (_a = class extends Disposable {
|
|
23
23
|
constructor(_activeDirtyManagerService, _univerInstanceService, _formulaDataModel, _definedNamesService) {
|
|
24
24
|
super(), this._activeDirtyManagerService = _activeDirtyManagerService, this._univerInstanceService = _univerInstanceService, this._formulaDataModel = _formulaDataModel, this._definedNamesService = _definedNamesService, this._initialize();
|
|
@@ -209,12 +209,12 @@ let ActiveDirtyController = (_a = class extends Disposable {
|
|
|
209
209
|
* All other positions, apart from the top-left corner, need to be marked as dirty.
|
|
210
210
|
*/
|
|
211
211
|
_getDirtyRangesForArrayFormula(unitId, sheetId, cellValue) {
|
|
212
|
-
var
|
|
212
|
+
var _a23, _b;
|
|
213
213
|
const dirtyRanges = [];
|
|
214
214
|
if (cellValue == null)
|
|
215
215
|
return dirtyRanges;
|
|
216
216
|
const cellMatrix = new ObjectMatrix(cellValue), arrayFormulaRange = this._formulaDataModel.getArrayFormulaRange();
|
|
217
|
-
if ((
|
|
217
|
+
if ((_a23 = arrayFormulaRange == null ? void 0 : arrayFormulaRange[unitId]) != null && _a23[sheetId]) {
|
|
218
218
|
const cellRangeData = new ObjectMatrix((_b = arrayFormulaRange == null ? void 0 : arrayFormulaRange[unitId]) == null ? void 0 : _b[sheetId]);
|
|
219
219
|
cellMatrix.forValue((row, column) => {
|
|
220
220
|
cellRangeData.forValue((arrayFormulaRow, arrayFormulaColumn, arrayFormulaRange2) => {
|
|
@@ -237,18 +237,18 @@ let ActiveDirtyController = (_a = class extends Disposable {
|
|
|
237
237
|
return dirtyRanges;
|
|
238
238
|
}
|
|
239
239
|
}, __name(_a, "ActiveDirtyController"), _a);
|
|
240
|
-
ActiveDirtyController = __decorateClass$
|
|
240
|
+
ActiveDirtyController = __decorateClass$j([
|
|
241
241
|
OnLifecycle(LifecycleStages.Ready, ActiveDirtyController),
|
|
242
|
-
__decorateParam$
|
|
243
|
-
__decorateParam$
|
|
244
|
-
__decorateParam$
|
|
245
|
-
__decorateParam$
|
|
242
|
+
__decorateParam$j(0, IActiveDirtyManagerService),
|
|
243
|
+
__decorateParam$j(1, IUniverInstanceService),
|
|
244
|
+
__decorateParam$j(2, Inject(FormulaDataModel)),
|
|
245
|
+
__decorateParam$j(3, IDefinedNamesService)
|
|
246
246
|
], ActiveDirtyController);
|
|
247
|
-
var __defProp$
|
|
248
|
-
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
247
|
+
var __defProp$i = Object.defineProperty, __getOwnPropDesc$i = Object.getOwnPropertyDescriptor, __decorateClass$i = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
248
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
249
249
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
250
|
-
return kind && result && __defProp$
|
|
251
|
-
}, "__decorateClass$
|
|
250
|
+
return kind && result && __defProp$i(target, key, result), result;
|
|
251
|
+
}, "__decorateClass$i"), __decorateParam$i = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$i"), _a2;
|
|
252
252
|
let ArrayFormulaDisplayController = (_a2 = class extends Disposable {
|
|
253
253
|
constructor(_commandService, _sheetInterceptorService, _formulaDataModel, _themeService) {
|
|
254
254
|
super(), this._commandService = _commandService, this._sheetInterceptorService = _sheetInterceptorService, this._formulaDataModel = _formulaDataModel, this._themeService = _themeService, this._initialize();
|
|
@@ -274,36 +274,38 @@ let ArrayFormulaDisplayController = (_a2 = class extends Disposable {
|
|
|
274
274
|
this._sheetInterceptorService.intercept(INTERCEPTOR_POINT.CELL_CONTENT, {
|
|
275
275
|
priority: 100,
|
|
276
276
|
handler: /* @__PURE__ */ __name((cell, location, next) => {
|
|
277
|
-
var
|
|
278
|
-
const { unitId, subUnitId, row, col } = location, arrayFormulaCellData = this._formulaDataModel.getArrayFormulaCellData(), cellData = (_c = (_b = (
|
|
277
|
+
var _a23, _b, _c;
|
|
278
|
+
const { unitId, subUnitId, row, col } = location, arrayFormulaCellData = this._formulaDataModel.getArrayFormulaCellData(), cellData = (_c = (_b = (_a23 = arrayFormulaCellData == null ? void 0 : arrayFormulaCellData[unitId]) == null ? void 0 : _a23[subUnitId]) == null ? void 0 : _b[row]) == null ? void 0 : _c[col];
|
|
279
279
|
return cellData == null ? next(cell) : cellData.v == null && cellData.t == null ? next({
|
|
280
280
|
...cell,
|
|
281
|
-
...cellData,
|
|
282
281
|
v: 0,
|
|
283
282
|
// Default value for empty cell
|
|
284
283
|
t: CellValueType.NUMBER
|
|
285
284
|
}) : (cell == null ? void 0 : cell.t) === CellValueType.NUMBER && typeof (cell == null ? void 0 : cell.v) == "number" ? next({
|
|
286
285
|
...cell,
|
|
287
|
-
...cellData,
|
|
288
286
|
v: stripErrorMargin(cell.v)
|
|
289
|
-
}) : next({
|
|
287
|
+
}) : next({
|
|
288
|
+
...cell,
|
|
289
|
+
v: cellData.v,
|
|
290
|
+
t: cellData.t
|
|
291
|
+
});
|
|
290
292
|
}, "handler")
|
|
291
293
|
})
|
|
292
294
|
);
|
|
293
295
|
}
|
|
294
296
|
}, __name(_a2, "ArrayFormulaDisplayController"), _a2);
|
|
295
|
-
ArrayFormulaDisplayController = __decorateClass$
|
|
297
|
+
ArrayFormulaDisplayController = __decorateClass$i([
|
|
296
298
|
OnLifecycle(LifecycleStages.Ready, ArrayFormulaDisplayController),
|
|
297
|
-
__decorateParam$
|
|
298
|
-
__decorateParam$
|
|
299
|
-
__decorateParam$
|
|
300
|
-
__decorateParam$
|
|
299
|
+
__decorateParam$i(0, ICommandService),
|
|
300
|
+
__decorateParam$i(1, Inject(SheetInterceptorService)),
|
|
301
|
+
__decorateParam$i(2, Inject(FormulaDataModel)),
|
|
302
|
+
__decorateParam$i(3, Inject(ThemeService))
|
|
301
303
|
], ArrayFormulaDisplayController);
|
|
302
|
-
var __defProp$
|
|
303
|
-
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
304
|
+
var __defProp$h = Object.defineProperty, __getOwnPropDesc$h = Object.getOwnPropertyDescriptor, __decorateClass$h = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
305
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
304
306
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
305
|
-
return kind && result && __defProp$
|
|
306
|
-
}, "__decorateClass$
|
|
307
|
+
return kind && result && __defProp$h(target, key, result), result;
|
|
308
|
+
}, "__decorateClass$h"), __decorateParam$h = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$h"), _a3;
|
|
307
309
|
let FormulaAutoFillController = (_a3 = class extends Disposable {
|
|
308
310
|
constructor(_autoFillService, _lexerTreeBuilder) {
|
|
309
311
|
super(), this._autoFillService = _autoFillService, this._lexerTreeBuilder = _lexerTreeBuilder, this._initialize();
|
|
@@ -327,12 +329,12 @@ let FormulaAutoFillController = (_a3 = class extends Disposable {
|
|
|
327
329
|
this._autoFillService.registerRule(formulaRule);
|
|
328
330
|
}
|
|
329
331
|
_fillCopyFormula(data, len, direction, index, copyDataPiece) {
|
|
330
|
-
var
|
|
332
|
+
var _a23, _b;
|
|
331
333
|
const step = getDataLength(copyDataPiece), applyData = [], formulaIdMap = /* @__PURE__ */ new Map();
|
|
332
334
|
for (let i = 1; i <= len; i++) {
|
|
333
335
|
const index2 = (i - 1) % data.length, d = Tools.deepClone(data[index2]);
|
|
334
336
|
if (d) {
|
|
335
|
-
const originalFormula = ((
|
|
337
|
+
const originalFormula = ((_a23 = data[index2]) == null ? void 0 : _a23.f) || "", originalFormulaId = ((_b = data[index2]) == null ? void 0 : _b.si) || "", checkFormula = isFormulaString(originalFormula);
|
|
336
338
|
if (isFormulaId(originalFormulaId))
|
|
337
339
|
d.si = originalFormulaId, d.f = null, d.v = null, d.p = null, d.t = null, direction === Direction.DOWN || direction === Direction.RIGHT ? applyData.push(d) : applyData.unshift(d);
|
|
338
340
|
else if (checkFormula) {
|
|
@@ -355,10 +357,10 @@ let FormulaAutoFillController = (_a3 = class extends Disposable {
|
|
|
355
357
|
return applyData;
|
|
356
358
|
}
|
|
357
359
|
}, __name(_a3, "FormulaAutoFillController"), _a3);
|
|
358
|
-
FormulaAutoFillController = __decorateClass$
|
|
360
|
+
FormulaAutoFillController = __decorateClass$h([
|
|
359
361
|
OnLifecycle(LifecycleStages.Ready, FormulaAutoFillController),
|
|
360
|
-
__decorateParam$
|
|
361
|
-
__decorateParam$
|
|
362
|
+
__decorateParam$h(0, IAutoFillService),
|
|
363
|
+
__decorateParam$h(1, Inject(LexerTreeBuilder))
|
|
362
364
|
], FormulaAutoFillController);
|
|
363
365
|
function directionToOffset(step, direction) {
|
|
364
366
|
let offsetX = 0, offsetY = 0;
|
|
@@ -388,11 +390,11 @@ function getDataLength(copyDataPiece) {
|
|
|
388
390
|
return length;
|
|
389
391
|
}
|
|
390
392
|
__name(getDataLength, "getDataLength");
|
|
391
|
-
var __defProp$
|
|
392
|
-
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
393
|
+
var __defProp$g = Object.defineProperty, __getOwnPropDesc$g = Object.getOwnPropertyDescriptor, __decorateClass$g = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
394
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
393
395
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
394
|
-
return kind && result && __defProp$
|
|
395
|
-
}, "__decorateClass$
|
|
396
|
+
return kind && result && __defProp$g(target, key, result), result;
|
|
397
|
+
}, "__decorateClass$g"), __decorateParam$g = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$g");
|
|
396
398
|
const DEFAULT_PASTE_FORMULA = "default-paste-formula";
|
|
397
399
|
var _a4;
|
|
398
400
|
let FormulaClipboardController = (_a4 = class extends Disposable {
|
|
@@ -421,7 +423,7 @@ let FormulaClipboardController = (_a4 = class extends Disposable {
|
|
|
421
423
|
};
|
|
422
424
|
}
|
|
423
425
|
_onPasteCells(pasteFrom, pasteTo, data, payload, isSpecialPaste) {
|
|
424
|
-
var
|
|
426
|
+
var _a23;
|
|
425
427
|
const pasteType = payload.pasteType;
|
|
426
428
|
if (pasteType === PREDEFINED_HOOK_NAME.SPECIAL_PASTE_VALUE || pasteType === PREDEFINED_HOOK_NAME.SPECIAL_PASTE_FORMAT || pasteType === PREDEFINED_HOOK_NAME.SPECIAL_PASTE_COL_WIDTH)
|
|
427
429
|
return {
|
|
@@ -432,7 +434,7 @@ let FormulaClipboardController = (_a4 = class extends Disposable {
|
|
|
432
434
|
copyType: payload.copyType || COPY_TYPE.COPY,
|
|
433
435
|
copyRange: pasteFrom == null ? void 0 : pasteFrom.range,
|
|
434
436
|
pasteType: payload.pasteType
|
|
435
|
-
}, pastedRange = pasteTo.range, matrix = data, workbook = this._currentUniverSheet.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), unitId = pasteTo.unitId || workbook.getUnitId(), subUnitId = pasteTo.subUnitId || ((
|
|
437
|
+
}, pastedRange = pasteTo.range, matrix = data, workbook = this._currentUniverSheet.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), unitId = pasteTo.unitId || workbook.getUnitId(), subUnitId = pasteTo.subUnitId || ((_a23 = workbook.getActiveSheet()) == null ? void 0 : _a23.getSheetId());
|
|
436
438
|
return !unitId || !subUnitId ? {
|
|
437
439
|
undos: [],
|
|
438
440
|
redos: []
|
|
@@ -450,13 +452,13 @@ let FormulaClipboardController = (_a4 = class extends Disposable {
|
|
|
450
452
|
));
|
|
451
453
|
}
|
|
452
454
|
}, __name(_a4, "FormulaClipboardController"), _a4);
|
|
453
|
-
FormulaClipboardController = __decorateClass$
|
|
455
|
+
FormulaClipboardController = __decorateClass$g([
|
|
454
456
|
OnLifecycle(LifecycleStages.Ready, FormulaClipboardController),
|
|
455
|
-
__decorateParam$
|
|
456
|
-
__decorateParam$
|
|
457
|
-
__decorateParam$
|
|
458
|
-
__decorateParam$
|
|
459
|
-
__decorateParam$
|
|
457
|
+
__decorateParam$g(0, IUniverInstanceService),
|
|
458
|
+
__decorateParam$g(1, Inject(LexerTreeBuilder)),
|
|
459
|
+
__decorateParam$g(2, ISheetClipboardService),
|
|
460
|
+
__decorateParam$g(3, Inject(Injector)),
|
|
461
|
+
__decorateParam$g(4, Inject(FormulaDataModel))
|
|
460
462
|
], FormulaClipboardController);
|
|
461
463
|
function getSetCellFormulaMutations(unitId, subUnitId, range, matrix, accessor, copyInfo, lexerTreeBuilder, formulaDataModel, isSpecialPaste = !1, pasteFrom) {
|
|
462
464
|
const redoMutationsInfo = [], undoMutationsInfo = [], valueMatrix = new ObjectMatrix(), formulaIdMap = /* @__PURE__ */ new Map();
|
|
@@ -466,14 +468,14 @@ function getSetCellFormulaMutations(unitId, subUnitId, range, matrix, accessor,
|
|
|
466
468
|
copyType === COPY_TYPE.COPY && copyRange && (copyRowLength = copyRange.rows.length, copyColumnLength = copyRange.cols.length);
|
|
467
469
|
}
|
|
468
470
|
matrix.forValue((row, col, value) => {
|
|
469
|
-
var
|
|
471
|
+
var _a23, _b, _c, _d;
|
|
470
472
|
const originalFormula = value.f || "", originalFormulaId = value.si || "";
|
|
471
473
|
let valueObject = {};
|
|
472
474
|
if (isSpecialPaste && (valueObject = Tools.deepClone(value), valueObject.s = null), !(!copyRowLength || !copyColumnLength)) {
|
|
473
475
|
if (isFormulaId(originalFormulaId)) {
|
|
474
476
|
const { unitId: pasteFromUnitId = "", subUnitId: pasteFromSubUnitId = "", range: pasteFromRange } = pasteFrom || {};
|
|
475
477
|
if ((pasteFromUnitId && unitId !== pasteFromUnitId || pasteFromSubUnitId && subUnitId !== pasteFromSubUnitId) && (pasteFromRange != null && pasteFromRange.rows) && (pasteFromRange != null && pasteFromRange.cols)) {
|
|
476
|
-
const formulaString = formulaDataModel.getFormulaStringByCell(pasteFromRange.rows[row], pasteFromRange.cols[col], pasteFromSubUnitId, pasteFromUnitId), rowIndex = row % copyRowLength, colIndex = col % copyColumnLength, copyX = copyInfo != null && copyInfo.copyRange ? (
|
|
478
|
+
const formulaString = formulaDataModel.getFormulaStringByCell(pasteFromRange.rows[row], pasteFromRange.cols[col], pasteFromSubUnitId, pasteFromUnitId), rowIndex = row % copyRowLength, colIndex = col % copyColumnLength, copyX = copyInfo != null && copyInfo.copyRange ? (_a23 = copyInfo == null ? void 0 : copyInfo.copyRange) == null ? void 0 : _a23.cols[colIndex] : colIndex, copyY = copyInfo != null && copyInfo.copyRange ? (_b = copyInfo == null ? void 0 : copyInfo.copyRange) == null ? void 0 : _b.rows[rowIndex] : rowIndex, offsetX = range.cols[col] - copyX, offsetY = range.rows[row] - copyY, shiftedFormula = lexerTreeBuilder.moveFormulaRefOffset(formulaString || "", offsetX, offsetY);
|
|
477
479
|
valueObject.si = null, valueObject.f = shiftedFormula, valueObject.v = null, valueObject.p = null;
|
|
478
480
|
} else
|
|
479
481
|
valueObject.si = originalFormulaId, valueObject.f = null, valueObject.v = null, valueObject.p = null;
|
|
@@ -527,11 +529,11 @@ function getCellRichText(cell) {
|
|
|
527
529
|
}
|
|
528
530
|
}
|
|
529
531
|
__name(getCellRichText, "getCellRichText");
|
|
530
|
-
var __defProp$
|
|
531
|
-
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
532
|
+
var __defProp$f = Object.defineProperty, __getOwnPropDesc$f = Object.getOwnPropertyDescriptor, __decorateClass$f = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
533
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
532
534
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
533
|
-
return kind && result && __defProp$
|
|
534
|
-
}, "__decorateClass$
|
|
535
|
+
return kind && result && __defProp$f(target, key, result), result;
|
|
536
|
+
}, "__decorateClass$f"), __decorateParam$f = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$f");
|
|
535
537
|
const REFRESH_ARRAY_SHAPE_MUTATIONS = [
|
|
536
538
|
SetWorksheetRowHeightMutation.id,
|
|
537
539
|
SetWorksheetColWidthMutation.id,
|
|
@@ -554,13 +556,13 @@ let FormulaEditorShowController = (_a5 = class extends Disposable {
|
|
|
554
556
|
this._editorBridgeService.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,
|
|
555
557
|
{
|
|
556
558
|
handler: /* @__PURE__ */ __name((value, context, next) => {
|
|
557
|
-
var
|
|
559
|
+
var _a23, _b, _c, _d;
|
|
558
560
|
const { row, col, unitId, subUnitId, worksheet } = context, arrayFormulaMatrixRange = this._formulaDataModel.getArrayFormulaRange(), arrayFormulaMatrixCell = this._formulaDataModel.getArrayFormulaCellData();
|
|
559
561
|
if (this._removeArrayFormulaRangeShape(), value == null)
|
|
560
562
|
return next(value);
|
|
561
563
|
let cellInfo = null;
|
|
562
564
|
const formulaString = this._formulaDataModel.getFormulaStringByCell(row, col, subUnitId, unitId);
|
|
563
|
-
if (formulaString !== null && (cellInfo = { f: formulaString }), value.v != null && value.v !== "" && ((_c = (_b = (
|
|
565
|
+
if (formulaString !== null && (cellInfo = { f: formulaString }), value.v != null && value.v !== "" && ((_c = (_b = (_a23 = arrayFormulaMatrixCell[unitId]) == null ? void 0 : _a23[subUnitId]) == null ? void 0 : _b[row]) == null ? void 0 : _c[col]) == null)
|
|
564
566
|
return cellInfo ? { ...value, ...cellInfo } : next(value);
|
|
565
567
|
const matrixRange = (_d = arrayFormulaMatrixRange == null ? void 0 : arrayFormulaMatrixRange[unitId]) == null ? void 0 : _d[subUnitId];
|
|
566
568
|
return matrixRange != null && (cellInfo = this._displayArrayFormulaRangeShape(matrixRange, row, col, unitId, subUnitId, worksheet, cellInfo)), cellInfo ? { ...value, ...cellInfo } : next(value);
|
|
@@ -692,13 +694,13 @@ let FormulaEditorShowController = (_a5 = class extends Disposable {
|
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
696
|
}, __name(_a5, "FormulaEditorShowController"), _a5);
|
|
695
|
-
FormulaEditorShowController = __decorateClass$
|
|
696
|
-
__decorateParam$
|
|
697
|
-
__decorateParam$
|
|
698
|
-
__decorateParam$
|
|
699
|
-
__decorateParam$
|
|
700
|
-
__decorateParam$
|
|
701
|
-
__decorateParam$
|
|
697
|
+
FormulaEditorShowController = __decorateClass$f([
|
|
698
|
+
__decorateParam$f(1, Inject(IEditorBridgeService)),
|
|
699
|
+
__decorateParam$f(2, Inject(FormulaDataModel)),
|
|
700
|
+
__decorateParam$f(3, Inject(ThemeService)),
|
|
701
|
+
__decorateParam$f(4, IRenderManagerService),
|
|
702
|
+
__decorateParam$f(5, Inject(SheetSkeletonManagerService)),
|
|
703
|
+
__decorateParam$f(6, ICommandService)
|
|
702
704
|
], FormulaEditorShowController);
|
|
703
705
|
const SheetOnlyPasteFormulaCommand = {
|
|
704
706
|
id: "sheet.command.paste-formula",
|
|
@@ -732,37 +734,17 @@ const SheetOnlyPasteFormulaCommand = {
|
|
|
732
734
|
}, SelectEditorFormulaOperation = {
|
|
733
735
|
id: "formula-ui.operation.select-editor-formula",
|
|
734
736
|
type: CommandType.OPERATION,
|
|
735
|
-
handler: /* @__PURE__ */ __name((accessor, params) =>
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
// // case KeyCode.ENTER:
|
|
747
|
-
// // case KeyCode.TAB:
|
|
748
|
-
// // if (formulaPromptService.isSearching()) {
|
|
749
|
-
// // formulaPromptService.accept(true);
|
|
750
|
-
// // } else {
|
|
751
|
-
// // const editorBridgeParameters = {
|
|
752
|
-
// // visible: false,
|
|
753
|
-
// // eventType,
|
|
754
|
-
// // keycode,
|
|
755
|
-
// // };
|
|
756
|
-
// // editorBridgeService.changeVisible(editorBridgeParameters);
|
|
757
|
-
// // }
|
|
758
|
-
// // break;
|
|
759
|
-
// default:
|
|
760
|
-
// break;
|
|
761
|
-
// }
|
|
762
|
-
!0
|
|
763
|
-
), "handler")
|
|
764
|
-
}, IFormulaPromptService = createIdentifier("formula-ui.prompt-service"), _FormulaPromptService = class _FormulaPromptService {
|
|
765
|
-
constructor() {
|
|
737
|
+
handler: /* @__PURE__ */ __name((accessor, params) => !0, "handler")
|
|
738
|
+
};
|
|
739
|
+
var __defProp$e = Object.defineProperty, __getOwnPropDesc$e = Object.getOwnPropertyDescriptor, __decorateClass$e = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
740
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
741
|
+
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
742
|
+
return kind && result && __defProp$e(target, key, result), result;
|
|
743
|
+
}, "__decorateClass$e"), __decorateParam$e = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$e");
|
|
744
|
+
const FORMULA_PROMPT_ACTIVATED = "FORMULA_PROMPT_ACTIVATED", IFormulaPromptService = createIdentifier("formula-ui.prompt-service");
|
|
745
|
+
var _a6;
|
|
746
|
+
let FormulaPromptService = (_a6 = class {
|
|
747
|
+
constructor(_contextService) {
|
|
766
748
|
__publicField(this, "_search$", new Subject());
|
|
767
749
|
__publicField(this, "_help$", new Subject());
|
|
768
750
|
__publicField(this, "_navigate$", new Subject());
|
|
@@ -778,12 +760,13 @@ const SheetOnlyPasteFormulaCommand = {
|
|
|
778
760
|
__publicField(this, "_sequenceNodes", []);
|
|
779
761
|
__publicField(this, "_isLockedOnSelectionChangeRefString", !1);
|
|
780
762
|
__publicField(this, "_isLockedOnSelectionInsertRefString", !1);
|
|
763
|
+
this._contextService = _contextService;
|
|
781
764
|
}
|
|
782
765
|
dispose() {
|
|
783
766
|
this._search$.complete(), this._help$.complete(), this._navigate$.complete(), this._accept$.complete(), this._acceptFormulaName$.complete(), this._sequenceNodes = [];
|
|
784
767
|
}
|
|
785
768
|
search(param) {
|
|
786
|
-
this._searching = param.visible, this._search$.next(param);
|
|
769
|
+
this._contextService.setContextValue(FORMULA_PROMPT_ACTIVATED, param.visible), this._searching = param.visible, this._search$.next(param);
|
|
787
770
|
}
|
|
788
771
|
isSearching() {
|
|
789
772
|
return this._searching;
|
|
@@ -914,9 +897,10 @@ const SheetOnlyPasteFormulaCommand = {
|
|
|
914
897
|
isLockedSelectionInsert() {
|
|
915
898
|
return this._isLockedOnSelectionInsertRefString;
|
|
916
899
|
}
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
|
|
900
|
+
}, __name(_a6, "FormulaPromptService"), _a6);
|
|
901
|
+
FormulaPromptService = __decorateClass$e([
|
|
902
|
+
__decorateParam$e(0, IContextService)
|
|
903
|
+
], FormulaPromptService);
|
|
920
904
|
const HelpFunctionOperation = {
|
|
921
905
|
id: "formula-ui.operation.help-function",
|
|
922
906
|
type: CommandType.OPERATION,
|
|
@@ -925,7 +909,7 @@ const HelpFunctionOperation = {
|
|
|
925
909
|
id: "formula-ui.operation.insert-function",
|
|
926
910
|
type: CommandType.OPERATION,
|
|
927
911
|
handler: /* @__PURE__ */ __name(async (accessor, params) => {
|
|
928
|
-
var
|
|
912
|
+
var _a23, _b;
|
|
929
913
|
const selectionManagerService = accessor.get(SheetsSelectionsService), editorService = accessor.get(IEditorService), currentSelections = selectionManagerService.getCurrentSelections();
|
|
930
914
|
if (!currentSelections || !currentSelections.length)
|
|
931
915
|
return !1;
|
|
@@ -934,14 +918,14 @@ const HelpFunctionOperation = {
|
|
|
934
918
|
const { worksheet, unitId, subUnitId } = target, cellMatrix = worksheet.getCellMatrix(), { value } = params, commandService = accessor.get(ICommandService), list = [];
|
|
935
919
|
let editRange = null, editRow = 0, editColumn = 0, editFormulaRangeString = "";
|
|
936
920
|
if (currentSelections.length === 1 && (isSingleCell(currentSelections[0].range) || isMultiRowsColumnsRange(currentSelections[0].range))) {
|
|
937
|
-
const { range, primary } = currentSelections[0], row = (
|
|
921
|
+
const { range, primary } = currentSelections[0], row = (_a23 = primary == null ? void 0 : primary.actualRow) != null ? _a23 : range.startRow, column = (_b = primary == null ? void 0 : primary.actualColumn) != null ? _b : range.startColumn;
|
|
938
922
|
editRange = range, editRow = row, editColumn = column;
|
|
939
923
|
const refRange = findRefRange(cellMatrix, row, column);
|
|
940
924
|
refRange && (editFormulaRangeString = serializeRange(refRange));
|
|
941
925
|
} else
|
|
942
926
|
currentSelections.some((selection) => {
|
|
943
|
-
var
|
|
944
|
-
const { range, primary } = selection, row = (
|
|
927
|
+
var _a24, _b2;
|
|
928
|
+
const { range, primary } = selection, row = (_a24 = primary == null ? void 0 : primary.actualRow) != null ? _a24 : range.startRow, column = (_b2 = primary == null ? void 0 : primary.actualColumn) != null ? _b2 : range.startColumn, refRange = findRefRange(cellMatrix, row, column);
|
|
945
929
|
if (!refRange)
|
|
946
930
|
return editRange = range, editRow = row, editColumn = column, !0;
|
|
947
931
|
const rangeString = serializeRange(refRange), formulaString = `=${value}(${rangeString})`;
|
|
@@ -1122,15 +1106,15 @@ function replaceRuntimeIdsAndExtInAttrs(node, runtimeProps, extend) {
|
|
|
1122
1106
|
var attrs = __assign({}, node.attrs);
|
|
1123
1107
|
extend != null && extend.colorChannel1 && attrs.fill === "colorChannel1" && (attrs.fill = extend.colorChannel1);
|
|
1124
1108
|
var defIds = runtimeProps.defIds;
|
|
1125
|
-
return !defIds || defIds.length === 0 || (node.tag === "use" && attrs["xlink:href"] && (attrs["xlink:href"] = attrs["xlink:href"] + runtimeProps.idSuffix), Object.entries(attrs).forEach(function(
|
|
1126
|
-
var key =
|
|
1109
|
+
return !defIds || defIds.length === 0 || (node.tag === "use" && attrs["xlink:href"] && (attrs["xlink:href"] = attrs["xlink:href"] + runtimeProps.idSuffix), Object.entries(attrs).forEach(function(_a23) {
|
|
1110
|
+
var key = _a23[0], value = _a23[1];
|
|
1127
1111
|
typeof value == "string" && (attrs[key] = value.replace(/url\(#(.*)\)/, "url(#$1".concat(runtimeProps.idSuffix, ")")));
|
|
1128
1112
|
})), attrs;
|
|
1129
1113
|
}
|
|
1130
1114
|
__name(replaceRuntimeIdsAndExtInAttrs, "replaceRuntimeIdsAndExtInAttrs");
|
|
1131
1115
|
function replaceRuntimeIdsInDefs(node, runtimeProps) {
|
|
1132
|
-
var
|
|
1133
|
-
return !defIds || defIds.length === 0 ? node : node.tag === "defs" && (!((
|
|
1116
|
+
var _a23, defIds = runtimeProps.defIds;
|
|
1117
|
+
return !defIds || defIds.length === 0 ? node : node.tag === "defs" && (!((_a23 = node.children) === null || _a23 === void 0) && _a23.length) ? __assign(__assign({}, node), { children: node.children.map(function(child) {
|
|
1134
1118
|
return typeof child.attrs.id == "string" && defIds && defIds.indexOf(child.attrs.id) > -1 ? __assign(__assign({}, child), { attrs: __assign(__assign({}, child.attrs), { id: child.attrs.id + runtimeProps.idSuffix }) }) : child;
|
|
1135
1119
|
}) }) : node;
|
|
1136
1120
|
}
|
|
@@ -1432,8 +1416,8 @@ function SearchFunction() {
|
|
|
1432
1416
|
}
|
|
1433
1417
|
__name(handleLiMouseLeave, "handleLiMouseLeave");
|
|
1434
1418
|
function scrollToVisible(liIndex) {
|
|
1435
|
-
var
|
|
1436
|
-
const liElement = (
|
|
1419
|
+
var _a23;
|
|
1420
|
+
const liElement = (_a23 = ulRef.current) == null ? void 0 : _a23.querySelectorAll(`.${styles$4.formulaSearchFunctionItem}`)[liIndex];
|
|
1437
1421
|
if (!liElement) return;
|
|
1438
1422
|
const ulElement = liElement.parentNode;
|
|
1439
1423
|
if (!ulElement) return;
|
|
@@ -3329,16 +3313,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3329
3313
|
abstract: "formula.functionList.BESSELI.abstract",
|
|
3330
3314
|
functionParameter: [
|
|
3331
3315
|
{
|
|
3332
|
-
name: "formula.functionList.BESSELI.functionParameter.
|
|
3333
|
-
detail: "formula.functionList.BESSELI.functionParameter.
|
|
3334
|
-
example: "
|
|
3316
|
+
name: "formula.functionList.BESSELI.functionParameter.x.name",
|
|
3317
|
+
detail: "formula.functionList.BESSELI.functionParameter.x.detail",
|
|
3318
|
+
example: "1.5",
|
|
3335
3319
|
require: 1,
|
|
3336
3320
|
repeat: 0
|
|
3337
3321
|
},
|
|
3338
3322
|
{
|
|
3339
|
-
name: "formula.functionList.BESSELI.functionParameter.
|
|
3340
|
-
detail: "formula.functionList.BESSELI.functionParameter.
|
|
3341
|
-
example: "
|
|
3323
|
+
name: "formula.functionList.BESSELI.functionParameter.n.name",
|
|
3324
|
+
detail: "formula.functionList.BESSELI.functionParameter.n.detail",
|
|
3325
|
+
example: "1",
|
|
3342
3326
|
require: 1,
|
|
3343
3327
|
repeat: 0
|
|
3344
3328
|
}
|
|
@@ -3351,16 +3335,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3351
3335
|
abstract: "formula.functionList.BESSELJ.abstract",
|
|
3352
3336
|
functionParameter: [
|
|
3353
3337
|
{
|
|
3354
|
-
name: "formula.functionList.BESSELJ.functionParameter.
|
|
3355
|
-
detail: "formula.functionList.BESSELJ.functionParameter.
|
|
3356
|
-
example: "
|
|
3338
|
+
name: "formula.functionList.BESSELJ.functionParameter.x.name",
|
|
3339
|
+
detail: "formula.functionList.BESSELJ.functionParameter.x.detail",
|
|
3340
|
+
example: "1.5",
|
|
3357
3341
|
require: 1,
|
|
3358
3342
|
repeat: 0
|
|
3359
3343
|
},
|
|
3360
3344
|
{
|
|
3361
|
-
name: "formula.functionList.BESSELJ.functionParameter.
|
|
3362
|
-
detail: "formula.functionList.BESSELJ.functionParameter.
|
|
3363
|
-
example: "
|
|
3345
|
+
name: "formula.functionList.BESSELJ.functionParameter.n.name",
|
|
3346
|
+
detail: "formula.functionList.BESSELJ.functionParameter.n.detail",
|
|
3347
|
+
example: "1",
|
|
3364
3348
|
require: 1,
|
|
3365
3349
|
repeat: 0
|
|
3366
3350
|
}
|
|
@@ -3373,16 +3357,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3373
3357
|
abstract: "formula.functionList.BESSELK.abstract",
|
|
3374
3358
|
functionParameter: [
|
|
3375
3359
|
{
|
|
3376
|
-
name: "formula.functionList.BESSELK.functionParameter.
|
|
3377
|
-
detail: "formula.functionList.BESSELK.functionParameter.
|
|
3378
|
-
example: "
|
|
3360
|
+
name: "formula.functionList.BESSELK.functionParameter.x.name",
|
|
3361
|
+
detail: "formula.functionList.BESSELK.functionParameter.x.detail",
|
|
3362
|
+
example: "1.5",
|
|
3379
3363
|
require: 1,
|
|
3380
3364
|
repeat: 0
|
|
3381
3365
|
},
|
|
3382
3366
|
{
|
|
3383
|
-
name: "formula.functionList.BESSELK.functionParameter.
|
|
3384
|
-
detail: "formula.functionList.BESSELK.functionParameter.
|
|
3385
|
-
example: "
|
|
3367
|
+
name: "formula.functionList.BESSELK.functionParameter.n.name",
|
|
3368
|
+
detail: "formula.functionList.BESSELK.functionParameter.n.detail",
|
|
3369
|
+
example: "1",
|
|
3386
3370
|
require: 1,
|
|
3387
3371
|
repeat: 0
|
|
3388
3372
|
}
|
|
@@ -3395,16 +3379,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3395
3379
|
abstract: "formula.functionList.BESSELY.abstract",
|
|
3396
3380
|
functionParameter: [
|
|
3397
3381
|
{
|
|
3398
|
-
name: "formula.functionList.BESSELY.functionParameter.
|
|
3399
|
-
detail: "formula.functionList.BESSELY.functionParameter.
|
|
3400
|
-
example: "
|
|
3382
|
+
name: "formula.functionList.BESSELY.functionParameter.x.name",
|
|
3383
|
+
detail: "formula.functionList.BESSELY.functionParameter.x.detail",
|
|
3384
|
+
example: "1.5",
|
|
3401
3385
|
require: 1,
|
|
3402
3386
|
repeat: 0
|
|
3403
3387
|
},
|
|
3404
3388
|
{
|
|
3405
|
-
name: "formula.functionList.BESSELY.functionParameter.
|
|
3406
|
-
detail: "formula.functionList.BESSELY.functionParameter.
|
|
3407
|
-
example: "
|
|
3389
|
+
name: "formula.functionList.BESSELY.functionParameter.n.name",
|
|
3390
|
+
detail: "formula.functionList.BESSELY.functionParameter.n.detail",
|
|
3391
|
+
example: "1",
|
|
3408
3392
|
require: 1,
|
|
3409
3393
|
repeat: 0
|
|
3410
3394
|
}
|
|
@@ -3417,16 +3401,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3417
3401
|
abstract: "formula.functionList.BIN2DEC.abstract",
|
|
3418
3402
|
functionParameter: [
|
|
3419
3403
|
{
|
|
3420
|
-
name: "formula.functionList.BIN2DEC.functionParameter.
|
|
3421
|
-
detail: "formula.functionList.BIN2DEC.functionParameter.
|
|
3422
|
-
example: "
|
|
3423
|
-
require: 1,
|
|
3424
|
-
repeat: 0
|
|
3425
|
-
},
|
|
3426
|
-
{
|
|
3427
|
-
name: "formula.functionList.BIN2DEC.functionParameter.number2.name",
|
|
3428
|
-
detail: "formula.functionList.BIN2DEC.functionParameter.number2.detail",
|
|
3429
|
-
example: "A1:A20",
|
|
3404
|
+
name: "formula.functionList.BIN2DEC.functionParameter.number.name",
|
|
3405
|
+
detail: "formula.functionList.BIN2DEC.functionParameter.number.detail",
|
|
3406
|
+
example: "1100100",
|
|
3430
3407
|
require: 1,
|
|
3431
3408
|
repeat: 0
|
|
3432
3409
|
}
|
|
@@ -3439,17 +3416,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3439
3416
|
abstract: "formula.functionList.BIN2HEX.abstract",
|
|
3440
3417
|
functionParameter: [
|
|
3441
3418
|
{
|
|
3442
|
-
name: "formula.functionList.BIN2HEX.functionParameter.
|
|
3443
|
-
detail: "formula.functionList.BIN2HEX.functionParameter.
|
|
3444
|
-
example: "
|
|
3419
|
+
name: "formula.functionList.BIN2HEX.functionParameter.number.name",
|
|
3420
|
+
detail: "formula.functionList.BIN2HEX.functionParameter.number.detail",
|
|
3421
|
+
example: "11111011",
|
|
3445
3422
|
require: 1,
|
|
3446
3423
|
repeat: 0
|
|
3447
3424
|
},
|
|
3448
3425
|
{
|
|
3449
|
-
name: "formula.functionList.BIN2HEX.functionParameter.
|
|
3450
|
-
detail: "formula.functionList.BIN2HEX.functionParameter.
|
|
3451
|
-
example: "
|
|
3452
|
-
require:
|
|
3426
|
+
name: "formula.functionList.BIN2HEX.functionParameter.places.name",
|
|
3427
|
+
detail: "formula.functionList.BIN2HEX.functionParameter.places.detail",
|
|
3428
|
+
example: "4",
|
|
3429
|
+
require: 0,
|
|
3453
3430
|
repeat: 0
|
|
3454
3431
|
}
|
|
3455
3432
|
]
|
|
@@ -3461,17 +3438,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3461
3438
|
abstract: "formula.functionList.BIN2OCT.abstract",
|
|
3462
3439
|
functionParameter: [
|
|
3463
3440
|
{
|
|
3464
|
-
name: "formula.functionList.BIN2OCT.functionParameter.
|
|
3465
|
-
detail: "formula.functionList.BIN2OCT.functionParameter.
|
|
3466
|
-
example: "
|
|
3441
|
+
name: "formula.functionList.BIN2OCT.functionParameter.number.name",
|
|
3442
|
+
detail: "formula.functionList.BIN2OCT.functionParameter.number.detail",
|
|
3443
|
+
example: "1001",
|
|
3467
3444
|
require: 1,
|
|
3468
3445
|
repeat: 0
|
|
3469
3446
|
},
|
|
3470
3447
|
{
|
|
3471
|
-
name: "formula.functionList.BIN2OCT.functionParameter.
|
|
3472
|
-
detail: "formula.functionList.BIN2OCT.functionParameter.
|
|
3473
|
-
example: "
|
|
3474
|
-
require:
|
|
3448
|
+
name: "formula.functionList.BIN2OCT.functionParameter.places.name",
|
|
3449
|
+
detail: "formula.functionList.BIN2OCT.functionParameter.places.detail",
|
|
3450
|
+
example: "3",
|
|
3451
|
+
require: 0,
|
|
3475
3452
|
repeat: 0
|
|
3476
3453
|
}
|
|
3477
3454
|
]
|
|
@@ -3485,14 +3462,14 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3485
3462
|
{
|
|
3486
3463
|
name: "formula.functionList.BITAND.functionParameter.number1.name",
|
|
3487
3464
|
detail: "formula.functionList.BITAND.functionParameter.number1.detail",
|
|
3488
|
-
example: "
|
|
3465
|
+
example: "13",
|
|
3489
3466
|
require: 1,
|
|
3490
3467
|
repeat: 0
|
|
3491
3468
|
},
|
|
3492
3469
|
{
|
|
3493
3470
|
name: "formula.functionList.BITAND.functionParameter.number2.name",
|
|
3494
3471
|
detail: "formula.functionList.BITAND.functionParameter.number2.detail",
|
|
3495
|
-
example: "
|
|
3472
|
+
example: "25",
|
|
3496
3473
|
require: 1,
|
|
3497
3474
|
repeat: 0
|
|
3498
3475
|
}
|
|
@@ -3505,16 +3482,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3505
3482
|
abstract: "formula.functionList.BITLSHIFT.abstract",
|
|
3506
3483
|
functionParameter: [
|
|
3507
3484
|
{
|
|
3508
|
-
name: "formula.functionList.BITLSHIFT.functionParameter.
|
|
3509
|
-
detail: "formula.functionList.BITLSHIFT.functionParameter.
|
|
3510
|
-
example: "
|
|
3485
|
+
name: "formula.functionList.BITLSHIFT.functionParameter.number.name",
|
|
3486
|
+
detail: "formula.functionList.BITLSHIFT.functionParameter.number.detail",
|
|
3487
|
+
example: "4",
|
|
3511
3488
|
require: 1,
|
|
3512
3489
|
repeat: 0
|
|
3513
3490
|
},
|
|
3514
3491
|
{
|
|
3515
|
-
name: "formula.functionList.BITLSHIFT.functionParameter.
|
|
3516
|
-
detail: "formula.functionList.BITLSHIFT.functionParameter.
|
|
3517
|
-
example: "
|
|
3492
|
+
name: "formula.functionList.BITLSHIFT.functionParameter.shiftAmount.name",
|
|
3493
|
+
detail: "formula.functionList.BITLSHIFT.functionParameter.shiftAmount.detail",
|
|
3494
|
+
example: "2",
|
|
3518
3495
|
require: 1,
|
|
3519
3496
|
repeat: 0
|
|
3520
3497
|
}
|
|
@@ -3529,14 +3506,14 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3529
3506
|
{
|
|
3530
3507
|
name: "formula.functionList.BITOR.functionParameter.number1.name",
|
|
3531
3508
|
detail: "formula.functionList.BITOR.functionParameter.number1.detail",
|
|
3532
|
-
example: "
|
|
3509
|
+
example: "23",
|
|
3533
3510
|
require: 1,
|
|
3534
3511
|
repeat: 0
|
|
3535
3512
|
},
|
|
3536
3513
|
{
|
|
3537
3514
|
name: "formula.functionList.BITOR.functionParameter.number2.name",
|
|
3538
3515
|
detail: "formula.functionList.BITOR.functionParameter.number2.detail",
|
|
3539
|
-
example: "
|
|
3516
|
+
example: "10",
|
|
3540
3517
|
require: 1,
|
|
3541
3518
|
repeat: 0
|
|
3542
3519
|
}
|
|
@@ -3549,16 +3526,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3549
3526
|
abstract: "formula.functionList.BITRSHIFT.abstract",
|
|
3550
3527
|
functionParameter: [
|
|
3551
3528
|
{
|
|
3552
|
-
name: "formula.functionList.BITRSHIFT.functionParameter.
|
|
3553
|
-
detail: "formula.functionList.BITRSHIFT.functionParameter.
|
|
3554
|
-
example: "
|
|
3529
|
+
name: "formula.functionList.BITRSHIFT.functionParameter.number.name",
|
|
3530
|
+
detail: "formula.functionList.BITRSHIFT.functionParameter.number.detail",
|
|
3531
|
+
example: "13",
|
|
3555
3532
|
require: 1,
|
|
3556
3533
|
repeat: 0
|
|
3557
3534
|
},
|
|
3558
3535
|
{
|
|
3559
|
-
name: "formula.functionList.BITRSHIFT.functionParameter.
|
|
3560
|
-
detail: "formula.functionList.BITRSHIFT.functionParameter.
|
|
3561
|
-
example: "
|
|
3536
|
+
name: "formula.functionList.BITRSHIFT.functionParameter.shiftAmount.name",
|
|
3537
|
+
detail: "formula.functionList.BITRSHIFT.functionParameter.shiftAmount.detail",
|
|
3538
|
+
example: "2",
|
|
3562
3539
|
require: 1,
|
|
3563
3540
|
repeat: 0
|
|
3564
3541
|
}
|
|
@@ -3573,14 +3550,14 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3573
3550
|
{
|
|
3574
3551
|
name: "formula.functionList.BITXOR.functionParameter.number1.name",
|
|
3575
3552
|
detail: "formula.functionList.BITXOR.functionParameter.number1.detail",
|
|
3576
|
-
example: "
|
|
3553
|
+
example: "5",
|
|
3577
3554
|
require: 1,
|
|
3578
3555
|
repeat: 0
|
|
3579
3556
|
},
|
|
3580
3557
|
{
|
|
3581
3558
|
name: "formula.functionList.BITXOR.functionParameter.number2.name",
|
|
3582
3559
|
detail: "formula.functionList.BITXOR.functionParameter.number2.detail",
|
|
3583
|
-
example: "
|
|
3560
|
+
example: "3",
|
|
3584
3561
|
require: 1,
|
|
3585
3562
|
repeat: 0
|
|
3586
3563
|
}
|
|
@@ -3593,18 +3570,25 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3593
3570
|
abstract: "formula.functionList.COMPLEX.abstract",
|
|
3594
3571
|
functionParameter: [
|
|
3595
3572
|
{
|
|
3596
|
-
name: "formula.functionList.COMPLEX.functionParameter.
|
|
3597
|
-
detail: "formula.functionList.COMPLEX.functionParameter.
|
|
3598
|
-
example: "
|
|
3573
|
+
name: "formula.functionList.COMPLEX.functionParameter.realNum.name",
|
|
3574
|
+
detail: "formula.functionList.COMPLEX.functionParameter.realNum.detail",
|
|
3575
|
+
example: "3",
|
|
3599
3576
|
require: 1,
|
|
3600
3577
|
repeat: 0
|
|
3601
3578
|
},
|
|
3602
3579
|
{
|
|
3603
|
-
name: "formula.functionList.COMPLEX.functionParameter.
|
|
3604
|
-
detail: "formula.functionList.COMPLEX.functionParameter.
|
|
3605
|
-
example: "
|
|
3580
|
+
name: "formula.functionList.COMPLEX.functionParameter.iNum.name",
|
|
3581
|
+
detail: "formula.functionList.COMPLEX.functionParameter.iNum.detail",
|
|
3582
|
+
example: "4",
|
|
3606
3583
|
require: 1,
|
|
3607
3584
|
repeat: 0
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
name: "formula.functionList.COMPLEX.functionParameter.suffix.name",
|
|
3588
|
+
detail: "formula.functionList.COMPLEX.functionParameter.suffix.detail",
|
|
3589
|
+
example: '"i"',
|
|
3590
|
+
require: 0,
|
|
3591
|
+
repeat: 0
|
|
3608
3592
|
}
|
|
3609
3593
|
]
|
|
3610
3594
|
},
|
|
@@ -3615,16 +3599,23 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3615
3599
|
abstract: "formula.functionList.CONVERT.abstract",
|
|
3616
3600
|
functionParameter: [
|
|
3617
3601
|
{
|
|
3618
|
-
name: "formula.functionList.CONVERT.functionParameter.
|
|
3619
|
-
detail: "formula.functionList.CONVERT.functionParameter.
|
|
3620
|
-
example: "
|
|
3602
|
+
name: "formula.functionList.CONVERT.functionParameter.number.name",
|
|
3603
|
+
detail: "formula.functionList.CONVERT.functionParameter.number.detail",
|
|
3604
|
+
example: "1",
|
|
3621
3605
|
require: 1,
|
|
3622
3606
|
repeat: 0
|
|
3623
3607
|
},
|
|
3624
3608
|
{
|
|
3625
|
-
name: "formula.functionList.CONVERT.functionParameter.
|
|
3626
|
-
detail: "formula.functionList.CONVERT.functionParameter.
|
|
3627
|
-
example: "
|
|
3609
|
+
name: "formula.functionList.CONVERT.functionParameter.fromUnit.name",
|
|
3610
|
+
detail: "formula.functionList.CONVERT.functionParameter.fromUnit.detail",
|
|
3611
|
+
example: '"lbm"',
|
|
3612
|
+
require: 1,
|
|
3613
|
+
repeat: 0
|
|
3614
|
+
},
|
|
3615
|
+
{
|
|
3616
|
+
name: "formula.functionList.CONVERT.functionParameter.toUnit.name",
|
|
3617
|
+
detail: "formula.functionList.CONVERT.functionParameter.toUnit.detail",
|
|
3618
|
+
example: '"kg"',
|
|
3628
3619
|
require: 1,
|
|
3629
3620
|
repeat: 0
|
|
3630
3621
|
}
|
|
@@ -3637,17 +3628,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3637
3628
|
abstract: "formula.functionList.DEC2BIN.abstract",
|
|
3638
3629
|
functionParameter: [
|
|
3639
3630
|
{
|
|
3640
|
-
name: "formula.functionList.DEC2BIN.functionParameter.
|
|
3641
|
-
detail: "formula.functionList.DEC2BIN.functionParameter.
|
|
3642
|
-
example: "
|
|
3631
|
+
name: "formula.functionList.DEC2BIN.functionParameter.number.name",
|
|
3632
|
+
detail: "formula.functionList.DEC2BIN.functionParameter.number.detail",
|
|
3633
|
+
example: "9",
|
|
3643
3634
|
require: 1,
|
|
3644
3635
|
repeat: 0
|
|
3645
3636
|
},
|
|
3646
3637
|
{
|
|
3647
|
-
name: "formula.functionList.DEC2BIN.functionParameter.
|
|
3648
|
-
detail: "formula.functionList.DEC2BIN.functionParameter.
|
|
3649
|
-
example: "
|
|
3650
|
-
require:
|
|
3638
|
+
name: "formula.functionList.DEC2BIN.functionParameter.places.name",
|
|
3639
|
+
detail: "formula.functionList.DEC2BIN.functionParameter.places.detail",
|
|
3640
|
+
example: "4",
|
|
3641
|
+
require: 0,
|
|
3651
3642
|
repeat: 0
|
|
3652
3643
|
}
|
|
3653
3644
|
]
|
|
@@ -3659,17 +3650,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3659
3650
|
abstract: "formula.functionList.DEC2HEX.abstract",
|
|
3660
3651
|
functionParameter: [
|
|
3661
3652
|
{
|
|
3662
|
-
name: "formula.functionList.DEC2HEX.functionParameter.
|
|
3663
|
-
detail: "formula.functionList.DEC2HEX.functionParameter.
|
|
3664
|
-
example: "
|
|
3653
|
+
name: "formula.functionList.DEC2HEX.functionParameter.number.name",
|
|
3654
|
+
detail: "formula.functionList.DEC2HEX.functionParameter.number.detail",
|
|
3655
|
+
example: "100",
|
|
3665
3656
|
require: 1,
|
|
3666
3657
|
repeat: 0
|
|
3667
3658
|
},
|
|
3668
3659
|
{
|
|
3669
|
-
name: "formula.functionList.DEC2HEX.functionParameter.
|
|
3670
|
-
detail: "formula.functionList.DEC2HEX.functionParameter.
|
|
3671
|
-
example: "
|
|
3672
|
-
require:
|
|
3660
|
+
name: "formula.functionList.DEC2HEX.functionParameter.places.name",
|
|
3661
|
+
detail: "formula.functionList.DEC2HEX.functionParameter.places.detail",
|
|
3662
|
+
example: "4",
|
|
3663
|
+
require: 0,
|
|
3673
3664
|
repeat: 0
|
|
3674
3665
|
}
|
|
3675
3666
|
]
|
|
@@ -3681,17 +3672,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3681
3672
|
abstract: "formula.functionList.DEC2OCT.abstract",
|
|
3682
3673
|
functionParameter: [
|
|
3683
3674
|
{
|
|
3684
|
-
name: "formula.functionList.DEC2OCT.functionParameter.
|
|
3685
|
-
detail: "formula.functionList.DEC2OCT.functionParameter.
|
|
3686
|
-
example: "
|
|
3675
|
+
name: "formula.functionList.DEC2OCT.functionParameter.number.name",
|
|
3676
|
+
detail: "formula.functionList.DEC2OCT.functionParameter.number.detail",
|
|
3677
|
+
example: "58",
|
|
3687
3678
|
require: 1,
|
|
3688
3679
|
repeat: 0
|
|
3689
3680
|
},
|
|
3690
3681
|
{
|
|
3691
|
-
name: "formula.functionList.DEC2OCT.functionParameter.
|
|
3692
|
-
detail: "formula.functionList.DEC2OCT.functionParameter.
|
|
3693
|
-
example: "
|
|
3694
|
-
require:
|
|
3682
|
+
name: "formula.functionList.DEC2OCT.functionParameter.places.name",
|
|
3683
|
+
detail: "formula.functionList.DEC2OCT.functionParameter.places.detail",
|
|
3684
|
+
example: "3",
|
|
3685
|
+
require: 0,
|
|
3695
3686
|
repeat: 0
|
|
3696
3687
|
}
|
|
3697
3688
|
]
|
|
@@ -3705,15 +3696,15 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3705
3696
|
{
|
|
3706
3697
|
name: "formula.functionList.DELTA.functionParameter.number1.name",
|
|
3707
3698
|
detail: "formula.functionList.DELTA.functionParameter.number1.detail",
|
|
3708
|
-
example: "
|
|
3699
|
+
example: "5",
|
|
3709
3700
|
require: 1,
|
|
3710
3701
|
repeat: 0
|
|
3711
3702
|
},
|
|
3712
3703
|
{
|
|
3713
3704
|
name: "formula.functionList.DELTA.functionParameter.number2.name",
|
|
3714
3705
|
detail: "formula.functionList.DELTA.functionParameter.number2.detail",
|
|
3715
|
-
example: "
|
|
3716
|
-
require:
|
|
3706
|
+
example: "4",
|
|
3707
|
+
require: 0,
|
|
3717
3708
|
repeat: 0
|
|
3718
3709
|
}
|
|
3719
3710
|
]
|
|
@@ -3725,17 +3716,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3725
3716
|
abstract: "formula.functionList.ERF.abstract",
|
|
3726
3717
|
functionParameter: [
|
|
3727
3718
|
{
|
|
3728
|
-
name: "formula.functionList.ERF.functionParameter.
|
|
3729
|
-
detail: "formula.functionList.ERF.functionParameter.
|
|
3730
|
-
example: "
|
|
3719
|
+
name: "formula.functionList.ERF.functionParameter.lowerLimit.name",
|
|
3720
|
+
detail: "formula.functionList.ERF.functionParameter.lowerLimit.detail",
|
|
3721
|
+
example: "0.745",
|
|
3731
3722
|
require: 1,
|
|
3732
3723
|
repeat: 0
|
|
3733
3724
|
},
|
|
3734
3725
|
{
|
|
3735
|
-
name: "formula.functionList.ERF.functionParameter.
|
|
3736
|
-
detail: "formula.functionList.ERF.functionParameter.
|
|
3737
|
-
example: "
|
|
3738
|
-
require:
|
|
3726
|
+
name: "formula.functionList.ERF.functionParameter.upperLimit.name",
|
|
3727
|
+
detail: "formula.functionList.ERF.functionParameter.upperLimit.detail",
|
|
3728
|
+
example: "2",
|
|
3729
|
+
require: 0,
|
|
3739
3730
|
repeat: 0
|
|
3740
3731
|
}
|
|
3741
3732
|
]
|
|
@@ -3747,16 +3738,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3747
3738
|
abstract: "formula.functionList.ERF_PRECISE.abstract",
|
|
3748
3739
|
functionParameter: [
|
|
3749
3740
|
{
|
|
3750
|
-
name: "formula.functionList.ERF_PRECISE.functionParameter.
|
|
3751
|
-
detail: "formula.functionList.ERF_PRECISE.functionParameter.
|
|
3752
|
-
example: "
|
|
3753
|
-
require: 1,
|
|
3754
|
-
repeat: 0
|
|
3755
|
-
},
|
|
3756
|
-
{
|
|
3757
|
-
name: "formula.functionList.ERF_PRECISE.functionParameter.number2.name",
|
|
3758
|
-
detail: "formula.functionList.ERF_PRECISE.functionParameter.number2.detail",
|
|
3759
|
-
example: "A1:A20",
|
|
3741
|
+
name: "formula.functionList.ERF_PRECISE.functionParameter.x.name",
|
|
3742
|
+
detail: "formula.functionList.ERF_PRECISE.functionParameter.x.detail",
|
|
3743
|
+
example: "1",
|
|
3760
3744
|
require: 1,
|
|
3761
3745
|
repeat: 0
|
|
3762
3746
|
}
|
|
@@ -3769,16 +3753,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3769
3753
|
abstract: "formula.functionList.ERFC.abstract",
|
|
3770
3754
|
functionParameter: [
|
|
3771
3755
|
{
|
|
3772
|
-
name: "formula.functionList.ERFC.functionParameter.
|
|
3773
|
-
detail: "formula.functionList.ERFC.functionParameter.
|
|
3774
|
-
example: "
|
|
3775
|
-
require: 1,
|
|
3776
|
-
repeat: 0
|
|
3777
|
-
},
|
|
3778
|
-
{
|
|
3779
|
-
name: "formula.functionList.ERFC.functionParameter.number2.name",
|
|
3780
|
-
detail: "formula.functionList.ERFC.functionParameter.number2.detail",
|
|
3781
|
-
example: "A1:A20",
|
|
3756
|
+
name: "formula.functionList.ERFC.functionParameter.x.name",
|
|
3757
|
+
detail: "formula.functionList.ERFC.functionParameter.x.detail",
|
|
3758
|
+
example: "1",
|
|
3782
3759
|
require: 1,
|
|
3783
3760
|
repeat: 0
|
|
3784
3761
|
}
|
|
@@ -3791,16 +3768,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3791
3768
|
abstract: "formula.functionList.ERFC_PRECISE.abstract",
|
|
3792
3769
|
functionParameter: [
|
|
3793
3770
|
{
|
|
3794
|
-
name: "formula.functionList.ERFC_PRECISE.functionParameter.
|
|
3795
|
-
detail: "formula.functionList.ERFC_PRECISE.functionParameter.
|
|
3796
|
-
example: "
|
|
3797
|
-
require: 1,
|
|
3798
|
-
repeat: 0
|
|
3799
|
-
},
|
|
3800
|
-
{
|
|
3801
|
-
name: "formula.functionList.ERFC_PRECISE.functionParameter.number2.name",
|
|
3802
|
-
detail: "formula.functionList.ERFC_PRECISE.functionParameter.number2.detail",
|
|
3803
|
-
example: "A1:A20",
|
|
3771
|
+
name: "formula.functionList.ERFC_PRECISE.functionParameter.x.name",
|
|
3772
|
+
detail: "formula.functionList.ERFC_PRECISE.functionParameter.x.detail",
|
|
3773
|
+
example: "1",
|
|
3804
3774
|
require: 1,
|
|
3805
3775
|
repeat: 0
|
|
3806
3776
|
}
|
|
@@ -3835,17 +3805,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3835
3805
|
abstract: "formula.functionList.HEX2BIN.abstract",
|
|
3836
3806
|
functionParameter: [
|
|
3837
3807
|
{
|
|
3838
|
-
name: "formula.functionList.HEX2BIN.functionParameter.
|
|
3839
|
-
detail: "formula.functionList.HEX2BIN.functionParameter.
|
|
3840
|
-
example: "
|
|
3808
|
+
name: "formula.functionList.HEX2BIN.functionParameter.number.name",
|
|
3809
|
+
detail: "formula.functionList.HEX2BIN.functionParameter.number.detail",
|
|
3810
|
+
example: '"F"',
|
|
3841
3811
|
require: 1,
|
|
3842
3812
|
repeat: 0
|
|
3843
3813
|
},
|
|
3844
3814
|
{
|
|
3845
|
-
name: "formula.functionList.HEX2BIN.functionParameter.
|
|
3846
|
-
detail: "formula.functionList.HEX2BIN.functionParameter.
|
|
3847
|
-
example: "
|
|
3848
|
-
require:
|
|
3815
|
+
name: "formula.functionList.HEX2BIN.functionParameter.places.name",
|
|
3816
|
+
detail: "formula.functionList.HEX2BIN.functionParameter.places.detail",
|
|
3817
|
+
example: "8",
|
|
3818
|
+
require: 0,
|
|
3849
3819
|
repeat: 0
|
|
3850
3820
|
}
|
|
3851
3821
|
]
|
|
@@ -3857,16 +3827,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3857
3827
|
abstract: "formula.functionList.HEX2DEC.abstract",
|
|
3858
3828
|
functionParameter: [
|
|
3859
3829
|
{
|
|
3860
|
-
name: "formula.functionList.HEX2DEC.functionParameter.
|
|
3861
|
-
detail: "formula.functionList.HEX2DEC.functionParameter.
|
|
3862
|
-
example: "
|
|
3863
|
-
require: 1,
|
|
3864
|
-
repeat: 0
|
|
3865
|
-
},
|
|
3866
|
-
{
|
|
3867
|
-
name: "formula.functionList.HEX2DEC.functionParameter.number2.name",
|
|
3868
|
-
detail: "formula.functionList.HEX2DEC.functionParameter.number2.detail",
|
|
3869
|
-
example: "A1:A20",
|
|
3830
|
+
name: "formula.functionList.HEX2DEC.functionParameter.number.name",
|
|
3831
|
+
detail: "formula.functionList.HEX2DEC.functionParameter.number.detail",
|
|
3832
|
+
example: '"A5"',
|
|
3870
3833
|
require: 1,
|
|
3871
3834
|
repeat: 0
|
|
3872
3835
|
}
|
|
@@ -3879,17 +3842,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
3879
3842
|
abstract: "formula.functionList.HEX2OCT.abstract",
|
|
3880
3843
|
functionParameter: [
|
|
3881
3844
|
{
|
|
3882
|
-
name: "formula.functionList.HEX2OCT.functionParameter.
|
|
3883
|
-
detail: "formula.functionList.HEX2OCT.functionParameter.
|
|
3884
|
-
example: "
|
|
3845
|
+
name: "formula.functionList.HEX2OCT.functionParameter.number.name",
|
|
3846
|
+
detail: "formula.functionList.HEX2OCT.functionParameter.number.detail",
|
|
3847
|
+
example: '"F"',
|
|
3885
3848
|
require: 1,
|
|
3886
3849
|
repeat: 0
|
|
3887
3850
|
},
|
|
3888
3851
|
{
|
|
3889
|
-
name: "formula.functionList.HEX2OCT.functionParameter.
|
|
3890
|
-
detail: "formula.functionList.HEX2OCT.functionParameter.
|
|
3891
|
-
example: "
|
|
3892
|
-
require:
|
|
3852
|
+
name: "formula.functionList.HEX2OCT.functionParameter.places.name",
|
|
3853
|
+
detail: "formula.functionList.HEX2OCT.functionParameter.places.detail",
|
|
3854
|
+
example: "3",
|
|
3855
|
+
require: 0,
|
|
3893
3856
|
repeat: 0
|
|
3894
3857
|
}
|
|
3895
3858
|
]
|
|
@@ -4451,17 +4414,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4451
4414
|
abstract: "formula.functionList.OCT2BIN.abstract",
|
|
4452
4415
|
functionParameter: [
|
|
4453
4416
|
{
|
|
4454
|
-
name: "formula.functionList.OCT2BIN.functionParameter.
|
|
4455
|
-
detail: "formula.functionList.OCT2BIN.functionParameter.
|
|
4456
|
-
example: "
|
|
4417
|
+
name: "formula.functionList.OCT2BIN.functionParameter.number.name",
|
|
4418
|
+
detail: "formula.functionList.OCT2BIN.functionParameter.number.detail",
|
|
4419
|
+
example: "3",
|
|
4457
4420
|
require: 1,
|
|
4458
4421
|
repeat: 0
|
|
4459
4422
|
},
|
|
4460
4423
|
{
|
|
4461
|
-
name: "formula.functionList.OCT2BIN.functionParameter.
|
|
4462
|
-
detail: "formula.functionList.OCT2BIN.functionParameter.
|
|
4463
|
-
example: "
|
|
4464
|
-
require:
|
|
4424
|
+
name: "formula.functionList.OCT2BIN.functionParameter.places.name",
|
|
4425
|
+
detail: "formula.functionList.OCT2BIN.functionParameter.places.detail",
|
|
4426
|
+
example: "3",
|
|
4427
|
+
require: 0,
|
|
4465
4428
|
repeat: 0
|
|
4466
4429
|
}
|
|
4467
4430
|
]
|
|
@@ -4473,16 +4436,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4473
4436
|
abstract: "formula.functionList.OCT2DEC.abstract",
|
|
4474
4437
|
functionParameter: [
|
|
4475
4438
|
{
|
|
4476
|
-
name: "formula.functionList.OCT2DEC.functionParameter.
|
|
4477
|
-
detail: "formula.functionList.OCT2DEC.functionParameter.
|
|
4478
|
-
example: "
|
|
4479
|
-
require: 1,
|
|
4480
|
-
repeat: 0
|
|
4481
|
-
},
|
|
4482
|
-
{
|
|
4483
|
-
name: "formula.functionList.OCT2DEC.functionParameter.number2.name",
|
|
4484
|
-
detail: "formula.functionList.OCT2DEC.functionParameter.number2.detail",
|
|
4485
|
-
example: "A1:A20",
|
|
4439
|
+
name: "formula.functionList.OCT2DEC.functionParameter.number.name",
|
|
4440
|
+
detail: "formula.functionList.OCT2DEC.functionParameter.number.detail",
|
|
4441
|
+
example: "54",
|
|
4486
4442
|
require: 1,
|
|
4487
4443
|
repeat: 0
|
|
4488
4444
|
}
|
|
@@ -4495,17 +4451,17 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4495
4451
|
abstract: "formula.functionList.OCT2HEX.abstract",
|
|
4496
4452
|
functionParameter: [
|
|
4497
4453
|
{
|
|
4498
|
-
name: "formula.functionList.OCT2HEX.functionParameter.
|
|
4499
|
-
detail: "formula.functionList.OCT2HEX.functionParameter.
|
|
4500
|
-
example: "
|
|
4454
|
+
name: "formula.functionList.OCT2HEX.functionParameter.number.name",
|
|
4455
|
+
detail: "formula.functionList.OCT2HEX.functionParameter.number.detail",
|
|
4456
|
+
example: "100",
|
|
4501
4457
|
require: 1,
|
|
4502
4458
|
repeat: 0
|
|
4503
4459
|
},
|
|
4504
4460
|
{
|
|
4505
|
-
name: "formula.functionList.OCT2HEX.functionParameter.
|
|
4506
|
-
detail: "formula.functionList.OCT2HEX.functionParameter.
|
|
4507
|
-
example: "
|
|
4508
|
-
require:
|
|
4461
|
+
name: "formula.functionList.OCT2HEX.functionParameter.places.name",
|
|
4462
|
+
detail: "formula.functionList.OCT2HEX.functionParameter.places.detail",
|
|
4463
|
+
example: "4",
|
|
4464
|
+
require: 0,
|
|
4509
4465
|
repeat: 0
|
|
4510
4466
|
}
|
|
4511
4467
|
]
|
|
@@ -4518,18 +4474,60 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4518
4474
|
abstract: "formula.functionList.ACCRINT.abstract",
|
|
4519
4475
|
functionParameter: [
|
|
4520
4476
|
{
|
|
4521
|
-
name: "formula.functionList.ACCRINT.functionParameter.
|
|
4522
|
-
detail: "formula.functionList.ACCRINT.functionParameter.
|
|
4523
|
-
example: "
|
|
4477
|
+
name: "formula.functionList.ACCRINT.functionParameter.issue.name",
|
|
4478
|
+
detail: "formula.functionList.ACCRINT.functionParameter.issue.detail",
|
|
4479
|
+
example: "39508",
|
|
4524
4480
|
require: 1,
|
|
4525
4481
|
repeat: 0
|
|
4526
4482
|
},
|
|
4527
4483
|
{
|
|
4528
|
-
name: "formula.functionList.ACCRINT.functionParameter.
|
|
4529
|
-
detail: "formula.functionList.ACCRINT.functionParameter.
|
|
4530
|
-
example: "
|
|
4484
|
+
name: "formula.functionList.ACCRINT.functionParameter.firstInterest.name",
|
|
4485
|
+
detail: "formula.functionList.ACCRINT.functionParameter.firstInterest.detail",
|
|
4486
|
+
example: "39691",
|
|
4487
|
+
require: 1,
|
|
4488
|
+
repeat: 0
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
name: "formula.functionList.ACCRINT.functionParameter.settlement.name",
|
|
4492
|
+
detail: "formula.functionList.ACCRINT.functionParameter.settlement.detail",
|
|
4493
|
+
example: "39569",
|
|
4494
|
+
require: 1,
|
|
4495
|
+
repeat: 0
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
name: "formula.functionList.ACCRINT.functionParameter.rate.name",
|
|
4499
|
+
detail: "formula.functionList.ACCRINT.functionParameter.rate.detail",
|
|
4500
|
+
example: "0.1",
|
|
4501
|
+
require: 1,
|
|
4502
|
+
repeat: 0
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
name: "formula.functionList.ACCRINT.functionParameter.par.name",
|
|
4506
|
+
detail: "formula.functionList.ACCRINT.functionParameter.par.detail",
|
|
4507
|
+
example: "1000",
|
|
4508
|
+
require: 1,
|
|
4509
|
+
repeat: 0
|
|
4510
|
+
},
|
|
4511
|
+
{
|
|
4512
|
+
name: "formula.functionList.ACCRINT.functionParameter.frequency.name",
|
|
4513
|
+
detail: "formula.functionList.ACCRINT.functionParameter.frequency.detail",
|
|
4514
|
+
example: "2",
|
|
4531
4515
|
require: 1,
|
|
4532
4516
|
repeat: 0
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
name: "formula.functionList.ACCRINT.functionParameter.basis.name",
|
|
4520
|
+
detail: "formula.functionList.ACCRINT.functionParameter.basis.detail",
|
|
4521
|
+
example: "0",
|
|
4522
|
+
require: 0,
|
|
4523
|
+
repeat: 0
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
name: "formula.functionList.ACCRINT.functionParameter.calcMethod.name",
|
|
4527
|
+
detail: "formula.functionList.ACCRINT.functionParameter.calcMethod.detail",
|
|
4528
|
+
example: "true",
|
|
4529
|
+
require: 0,
|
|
4530
|
+
repeat: 0
|
|
4533
4531
|
}
|
|
4534
4532
|
]
|
|
4535
4533
|
},
|
|
@@ -4540,18 +4538,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4540
4538
|
abstract: "formula.functionList.ACCRINTM.abstract",
|
|
4541
4539
|
functionParameter: [
|
|
4542
4540
|
{
|
|
4543
|
-
name: "formula.functionList.ACCRINTM.functionParameter.
|
|
4544
|
-
detail: "formula.functionList.ACCRINTM.functionParameter.
|
|
4545
|
-
example: "
|
|
4541
|
+
name: "formula.functionList.ACCRINTM.functionParameter.issue.name",
|
|
4542
|
+
detail: "formula.functionList.ACCRINTM.functionParameter.issue.detail",
|
|
4543
|
+
example: '"2008-4-1"',
|
|
4546
4544
|
require: 1,
|
|
4547
4545
|
repeat: 0
|
|
4548
4546
|
},
|
|
4549
4547
|
{
|
|
4550
|
-
name: "formula.functionList.ACCRINTM.functionParameter.
|
|
4551
|
-
detail: "formula.functionList.ACCRINTM.functionParameter.
|
|
4552
|
-
example: "
|
|
4548
|
+
name: "formula.functionList.ACCRINTM.functionParameter.settlement.name",
|
|
4549
|
+
detail: "formula.functionList.ACCRINTM.functionParameter.settlement.detail",
|
|
4550
|
+
example: '"2008-6-15"',
|
|
4553
4551
|
require: 1,
|
|
4554
4552
|
repeat: 0
|
|
4553
|
+
},
|
|
4554
|
+
{
|
|
4555
|
+
name: "formula.functionList.ACCRINTM.functionParameter.rate.name",
|
|
4556
|
+
detail: "formula.functionList.ACCRINTM.functionParameter.rate.detail",
|
|
4557
|
+
example: "0.1",
|
|
4558
|
+
require: 1,
|
|
4559
|
+
repeat: 0
|
|
4560
|
+
},
|
|
4561
|
+
{
|
|
4562
|
+
name: "formula.functionList.ACCRINTM.functionParameter.par.name",
|
|
4563
|
+
detail: "formula.functionList.ACCRINTM.functionParameter.par.detail",
|
|
4564
|
+
example: "1000",
|
|
4565
|
+
require: 1,
|
|
4566
|
+
repeat: 0
|
|
4567
|
+
},
|
|
4568
|
+
{
|
|
4569
|
+
name: "formula.functionList.ACCRINTM.functionParameter.basis.name",
|
|
4570
|
+
detail: "formula.functionList.ACCRINTM.functionParameter.basis.detail",
|
|
4571
|
+
example: "3",
|
|
4572
|
+
require: 0,
|
|
4573
|
+
repeat: 0
|
|
4555
4574
|
}
|
|
4556
4575
|
]
|
|
4557
4576
|
},
|
|
@@ -4584,18 +4603,53 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4584
4603
|
abstract: "formula.functionList.AMORLINC.abstract",
|
|
4585
4604
|
functionParameter: [
|
|
4586
4605
|
{
|
|
4587
|
-
name: "formula.functionList.AMORLINC.functionParameter.
|
|
4588
|
-
detail: "formula.functionList.AMORLINC.functionParameter.
|
|
4589
|
-
example: "
|
|
4606
|
+
name: "formula.functionList.AMORLINC.functionParameter.cost.name",
|
|
4607
|
+
detail: "formula.functionList.AMORLINC.functionParameter.cost.detail",
|
|
4608
|
+
example: "2400",
|
|
4590
4609
|
require: 1,
|
|
4591
4610
|
repeat: 0
|
|
4592
4611
|
},
|
|
4593
4612
|
{
|
|
4594
|
-
name: "formula.functionList.AMORLINC.functionParameter.
|
|
4595
|
-
detail: "formula.functionList.AMORLINC.functionParameter.
|
|
4596
|
-
example: "
|
|
4613
|
+
name: "formula.functionList.AMORLINC.functionParameter.datePurchased.name",
|
|
4614
|
+
detail: "formula.functionList.AMORLINC.functionParameter.datePurchased.detail",
|
|
4615
|
+
example: "39679",
|
|
4616
|
+
require: 1,
|
|
4617
|
+
repeat: 0
|
|
4618
|
+
},
|
|
4619
|
+
{
|
|
4620
|
+
name: "formula.functionList.AMORLINC.functionParameter.firstPeriod.name",
|
|
4621
|
+
detail: "formula.functionList.AMORLINC.functionParameter.firstPeriod.detail",
|
|
4622
|
+
example: "39813",
|
|
4623
|
+
require: 1,
|
|
4624
|
+
repeat: 0
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
name: "formula.functionList.AMORLINC.functionParameter.salvage.name",
|
|
4628
|
+
detail: "formula.functionList.AMORLINC.functionParameter.salvage.detail",
|
|
4629
|
+
example: "300",
|
|
4630
|
+
require: 1,
|
|
4631
|
+
repeat: 0
|
|
4632
|
+
},
|
|
4633
|
+
{
|
|
4634
|
+
name: "formula.functionList.AMORLINC.functionParameter.period.name",
|
|
4635
|
+
detail: "formula.functionList.AMORLINC.functionParameter.period.detail",
|
|
4636
|
+
example: "1",
|
|
4597
4637
|
require: 1,
|
|
4598
4638
|
repeat: 0
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
name: "formula.functionList.AMORLINC.functionParameter.rate.name",
|
|
4642
|
+
detail: "formula.functionList.AMORLINC.functionParameter.rate.detail",
|
|
4643
|
+
example: "0.15",
|
|
4644
|
+
require: 1,
|
|
4645
|
+
repeat: 0
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
name: "formula.functionList.AMORLINC.functionParameter.basis.name",
|
|
4649
|
+
detail: "formula.functionList.AMORLINC.functionParameter.basis.detail",
|
|
4650
|
+
example: "0",
|
|
4651
|
+
require: 0,
|
|
4652
|
+
repeat: 0
|
|
4599
4653
|
}
|
|
4600
4654
|
]
|
|
4601
4655
|
},
|
|
@@ -4606,18 +4660,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4606
4660
|
abstract: "formula.functionList.COUPDAYBS.abstract",
|
|
4607
4661
|
functionParameter: [
|
|
4608
4662
|
{
|
|
4609
|
-
name: "formula.functionList.COUPDAYBS.functionParameter.
|
|
4610
|
-
detail: "formula.functionList.COUPDAYBS.functionParameter.
|
|
4611
|
-
example: "
|
|
4663
|
+
name: "formula.functionList.COUPDAYBS.functionParameter.settlement.name",
|
|
4664
|
+
detail: "formula.functionList.COUPDAYBS.functionParameter.settlement.detail",
|
|
4665
|
+
example: '"2011-1-25"',
|
|
4612
4666
|
require: 1,
|
|
4613
4667
|
repeat: 0
|
|
4614
4668
|
},
|
|
4615
4669
|
{
|
|
4616
|
-
name: "formula.functionList.COUPDAYBS.functionParameter.
|
|
4617
|
-
detail: "formula.functionList.COUPDAYBS.functionParameter.
|
|
4618
|
-
example: "
|
|
4670
|
+
name: "formula.functionList.COUPDAYBS.functionParameter.maturity.name",
|
|
4671
|
+
detail: "formula.functionList.COUPDAYBS.functionParameter.maturity.detail",
|
|
4672
|
+
example: '"2011-11-15"',
|
|
4673
|
+
require: 1,
|
|
4674
|
+
repeat: 0
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
name: "formula.functionList.COUPDAYBS.functionParameter.frequency.name",
|
|
4678
|
+
detail: "formula.functionList.COUPDAYBS.functionParameter.frequency.detail",
|
|
4679
|
+
example: "2",
|
|
4619
4680
|
require: 1,
|
|
4620
4681
|
repeat: 0
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
name: "formula.functionList.COUPDAYBS.functionParameter.basis.name",
|
|
4685
|
+
detail: "formula.functionList.COUPDAYBS.functionParameter.basis.detail",
|
|
4686
|
+
example: "1",
|
|
4687
|
+
require: 0,
|
|
4688
|
+
repeat: 0
|
|
4621
4689
|
}
|
|
4622
4690
|
]
|
|
4623
4691
|
},
|
|
@@ -4628,18 +4696,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4628
4696
|
abstract: "formula.functionList.COUPDAYS.abstract",
|
|
4629
4697
|
functionParameter: [
|
|
4630
4698
|
{
|
|
4631
|
-
name: "formula.functionList.COUPDAYS.functionParameter.
|
|
4632
|
-
detail: "formula.functionList.COUPDAYS.functionParameter.
|
|
4633
|
-
example: "
|
|
4699
|
+
name: "formula.functionList.COUPDAYS.functionParameter.settlement.name",
|
|
4700
|
+
detail: "formula.functionList.COUPDAYS.functionParameter.settlement.detail",
|
|
4701
|
+
example: '"2011-1-25"',
|
|
4634
4702
|
require: 1,
|
|
4635
4703
|
repeat: 0
|
|
4636
4704
|
},
|
|
4637
4705
|
{
|
|
4638
|
-
name: "formula.functionList.COUPDAYS.functionParameter.
|
|
4639
|
-
detail: "formula.functionList.COUPDAYS.functionParameter.
|
|
4640
|
-
example: "
|
|
4706
|
+
name: "formula.functionList.COUPDAYS.functionParameter.maturity.name",
|
|
4707
|
+
detail: "formula.functionList.COUPDAYS.functionParameter.maturity.detail",
|
|
4708
|
+
example: '"2011-11-15"',
|
|
4641
4709
|
require: 1,
|
|
4642
4710
|
repeat: 0
|
|
4711
|
+
},
|
|
4712
|
+
{
|
|
4713
|
+
name: "formula.functionList.COUPDAYS.functionParameter.frequency.name",
|
|
4714
|
+
detail: "formula.functionList.COUPDAYS.functionParameter.frequency.detail",
|
|
4715
|
+
example: "2",
|
|
4716
|
+
require: 1,
|
|
4717
|
+
repeat: 0
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
name: "formula.functionList.COUPDAYS.functionParameter.basis.name",
|
|
4721
|
+
detail: "formula.functionList.COUPDAYS.functionParameter.basis.detail",
|
|
4722
|
+
example: "1",
|
|
4723
|
+
require: 0,
|
|
4724
|
+
repeat: 0
|
|
4643
4725
|
}
|
|
4644
4726
|
]
|
|
4645
4727
|
},
|
|
@@ -4650,18 +4732,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4650
4732
|
abstract: "formula.functionList.COUPDAYSNC.abstract",
|
|
4651
4733
|
functionParameter: [
|
|
4652
4734
|
{
|
|
4653
|
-
name: "formula.functionList.COUPDAYSNC.functionParameter.
|
|
4654
|
-
detail: "formula.functionList.COUPDAYSNC.functionParameter.
|
|
4655
|
-
example: "
|
|
4735
|
+
name: "formula.functionList.COUPDAYSNC.functionParameter.settlement.name",
|
|
4736
|
+
detail: "formula.functionList.COUPDAYSNC.functionParameter.settlement.detail",
|
|
4737
|
+
example: '"2011-1-25"',
|
|
4656
4738
|
require: 1,
|
|
4657
4739
|
repeat: 0
|
|
4658
4740
|
},
|
|
4659
4741
|
{
|
|
4660
|
-
name: "formula.functionList.COUPDAYSNC.functionParameter.
|
|
4661
|
-
detail: "formula.functionList.COUPDAYSNC.functionParameter.
|
|
4662
|
-
example: "
|
|
4742
|
+
name: "formula.functionList.COUPDAYSNC.functionParameter.maturity.name",
|
|
4743
|
+
detail: "formula.functionList.COUPDAYSNC.functionParameter.maturity.detail",
|
|
4744
|
+
example: '"2011-11-15"',
|
|
4745
|
+
require: 1,
|
|
4746
|
+
repeat: 0
|
|
4747
|
+
},
|
|
4748
|
+
{
|
|
4749
|
+
name: "formula.functionList.COUPDAYSNC.functionParameter.frequency.name",
|
|
4750
|
+
detail: "formula.functionList.COUPDAYSNC.functionParameter.frequency.detail",
|
|
4751
|
+
example: "2",
|
|
4663
4752
|
require: 1,
|
|
4664
4753
|
repeat: 0
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
name: "formula.functionList.COUPDAYSNC.functionParameter.basis.name",
|
|
4757
|
+
detail: "formula.functionList.COUPDAYSNC.functionParameter.basis.detail",
|
|
4758
|
+
example: "1",
|
|
4759
|
+
require: 0,
|
|
4760
|
+
repeat: 0
|
|
4665
4761
|
}
|
|
4666
4762
|
]
|
|
4667
4763
|
},
|
|
@@ -4672,18 +4768,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4672
4768
|
abstract: "formula.functionList.COUPNCD.abstract",
|
|
4673
4769
|
functionParameter: [
|
|
4674
4770
|
{
|
|
4675
|
-
name: "formula.functionList.COUPNCD.functionParameter.
|
|
4676
|
-
detail: "formula.functionList.COUPNCD.functionParameter.
|
|
4677
|
-
example: "
|
|
4771
|
+
name: "formula.functionList.COUPNCD.functionParameter.settlement.name",
|
|
4772
|
+
detail: "formula.functionList.COUPNCD.functionParameter.settlement.detail",
|
|
4773
|
+
example: '"2011-1-25"',
|
|
4678
4774
|
require: 1,
|
|
4679
4775
|
repeat: 0
|
|
4680
4776
|
},
|
|
4681
4777
|
{
|
|
4682
|
-
name: "formula.functionList.COUPNCD.functionParameter.
|
|
4683
|
-
detail: "formula.functionList.COUPNCD.functionParameter.
|
|
4684
|
-
example: "
|
|
4778
|
+
name: "formula.functionList.COUPNCD.functionParameter.maturity.name",
|
|
4779
|
+
detail: "formula.functionList.COUPNCD.functionParameter.maturity.detail",
|
|
4780
|
+
example: '"2011-11-15"',
|
|
4685
4781
|
require: 1,
|
|
4686
4782
|
repeat: 0
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
name: "formula.functionList.COUPNCD.functionParameter.frequency.name",
|
|
4786
|
+
detail: "formula.functionList.COUPNCD.functionParameter.frequency.detail",
|
|
4787
|
+
example: "2",
|
|
4788
|
+
require: 1,
|
|
4789
|
+
repeat: 0
|
|
4790
|
+
},
|
|
4791
|
+
{
|
|
4792
|
+
name: "formula.functionList.COUPNCD.functionParameter.basis.name",
|
|
4793
|
+
detail: "formula.functionList.COUPNCD.functionParameter.basis.detail",
|
|
4794
|
+
example: "1",
|
|
4795
|
+
require: 0,
|
|
4796
|
+
repeat: 0
|
|
4687
4797
|
}
|
|
4688
4798
|
]
|
|
4689
4799
|
},
|
|
@@ -4694,18 +4804,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4694
4804
|
abstract: "formula.functionList.COUPNUM.abstract",
|
|
4695
4805
|
functionParameter: [
|
|
4696
4806
|
{
|
|
4697
|
-
name: "formula.functionList.COUPNUM.functionParameter.
|
|
4698
|
-
detail: "formula.functionList.COUPNUM.functionParameter.
|
|
4699
|
-
example: "
|
|
4807
|
+
name: "formula.functionList.COUPNUM.functionParameter.settlement.name",
|
|
4808
|
+
detail: "formula.functionList.COUPNUM.functionParameter.settlement.detail",
|
|
4809
|
+
example: '"2011-1-25"',
|
|
4700
4810
|
require: 1,
|
|
4701
4811
|
repeat: 0
|
|
4702
4812
|
},
|
|
4703
4813
|
{
|
|
4704
|
-
name: "formula.functionList.COUPNUM.functionParameter.
|
|
4705
|
-
detail: "formula.functionList.COUPNUM.functionParameter.
|
|
4706
|
-
example: "
|
|
4814
|
+
name: "formula.functionList.COUPNUM.functionParameter.maturity.name",
|
|
4815
|
+
detail: "formula.functionList.COUPNUM.functionParameter.maturity.detail",
|
|
4816
|
+
example: '"2011-11-15"',
|
|
4707
4817
|
require: 1,
|
|
4708
4818
|
repeat: 0
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
name: "formula.functionList.COUPNUM.functionParameter.frequency.name",
|
|
4822
|
+
detail: "formula.functionList.COUPNUM.functionParameter.frequency.detail",
|
|
4823
|
+
example: "2",
|
|
4824
|
+
require: 1,
|
|
4825
|
+
repeat: 0
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
name: "formula.functionList.COUPNUM.functionParameter.basis.name",
|
|
4829
|
+
detail: "formula.functionList.COUPNUM.functionParameter.basis.detail",
|
|
4830
|
+
example: "1",
|
|
4831
|
+
require: 0,
|
|
4832
|
+
repeat: 0
|
|
4709
4833
|
}
|
|
4710
4834
|
]
|
|
4711
4835
|
},
|
|
@@ -4716,18 +4840,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4716
4840
|
abstract: "formula.functionList.COUPPCD.abstract",
|
|
4717
4841
|
functionParameter: [
|
|
4718
4842
|
{
|
|
4719
|
-
name: "formula.functionList.COUPPCD.functionParameter.
|
|
4720
|
-
detail: "formula.functionList.COUPPCD.functionParameter.
|
|
4721
|
-
example: "
|
|
4843
|
+
name: "formula.functionList.COUPPCD.functionParameter.settlement.name",
|
|
4844
|
+
detail: "formula.functionList.COUPPCD.functionParameter.settlement.detail",
|
|
4845
|
+
example: '"2011-1-25"',
|
|
4722
4846
|
require: 1,
|
|
4723
4847
|
repeat: 0
|
|
4724
4848
|
},
|
|
4725
4849
|
{
|
|
4726
|
-
name: "formula.functionList.COUPPCD.functionParameter.
|
|
4727
|
-
detail: "formula.functionList.COUPPCD.functionParameter.
|
|
4728
|
-
example: "
|
|
4850
|
+
name: "formula.functionList.COUPPCD.functionParameter.maturity.name",
|
|
4851
|
+
detail: "formula.functionList.COUPPCD.functionParameter.maturity.detail",
|
|
4852
|
+
example: '"2011-11-15"',
|
|
4853
|
+
require: 1,
|
|
4854
|
+
repeat: 0
|
|
4855
|
+
},
|
|
4856
|
+
{
|
|
4857
|
+
name: "formula.functionList.COUPPCD.functionParameter.frequency.name",
|
|
4858
|
+
detail: "formula.functionList.COUPPCD.functionParameter.frequency.detail",
|
|
4859
|
+
example: "2",
|
|
4729
4860
|
require: 1,
|
|
4730
4861
|
repeat: 0
|
|
4862
|
+
},
|
|
4863
|
+
{
|
|
4864
|
+
name: "formula.functionList.COUPPCD.functionParameter.basis.name",
|
|
4865
|
+
detail: "formula.functionList.COUPPCD.functionParameter.basis.detail",
|
|
4866
|
+
example: "1",
|
|
4867
|
+
require: 0,
|
|
4868
|
+
repeat: 0
|
|
4731
4869
|
}
|
|
4732
4870
|
]
|
|
4733
4871
|
},
|
|
@@ -4738,16 +4876,44 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4738
4876
|
abstract: "formula.functionList.CUMIPMT.abstract",
|
|
4739
4877
|
functionParameter: [
|
|
4740
4878
|
{
|
|
4741
|
-
name: "formula.functionList.CUMIPMT.functionParameter.
|
|
4742
|
-
detail: "formula.functionList.CUMIPMT.functionParameter.
|
|
4743
|
-
example: "
|
|
4879
|
+
name: "formula.functionList.CUMIPMT.functionParameter.rate.name",
|
|
4880
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.rate.detail",
|
|
4881
|
+
example: "0.09/12",
|
|
4744
4882
|
require: 1,
|
|
4745
4883
|
repeat: 0
|
|
4746
4884
|
},
|
|
4747
4885
|
{
|
|
4748
|
-
name: "formula.functionList.CUMIPMT.functionParameter.
|
|
4749
|
-
detail: "formula.functionList.CUMIPMT.functionParameter.
|
|
4750
|
-
example: "
|
|
4886
|
+
name: "formula.functionList.CUMIPMT.functionParameter.nper.name",
|
|
4887
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.nper.detail",
|
|
4888
|
+
example: "30*12",
|
|
4889
|
+
require: 1,
|
|
4890
|
+
repeat: 0
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
name: "formula.functionList.CUMIPMT.functionParameter.pv.name",
|
|
4894
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.pv.detail",
|
|
4895
|
+
example: "125000",
|
|
4896
|
+
require: 1,
|
|
4897
|
+
repeat: 0
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
name: "formula.functionList.CUMIPMT.functionParameter.startPeriod.name",
|
|
4901
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.startPeriod.detail",
|
|
4902
|
+
example: "13",
|
|
4903
|
+
require: 1,
|
|
4904
|
+
repeat: 0
|
|
4905
|
+
},
|
|
4906
|
+
{
|
|
4907
|
+
name: "formula.functionList.CUMIPMT.functionParameter.endPeriod.name",
|
|
4908
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.endPeriod.detail",
|
|
4909
|
+
example: "24",
|
|
4910
|
+
require: 1,
|
|
4911
|
+
repeat: 0
|
|
4912
|
+
},
|
|
4913
|
+
{
|
|
4914
|
+
name: "formula.functionList.CUMIPMT.functionParameter.type.name",
|
|
4915
|
+
detail: "formula.functionList.CUMIPMT.functionParameter.type.detail",
|
|
4916
|
+
example: "0",
|
|
4751
4917
|
require: 1,
|
|
4752
4918
|
repeat: 0
|
|
4753
4919
|
}
|
|
@@ -4760,16 +4926,44 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4760
4926
|
abstract: "formula.functionList.CUMPRINC.abstract",
|
|
4761
4927
|
functionParameter: [
|
|
4762
4928
|
{
|
|
4763
|
-
name: "formula.functionList.CUMPRINC.functionParameter.
|
|
4764
|
-
detail: "formula.functionList.CUMPRINC.functionParameter.
|
|
4765
|
-
example: "
|
|
4929
|
+
name: "formula.functionList.CUMPRINC.functionParameter.rate.name",
|
|
4930
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.rate.detail",
|
|
4931
|
+
example: "0.09/12",
|
|
4766
4932
|
require: 1,
|
|
4767
4933
|
repeat: 0
|
|
4768
4934
|
},
|
|
4769
4935
|
{
|
|
4770
|
-
name: "formula.functionList.CUMPRINC.functionParameter.
|
|
4771
|
-
detail: "formula.functionList.CUMPRINC.functionParameter.
|
|
4772
|
-
example: "
|
|
4936
|
+
name: "formula.functionList.CUMPRINC.functionParameter.nper.name",
|
|
4937
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.nper.detail",
|
|
4938
|
+
example: "30*12",
|
|
4939
|
+
require: 1,
|
|
4940
|
+
repeat: 0
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
name: "formula.functionList.CUMPRINC.functionParameter.pv.name",
|
|
4944
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.pv.detail",
|
|
4945
|
+
example: "125000",
|
|
4946
|
+
require: 1,
|
|
4947
|
+
repeat: 0
|
|
4948
|
+
},
|
|
4949
|
+
{
|
|
4950
|
+
name: "formula.functionList.CUMPRINC.functionParameter.startPeriod.name",
|
|
4951
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.startPeriod.detail",
|
|
4952
|
+
example: "13",
|
|
4953
|
+
require: 1,
|
|
4954
|
+
repeat: 0
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
name: "formula.functionList.CUMPRINC.functionParameter.endPeriod.name",
|
|
4958
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.endPeriod.detail",
|
|
4959
|
+
example: "24",
|
|
4960
|
+
require: 1,
|
|
4961
|
+
repeat: 0
|
|
4962
|
+
},
|
|
4963
|
+
{
|
|
4964
|
+
name: "formula.functionList.CUMPRINC.functionParameter.type.name",
|
|
4965
|
+
detail: "formula.functionList.CUMPRINC.functionParameter.type.detail",
|
|
4966
|
+
example: "0",
|
|
4773
4967
|
require: 1,
|
|
4774
4968
|
repeat: 0
|
|
4775
4969
|
}
|
|
@@ -4782,18 +4976,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4782
4976
|
abstract: "formula.functionList.DB.abstract",
|
|
4783
4977
|
functionParameter: [
|
|
4784
4978
|
{
|
|
4785
|
-
name: "formula.functionList.DB.functionParameter.
|
|
4786
|
-
detail: "formula.functionList.DB.functionParameter.
|
|
4787
|
-
example: "
|
|
4979
|
+
name: "formula.functionList.DB.functionParameter.cost.name",
|
|
4980
|
+
detail: "formula.functionList.DB.functionParameter.cost.detail",
|
|
4981
|
+
example: "10000000",
|
|
4788
4982
|
require: 1,
|
|
4789
4983
|
repeat: 0
|
|
4790
4984
|
},
|
|
4791
4985
|
{
|
|
4792
|
-
name: "formula.functionList.DB.functionParameter.
|
|
4793
|
-
detail: "formula.functionList.DB.functionParameter.
|
|
4794
|
-
example: "
|
|
4986
|
+
name: "formula.functionList.DB.functionParameter.salvage.name",
|
|
4987
|
+
detail: "formula.functionList.DB.functionParameter.salvage.detail",
|
|
4988
|
+
example: "1000000",
|
|
4989
|
+
require: 1,
|
|
4990
|
+
repeat: 0
|
|
4991
|
+
},
|
|
4992
|
+
{
|
|
4993
|
+
name: "formula.functionList.DB.functionParameter.life.name",
|
|
4994
|
+
detail: "formula.functionList.DB.functionParameter.life.detail",
|
|
4995
|
+
example: "6",
|
|
4996
|
+
require: 1,
|
|
4997
|
+
repeat: 0
|
|
4998
|
+
},
|
|
4999
|
+
{
|
|
5000
|
+
name: "formula.functionList.DB.functionParameter.period.name",
|
|
5001
|
+
detail: "formula.functionList.DB.functionParameter.period.detail",
|
|
5002
|
+
example: "1",
|
|
4795
5003
|
require: 1,
|
|
4796
5004
|
repeat: 0
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
name: "formula.functionList.DB.functionParameter.month.name",
|
|
5008
|
+
detail: "formula.functionList.DB.functionParameter.month.detail",
|
|
5009
|
+
example: "7",
|
|
5010
|
+
require: 0,
|
|
5011
|
+
repeat: 0
|
|
4797
5012
|
}
|
|
4798
5013
|
]
|
|
4799
5014
|
},
|
|
@@ -4804,18 +5019,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4804
5019
|
abstract: "formula.functionList.DDB.abstract",
|
|
4805
5020
|
functionParameter: [
|
|
4806
5021
|
{
|
|
4807
|
-
name: "formula.functionList.DDB.functionParameter.
|
|
4808
|
-
detail: "formula.functionList.DDB.functionParameter.
|
|
4809
|
-
example: "
|
|
5022
|
+
name: "formula.functionList.DDB.functionParameter.cost.name",
|
|
5023
|
+
detail: "formula.functionList.DDB.functionParameter.cost.detail",
|
|
5024
|
+
example: "24000",
|
|
4810
5025
|
require: 1,
|
|
4811
5026
|
repeat: 0
|
|
4812
5027
|
},
|
|
4813
5028
|
{
|
|
4814
|
-
name: "formula.functionList.DDB.functionParameter.
|
|
4815
|
-
detail: "formula.functionList.DDB.functionParameter.
|
|
4816
|
-
example: "
|
|
5029
|
+
name: "formula.functionList.DDB.functionParameter.salvage.name",
|
|
5030
|
+
detail: "formula.functionList.DDB.functionParameter.salvage.detail",
|
|
5031
|
+
example: "3000",
|
|
4817
5032
|
require: 1,
|
|
4818
5033
|
repeat: 0
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
name: "formula.functionList.DDB.functionParameter.life.name",
|
|
5037
|
+
detail: "formula.functionList.DDB.functionParameter.life.detail",
|
|
5038
|
+
example: "10",
|
|
5039
|
+
require: 1,
|
|
5040
|
+
repeat: 0
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
name: "formula.functionList.DDB.functionParameter.period.name",
|
|
5044
|
+
detail: "formula.functionList.DDB.functionParameter.period.detail",
|
|
5045
|
+
example: "1",
|
|
5046
|
+
require: 1,
|
|
5047
|
+
repeat: 0
|
|
5048
|
+
},
|
|
5049
|
+
{
|
|
5050
|
+
name: "formula.functionList.DDB.functionParameter.factor.name",
|
|
5051
|
+
detail: "formula.functionList.DDB.functionParameter.factor.detail",
|
|
5052
|
+
example: "2",
|
|
5053
|
+
require: 0,
|
|
5054
|
+
repeat: 0
|
|
4819
5055
|
}
|
|
4820
5056
|
]
|
|
4821
5057
|
},
|
|
@@ -4826,18 +5062,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4826
5062
|
abstract: "formula.functionList.DISC.abstract",
|
|
4827
5063
|
functionParameter: [
|
|
4828
5064
|
{
|
|
4829
|
-
name: "formula.functionList.DISC.functionParameter.
|
|
4830
|
-
detail: "formula.functionList.DISC.functionParameter.
|
|
4831
|
-
example: "
|
|
5065
|
+
name: "formula.functionList.DISC.functionParameter.settlement.name",
|
|
5066
|
+
detail: "formula.functionList.DISC.functionParameter.settlement.detail",
|
|
5067
|
+
example: '"2018-7-1"',
|
|
4832
5068
|
require: 1,
|
|
4833
5069
|
repeat: 0
|
|
4834
5070
|
},
|
|
4835
5071
|
{
|
|
4836
|
-
name: "formula.functionList.DISC.functionParameter.
|
|
4837
|
-
detail: "formula.functionList.DISC.functionParameter.
|
|
4838
|
-
example: "
|
|
5072
|
+
name: "formula.functionList.DISC.functionParameter.maturity.name",
|
|
5073
|
+
detail: "formula.functionList.DISC.functionParameter.maturity.detail",
|
|
5074
|
+
example: '"2048-1-1"',
|
|
5075
|
+
require: 1,
|
|
5076
|
+
repeat: 0
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
name: "formula.functionList.DISC.functionParameter.pr.name",
|
|
5080
|
+
detail: "formula.functionList.DISC.functionParameter.pr.detail",
|
|
5081
|
+
example: "97.975",
|
|
4839
5082
|
require: 1,
|
|
4840
5083
|
repeat: 0
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
name: "formula.functionList.DISC.functionParameter.redemption.name",
|
|
5087
|
+
detail: "formula.functionList.DISC.functionParameter.redemption.detail",
|
|
5088
|
+
example: "100",
|
|
5089
|
+
require: 1,
|
|
5090
|
+
repeat: 0
|
|
5091
|
+
},
|
|
5092
|
+
{
|
|
5093
|
+
name: "formula.functionList.DISC.functionParameter.basis.name",
|
|
5094
|
+
detail: "formula.functionList.DISC.functionParameter.basis.detail",
|
|
5095
|
+
example: "1",
|
|
5096
|
+
require: 0,
|
|
5097
|
+
repeat: 0
|
|
4841
5098
|
}
|
|
4842
5099
|
]
|
|
4843
5100
|
},
|
|
@@ -4848,16 +5105,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4848
5105
|
abstract: "formula.functionList.DOLLARDE.abstract",
|
|
4849
5106
|
functionParameter: [
|
|
4850
5107
|
{
|
|
4851
|
-
name: "formula.functionList.DOLLARDE.functionParameter.
|
|
4852
|
-
detail: "formula.functionList.DOLLARDE.functionParameter.
|
|
4853
|
-
example: "
|
|
5108
|
+
name: "formula.functionList.DOLLARDE.functionParameter.fractionalDollar.name",
|
|
5109
|
+
detail: "formula.functionList.DOLLARDE.functionParameter.fractionalDollar.detail",
|
|
5110
|
+
example: "1.02",
|
|
4854
5111
|
require: 1,
|
|
4855
5112
|
repeat: 0
|
|
4856
5113
|
},
|
|
4857
5114
|
{
|
|
4858
|
-
name: "formula.functionList.DOLLARDE.functionParameter.
|
|
4859
|
-
detail: "formula.functionList.DOLLARDE.functionParameter.
|
|
4860
|
-
example: "
|
|
5115
|
+
name: "formula.functionList.DOLLARDE.functionParameter.fraction.name",
|
|
5116
|
+
detail: "formula.functionList.DOLLARDE.functionParameter.fraction.detail",
|
|
5117
|
+
example: "16",
|
|
4861
5118
|
require: 1,
|
|
4862
5119
|
repeat: 0
|
|
4863
5120
|
}
|
|
@@ -4870,16 +5127,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4870
5127
|
abstract: "formula.functionList.DOLLARFR.abstract",
|
|
4871
5128
|
functionParameter: [
|
|
4872
5129
|
{
|
|
4873
|
-
name: "formula.functionList.DOLLARFR.functionParameter.
|
|
4874
|
-
detail: "formula.functionList.DOLLARFR.functionParameter.
|
|
4875
|
-
example: "
|
|
5130
|
+
name: "formula.functionList.DOLLARFR.functionParameter.decimalDollar.name",
|
|
5131
|
+
detail: "formula.functionList.DOLLARFR.functionParameter.decimalDollar.detail",
|
|
5132
|
+
example: "1.125",
|
|
4876
5133
|
require: 1,
|
|
4877
5134
|
repeat: 0
|
|
4878
5135
|
},
|
|
4879
5136
|
{
|
|
4880
|
-
name: "formula.functionList.DOLLARFR.functionParameter.
|
|
4881
|
-
detail: "formula.functionList.DOLLARFR.functionParameter.
|
|
4882
|
-
example: "
|
|
5137
|
+
name: "formula.functionList.DOLLARFR.functionParameter.fraction.name",
|
|
5138
|
+
detail: "formula.functionList.DOLLARFR.functionParameter.fraction.detail",
|
|
5139
|
+
example: "16",
|
|
4883
5140
|
require: 1,
|
|
4884
5141
|
repeat: 0
|
|
4885
5142
|
}
|
|
@@ -4914,16 +5171,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4914
5171
|
abstract: "formula.functionList.EFFECT.abstract",
|
|
4915
5172
|
functionParameter: [
|
|
4916
5173
|
{
|
|
4917
|
-
name: "formula.functionList.EFFECT.functionParameter.
|
|
4918
|
-
detail: "formula.functionList.EFFECT.functionParameter.
|
|
4919
|
-
example: "
|
|
5174
|
+
name: "formula.functionList.EFFECT.functionParameter.nominalRate.name",
|
|
5175
|
+
detail: "formula.functionList.EFFECT.functionParameter.nominalRate.detail",
|
|
5176
|
+
example: "0.0525",
|
|
4920
5177
|
require: 1,
|
|
4921
5178
|
repeat: 0
|
|
4922
5179
|
},
|
|
4923
5180
|
{
|
|
4924
|
-
name: "formula.functionList.EFFECT.functionParameter.
|
|
4925
|
-
detail: "formula.functionList.EFFECT.functionParameter.
|
|
4926
|
-
example: "
|
|
5181
|
+
name: "formula.functionList.EFFECT.functionParameter.npery.name",
|
|
5182
|
+
detail: "formula.functionList.EFFECT.functionParameter.npery.detail",
|
|
5183
|
+
example: "4",
|
|
4927
5184
|
require: 1,
|
|
4928
5185
|
repeat: 0
|
|
4929
5186
|
}
|
|
@@ -4936,18 +5193,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4936
5193
|
abstract: "formula.functionList.FV.abstract",
|
|
4937
5194
|
functionParameter: [
|
|
4938
5195
|
{
|
|
4939
|
-
name: "formula.functionList.FV.functionParameter.
|
|
4940
|
-
detail: "formula.functionList.FV.functionParameter.
|
|
4941
|
-
example: "
|
|
5196
|
+
name: "formula.functionList.FV.functionParameter.rate.name",
|
|
5197
|
+
detail: "formula.functionList.FV.functionParameter.rate.detail",
|
|
5198
|
+
example: "0.06/12",
|
|
4942
5199
|
require: 1,
|
|
4943
5200
|
repeat: 0
|
|
4944
5201
|
},
|
|
4945
5202
|
{
|
|
4946
|
-
name: "formula.functionList.FV.functionParameter.
|
|
4947
|
-
detail: "formula.functionList.FV.functionParameter.
|
|
4948
|
-
example: "
|
|
5203
|
+
name: "formula.functionList.FV.functionParameter.nper.name",
|
|
5204
|
+
detail: "formula.functionList.FV.functionParameter.nper.detail",
|
|
5205
|
+
example: "10",
|
|
4949
5206
|
require: 1,
|
|
4950
5207
|
repeat: 0
|
|
5208
|
+
},
|
|
5209
|
+
{
|
|
5210
|
+
name: "formula.functionList.FV.functionParameter.pmt.name",
|
|
5211
|
+
detail: "formula.functionList.FV.functionParameter.pmt.detail",
|
|
5212
|
+
example: "-200",
|
|
5213
|
+
require: 1,
|
|
5214
|
+
repeat: 0
|
|
5215
|
+
},
|
|
5216
|
+
{
|
|
5217
|
+
name: "formula.functionList.FV.functionParameter.pv.name",
|
|
5218
|
+
detail: "formula.functionList.FV.functionParameter.pv.detail",
|
|
5219
|
+
example: "-500",
|
|
5220
|
+
require: 0,
|
|
5221
|
+
repeat: 0
|
|
5222
|
+
},
|
|
5223
|
+
{
|
|
5224
|
+
name: "formula.functionList.FV.functionParameter.type.name",
|
|
5225
|
+
detail: "formula.functionList.FV.functionParameter.type.detail",
|
|
5226
|
+
example: "1",
|
|
5227
|
+
require: 0,
|
|
5228
|
+
repeat: 0
|
|
4951
5229
|
}
|
|
4952
5230
|
]
|
|
4953
5231
|
},
|
|
@@ -4958,16 +5236,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4958
5236
|
abstract: "formula.functionList.FVSCHEDULE.abstract",
|
|
4959
5237
|
functionParameter: [
|
|
4960
5238
|
{
|
|
4961
|
-
name: "formula.functionList.FVSCHEDULE.functionParameter.
|
|
4962
|
-
detail: "formula.functionList.FVSCHEDULE.functionParameter.
|
|
4963
|
-
example: "
|
|
5239
|
+
name: "formula.functionList.FVSCHEDULE.functionParameter.principal.name",
|
|
5240
|
+
detail: "formula.functionList.FVSCHEDULE.functionParameter.principal.detail",
|
|
5241
|
+
example: "1",
|
|
4964
5242
|
require: 1,
|
|
4965
5243
|
repeat: 0
|
|
4966
5244
|
},
|
|
4967
5245
|
{
|
|
4968
|
-
name: "formula.functionList.FVSCHEDULE.functionParameter.
|
|
4969
|
-
detail: "formula.functionList.FVSCHEDULE.functionParameter.
|
|
4970
|
-
example: "
|
|
5246
|
+
name: "formula.functionList.FVSCHEDULE.functionParameter.schedule.name",
|
|
5247
|
+
detail: "formula.functionList.FVSCHEDULE.functionParameter.schedule.detail",
|
|
5248
|
+
example: "{0.09,0.11,0.1}",
|
|
4971
5249
|
require: 1,
|
|
4972
5250
|
repeat: 0
|
|
4973
5251
|
}
|
|
@@ -4980,18 +5258,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
4980
5258
|
abstract: "formula.functionList.INTRATE.abstract",
|
|
4981
5259
|
functionParameter: [
|
|
4982
5260
|
{
|
|
4983
|
-
name: "formula.functionList.INTRATE.functionParameter.
|
|
4984
|
-
detail: "formula.functionList.INTRATE.functionParameter.
|
|
4985
|
-
example: "
|
|
5261
|
+
name: "formula.functionList.INTRATE.functionParameter.settlement.name",
|
|
5262
|
+
detail: "formula.functionList.INTRATE.functionParameter.settlement.detail",
|
|
5263
|
+
example: '"2008-2-15"',
|
|
4986
5264
|
require: 1,
|
|
4987
5265
|
repeat: 0
|
|
4988
5266
|
},
|
|
4989
5267
|
{
|
|
4990
|
-
name: "formula.functionList.INTRATE.functionParameter.
|
|
4991
|
-
detail: "formula.functionList.INTRATE.functionParameter.
|
|
4992
|
-
example: "
|
|
5268
|
+
name: "formula.functionList.INTRATE.functionParameter.maturity.name",
|
|
5269
|
+
detail: "formula.functionList.INTRATE.functionParameter.maturity.detail",
|
|
5270
|
+
example: '"2008-5-15"',
|
|
5271
|
+
require: 1,
|
|
5272
|
+
repeat: 0
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
name: "formula.functionList.INTRATE.functionParameter.investment.name",
|
|
5276
|
+
detail: "formula.functionList.INTRATE.functionParameter.investment.detail",
|
|
5277
|
+
example: "10000000",
|
|
4993
5278
|
require: 1,
|
|
4994
5279
|
repeat: 0
|
|
5280
|
+
},
|
|
5281
|
+
{
|
|
5282
|
+
name: "formula.functionList.INTRATE.functionParameter.redemption.name",
|
|
5283
|
+
detail: "formula.functionList.INTRATE.functionParameter.redemption.detail",
|
|
5284
|
+
example: "10144200",
|
|
5285
|
+
require: 1,
|
|
5286
|
+
repeat: 0
|
|
5287
|
+
},
|
|
5288
|
+
{
|
|
5289
|
+
name: "formula.functionList.INTRATE.functionParameter.basis.name",
|
|
5290
|
+
detail: "formula.functionList.INTRATE.functionParameter.basis.detail",
|
|
5291
|
+
example: "2",
|
|
5292
|
+
require: 0,
|
|
5293
|
+
repeat: 0
|
|
4995
5294
|
}
|
|
4996
5295
|
]
|
|
4997
5296
|
},
|
|
@@ -5002,18 +5301,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5002
5301
|
abstract: "formula.functionList.IPMT.abstract",
|
|
5003
5302
|
functionParameter: [
|
|
5004
5303
|
{
|
|
5005
|
-
name: "formula.functionList.IPMT.functionParameter.
|
|
5006
|
-
detail: "formula.functionList.IPMT.functionParameter.
|
|
5007
|
-
example: "
|
|
5304
|
+
name: "formula.functionList.IPMT.functionParameter.rate.name",
|
|
5305
|
+
detail: "formula.functionList.IPMT.functionParameter.rate.detail",
|
|
5306
|
+
example: "0.1/12",
|
|
5307
|
+
require: 1,
|
|
5308
|
+
repeat: 0
|
|
5309
|
+
},
|
|
5310
|
+
{
|
|
5311
|
+
name: "formula.functionList.IPMT.functionParameter.per.name",
|
|
5312
|
+
detail: "formula.functionList.IPMT.functionParameter.per.detail",
|
|
5313
|
+
example: "1",
|
|
5008
5314
|
require: 1,
|
|
5009
5315
|
repeat: 0
|
|
5010
5316
|
},
|
|
5011
5317
|
{
|
|
5012
|
-
name: "formula.functionList.IPMT.functionParameter.
|
|
5013
|
-
detail: "formula.functionList.IPMT.functionParameter.
|
|
5014
|
-
example: "
|
|
5318
|
+
name: "formula.functionList.IPMT.functionParameter.nper.name",
|
|
5319
|
+
detail: "formula.functionList.IPMT.functionParameter.nper.detail",
|
|
5320
|
+
example: "3*12",
|
|
5321
|
+
require: 1,
|
|
5322
|
+
repeat: 0
|
|
5323
|
+
},
|
|
5324
|
+
{
|
|
5325
|
+
name: "formula.functionList.IPMT.functionParameter.pv.name",
|
|
5326
|
+
detail: "formula.functionList.IPMT.functionParameter.pv.detail",
|
|
5327
|
+
example: "80000",
|
|
5015
5328
|
require: 1,
|
|
5016
5329
|
repeat: 0
|
|
5330
|
+
},
|
|
5331
|
+
{
|
|
5332
|
+
name: "formula.functionList.IPMT.functionParameter.fv.name",
|
|
5333
|
+
detail: "formula.functionList.IPMT.functionParameter.fv.detail",
|
|
5334
|
+
example: "0",
|
|
5335
|
+
require: 0,
|
|
5336
|
+
repeat: 0
|
|
5337
|
+
},
|
|
5338
|
+
{
|
|
5339
|
+
name: "formula.functionList.IPMT.functionParameter.type.name",
|
|
5340
|
+
detail: "formula.functionList.IPMT.functionParameter.type.detail",
|
|
5341
|
+
example: "0",
|
|
5342
|
+
require: 0,
|
|
5343
|
+
repeat: 0
|
|
5017
5344
|
}
|
|
5018
5345
|
]
|
|
5019
5346
|
},
|
|
@@ -5046,16 +5373,30 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5046
5373
|
abstract: "formula.functionList.ISPMT.abstract",
|
|
5047
5374
|
functionParameter: [
|
|
5048
5375
|
{
|
|
5049
|
-
name: "formula.functionList.ISPMT.functionParameter.
|
|
5050
|
-
detail: "formula.functionList.ISPMT.functionParameter.
|
|
5051
|
-
example: "
|
|
5376
|
+
name: "formula.functionList.ISPMT.functionParameter.rate.name",
|
|
5377
|
+
detail: "formula.functionList.ISPMT.functionParameter.rate.detail",
|
|
5378
|
+
example: "0.1",
|
|
5052
5379
|
require: 1,
|
|
5053
5380
|
repeat: 0
|
|
5054
5381
|
},
|
|
5055
5382
|
{
|
|
5056
|
-
name: "formula.functionList.ISPMT.functionParameter.
|
|
5057
|
-
detail: "formula.functionList.ISPMT.functionParameter.
|
|
5058
|
-
example: "
|
|
5383
|
+
name: "formula.functionList.ISPMT.functionParameter.per.name",
|
|
5384
|
+
detail: "formula.functionList.ISPMT.functionParameter.per.detail",
|
|
5385
|
+
example: "2",
|
|
5386
|
+
require: 1,
|
|
5387
|
+
repeat: 0
|
|
5388
|
+
},
|
|
5389
|
+
{
|
|
5390
|
+
name: "formula.functionList.ISPMT.functionParameter.nper.name",
|
|
5391
|
+
detail: "formula.functionList.ISPMT.functionParameter.nper.detail",
|
|
5392
|
+
example: "5",
|
|
5393
|
+
require: 1,
|
|
5394
|
+
repeat: 0
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
name: "formula.functionList.ISPMT.functionParameter.pv.name",
|
|
5398
|
+
detail: "formula.functionList.ISPMT.functionParameter.pv.detail",
|
|
5399
|
+
example: "1000",
|
|
5059
5400
|
require: 1,
|
|
5060
5401
|
repeat: 0
|
|
5061
5402
|
}
|
|
@@ -5112,16 +5453,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5112
5453
|
abstract: "formula.functionList.NOMINAL.abstract",
|
|
5113
5454
|
functionParameter: [
|
|
5114
5455
|
{
|
|
5115
|
-
name: "formula.functionList.NOMINAL.functionParameter.
|
|
5116
|
-
detail: "formula.functionList.NOMINAL.functionParameter.
|
|
5117
|
-
example: "
|
|
5456
|
+
name: "formula.functionList.NOMINAL.functionParameter.effectRate.name",
|
|
5457
|
+
detail: "formula.functionList.NOMINAL.functionParameter.effectRate.detail",
|
|
5458
|
+
example: "0.053543",
|
|
5118
5459
|
require: 1,
|
|
5119
5460
|
repeat: 0
|
|
5120
5461
|
},
|
|
5121
5462
|
{
|
|
5122
|
-
name: "formula.functionList.NOMINAL.functionParameter.
|
|
5123
|
-
detail: "formula.functionList.NOMINAL.functionParameter.
|
|
5124
|
-
example: "
|
|
5463
|
+
name: "formula.functionList.NOMINAL.functionParameter.npery.name",
|
|
5464
|
+
detail: "formula.functionList.NOMINAL.functionParameter.npery.detail",
|
|
5465
|
+
example: "4",
|
|
5125
5466
|
require: 1,
|
|
5126
5467
|
repeat: 0
|
|
5127
5468
|
}
|
|
@@ -5134,18 +5475,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5134
5475
|
abstract: "formula.functionList.NPER.abstract",
|
|
5135
5476
|
functionParameter: [
|
|
5136
5477
|
{
|
|
5137
|
-
name: "formula.functionList.NPER.functionParameter.
|
|
5138
|
-
detail: "formula.functionList.NPER.functionParameter.
|
|
5139
|
-
example: "
|
|
5478
|
+
name: "formula.functionList.NPER.functionParameter.rate.name",
|
|
5479
|
+
detail: "formula.functionList.NPER.functionParameter.rate.detail",
|
|
5480
|
+
example: "0.12/12",
|
|
5140
5481
|
require: 1,
|
|
5141
5482
|
repeat: 0
|
|
5142
5483
|
},
|
|
5143
5484
|
{
|
|
5144
|
-
name: "formula.functionList.NPER.functionParameter.
|
|
5145
|
-
detail: "formula.functionList.NPER.functionParameter.
|
|
5146
|
-
example: "
|
|
5485
|
+
name: "formula.functionList.NPER.functionParameter.pmt.name",
|
|
5486
|
+
detail: "formula.functionList.NPER.functionParameter.pmt.detail",
|
|
5487
|
+
example: "-100",
|
|
5488
|
+
require: 1,
|
|
5489
|
+
repeat: 0
|
|
5490
|
+
},
|
|
5491
|
+
{
|
|
5492
|
+
name: "formula.functionList.NPER.functionParameter.pv.name",
|
|
5493
|
+
detail: "formula.functionList.NPER.functionParameter.pv.detail",
|
|
5494
|
+
example: "-1000",
|
|
5147
5495
|
require: 1,
|
|
5148
5496
|
repeat: 0
|
|
5497
|
+
},
|
|
5498
|
+
{
|
|
5499
|
+
name: "formula.functionList.NPER.functionParameter.fv.name",
|
|
5500
|
+
detail: "formula.functionList.NPER.functionParameter.fv.detail",
|
|
5501
|
+
example: "10000",
|
|
5502
|
+
require: 0,
|
|
5503
|
+
repeat: 0
|
|
5504
|
+
},
|
|
5505
|
+
{
|
|
5506
|
+
name: "formula.functionList.NPER.functionParameter.type.name",
|
|
5507
|
+
detail: "formula.functionList.NPER.functionParameter.type.detail",
|
|
5508
|
+
example: "1",
|
|
5509
|
+
require: 0,
|
|
5510
|
+
repeat: 0
|
|
5149
5511
|
}
|
|
5150
5512
|
]
|
|
5151
5513
|
},
|
|
@@ -5288,18 +5650,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5288
5650
|
abstract: "formula.functionList.PMT.abstract",
|
|
5289
5651
|
functionParameter: [
|
|
5290
5652
|
{
|
|
5291
|
-
name: "formula.functionList.PMT.functionParameter.
|
|
5292
|
-
detail: "formula.functionList.PMT.functionParameter.
|
|
5293
|
-
example: "
|
|
5653
|
+
name: "formula.functionList.PMT.functionParameter.rate.name",
|
|
5654
|
+
detail: "formula.functionList.PMT.functionParameter.rate.detail",
|
|
5655
|
+
example: "0.08/12",
|
|
5294
5656
|
require: 1,
|
|
5295
5657
|
repeat: 0
|
|
5296
5658
|
},
|
|
5297
5659
|
{
|
|
5298
|
-
name: "formula.functionList.PMT.functionParameter.
|
|
5299
|
-
detail: "formula.functionList.PMT.functionParameter.
|
|
5300
|
-
example: "
|
|
5660
|
+
name: "formula.functionList.PMT.functionParameter.nper.name",
|
|
5661
|
+
detail: "formula.functionList.PMT.functionParameter.nper.detail",
|
|
5662
|
+
example: "10",
|
|
5663
|
+
require: 1,
|
|
5664
|
+
repeat: 0
|
|
5665
|
+
},
|
|
5666
|
+
{
|
|
5667
|
+
name: "formula.functionList.PMT.functionParameter.pv.name",
|
|
5668
|
+
detail: "formula.functionList.PMT.functionParameter.pv.detail",
|
|
5669
|
+
example: "10000",
|
|
5301
5670
|
require: 1,
|
|
5302
5671
|
repeat: 0
|
|
5672
|
+
},
|
|
5673
|
+
{
|
|
5674
|
+
name: "formula.functionList.PMT.functionParameter.fv.name",
|
|
5675
|
+
detail: "formula.functionList.PMT.functionParameter.fv.detail",
|
|
5676
|
+
example: "0",
|
|
5677
|
+
require: 0,
|
|
5678
|
+
repeat: 0
|
|
5679
|
+
},
|
|
5680
|
+
{
|
|
5681
|
+
name: "formula.functionList.PMT.functionParameter.type.name",
|
|
5682
|
+
detail: "formula.functionList.PMT.functionParameter.type.detail",
|
|
5683
|
+
example: "0",
|
|
5684
|
+
require: 0,
|
|
5685
|
+
repeat: 0
|
|
5303
5686
|
}
|
|
5304
5687
|
]
|
|
5305
5688
|
},
|
|
@@ -5310,18 +5693,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5310
5693
|
abstract: "formula.functionList.PPMT.abstract",
|
|
5311
5694
|
functionParameter: [
|
|
5312
5695
|
{
|
|
5313
|
-
name: "formula.functionList.PPMT.functionParameter.
|
|
5314
|
-
detail: "formula.functionList.PPMT.functionParameter.
|
|
5315
|
-
example: "
|
|
5696
|
+
name: "formula.functionList.PPMT.functionParameter.rate.name",
|
|
5697
|
+
detail: "formula.functionList.PPMT.functionParameter.rate.detail",
|
|
5698
|
+
example: "0.1/12",
|
|
5316
5699
|
require: 1,
|
|
5317
5700
|
repeat: 0
|
|
5318
5701
|
},
|
|
5319
5702
|
{
|
|
5320
|
-
name: "formula.functionList.PPMT.functionParameter.
|
|
5321
|
-
detail: "formula.functionList.PPMT.functionParameter.
|
|
5322
|
-
example: "
|
|
5703
|
+
name: "formula.functionList.PPMT.functionParameter.per.name",
|
|
5704
|
+
detail: "formula.functionList.PPMT.functionParameter.per.detail",
|
|
5705
|
+
example: "1",
|
|
5706
|
+
require: 1,
|
|
5707
|
+
repeat: 0
|
|
5708
|
+
},
|
|
5709
|
+
{
|
|
5710
|
+
name: "formula.functionList.PPMT.functionParameter.nper.name",
|
|
5711
|
+
detail: "formula.functionList.PPMT.functionParameter.nper.detail",
|
|
5712
|
+
example: "3*12",
|
|
5323
5713
|
require: 1,
|
|
5324
5714
|
repeat: 0
|
|
5715
|
+
},
|
|
5716
|
+
{
|
|
5717
|
+
name: "formula.functionList.PPMT.functionParameter.pv.name",
|
|
5718
|
+
detail: "formula.functionList.PPMT.functionParameter.pv.detail",
|
|
5719
|
+
example: "80000",
|
|
5720
|
+
require: 1,
|
|
5721
|
+
repeat: 0
|
|
5722
|
+
},
|
|
5723
|
+
{
|
|
5724
|
+
name: "formula.functionList.PPMT.functionParameter.fv.name",
|
|
5725
|
+
detail: "formula.functionList.PPMT.functionParameter.fv.detail",
|
|
5726
|
+
example: "0",
|
|
5727
|
+
require: 0,
|
|
5728
|
+
repeat: 0
|
|
5729
|
+
},
|
|
5730
|
+
{
|
|
5731
|
+
name: "formula.functionList.PPMT.functionParameter.type.name",
|
|
5732
|
+
detail: "formula.functionList.PPMT.functionParameter.type.detail",
|
|
5733
|
+
example: "0",
|
|
5734
|
+
require: 0,
|
|
5735
|
+
repeat: 0
|
|
5325
5736
|
}
|
|
5326
5737
|
]
|
|
5327
5738
|
},
|
|
@@ -5398,18 +5809,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5398
5809
|
abstract: "formula.functionList.PV.abstract",
|
|
5399
5810
|
functionParameter: [
|
|
5400
5811
|
{
|
|
5401
|
-
name: "formula.functionList.PV.functionParameter.
|
|
5402
|
-
detail: "formula.functionList.PV.functionParameter.
|
|
5403
|
-
example: "
|
|
5812
|
+
name: "formula.functionList.PV.functionParameter.rate.name",
|
|
5813
|
+
detail: "formula.functionList.PV.functionParameter.rate.detail",
|
|
5814
|
+
example: "0.02",
|
|
5404
5815
|
require: 1,
|
|
5405
5816
|
repeat: 0
|
|
5406
5817
|
},
|
|
5407
5818
|
{
|
|
5408
|
-
name: "formula.functionList.PV.functionParameter.
|
|
5409
|
-
detail: "formula.functionList.PV.functionParameter.
|
|
5410
|
-
example: "
|
|
5819
|
+
name: "formula.functionList.PV.functionParameter.nper.name",
|
|
5820
|
+
detail: "formula.functionList.PV.functionParameter.nper.detail",
|
|
5821
|
+
example: "12",
|
|
5411
5822
|
require: 1,
|
|
5412
5823
|
repeat: 0
|
|
5824
|
+
},
|
|
5825
|
+
{
|
|
5826
|
+
name: "formula.functionList.PV.functionParameter.pmt.name",
|
|
5827
|
+
detail: "formula.functionList.PV.functionParameter.pmt.detail",
|
|
5828
|
+
example: "100",
|
|
5829
|
+
require: 1,
|
|
5830
|
+
repeat: 0
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
name: "formula.functionList.PV.functionParameter.fv.name",
|
|
5834
|
+
detail: "formula.functionList.PV.functionParameter.fv.detail",
|
|
5835
|
+
example: "0",
|
|
5836
|
+
require: 0,
|
|
5837
|
+
repeat: 0
|
|
5838
|
+
},
|
|
5839
|
+
{
|
|
5840
|
+
name: "formula.functionList.PV.functionParameter.type.name",
|
|
5841
|
+
detail: "formula.functionList.PV.functionParameter.type.detail",
|
|
5842
|
+
example: "0",
|
|
5843
|
+
require: 0,
|
|
5844
|
+
repeat: 0
|
|
5413
5845
|
}
|
|
5414
5846
|
]
|
|
5415
5847
|
},
|
|
@@ -5420,18 +5852,46 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
5420
5852
|
abstract: "formula.functionList.RATE.abstract",
|
|
5421
5853
|
functionParameter: [
|
|
5422
5854
|
{
|
|
5423
|
-
name: "formula.functionList.RATE.functionParameter.
|
|
5424
|
-
detail: "formula.functionList.RATE.functionParameter.
|
|
5425
|
-
example: "
|
|
5855
|
+
name: "formula.functionList.RATE.functionParameter.nper.name",
|
|
5856
|
+
detail: "formula.functionList.RATE.functionParameter.nper.detail",
|
|
5857
|
+
example: "4*12",
|
|
5426
5858
|
require: 1,
|
|
5427
5859
|
repeat: 0
|
|
5428
5860
|
},
|
|
5429
5861
|
{
|
|
5430
|
-
name: "formula.functionList.RATE.functionParameter.
|
|
5431
|
-
detail: "formula.functionList.RATE.functionParameter.
|
|
5432
|
-
example: "
|
|
5862
|
+
name: "formula.functionList.RATE.functionParameter.pmt.name",
|
|
5863
|
+
detail: "formula.functionList.RATE.functionParameter.pmt.detail",
|
|
5864
|
+
example: "-200",
|
|
5865
|
+
require: 1,
|
|
5866
|
+
repeat: 0
|
|
5867
|
+
},
|
|
5868
|
+
{
|
|
5869
|
+
name: "formula.functionList.RATE.functionParameter.pv.name",
|
|
5870
|
+
detail: "formula.functionList.RATE.functionParameter.pv.detail",
|
|
5871
|
+
example: "8000",
|
|
5433
5872
|
require: 1,
|
|
5434
5873
|
repeat: 0
|
|
5874
|
+
},
|
|
5875
|
+
{
|
|
5876
|
+
name: "formula.functionList.RATE.functionParameter.fv.name",
|
|
5877
|
+
detail: "formula.functionList.RATE.functionParameter.fv.detail",
|
|
5878
|
+
example: "0",
|
|
5879
|
+
require: 0,
|
|
5880
|
+
repeat: 0
|
|
5881
|
+
},
|
|
5882
|
+
{
|
|
5883
|
+
name: "formula.functionList.RATE.functionParameter.type.name",
|
|
5884
|
+
detail: "formula.functionList.RATE.functionParameter.type.detail",
|
|
5885
|
+
example: "0",
|
|
5886
|
+
require: 0,
|
|
5887
|
+
repeat: 0
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
name: "formula.functionList.RATE.functionParameter.guess.name",
|
|
5891
|
+
detail: "formula.functionList.RATE.functionParameter.guess.detail",
|
|
5892
|
+
example: "0.1",
|
|
5893
|
+
require: 0,
|
|
5894
|
+
repeat: 0
|
|
5435
5895
|
}
|
|
5436
5896
|
]
|
|
5437
5897
|
},
|
|
@@ -6165,22 +6625,7 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6165
6625
|
functionType: FunctionType.Logical,
|
|
6166
6626
|
description: "formula.functionList.FALSE.description",
|
|
6167
6627
|
abstract: "formula.functionList.FALSE.abstract",
|
|
6168
|
-
functionParameter: [
|
|
6169
|
-
{
|
|
6170
|
-
name: "formula.functionList.FALSE.functionParameter.number1.name",
|
|
6171
|
-
detail: "formula.functionList.FALSE.functionParameter.number1.detail",
|
|
6172
|
-
example: "A1:A20",
|
|
6173
|
-
require: 1,
|
|
6174
|
-
repeat: 0
|
|
6175
|
-
},
|
|
6176
|
-
{
|
|
6177
|
-
name: "formula.functionList.FALSE.functionParameter.number2.name",
|
|
6178
|
-
detail: "formula.functionList.FALSE.functionParameter.number2.detail",
|
|
6179
|
-
example: "A1:A20",
|
|
6180
|
-
require: 1,
|
|
6181
|
-
repeat: 0
|
|
6182
|
-
}
|
|
6183
|
-
]
|
|
6628
|
+
functionParameter: []
|
|
6184
6629
|
},
|
|
6185
6630
|
{
|
|
6186
6631
|
functionName: FUNCTION_NAMES_LOGICAL.IF,
|
|
@@ -6240,16 +6685,16 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6240
6685
|
abstract: "formula.functionList.IFNA.abstract",
|
|
6241
6686
|
functionParameter: [
|
|
6242
6687
|
{
|
|
6243
|
-
name: "formula.functionList.IFNA.functionParameter.
|
|
6244
|
-
detail: "formula.functionList.IFNA.functionParameter.
|
|
6245
|
-
example: "
|
|
6688
|
+
name: "formula.functionList.IFNA.functionParameter.value.name",
|
|
6689
|
+
detail: "formula.functionList.IFNA.functionParameter.value.detail",
|
|
6690
|
+
example: "VLOOKUP(C3,C6:D11,2,FALSE)",
|
|
6246
6691
|
require: 1,
|
|
6247
6692
|
repeat: 0
|
|
6248
6693
|
},
|
|
6249
6694
|
{
|
|
6250
|
-
name: "formula.functionList.IFNA.functionParameter.
|
|
6251
|
-
detail: "formula.functionList.IFNA.functionParameter.
|
|
6252
|
-
example: "
|
|
6695
|
+
name: "formula.functionList.IFNA.functionParameter.valueIfNa.name",
|
|
6696
|
+
detail: "formula.functionList.IFNA.functionParameter.valueIfNa.detail",
|
|
6697
|
+
example: '"Not Found"',
|
|
6253
6698
|
require: 1,
|
|
6254
6699
|
repeat: 0
|
|
6255
6700
|
}
|
|
@@ -6262,18 +6707,32 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6262
6707
|
abstract: "formula.functionList.IFS.abstract",
|
|
6263
6708
|
functionParameter: [
|
|
6264
6709
|
{
|
|
6265
|
-
name: "formula.functionList.IFS.functionParameter.
|
|
6266
|
-
detail: "formula.functionList.IFS.functionParameter.
|
|
6267
|
-
example: "
|
|
6710
|
+
name: "formula.functionList.IFS.functionParameter.logicalTest1.name",
|
|
6711
|
+
detail: "formula.functionList.IFS.functionParameter.logicalTest1.detail",
|
|
6712
|
+
example: 'A2 = "foo"',
|
|
6268
6713
|
require: 1,
|
|
6269
6714
|
repeat: 0
|
|
6270
6715
|
},
|
|
6271
6716
|
{
|
|
6272
|
-
name: "formula.functionList.IFS.functionParameter.
|
|
6273
|
-
detail: "formula.functionList.IFS.functionParameter.
|
|
6274
|
-
example: "
|
|
6717
|
+
name: "formula.functionList.IFS.functionParameter.valueIfTrue1.name",
|
|
6718
|
+
detail: "formula.functionList.IFS.functionParameter.valueIfTrue1.detail",
|
|
6719
|
+
example: '"A2 is foo"',
|
|
6275
6720
|
require: 1,
|
|
6276
6721
|
repeat: 0
|
|
6722
|
+
},
|
|
6723
|
+
{
|
|
6724
|
+
name: "formula.functionList.IFS.functionParameter.logicalTest2.name",
|
|
6725
|
+
detail: "formula.functionList.IFS.functionParameter.logicalTest2.detail",
|
|
6726
|
+
example: "F2=1",
|
|
6727
|
+
require: 0,
|
|
6728
|
+
repeat: 1
|
|
6729
|
+
},
|
|
6730
|
+
{
|
|
6731
|
+
name: "formula.functionList.IFS.functionParameter.valueIfTrue2.name",
|
|
6732
|
+
detail: "formula.functionList.IFS.functionParameter.valueIfTrue2.detail",
|
|
6733
|
+
example: "D2",
|
|
6734
|
+
require: 0,
|
|
6735
|
+
repeat: 1
|
|
6277
6736
|
}
|
|
6278
6737
|
]
|
|
6279
6738
|
},
|
|
@@ -6306,18 +6765,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6306
6765
|
abstract: "formula.functionList.LET.abstract",
|
|
6307
6766
|
functionParameter: [
|
|
6308
6767
|
{
|
|
6309
|
-
name: "formula.functionList.LET.functionParameter.
|
|
6310
|
-
detail: "formula.functionList.LET.functionParameter.
|
|
6311
|
-
example: "
|
|
6768
|
+
name: "formula.functionList.LET.functionParameter.name1.name",
|
|
6769
|
+
detail: "formula.functionList.LET.functionParameter.name1.detail",
|
|
6770
|
+
example: "x",
|
|
6312
6771
|
require: 1,
|
|
6313
6772
|
repeat: 0
|
|
6314
6773
|
},
|
|
6315
6774
|
{
|
|
6316
|
-
name: "formula.functionList.LET.functionParameter.
|
|
6317
|
-
detail: "formula.functionList.LET.functionParameter.
|
|
6318
|
-
example: "
|
|
6775
|
+
name: "formula.functionList.LET.functionParameter.nameValue1.name",
|
|
6776
|
+
detail: "formula.functionList.LET.functionParameter.nameValue1.detail",
|
|
6777
|
+
example: "5",
|
|
6778
|
+
require: 1,
|
|
6779
|
+
repeat: 0
|
|
6780
|
+
},
|
|
6781
|
+
{
|
|
6782
|
+
name: "formula.functionList.LET.functionParameter.calculationOrName2.name",
|
|
6783
|
+
detail: "formula.functionList.LET.functionParameter.calculationOrName2.detail",
|
|
6784
|
+
example: "y",
|
|
6319
6785
|
require: 1,
|
|
6320
6786
|
repeat: 0
|
|
6787
|
+
},
|
|
6788
|
+
{
|
|
6789
|
+
name: "formula.functionList.LET.functionParameter.nameValue2.name",
|
|
6790
|
+
detail: "formula.functionList.LET.functionParameter.nameValue2.detail",
|
|
6791
|
+
example: "6",
|
|
6792
|
+
require: 0,
|
|
6793
|
+
repeat: 1
|
|
6794
|
+
},
|
|
6795
|
+
{
|
|
6796
|
+
name: "formula.functionList.LET.functionParameter.calculationOrName3.name",
|
|
6797
|
+
detail: "formula.functionList.LET.functionParameter.calculationOrName3.detail",
|
|
6798
|
+
example: "SUM(x,y)",
|
|
6799
|
+
require: 0,
|
|
6800
|
+
repeat: 1
|
|
6321
6801
|
}
|
|
6322
6802
|
]
|
|
6323
6803
|
},
|
|
@@ -6380,16 +6860,9 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6380
6860
|
abstract: "formula.functionList.NOT.abstract",
|
|
6381
6861
|
functionParameter: [
|
|
6382
6862
|
{
|
|
6383
|
-
name: "formula.functionList.NOT.functionParameter.
|
|
6384
|
-
detail: "formula.functionList.NOT.functionParameter.
|
|
6385
|
-
example: "
|
|
6386
|
-
require: 1,
|
|
6387
|
-
repeat: 0
|
|
6388
|
-
},
|
|
6389
|
-
{
|
|
6390
|
-
name: "formula.functionList.NOT.functionParameter.number2.name",
|
|
6391
|
-
detail: "formula.functionList.NOT.functionParameter.number2.detail",
|
|
6392
|
-
example: "A1:A20",
|
|
6863
|
+
name: "formula.functionList.NOT.functionParameter.logical.name",
|
|
6864
|
+
detail: "formula.functionList.NOT.functionParameter.logical.detail",
|
|
6865
|
+
example: "A2>100",
|
|
6393
6866
|
require: 1,
|
|
6394
6867
|
repeat: 0
|
|
6395
6868
|
}
|
|
@@ -6468,18 +6941,39 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6468
6941
|
abstract: "formula.functionList.SWITCH.abstract",
|
|
6469
6942
|
functionParameter: [
|
|
6470
6943
|
{
|
|
6471
|
-
name: "formula.functionList.SWITCH.functionParameter.
|
|
6472
|
-
detail: "formula.functionList.SWITCH.functionParameter.
|
|
6473
|
-
example: "
|
|
6944
|
+
name: "formula.functionList.SWITCH.functionParameter.expression.name",
|
|
6945
|
+
detail: "formula.functionList.SWITCH.functionParameter.expression.detail",
|
|
6946
|
+
example: "WEEKDAY(A2)",
|
|
6474
6947
|
require: 1,
|
|
6475
6948
|
repeat: 0
|
|
6476
6949
|
},
|
|
6477
6950
|
{
|
|
6478
|
-
name: "formula.functionList.SWITCH.functionParameter.
|
|
6479
|
-
detail: "formula.functionList.SWITCH.functionParameter.
|
|
6480
|
-
example: "
|
|
6951
|
+
name: "formula.functionList.SWITCH.functionParameter.value1.name",
|
|
6952
|
+
detail: "formula.functionList.SWITCH.functionParameter.value1.detail",
|
|
6953
|
+
example: "1",
|
|
6954
|
+
require: 1,
|
|
6955
|
+
repeat: 0
|
|
6956
|
+
},
|
|
6957
|
+
{
|
|
6958
|
+
name: "formula.functionList.SWITCH.functionParameter.result1.name",
|
|
6959
|
+
detail: "formula.functionList.SWITCH.functionParameter.result1.detail",
|
|
6960
|
+
example: '"Sunday"',
|
|
6481
6961
|
require: 1,
|
|
6482
6962
|
repeat: 0
|
|
6963
|
+
},
|
|
6964
|
+
{
|
|
6965
|
+
name: "formula.functionList.SWITCH.functionParameter.defaultOrValue2.name",
|
|
6966
|
+
detail: "formula.functionList.SWITCH.functionParameter.defaultOrValue2.detail",
|
|
6967
|
+
example: "2",
|
|
6968
|
+
require: 0,
|
|
6969
|
+
repeat: 1
|
|
6970
|
+
},
|
|
6971
|
+
{
|
|
6972
|
+
name: "formula.functionList.SWITCH.functionParameter.result2.name",
|
|
6973
|
+
detail: "formula.functionList.SWITCH.functionParameter.result2.detail",
|
|
6974
|
+
example: '"Monday"',
|
|
6975
|
+
require: 0,
|
|
6976
|
+
repeat: 1
|
|
6483
6977
|
}
|
|
6484
6978
|
]
|
|
6485
6979
|
},
|
|
@@ -6488,22 +6982,7 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6488
6982
|
functionType: FunctionType.Logical,
|
|
6489
6983
|
description: "formula.functionList.TRUE.description",
|
|
6490
6984
|
abstract: "formula.functionList.TRUE.abstract",
|
|
6491
|
-
functionParameter: [
|
|
6492
|
-
{
|
|
6493
|
-
name: "formula.functionList.TRUE.functionParameter.number1.name",
|
|
6494
|
-
detail: "formula.functionList.TRUE.functionParameter.number1.detail",
|
|
6495
|
-
example: "A1:A20",
|
|
6496
|
-
require: 1,
|
|
6497
|
-
repeat: 0
|
|
6498
|
-
},
|
|
6499
|
-
{
|
|
6500
|
-
name: "formula.functionList.TRUE.functionParameter.number2.name",
|
|
6501
|
-
detail: "formula.functionList.TRUE.functionParameter.number2.detail",
|
|
6502
|
-
example: "A1:A20",
|
|
6503
|
-
require: 1,
|
|
6504
|
-
repeat: 0
|
|
6505
|
-
}
|
|
6506
|
-
]
|
|
6985
|
+
functionParameter: []
|
|
6507
6986
|
},
|
|
6508
6987
|
{
|
|
6509
6988
|
functionName: FUNCTION_NAMES_LOGICAL.XOR,
|
|
@@ -6512,18 +6991,18 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6512
6991
|
abstract: "formula.functionList.XOR.abstract",
|
|
6513
6992
|
functionParameter: [
|
|
6514
6993
|
{
|
|
6515
|
-
name: "formula.functionList.XOR.functionParameter.
|
|
6516
|
-
detail: "formula.functionList.XOR.functionParameter.
|
|
6517
|
-
example: "
|
|
6994
|
+
name: "formula.functionList.XOR.functionParameter.logical1.name",
|
|
6995
|
+
detail: "formula.functionList.XOR.functionParameter.logical1.detail",
|
|
6996
|
+
example: "3>0",
|
|
6518
6997
|
require: 1,
|
|
6519
6998
|
repeat: 0
|
|
6520
6999
|
},
|
|
6521
7000
|
{
|
|
6522
|
-
name: "formula.functionList.XOR.functionParameter.
|
|
6523
|
-
detail: "formula.functionList.XOR.functionParameter.
|
|
6524
|
-
example: "
|
|
6525
|
-
require:
|
|
6526
|
-
repeat:
|
|
7001
|
+
name: "formula.functionList.XOR.functionParameter.logical2.name",
|
|
7002
|
+
detail: "formula.functionList.XOR.functionParameter.logical2.detail",
|
|
7003
|
+
example: "2<9",
|
|
7004
|
+
require: 0,
|
|
7005
|
+
repeat: 1
|
|
6527
7006
|
}
|
|
6528
7007
|
]
|
|
6529
7008
|
}
|
|
@@ -6578,15 +7057,8 @@ const FUNCTION_LIST_ARRAY = [], FUNCTION_LIST_COMPATIBILITY = [
|
|
|
6578
7057
|
abstract: "formula.functionList.AREAS.abstract",
|
|
6579
7058
|
functionParameter: [
|
|
6580
7059
|
{
|
|
6581
|
-
name: "formula.functionList.AREAS.functionParameter.
|
|
6582
|
-
detail: "formula.functionList.AREAS.functionParameter.
|
|
6583
|
-
example: "A1:A20",
|
|
6584
|
-
require: 1,
|
|
6585
|
-
repeat: 0
|
|
6586
|
-
},
|
|
6587
|
-
{
|
|
6588
|
-
name: "formula.functionList.AREAS.functionParameter.number2.name",
|
|
6589
|
-
detail: "formula.functionList.AREAS.functionParameter.number2.detail",
|
|
7060
|
+
name: "formula.functionList.AREAS.functionParameter.reference.name",
|
|
7061
|
+
detail: "formula.functionList.AREAS.functionParameter.reference.detail",
|
|
6590
7062
|
example: "A1:A20",
|
|
6591
7063
|
require: 1,
|
|
6592
7064
|
repeat: 0
|
|
@@ -12874,8 +13346,8 @@ var __defProp$d = Object.defineProperty, __getOwnPropDesc$d = Object.getOwnPrope
|
|
|
12874
13346
|
return kind && result && __defProp$d(target, key, result), result;
|
|
12875
13347
|
}, "__decorateClass$d"), __decorateParam$d = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$d");
|
|
12876
13348
|
const IDescriptionService = createIdentifier("formula-ui.description-service");
|
|
12877
|
-
var
|
|
12878
|
-
let DescriptionService = (
|
|
13349
|
+
var _a7;
|
|
13350
|
+
let DescriptionService = (_a7 = class {
|
|
12879
13351
|
constructor(_description = [], _functionService, _localeService) {
|
|
12880
13352
|
__publicField(this, "_descriptions", []);
|
|
12881
13353
|
this._description = _description, this._functionService = _functionService, this._localeService = _localeService, this._initialize();
|
|
@@ -12977,7 +13449,7 @@ let DescriptionService = (_a6 = class {
|
|
|
12977
13449
|
}));
|
|
12978
13450
|
this._functionService.registerDescriptions(...functionListLocale);
|
|
12979
13451
|
}
|
|
12980
|
-
}, __name(
|
|
13452
|
+
}, __name(_a7, "DescriptionService"), _a7);
|
|
12981
13453
|
DescriptionService = __decorateClass$d([
|
|
12982
13454
|
__decorateParam$d(1, IFunctionService),
|
|
12983
13455
|
__decorateParam$d(2, Inject(LocaleService))
|
|
@@ -13305,8 +13777,8 @@ var __defProp$c = Object.defineProperty, __getOwnPropDesc$c = Object.getOwnPrope
|
|
|
13305
13777
|
return kind && result && __defProp$c(target, key, result), result;
|
|
13306
13778
|
}, "__decorateClass$c"), __decorateParam$c = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$c");
|
|
13307
13779
|
const DefaultSheetFormulaConfig = {};
|
|
13308
|
-
var
|
|
13309
|
-
let FormulaUIController = (
|
|
13780
|
+
var _a8;
|
|
13781
|
+
let FormulaUIController = (_a8 = class extends Disposable {
|
|
13310
13782
|
constructor(_config, _injector, _menuService, _commandService, _shortcutService, _uiPartsService, _renderManagerService, _componentManager) {
|
|
13311
13783
|
super(), this._config = _config, this._injector = _injector, this._menuService = _menuService, this._commandService = _commandService, this._shortcutService = _shortcutService, this._uiPartsService = _uiPartsService, this._renderManagerService = _renderManagerService, this._componentManager = _componentManager, this._initialize();
|
|
13312
13784
|
}
|
|
@@ -13354,7 +13826,7 @@ let FormulaUIController = (_a7 = class extends Disposable {
|
|
|
13354
13826
|
_registerRenderModules() {
|
|
13355
13827
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(UniverInstanceType.UNIVER_SHEET, [FormulaEditorShowController]));
|
|
13356
13828
|
}
|
|
13357
|
-
}, __name(
|
|
13829
|
+
}, __name(_a8, "FormulaUIController"), _a8);
|
|
13358
13830
|
FormulaUIController = __decorateClass$c([
|
|
13359
13831
|
OnLifecycle(LifecycleStages.Ready, FormulaUIController),
|
|
13360
13832
|
__decorateParam$c(1, Inject(Injector)),
|
|
@@ -13369,8 +13841,8 @@ var __defProp$b = Object.defineProperty, __getOwnPropDesc$b = Object.getOwnPrope
|
|
|
13369
13841
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13370
13842
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
13371
13843
|
return kind && result && __defProp$b(target, key, result), result;
|
|
13372
|
-
}, "__decorateClass$b"), __decorateParam$b = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$b"),
|
|
13373
|
-
let TriggerCalculationController = (
|
|
13844
|
+
}, "__decorateClass$b"), __decorateParam$b = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$b"), _a9;
|
|
13845
|
+
let TriggerCalculationController = (_a9 = class extends Disposable {
|
|
13374
13846
|
constructor(_commandService, _activeDirtyManagerService, _numfmtService, _formulaDataModel, _progressService) {
|
|
13375
13847
|
super();
|
|
13376
13848
|
__publicField(this, "_waitingCommandQueue", []);
|
|
@@ -13451,8 +13923,8 @@ let TriggerCalculationController = (_a8 = class extends Disposable {
|
|
|
13451
13923
|
_mergeDirtyNameMap(allDirtyNameMap, dirtyNameMap) {
|
|
13452
13924
|
Object.keys(dirtyNameMap).forEach((unitId) => {
|
|
13453
13925
|
allDirtyNameMap[unitId] == null && (allDirtyNameMap[unitId] = {}), Object.keys(dirtyNameMap[unitId]).forEach((sheetId) => {
|
|
13454
|
-
var
|
|
13455
|
-
(
|
|
13926
|
+
var _a23;
|
|
13927
|
+
(_a23 = dirtyNameMap[unitId]) != null && _a23[sheetId] && (allDirtyNameMap[unitId] == null && (allDirtyNameMap[unitId] = {}), allDirtyNameMap[unitId][sheetId] = dirtyNameMap[unitId][sheetId]);
|
|
13456
13928
|
});
|
|
13457
13929
|
});
|
|
13458
13930
|
}
|
|
@@ -13567,7 +14039,7 @@ let TriggerCalculationController = (_a8 = class extends Disposable {
|
|
|
13567
14039
|
const count = completedCount - this._arrayFormulaCalculationDoneCount;
|
|
13568
14040
|
this._arrayFormulaCalculationDoneCount = completedCount, this._progressService.pushTask({ count });
|
|
13569
14041
|
}
|
|
13570
|
-
}, __name(
|
|
14042
|
+
}, __name(_a9, "TriggerCalculationController"), _a9);
|
|
13571
14043
|
TriggerCalculationController = __decorateClass$b([
|
|
13572
14044
|
OnLifecycle(LifecycleStages.Ready, TriggerCalculationController),
|
|
13573
14045
|
__decorateParam$b(0, ICommandService),
|
|
@@ -13577,14 +14049,14 @@ TriggerCalculationController = __decorateClass$b([
|
|
|
13577
14049
|
__decorateParam$b(4, Inject(IProgressService))
|
|
13578
14050
|
], TriggerCalculationController);
|
|
13579
14051
|
function checkFormulaDataNull(formulaData, unitId, sheetId) {
|
|
13580
|
-
var
|
|
13581
|
-
return formulaData == null || formulaData[unitId] == null || ((
|
|
14052
|
+
var _a23;
|
|
14053
|
+
return formulaData == null || formulaData[unitId] == null || ((_a23 = formulaData[unitId]) == null ? void 0 : _a23[sheetId]) == null;
|
|
13582
14054
|
}
|
|
13583
14055
|
__name(checkFormulaDataNull, "checkFormulaDataNull");
|
|
13584
14056
|
function removeFormulaData(formulaData, unitId, sheetId) {
|
|
13585
|
-
var
|
|
14057
|
+
var _a23;
|
|
13586
14058
|
if (sheetId) {
|
|
13587
|
-
if (formulaData && formulaData[unitId] && ((
|
|
14059
|
+
if (formulaData && formulaData[unitId] && ((_a23 = formulaData[unitId]) != null && _a23[sheetId]))
|
|
13588
14060
|
return delete formulaData[unitId][sheetId], {
|
|
13589
14061
|
[unitId]: {
|
|
13590
14062
|
[sheetId]: null
|
|
@@ -13919,8 +14391,8 @@ var __defProp$a = Object.defineProperty, __getOwnPropDesc$a = Object.getOwnPrope
|
|
|
13919
14391
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13920
14392
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
13921
14393
|
return kind && result && __defProp$a(target, key, result), result;
|
|
13922
|
-
}, "__decorateClass$a"), __decorateParam$a = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$a"),
|
|
13923
|
-
let UpdateFormulaController = (
|
|
14394
|
+
}, "__decorateClass$a"), __decorateParam$a = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$a"), _a10;
|
|
14395
|
+
let UpdateFormulaController = (_a10 = class extends Disposable {
|
|
13924
14396
|
constructor(_univerInstanceService, _commandService, _lexerTreeBuilder, _formulaDataModel, _sheetInterceptorService, _selectionManagerService, _editorService, _injector) {
|
|
13925
14397
|
super(), this._univerInstanceService = _univerInstanceService, this._commandService = _commandService, this._lexerTreeBuilder = _lexerTreeBuilder, this._formulaDataModel = _formulaDataModel, this._sheetInterceptorService = _sheetInterceptorService, this._selectionManagerService = _selectionManagerService, this._editorService = _editorService, this._injector = _injector, this._initialize();
|
|
13926
14398
|
}
|
|
@@ -14035,9 +14507,9 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14035
14507
|
[unitId]: {}
|
|
14036
14508
|
};
|
|
14037
14509
|
unitType === UniverInstanceType.UNIVER_SHEET ? unit.getSheets().forEach((worksheet) => {
|
|
14038
|
-
var
|
|
14510
|
+
var _a23;
|
|
14039
14511
|
const cellMatrix = worksheet.getCellMatrix(), sheetId = worksheet.getSheetId(), currentSheetData = initSheetFormulaData(formulaData, unitId, sheetId, cellMatrix);
|
|
14040
|
-
newFormulaData[unitId][sheetId] = (
|
|
14512
|
+
newFormulaData[unitId][sheetId] = (_a23 = currentSheetData[unitId]) == null ? void 0 : _a23[sheetId];
|
|
14041
14513
|
}) : unitType === UniverInstanceType.UNIVER_DOC || UniverInstanceType.UNIVER_SLIDE, this._commandService.executeCommand(
|
|
14042
14514
|
SetFormulaDataMutation.id,
|
|
14043
14515
|
{
|
|
@@ -14304,7 +14776,7 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14304
14776
|
for (const sheetId of sheetDataKeys) {
|
|
14305
14777
|
const matrixData = new ObjectMatrix(sheetData[sheetId] || {}), newFormulaDataItem = new ObjectMatrix();
|
|
14306
14778
|
matrixData.forValue((row, column, formulaDataItem) => {
|
|
14307
|
-
var
|
|
14779
|
+
var _a23;
|
|
14308
14780
|
if (!formulaDataItem) return !0;
|
|
14309
14781
|
const { f: formulaString, x, y, si } = formulaDataItem, sequenceNodes = this._lexerTreeBuilder.sequenceNodesBuilder(formulaString);
|
|
14310
14782
|
if (sequenceNodes == null)
|
|
@@ -14315,7 +14787,7 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14315
14787
|
const node = sequenceNodes[i];
|
|
14316
14788
|
if (typeof node == "string" || node.nodeType !== sequenceNodeType.REFERENCE)
|
|
14317
14789
|
continue;
|
|
14318
|
-
const { token } = node, sequenceGrid = deserializeRangeWithSheet(token), { range, sheetName, unitId: sequenceUnitId } = sequenceGrid, mapUnitId = sequenceUnitId == null || sequenceUnitId.length === 0 ? unitId : sequenceUnitId, sequenceSheetId = (
|
|
14790
|
+
const { token } = node, sequenceGrid = deserializeRangeWithSheet(token), { range, sheetName, unitId: sequenceUnitId } = sequenceGrid, mapUnitId = sequenceUnitId == null || sequenceUnitId.length === 0 ? unitId : sequenceUnitId, sequenceSheetId = (_a23 = unitSheetNameMap == null ? void 0 : unitSheetNameMap[mapUnitId]) == null ? void 0 : _a23[sheetName];
|
|
14319
14791
|
if (!this._checkIsSameUnitAndSheet(
|
|
14320
14792
|
formulaReferenceMoveParam.unitId,
|
|
14321
14793
|
formulaReferenceMoveParam.sheetId,
|
|
@@ -14371,11 +14843,8 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14371
14843
|
if (!shouldModify)
|
|
14372
14844
|
return !0;
|
|
14373
14845
|
const newSequenceNodes = this._updateRefOffset(sequenceNodes, refChangeIds, x, y);
|
|
14374
|
-
|
|
14846
|
+
newFormulaDataItem.setValue(row, column, {
|
|
14375
14847
|
f: `=${generateStringWithSequence(newSequenceNodes)}`
|
|
14376
|
-
}) : newFormulaDataItem.setValue(row, column, {
|
|
14377
|
-
f: `=${generateStringWithSequence(newSequenceNodes)}`,
|
|
14378
|
-
si
|
|
14379
14848
|
});
|
|
14380
14849
|
}), newFormulaData[unitId] && (newFormulaData[unitId][sheetId] = newFormulaDataItem.getData());
|
|
14381
14850
|
}
|
|
@@ -14402,45 +14871,50 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14402
14871
|
return;
|
|
14403
14872
|
const sequenceRange = Rectangle.moveOffset(unitRange, refOffsetX, refOffsetY);
|
|
14404
14873
|
let newRange = null;
|
|
14405
|
-
if (type
|
|
14406
|
-
if (
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
remainRange
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
remainRange
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14874
|
+
if (type !== 0) {
|
|
14875
|
+
if (type === 1) {
|
|
14876
|
+
if (from == null || to == null)
|
|
14877
|
+
return;
|
|
14878
|
+
const moveEdge = this._checkMoveEdge(sequenceRange, from);
|
|
14879
|
+
let remainRange = Rectangle.getIntersects(sequenceRange, from);
|
|
14880
|
+
if (remainRange == null && (from.endRow < sequenceRange.startRow && to.endRow < sequenceRange.startRow || from.startRow > sequenceRange.endRow && to.startRow > sequenceRange.endRow))
|
|
14881
|
+
return;
|
|
14882
|
+
remainRange == null && (remainRange = {
|
|
14883
|
+
startRow: sequenceRange.startRow,
|
|
14884
|
+
endRow: sequenceRange.endRow,
|
|
14885
|
+
startColumn: sequenceRange.startColumn,
|
|
14886
|
+
endColumn: sequenceRange.endColumn,
|
|
14887
|
+
rangeType: RANGE_TYPE.NORMAL
|
|
14888
|
+
});
|
|
14889
|
+
const operators = handleMoveRows(
|
|
14890
|
+
{ id: EffectRefRangId.MoveRowsCommandId, params: { toRange: to, fromRange: from } },
|
|
14891
|
+
remainRange
|
|
14892
|
+
), result = runRefRangeMutations(operators, remainRange);
|
|
14893
|
+
if (result == null)
|
|
14894
|
+
return ErrorType.REF;
|
|
14895
|
+
newRange = this._getMoveNewRange(moveEdge, result, from, to, sequenceRange, remainRange);
|
|
14896
|
+
} else if (type === 2) {
|
|
14897
|
+
if (from == null || to == null)
|
|
14898
|
+
return;
|
|
14899
|
+
const moveEdge = this._checkMoveEdge(sequenceRange, from);
|
|
14900
|
+
let remainRange = Rectangle.getIntersects(sequenceRange, from);
|
|
14901
|
+
if (remainRange == null && (from.endColumn < sequenceRange.startColumn && to.endColumn < sequenceRange.startColumn || from.startColumn > sequenceRange.endColumn && to.startColumn > sequenceRange.endColumn))
|
|
14902
|
+
return;
|
|
14903
|
+
remainRange == null && (remainRange = {
|
|
14904
|
+
startRow: sequenceRange.startRow,
|
|
14905
|
+
endRow: sequenceRange.endRow,
|
|
14906
|
+
startColumn: sequenceRange.startColumn,
|
|
14907
|
+
endColumn: sequenceRange.endColumn,
|
|
14908
|
+
rangeType: RANGE_TYPE.NORMAL
|
|
14909
|
+
});
|
|
14910
|
+
const operators = handleMoveCols(
|
|
14911
|
+
{ id: EffectRefRangId.MoveColsCommandId, params: { toRange: to, fromRange: from } },
|
|
14912
|
+
remainRange
|
|
14913
|
+
), result = runRefRangeMutations(operators, remainRange);
|
|
14914
|
+
if (result == null)
|
|
14915
|
+
return ErrorType.REF;
|
|
14916
|
+
newRange = this._getMoveNewRange(moveEdge, result, from, to, sequenceRange, remainRange);
|
|
14917
|
+
}
|
|
14444
14918
|
}
|
|
14445
14919
|
if (range != null) {
|
|
14446
14920
|
if (type === 3) {
|
|
@@ -14651,11 +15125,7 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14651
15125
|
if (startColumn === originStartColumn && endColumn === originEndColumn)
|
|
14652
15126
|
if (startRow < originStartRow)
|
|
14653
15127
|
newRange.startRow = startRow;
|
|
14654
|
-
else if (
|
|
14655
|
-
newRange.startRow = startRow;
|
|
14656
|
-
else if (endRow >= originEndRow && toStartRow <= originEndRow)
|
|
14657
|
-
newRange.startRow = fromEndRow + 1, newRange.endRow = endRow;
|
|
14658
|
-
else if (toStartRow > originEndRow)
|
|
15128
|
+
else if (startRow >= originEndRow)
|
|
14659
15129
|
newRange.endRow -= fromEndRow + 1 - originStartRow;
|
|
14660
15130
|
else
|
|
14661
15131
|
return;
|
|
@@ -14665,11 +15135,7 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14665
15135
|
if (startColumn === originStartColumn && endColumn === originEndColumn)
|
|
14666
15136
|
if (endRow > originEndRow)
|
|
14667
15137
|
newRange.endRow = endRow;
|
|
14668
|
-
else if (
|
|
14669
|
-
newRange.endRow = endRow;
|
|
14670
|
-
else if (startRow <= originStartRow && toEndRow >= originStartRow)
|
|
14671
|
-
newRange.endRow = fromStartRow + 1, newRange.startRow = startRow;
|
|
14672
|
-
else if (toEndRow < originStartRow)
|
|
15138
|
+
else if (endRow <= originStartRow)
|
|
14673
15139
|
newRange.startRow += originEndRow - fromStartRow + 1;
|
|
14674
15140
|
else
|
|
14675
15141
|
return;
|
|
@@ -14679,11 +15145,7 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14679
15145
|
if (startRow === originStartRow && endRow === originEndRow)
|
|
14680
15146
|
if (startColumn < originStartColumn)
|
|
14681
15147
|
newRange.startColumn = startColumn;
|
|
14682
|
-
else if (
|
|
14683
|
-
newRange.startColumn = startColumn;
|
|
14684
|
-
else if (endColumn >= originEndColumn && toStartColumn <= originEndColumn)
|
|
14685
|
-
newRange.startColumn = fromEndColumn + 1, newRange.endColumn = endColumn;
|
|
14686
|
-
else if (toStartColumn > originEndColumn)
|
|
15148
|
+
else if (startColumn >= originEndColumn)
|
|
14687
15149
|
newRange.endColumn -= fromEndColumn + 1 - originStartColumn;
|
|
14688
15150
|
else
|
|
14689
15151
|
return;
|
|
@@ -14693,28 +15155,24 @@ let UpdateFormulaController = (_a9 = class extends Disposable {
|
|
|
14693
15155
|
if (startRow === originStartRow && endRow === originEndRow)
|
|
14694
15156
|
if (endColumn > originEndColumn)
|
|
14695
15157
|
newRange.endColumn = endColumn;
|
|
14696
|
-
else if (
|
|
14697
|
-
newRange.endColumn = endColumn;
|
|
14698
|
-
else if (startColumn <= originStartColumn && toEndColumn >= originStartColumn)
|
|
14699
|
-
newRange.endColumn = fromStartColumn + 1, newRange.startColumn = startColumn;
|
|
14700
|
-
else if (toEndColumn < originStartColumn)
|
|
15158
|
+
else if (endColumn <= originStartColumn)
|
|
14701
15159
|
newRange.startColumn += originEndColumn - fromStartColumn + 1;
|
|
14702
15160
|
else
|
|
14703
15161
|
return;
|
|
14704
15162
|
else
|
|
14705
15163
|
return;
|
|
14706
|
-
else moveEdge === 4 ? (newRange.startRow = startRow, newRange.startColumn = startColumn, newRange.endRow = endRow, newRange.endColumn = endColumn) : fromStartColumn <= originStartColumn && fromEndColumn >= originEndColumn ? toStartRow
|
|
15164
|
+
else moveEdge === 4 ? (newRange.startRow = startRow, newRange.startColumn = startColumn, newRange.endRow = endRow, newRange.endColumn = endColumn) : fromStartColumn <= originStartColumn && fromEndColumn >= originEndColumn ? from.endRow < originStartRow ? (toStartRow >= originStartRow && (newRange.startRow -= fromEndRow - fromStartRow + 1), toStartRow >= originEndRow && (newRange.endRow -= fromEndRow - fromStartRow + 1)) : from.startRow > originEndRow && (toEndRow <= originEndRow && (newRange.endRow += fromEndRow - fromStartRow + 1), toEndRow <= originStartRow && (newRange.startRow += fromEndRow - fromStartRow + 1)) : fromStartRow <= originStartRow && fromEndRow >= originEndRow ? from.endColumn < originStartColumn ? (toStartColumn >= originStartColumn && (newRange.startColumn -= fromEndColumn - fromStartColumn + 1), toStartColumn >= originEndColumn && (newRange.endColumn -= fromEndColumn - fromStartColumn + 1)) : from.startColumn > originEndColumn && (toEndColumn <= originEndColumn && (newRange.endColumn += fromEndColumn - fromStartColumn + 1), toEndColumn <= originStartColumn && (newRange.startColumn += fromEndColumn - fromStartColumn + 1)) : ((toStartColumn <= remainEndColumn + 1 && toEndColumn >= originEndColumn || toStartColumn <= originStartColumn && toEndColumn >= remainStartColumn - 1) && toStartRow <= originStartRow && toEndRow >= originEndRow || (toStartRow <= remainEndRow + 1 && toEndRow >= originEndRow || toStartRow <= originStartRow && toEndRow >= remainStartRow - 1) && toStartColumn <= originStartColumn && toEndColumn >= originEndColumn) && (newRange.startRow = startRow, newRange.startColumn = startColumn, newRange.endRow = endRow, newRange.endColumn = endColumn);
|
|
14707
15165
|
return newRange;
|
|
14708
15166
|
}
|
|
14709
15167
|
_getCurrentSheetInfo() {
|
|
14710
|
-
var
|
|
14711
|
-
const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), unitId = workbook.getUnitId(), sheetId = ((
|
|
15168
|
+
var _a23;
|
|
15169
|
+
const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), unitId = workbook.getUnitId(), sheetId = ((_a23 = workbook.getActiveSheet()) == null ? void 0 : _a23.getSheetId()) || "";
|
|
14712
15170
|
return {
|
|
14713
15171
|
unitId,
|
|
14714
15172
|
sheetId
|
|
14715
15173
|
};
|
|
14716
15174
|
}
|
|
14717
|
-
}, __name(
|
|
15175
|
+
}, __name(_a10, "UpdateFormulaController"), _a10);
|
|
14718
15176
|
UpdateFormulaController = __decorateClass$a([
|
|
14719
15177
|
OnLifecycle(LifecycleStages.Ready, UpdateFormulaController),
|
|
14720
15178
|
__decorateParam$a(0, IUniverInstanceService),
|
|
@@ -14732,8 +15190,8 @@ var __defProp$9 = Object.defineProperty, __getOwnPropDesc$9 = Object.getOwnPrope
|
|
|
14732
15190
|
return kind && result && __defProp$9(target, key, result), result;
|
|
14733
15191
|
}, "__decorateClass$9"), __decorateParam$9 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$9");
|
|
14734
15192
|
const RemoteRegisterFunctionServiceName = "sheets-formula.remote-register-function.service", IRemoteRegisterFunctionService = createIdentifier(RemoteRegisterFunctionServiceName);
|
|
14735
|
-
var
|
|
14736
|
-
let RemoteRegisterFunctionService = (
|
|
15193
|
+
var _a11;
|
|
15194
|
+
let RemoteRegisterFunctionService = (_a11 = class {
|
|
14737
15195
|
constructor(_functionService) {
|
|
14738
15196
|
this._functionService = _functionService;
|
|
14739
15197
|
}
|
|
@@ -14744,7 +15202,7 @@ let RemoteRegisterFunctionService = (_a10 = class {
|
|
|
14744
15202
|
async unregisterFunctions(names) {
|
|
14745
15203
|
this._functionService.unregisterDescriptions(...names);
|
|
14746
15204
|
}
|
|
14747
|
-
}, __name(
|
|
15205
|
+
}, __name(_a11, "RemoteRegisterFunctionService"), _a11);
|
|
14748
15206
|
RemoteRegisterFunctionService = __decorateClass$9([
|
|
14749
15207
|
__decorateParam$9(0, IFunctionService)
|
|
14750
15208
|
], RemoteRegisterFunctionService);
|
|
@@ -14761,8 +15219,8 @@ var __defProp$8 = Object.defineProperty, __getOwnPropDesc$8 = Object.getOwnPrope
|
|
|
14761
15219
|
const IRegisterFunctionService = createIdentifier(
|
|
14762
15220
|
"sheets-formula.register-function-service"
|
|
14763
15221
|
);
|
|
14764
|
-
var
|
|
14765
|
-
let RegisterFunctionService = (
|
|
15222
|
+
var _a12;
|
|
15223
|
+
let RegisterFunctionService = (_a12 = class extends Disposable {
|
|
14766
15224
|
constructor(_localeService, _descriptionService, _functionService, _remoteRegisterFunctionService) {
|
|
14767
15225
|
super(), this._localeService = _localeService, this._descriptionService = _descriptionService, this._functionService = _functionService, this._remoteRegisterFunctionService = _remoteRegisterFunctionService;
|
|
14768
15226
|
}
|
|
@@ -14795,7 +15253,7 @@ let RegisterFunctionService = (_a11 = class extends Disposable {
|
|
|
14795
15253
|
const functionNameList = [], functions = list.map(([func, name]) => (functionNameList.push(name), [func.toString(), name]));
|
|
14796
15254
|
return this._remoteRegisterFunctionService.registerFunctions(functions), toDisposable(() => this._remoteRegisterFunctionService.unregisterFunctions(functionNameList));
|
|
14797
15255
|
}
|
|
14798
|
-
}, __name(
|
|
15256
|
+
}, __name(_a12, "RegisterFunctionService"), _a12);
|
|
14799
15257
|
RegisterFunctionService = __decorateClass$8([
|
|
14800
15258
|
__decorateParam$8(0, Inject(LocaleService)),
|
|
14801
15259
|
__decorateParam$8(1, Inject(IDescriptionService)),
|
|
@@ -14808,8 +15266,8 @@ var __defProp$7 = Object.defineProperty, __getOwnPropDesc$7 = Object.getOwnPrope
|
|
|
14808
15266
|
return kind && result && __defProp$7(target, key, result), result;
|
|
14809
15267
|
}, "__decorateClass$7"), __decorateParam$7 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$7");
|
|
14810
15268
|
const SCOPE_WORKBOOK_VALUE = "AllDefaultWorkbook";
|
|
14811
|
-
var
|
|
14812
|
-
let DefinedNameController = (
|
|
15269
|
+
var _a13;
|
|
15270
|
+
let DefinedNameController = (_a13 = class extends Disposable {
|
|
14813
15271
|
constructor(_descriptionService, _definedNamesService, _univerInstanceService, _commandService) {
|
|
14814
15272
|
super();
|
|
14815
15273
|
__publicField(this, "_preUnitId", null);
|
|
@@ -14923,7 +15381,7 @@ let DefinedNameController = (_a12 = class extends Disposable {
|
|
|
14923
15381
|
localSheetId !== SCOPE_WORKBOOK_VALUE && localSheetId !== sheetId && functionList.push(name);
|
|
14924
15382
|
}), this._descriptionService.unregisterDescriptions(functionList);
|
|
14925
15383
|
}
|
|
14926
|
-
}, __name(
|
|
15384
|
+
}, __name(_a13, "DefinedNameController"), _a13);
|
|
14927
15385
|
DefinedNameController = __decorateClass$7([
|
|
14928
15386
|
OnLifecycle(LifecycleStages.Rendered, DefinedNameController),
|
|
14929
15387
|
__decorateParam$7(0, IDescriptionService),
|
|
@@ -14935,8 +15393,8 @@ var __defProp$6 = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPrope
|
|
|
14935
15393
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14936
15394
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
14937
15395
|
return kind && result && __defProp$6(target, key, result), result;
|
|
14938
|
-
}, "__decorateClass$6"), __decorateParam$6 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$6"),
|
|
14939
|
-
let FormulaRefRangeService = (
|
|
15396
|
+
}, "__decorateClass$6"), __decorateParam$6 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$6"), _a14;
|
|
15397
|
+
let FormulaRefRangeService = (_a14 = class extends Disposable {
|
|
14940
15398
|
constructor(_refRangeService, _lexerTreeBuilder, _univerInstanceService) {
|
|
14941
15399
|
super(), this._refRangeService = _refRangeService, this._lexerTreeBuilder = _lexerTreeBuilder, this._univerInstanceService = _univerInstanceService;
|
|
14942
15400
|
}
|
|
@@ -14973,7 +15431,7 @@ let FormulaRefRangeService = (_a13 = class extends Disposable {
|
|
|
14973
15431
|
}
|
|
14974
15432
|
}), disposableCollection;
|
|
14975
15433
|
}
|
|
14976
|
-
}, __name(
|
|
15434
|
+
}, __name(_a14, "FormulaRefRangeService"), _a14);
|
|
14977
15435
|
FormulaRefRangeService = __decorateClass$6([
|
|
14978
15436
|
__decorateParam$6(0, Inject(RefRangeService)),
|
|
14979
15437
|
__decorateParam$6(1, Inject(LexerTreeBuilder)),
|
|
@@ -14983,8 +15441,8 @@ var FormulaResultStatus = /* @__PURE__ */ ((FormulaResultStatus2) => (FormulaRes
|
|
|
14983
15441
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14984
15442
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
14985
15443
|
return kind && result && __defProp$5(target, key, result), result;
|
|
14986
|
-
}, "__decorateClass$5"), __decorateParam$5 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$5"),
|
|
14987
|
-
let RegisterOtherFormulaService = (
|
|
15444
|
+
}, "__decorateClass$5"), __decorateParam$5 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$5"), _a15;
|
|
15445
|
+
let RegisterOtherFormulaService = (_a15 = class extends Disposable {
|
|
14988
15446
|
constructor(_commandService, _activeDirtyManagerService) {
|
|
14989
15447
|
super();
|
|
14990
15448
|
__publicField(this, "_formulaCacheMap", /* @__PURE__ */ new Map());
|
|
@@ -15095,7 +15553,7 @@ let RegisterOtherFormulaService = (_a14 = class extends Disposable {
|
|
|
15095
15553
|
getFormulaValueSync(unitId, subUnitId, formulaId) {
|
|
15096
15554
|
return this._ensureCacheMap(unitId, subUnitId).get(formulaId);
|
|
15097
15555
|
}
|
|
15098
|
-
}, __name(
|
|
15556
|
+
}, __name(_a15, "RegisterOtherFormulaService"), _a15);
|
|
15099
15557
|
RegisterOtherFormulaService = __decorateClass$5([
|
|
15100
15558
|
__decorateParam$5(0, ICommandService),
|
|
15101
15559
|
__decorateParam$5(1, IActiveDirtyManagerService)
|
|
@@ -15119,8 +15577,8 @@ const ALERT_KEY = "SHEET_FORMULA_ALERT", ErrorTypeToMessageMap = {
|
|
|
15119
15577
|
[ErrorType.CONNECT]: "connect",
|
|
15120
15578
|
[ErrorType.NULL]: "null"
|
|
15121
15579
|
};
|
|
15122
|
-
var
|
|
15123
|
-
let FormulaAlertRenderController = (
|
|
15580
|
+
var _a16;
|
|
15581
|
+
let FormulaAlertRenderController = (_a16 = class extends Disposable {
|
|
15124
15582
|
constructor(_context, _hoverManagerService, _cellAlertManagerService, _localeService) {
|
|
15125
15583
|
super(), this._context = _context, this._hoverManagerService = _hoverManagerService, this._cellAlertManagerService = _cellAlertManagerService, this._localeService = _localeService, this._init();
|
|
15126
15584
|
}
|
|
@@ -15129,7 +15587,7 @@ let FormulaAlertRenderController = (_a15 = class extends Disposable {
|
|
|
15129
15587
|
}
|
|
15130
15588
|
_initCellAlertPopup() {
|
|
15131
15589
|
this.disposeWithMe(this._hoverManagerService.currentCell$.subscribe((cellPos) => {
|
|
15132
|
-
var
|
|
15590
|
+
var _a23;
|
|
15133
15591
|
if (cellPos) {
|
|
15134
15592
|
const worksheet = this._context.unit.getActiveSheet();
|
|
15135
15593
|
if (!worksheet) return;
|
|
@@ -15138,7 +15596,7 @@ let FormulaAlertRenderController = (_a15 = class extends Disposable {
|
|
|
15138
15596
|
const errorType = extractFormulaError(cellData);
|
|
15139
15597
|
if (!errorType)
|
|
15140
15598
|
return;
|
|
15141
|
-
const currentAlert = this._cellAlertManagerService.currentAlert.get(ALERT_KEY), currentLoc = (
|
|
15599
|
+
const currentAlert = this._cellAlertManagerService.currentAlert.get(ALERT_KEY), currentLoc = (_a23 = currentAlert == null ? void 0 : currentAlert.alert) == null ? void 0 : _a23.location;
|
|
15142
15600
|
if (currentLoc && currentLoc.row === cellPos.location.row && currentLoc.col === cellPos.location.col && currentLoc.subUnitId === cellPos.location.subUnitId && currentLoc.unitId === cellPos.location.unitId)
|
|
15143
15601
|
return;
|
|
15144
15602
|
this._cellAlertManagerService.showAlert({
|
|
@@ -15156,7 +15614,7 @@ let FormulaAlertRenderController = (_a15 = class extends Disposable {
|
|
|
15156
15614
|
this._cellAlertManagerService.removeAlert(ALERT_KEY);
|
|
15157
15615
|
}));
|
|
15158
15616
|
}
|
|
15159
|
-
}, __name(
|
|
15617
|
+
}, __name(_a16, "FormulaAlertRenderController"), _a16);
|
|
15160
15618
|
FormulaAlertRenderController = __decorateClass$4([
|
|
15161
15619
|
__decorateParam$4(1, Inject(HoverManagerService)),
|
|
15162
15620
|
__decorateParam$4(2, Inject(CellAlertManagerService)),
|
|
@@ -15173,8 +15631,8 @@ const FORMULA_ERROR_MARK = {
|
|
|
15173
15631
|
color: "#409f11"
|
|
15174
15632
|
}
|
|
15175
15633
|
};
|
|
15176
|
-
var
|
|
15177
|
-
let FormulaRenderManagerController = (
|
|
15634
|
+
var _a17;
|
|
15635
|
+
let FormulaRenderManagerController = (_a17 = class extends RxDisposable {
|
|
15178
15636
|
constructor(_sheetInterceptorService) {
|
|
15179
15637
|
super(), this._sheetInterceptorService = _sheetInterceptorService, this._init();
|
|
15180
15638
|
}
|
|
@@ -15193,7 +15651,7 @@ let FormulaRenderManagerController = (_a16 = class extends RxDisposable {
|
|
|
15193
15651
|
}
|
|
15194
15652
|
));
|
|
15195
15653
|
}
|
|
15196
|
-
}, __name(
|
|
15654
|
+
}, __name(_a17, "FormulaRenderManagerController"), _a17);
|
|
15197
15655
|
FormulaRenderManagerController = __decorateClass$3([
|
|
15198
15656
|
OnLifecycle(LifecycleStages.Rendered, FormulaRenderManagerController),
|
|
15199
15657
|
__decorateParam$3(0, Inject(SheetInterceptorService))
|
|
@@ -15202,8 +15660,8 @@ var __defProp$2 = Object.defineProperty, __getOwnPropDesc$2 = Object.getOwnPrope
|
|
|
15202
15660
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15203
15661
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
15204
15662
|
return kind && result && __defProp$2(target, key, result), result;
|
|
15205
|
-
}, "__decorateClass$2"), __decorateParam$2 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$2"),
|
|
15206
|
-
let RefSelectionsRenderService = (
|
|
15663
|
+
}, "__decorateClass$2"), __decorateParam$2 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$2"), _a18;
|
|
15664
|
+
let RefSelectionsRenderService = (_a18 = class extends BaseSelectionRenderService {
|
|
15207
15665
|
constructor(_context, injector, themeService, shortcutService, renderManagerService, _refSelectionsService, _sheetSkeletonManagerService) {
|
|
15208
15666
|
super(
|
|
15209
15667
|
injector,
|
|
@@ -15235,14 +15693,13 @@ let RefSelectionsRenderService = (_a17 = class extends BaseSelectionRenderServic
|
|
|
15235
15693
|
return this._disableSelectionChanging(), this._eventDisposables = this._initCanvasEventListeners(), toDisposable(() => this._disableSelectionChanging());
|
|
15236
15694
|
}
|
|
15237
15695
|
_disableSelectionChanging() {
|
|
15238
|
-
var
|
|
15239
|
-
(
|
|
15696
|
+
var _a23;
|
|
15697
|
+
(_a23 = this._eventDisposables) == null || _a23.dispose(), this._eventDisposables = null;
|
|
15240
15698
|
}
|
|
15241
15699
|
_initCanvasEventListeners() {
|
|
15242
15700
|
const sheetObject = this._getSheetObject(), { spreadsheetRowHeader, spreadsheetColumnHeader, spreadsheet, spreadsheetLeftTopPlaceholder } = sheetObject, { scene } = this._context, listenerDisposables = new DisposableCollection();
|
|
15243
15701
|
return listenerDisposables.add(spreadsheet == null ? void 0 : spreadsheet.onPointerDown$.subscribeEvent((evt, state) => {
|
|
15244
|
-
|
|
15245
|
-
console.warn("debug start dragging", (_a22 = this._skeleton.worksheet) == null ? void 0 : _a22.getUnitId()), this._onPointerDown(evt, spreadsheet.zIndex + 1, RANGE_TYPE.NORMAL, this._getActiveViewport(evt)), evt.button !== 2 && state.stopPropagation();
|
|
15702
|
+
this._onPointerDown(evt, spreadsheet.zIndex + 1, RANGE_TYPE.NORMAL, this._getActiveViewport(evt)), evt.button !== 2 && state.stopPropagation();
|
|
15246
15703
|
})), listenerDisposables.add(
|
|
15247
15704
|
spreadsheetRowHeader == null ? void 0 : spreadsheetRowHeader.onPointerDown$.subscribeEvent((evt, state) => {
|
|
15248
15705
|
const skeleton = this._sheetSkeletonManagerService.getCurrent().skeleton, { row } = getCoordByOffset(evt.offsetX, evt.offsetY, scene, skeleton);
|
|
@@ -15297,7 +15754,7 @@ let RefSelectionsRenderService = (_a17 = class extends BaseSelectionRenderServic
|
|
|
15297
15754
|
_getSheetObject() {
|
|
15298
15755
|
return getSheetObject(this._context.unit, this._context);
|
|
15299
15756
|
}
|
|
15300
|
-
}, __name(
|
|
15757
|
+
}, __name(_a18, "RefSelectionsRenderService"), _a18);
|
|
15301
15758
|
RefSelectionsRenderService = __decorateClass$2([
|
|
15302
15759
|
__decorateParam$2(1, Inject(Injector)),
|
|
15303
15760
|
__decorateParam$2(2, Inject(ThemeService)),
|
|
@@ -15334,8 +15791,8 @@ var __defProp$1 = Object.defineProperty, __getOwnPropDesc$1 = Object.getOwnPrope
|
|
|
15334
15791
|
return kind && result && __defProp$1(target, key, result), result;
|
|
15335
15792
|
}, "__decorateClass$1"), __decorateParam$1 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$1");
|
|
15336
15793
|
const sheetEditorUnitIds = [DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY];
|
|
15337
|
-
var
|
|
15338
|
-
let PromptController = (
|
|
15794
|
+
var _a19;
|
|
15795
|
+
let PromptController = (_a19 = class extends Disposable {
|
|
15339
15796
|
constructor(_commandService, _contextService, _textSelectionRenderManager, _editorBridgeService, _formulaPromptService, _lexerTreeBuilder, _renderManagerService, _themeService, _sheetsSelectionsService, _refSelectionsService, _univerInstanceService, _descriptionService, _textSelectionManagerService, _contextMenuService, _editorService) {
|
|
15340
15797
|
super();
|
|
15341
15798
|
__publicField(this, "_formulaRefColors", []);
|
|
@@ -15377,7 +15834,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15377
15834
|
this._previousSequenceNodes = null, this._previousInsertRefStringIndex = null, this._isSelectionMovingRefSelections = [], this._previousRangesCount = 0, this._currentInsertRefStringIndex = -1;
|
|
15378
15835
|
}
|
|
15379
15836
|
_initialize() {
|
|
15380
|
-
this._initialCursorSync(), this._initAcceptFormula(), this._initialFormulaTheme(), this._initSelectionsEndListener(), this.
|
|
15837
|
+
this._initialCursorSync(), this._initAcceptFormula(), this._initialFormulaTheme(), this._initSelectionsEndListener(), this._closeRangePromptWhenEditorInvisible(), this._initialEditorInputChange(), this._commandExecutedListener(), this._cursorStateListener(), this._inputFormulaListener(), this._userMouseListener(), this._initialChangeEditor();
|
|
15381
15838
|
}
|
|
15382
15839
|
_initialFormulaTheme() {
|
|
15383
15840
|
const style = this._themeService.getCurrentTheme();
|
|
@@ -15399,14 +15856,14 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15399
15856
|
_initialCursorSync() {
|
|
15400
15857
|
this.disposeWithMe(
|
|
15401
15858
|
this._textSelectionManagerService.textSelection$.subscribe((params) => {
|
|
15402
|
-
var
|
|
15859
|
+
var _a23;
|
|
15403
15860
|
if ((params == null ? void 0 : params.unitId) == null)
|
|
15404
15861
|
return;
|
|
15405
15862
|
const editor = this._editorService.getEditor(params.unitId);
|
|
15406
|
-
if (!editor || editor.onlyInputContent() || editor.isSheetEditor() && this.
|
|
15863
|
+
if (!editor || editor.onlyInputContent() || editor.isSheetEditor() && !this._isFormulaEditorActivated())
|
|
15407
15864
|
return;
|
|
15408
15865
|
const onlyInputRange = editor.onlyInputRange();
|
|
15409
|
-
(
|
|
15866
|
+
(_a23 = params == null ? void 0 : params.options) != null && _a23.fromSelection || (this._quitSelectingMode(), this._contextSwitch(), this._checkShouldEnterSelectingMode(onlyInputRange), !this._formulaPromptService.isLockedSelectionChange() && (this._highlightFormula(), !onlyInputRange && this._changeFunctionPanelState()));
|
|
15410
15867
|
})
|
|
15411
15868
|
);
|
|
15412
15869
|
}
|
|
@@ -15420,12 +15877,14 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15420
15877
|
})
|
|
15421
15878
|
);
|
|
15422
15879
|
}
|
|
15423
|
-
|
|
15880
|
+
_closeRangePromptWhenEditorInvisible() {
|
|
15424
15881
|
this.disposeWithMe(
|
|
15425
|
-
this._editorBridgeService.afterVisible$.subscribe((visibleParam) => {
|
|
15426
|
-
visibleParam.visible
|
|
15882
|
+
this._editorBridgeService.afterVisible$.pipe(distinctUntilKeyChanged("visible")).subscribe((visibleParam) => {
|
|
15883
|
+
visibleParam.visible || this._closeRangePrompt();
|
|
15427
15884
|
})
|
|
15428
|
-
)
|
|
15885
|
+
), this.disposeWithMe(this._contextService.subscribeContextValue$(FORMULA_EDITOR_ACTIVATED).pipe(distinctUntilChanged()).subscribe((activated) => {
|
|
15886
|
+
activated || this._closeRangePrompt();
|
|
15887
|
+
}));
|
|
15429
15888
|
}
|
|
15430
15889
|
_initialChangeEditor() {
|
|
15431
15890
|
this.disposeWithMe(
|
|
@@ -15477,8 +15936,8 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15477
15936
|
return this._currentlyWorkingRefRenderer && this._currentlyWorkingRefRenderer !== renderer ? (this._currentlyWorkingRefRenderer.clearLastSelection(), !1) : !0;
|
|
15478
15937
|
}
|
|
15479
15938
|
_disposeSelectionsChangeListeners() {
|
|
15480
|
-
var
|
|
15481
|
-
(
|
|
15939
|
+
var _a23;
|
|
15940
|
+
(_a23 = this._selectionsChangeDisposables) == null || _a23.dispose(), this._selectionsChangeDisposables = null;
|
|
15482
15941
|
}
|
|
15483
15942
|
_insertControlSelections(selections) {
|
|
15484
15943
|
const currentSelection = selections[selections.length - 1];
|
|
@@ -15497,7 +15956,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15497
15956
|
_initAcceptFormula() {
|
|
15498
15957
|
this.disposeWithMe(
|
|
15499
15958
|
this._formulaPromptService.acceptFormulaName$.subscribe((formulaString) => {
|
|
15500
|
-
const activeRange = this._textSelectionManagerService.
|
|
15959
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
15501
15960
|
if (activeRange == null) {
|
|
15502
15961
|
this._hideFunctionPanel();
|
|
15503
15962
|
return;
|
|
@@ -15524,7 +15983,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15524
15983
|
);
|
|
15525
15984
|
}
|
|
15526
15985
|
_changeFunctionPanelState() {
|
|
15527
|
-
const activeRange = this._textSelectionManagerService.
|
|
15986
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
15528
15987
|
if (activeRange == null) {
|
|
15529
15988
|
this._hideFunctionPanel();
|
|
15530
15989
|
return;
|
|
@@ -15587,7 +16046,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15587
16046
|
* @returns Return the character under the current cursor in the editor.
|
|
15588
16047
|
*/
|
|
15589
16048
|
_getCurrentChar() {
|
|
15590
|
-
const activeRange = this._textSelectionManagerService.
|
|
16049
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
15591
16050
|
if (activeRange == null)
|
|
15592
16051
|
return;
|
|
15593
16052
|
const { startOffset } = activeRange, config = this._getCurrentBodyDataStreamAndOffset();
|
|
@@ -15608,11 +16067,11 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15608
16067
|
this._isSelectingMode && (this._editorBridgeService.disableForceKeepVisible(), this._contextMenuService.enable(), this._formulaPromptService.disableLockedSelectionInsert(), this._currentInsertRefStringIndex = -1, this._disposeSelectionsChangeListeners(), this._arrowMoveActionState === 2 && (this._arrowMoveActionState = 4), this._isSelectingMode = !1);
|
|
15609
16068
|
}
|
|
15610
16069
|
_getCurrentBodyDataStreamAndOffset() {
|
|
15611
|
-
var
|
|
16070
|
+
var _a23, _b;
|
|
15612
16071
|
const documentModel = this._univerInstanceService.getCurrentUniverDocInstance();
|
|
15613
16072
|
if (!(documentModel != null && documentModel.getBody()))
|
|
15614
16073
|
return;
|
|
15615
|
-
const unitId = documentModel.getUnitId(), editor = this._editorService.getEditor(unitId), dataStream = (_b = (
|
|
16074
|
+
const unitId = documentModel.getUnitId(), editor = this._editorService.getEditor(unitId), dataStream = (_b = (_a23 = documentModel.getBody()) == null ? void 0 : _a23.dataStream) != null ? _b : "";
|
|
15616
16075
|
return !editor || !editor.onlyInputRange() ? { dataStream, offset: 0 } : { dataStream: compareToken.EQUALS + dataStream, offset: 1 };
|
|
15617
16076
|
}
|
|
15618
16077
|
_getFormulaAndCellEditorBody(unitIds) {
|
|
@@ -15637,7 +16096,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15637
16096
|
this._contextService.setContextValue(FOCUSING_EDITOR_INPUT_FORMULA, !0), this._contextService.setContextValue(DISABLE_NORMAL_SELECTIONS, !0), this._contextService.setContextValue(UNI_DISABLE_CHANGING_FOCUS_KEY, !0);
|
|
15638
16097
|
const lastSequenceNodes = this._lexerTreeBuilder.sequenceNodesBuilder(config.dataStream.replace(/\r/g, "").replace(/\n/g, "")) || [];
|
|
15639
16098
|
this._formulaPromptService.setSequenceNodes(lastSequenceNodes);
|
|
15640
|
-
const activeRange = this._textSelectionManagerService.
|
|
16099
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
15641
16100
|
if (activeRange == null)
|
|
15642
16101
|
return;
|
|
15643
16102
|
const { startOffset } = activeRange;
|
|
@@ -15671,10 +16130,10 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15671
16130
|
* Generate styles for formula text, highlighting references, text, numbers, and arrays.
|
|
15672
16131
|
*/
|
|
15673
16132
|
_buildTextRuns(sequenceNodes) {
|
|
15674
|
-
var
|
|
16133
|
+
var _a23;
|
|
15675
16134
|
const textRuns = [], refSelections = [], themeColorMap = /* @__PURE__ */ new Map();
|
|
15676
16135
|
let refColorIndex = 0;
|
|
15677
|
-
const offset = ((
|
|
16136
|
+
const offset = ((_a23 = this._getCurrentBodyDataStreamAndOffset()) == null ? void 0 : _a23.offset) || 0;
|
|
15678
16137
|
for (let i = 0, len = sequenceNodes.length; i < len; i++) {
|
|
15679
16138
|
const node = sequenceNodes[i];
|
|
15680
16139
|
if (typeof node == "string" || this._descriptionService.hasDefinedNameDescription(node.token.trim()))
|
|
@@ -15715,9 +16174,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15715
16174
|
* @param refSelections
|
|
15716
16175
|
*/
|
|
15717
16176
|
_refreshSelectionForReference(refSelectionRenderService, refSelections) {
|
|
15718
|
-
const
|
|
15719
|
-
this._getCurrentUnitIdAndSheetId();
|
|
15720
|
-
const worksheet = this._univerInstanceService.getUniverSheetInstance(unitId).getSheetBySheetId(sheetId);
|
|
16177
|
+
const { unitId, sheetId } = this._editorBridgeService.getEditCellState(), { unitId: selfUnitId, sheetId: selfSheetId } = this._getCurrentUnitIdAndSheetId(), isSelfSheet = sheetId === selfSheetId, worksheet = this._univerInstanceService.getUniverSheetInstance(unitId).getSheetBySheetId(sheetId);
|
|
15721
16178
|
let lastRange = null;
|
|
15722
16179
|
const selectionWithStyle = [];
|
|
15723
16180
|
for (let i = 0, len = refSelections.length; i < len; i++) {
|
|
@@ -15725,7 +16182,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15725
16182
|
if (refUnitId != null && refUnitId.length > 0 && unitId !== refUnitId)
|
|
15726
16183
|
continue;
|
|
15727
16184
|
const refSheetId = this._getSheetIdByName(unitId, sheetName.trim());
|
|
15728
|
-
if (sheetName.length !== 0 && refSheetId !== sheetId || this._exceedCurrentRange(range, worksheet.getRowCount(), worksheet.getColumnCount()))
|
|
16185
|
+
if (!isSelfSheet && refSheetId !== selfSheetId || isSelfSheet && sheetName.length !== 0 && refSheetId !== sheetId || this._exceedCurrentRange(range, worksheet.getRowCount(), worksheet.getColumnCount()))
|
|
15729
16186
|
continue;
|
|
15730
16187
|
const lastRangeCopy = this._getPrimary(range, themeColor, refIndex);
|
|
15731
16188
|
if (lastRangeCopy) {
|
|
@@ -15742,11 +16199,11 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15742
16199
|
lastRange && selectionWithStyle.push(lastRange), selectionWithStyle.length && this._refSelectionsService.addSelections(unitId, sheetId, selectionWithStyle);
|
|
15743
16200
|
}
|
|
15744
16201
|
_getPrimary(range, themeColor, refIndex) {
|
|
15745
|
-
var
|
|
15746
|
-
const primary = (
|
|
16202
|
+
var _a23;
|
|
16203
|
+
const primary = (_a23 = this._insertSelections.find((selection) => {
|
|
15747
16204
|
const { startRow, startColumn, endRow, endColumn } = selection.range;
|
|
15748
16205
|
return startRow === range.startRow && startColumn === range.startColumn && endRow === range.endRow && endColumn === range.endColumn || startRow === range.startRow && startColumn === range.startColumn && range.startRow === range.endRow && range.startColumn === range.endColumn;
|
|
15749
|
-
})) == null ? void 0 :
|
|
16206
|
+
})) == null ? void 0 : _a23.primary;
|
|
15750
16207
|
if (primary == null)
|
|
15751
16208
|
return;
|
|
15752
16209
|
const {
|
|
@@ -15764,18 +16221,18 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15764
16221
|
};
|
|
15765
16222
|
}
|
|
15766
16223
|
_getSheetIdByName(unitId, sheetName) {
|
|
15767
|
-
var
|
|
16224
|
+
var _a23;
|
|
15768
16225
|
const workbook = this._univerInstanceService.getUniverSheetInstance(unitId);
|
|
15769
|
-
return (
|
|
16226
|
+
return (_a23 = workbook == null ? void 0 : workbook.getSheetBySheetName(normalizeSheetName(sheetName))) == null ? void 0 : _a23.getSheetId();
|
|
15770
16227
|
}
|
|
15771
16228
|
_getSheetNameById(unitId, sheetId) {
|
|
15772
|
-
var
|
|
16229
|
+
var _a23;
|
|
15773
16230
|
const workbook = this._univerInstanceService.getUniverSheetInstance(unitId);
|
|
15774
|
-
return ((
|
|
16231
|
+
return ((_a23 = workbook == null ? void 0 : workbook.getSheetBySheetId(sheetId)) == null ? void 0 : _a23.getName()) || "";
|
|
15775
16232
|
}
|
|
15776
16233
|
_getCurrentUnitIdAndSheetId() {
|
|
15777
|
-
var
|
|
15778
|
-
const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), worksheet = workbook.getActiveSheet(), skeleton = (_b = (
|
|
16234
|
+
var _a23, _b;
|
|
16235
|
+
const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), worksheet = workbook.getActiveSheet(), skeleton = (_b = (_a23 = this._renderManagerService.getRenderById(workbook.getUnitId())) == null ? void 0 : _a23.with(SheetSkeletonManagerService)) == null ? void 0 : _b.getCurrentSkeleton();
|
|
15779
16236
|
return {
|
|
15780
16237
|
unitId: workbook.getUnitId(),
|
|
15781
16238
|
sheetId: (worksheet == null ? void 0 : worksheet.getSheetId()) || "",
|
|
@@ -15840,7 +16297,7 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15840
16297
|
let dataStream = generateStringWithSequence(sequenceNodes);
|
|
15841
16298
|
const { textRuns, refSelections } = this._buildTextRuns(sequenceNodes);
|
|
15842
16299
|
this._isSelectionMovingRefSelections = refSelections;
|
|
15843
|
-
const activeRange = this._textSelectionManagerService.
|
|
16300
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
15844
16301
|
if (activeRange == null)
|
|
15845
16302
|
return;
|
|
15846
16303
|
const { collapsed, style } = activeRange;
|
|
@@ -15893,11 +16350,11 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15893
16350
|
* @param textRuns
|
|
15894
16351
|
*/
|
|
15895
16352
|
_updateEditorModel(dataStream, textRuns) {
|
|
15896
|
-
var
|
|
16353
|
+
var _a23;
|
|
15897
16354
|
const documentDataModel = this._univerInstanceService.getCurrentUniverDocInstance(), editorUnitId = documentDataModel.getUnitId();
|
|
15898
16355
|
if (!this._editorService.isEditor(editorUnitId))
|
|
15899
16356
|
return;
|
|
15900
|
-
const docViewModel = (
|
|
16357
|
+
const docViewModel = (_a23 = this._renderManagerService.getRenderById(editorUnitId)) == null ? void 0 : _a23.with(DocSkeletonManagerService).getViewModel();
|
|
15901
16358
|
if (docViewModel == null || documentDataModel == null)
|
|
15902
16359
|
return;
|
|
15903
16360
|
const snapshot = documentDataModel == null ? void 0 : documentDataModel.getSnapshot();
|
|
@@ -15959,10 +16416,10 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
15959
16416
|
}
|
|
15960
16417
|
}
|
|
15961
16418
|
_onSelectionControlChange(toRange, selectionControl) {
|
|
15962
|
-
var
|
|
16419
|
+
var _a23;
|
|
15963
16420
|
const { skeleton } = this._getCurrentUnitIdAndSheetId();
|
|
15964
16421
|
this._formulaPromptService.enableLockedSelectionChange();
|
|
15965
|
-
const id = (
|
|
16422
|
+
const id = (_a23 = selectionControl.selectionStyle) == null ? void 0 : _a23.id;
|
|
15966
16423
|
if (!id || !Tools.isStringNumber(id))
|
|
15967
16424
|
return;
|
|
15968
16425
|
let { startRow, endRow, startColumn, endColumn } = toRange;
|
|
@@ -16002,10 +16459,10 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
16002
16459
|
typeof node != "string" && (this._syncToEditor(sequenceNodes, node.endIndex + 1), selectionControl.update(toRange, void 0, void 0, void 0, this._selectionRenderService.attachPrimaryWithCoord(primary)));
|
|
16003
16460
|
}
|
|
16004
16461
|
_refreshFormulaAndCellEditor(unitIds) {
|
|
16005
|
-
var
|
|
16462
|
+
var _a23;
|
|
16006
16463
|
for (const unitId of unitIds) {
|
|
16007
16464
|
const editorObject = getEditorObject(unitId, this._renderManagerService), documentComponent = editorObject == null ? void 0 : editorObject.document;
|
|
16008
|
-
documentComponent != null && ((
|
|
16465
|
+
documentComponent != null && ((_a23 = documentComponent.getSkeleton()) == null || _a23.calculate(), documentComponent.makeDirty());
|
|
16009
16466
|
}
|
|
16010
16467
|
}
|
|
16011
16468
|
_cursorStateListener() {
|
|
@@ -16150,25 +16607,22 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
16150
16607
|
const { formulaString, editorUnitId } = param;
|
|
16151
16608
|
if (formulaString.substring(0, 1) !== compareToken.EQUALS)
|
|
16152
16609
|
return;
|
|
16610
|
+
const { unitId } = this._getCurrentUnitIdAndSheetId();
|
|
16153
16611
|
this._editorBridgeService.isVisible().visible === !1 && this._editorBridgeService.changeVisible({
|
|
16154
16612
|
visible: !0,
|
|
16155
16613
|
eventType: DeviceInputEventType.Dblclick,
|
|
16156
|
-
unitId
|
|
16614
|
+
unitId
|
|
16157
16615
|
});
|
|
16158
16616
|
const lastSequenceNodes = this._lexerTreeBuilder.sequenceNodesBuilder(formulaString) || [];
|
|
16159
16617
|
this._formulaPromptService.setSequenceNodes(lastSequenceNodes), this._syncToEditor(lastSequenceNodes, formulaString.length - 1, editorUnitId, !0, !1);
|
|
16160
16618
|
})
|
|
16161
|
-
), this.disposeWithMe(
|
|
16162
|
-
// TODO: unfinished
|
|
16163
|
-
this._editorService.singleSelection$.subscribe((state) => {
|
|
16164
|
-
})
|
|
16165
16619
|
);
|
|
16166
16620
|
}
|
|
16167
16621
|
/**
|
|
16168
16622
|
* Absolute range, triggered by F4
|
|
16169
16623
|
*/
|
|
16170
16624
|
_changeRefString() {
|
|
16171
|
-
const activeRange = this._textSelectionManagerService.
|
|
16625
|
+
const activeRange = this._textSelectionManagerService.getActiveTextRangeWithStyle();
|
|
16172
16626
|
if (activeRange == null)
|
|
16173
16627
|
return;
|
|
16174
16628
|
const { startOffset } = activeRange, strIndex = startOffset - 2, nodeIndex = this._formulaPromptService.getCurrentSequenceNodeIndex(strIndex), node = this._formulaPromptService.getCurrentSequenceNodeByIndex(nodeIndex);
|
|
@@ -16208,7 +16662,13 @@ let PromptController = (_a18 = class extends Disposable {
|
|
|
16208
16662
|
const editorUnitId = this._univerInstanceService.getCurrentUniverDocInstance().getUnitId(), editor = this._editorService.getEditor(editorUnitId);
|
|
16209
16663
|
return editor == null ? void 0 : editor.render;
|
|
16210
16664
|
}
|
|
16211
|
-
|
|
16665
|
+
_isFormulaEditorActivated() {
|
|
16666
|
+
return this._editorBridgeService.isVisible().visible === !0 || this._contextService.getContextValue(FORMULA_EDITOR_ACTIVATED);
|
|
16667
|
+
}
|
|
16668
|
+
_isSheetOrFormulaEditor(editor) {
|
|
16669
|
+
return editor.isSheetEditor() || editor.isFormulaEditor();
|
|
16670
|
+
}
|
|
16671
|
+
}, __name(_a19, "PromptController"), _a19);
|
|
16212
16672
|
PromptController = __decorateClass$1([
|
|
16213
16673
|
OnLifecycle(LifecycleStages.Steady, PromptController),
|
|
16214
16674
|
__decorateParam$1(0, ICommandService),
|
|
@@ -16231,8 +16691,8 @@ var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnProperty
|
|
|
16231
16691
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16232
16692
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
16233
16693
|
return kind && result && __defProp2(target, key, result), result;
|
|
16234
|
-
}, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), __publicField2 = /* @__PURE__ */ __name((obj, key, value) => __defNormalProp2(obj, typeof key != "symbol" ? key + "" : key, value), "__publicField"),
|
|
16235
|
-
let UniverRemoteSheetsFormulaPlugin = (
|
|
16694
|
+
}, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), __publicField2 = /* @__PURE__ */ __name((obj, key, value) => __defNormalProp2(obj, typeof key != "symbol" ? key + "" : key, value), "__publicField"), _a20;
|
|
16695
|
+
let UniverRemoteSheetsFormulaPlugin = (_a20 = class extends Plugin {
|
|
16236
16696
|
constructor(_config = {}, _injector) {
|
|
16237
16697
|
super(), this._config = _config, this._injector = _injector;
|
|
16238
16698
|
}
|
|
@@ -16242,15 +16702,15 @@ let UniverRemoteSheetsFormulaPlugin = (_a19 = class extends Plugin {
|
|
|
16242
16702
|
fromModule(this._injector.get(RemoteRegisterFunctionService))
|
|
16243
16703
|
);
|
|
16244
16704
|
}
|
|
16245
|
-
}, __name(
|
|
16705
|
+
}, __name(_a20, "UniverRemoteSheetsFormulaPlugin"), _a20);
|
|
16246
16706
|
__publicField2(UniverRemoteSheetsFormulaPlugin, "pluginName", "SHEETS_FORMULA_REMOTE_PLUGIN");
|
|
16247
16707
|
__publicField2(UniverRemoteSheetsFormulaPlugin, "type", UniverInstanceType.UNIVER_SHEET);
|
|
16248
16708
|
UniverRemoteSheetsFormulaPlugin = __decorateClass([
|
|
16249
16709
|
DependentOn(UniverFormulaEnginePlugin),
|
|
16250
16710
|
__decorateParam(1, Inject(Injector))
|
|
16251
16711
|
], UniverRemoteSheetsFormulaPlugin);
|
|
16252
|
-
var
|
|
16253
|
-
let UniverSheetsFormulaPlugin = (
|
|
16712
|
+
var _a21;
|
|
16713
|
+
let UniverSheetsFormulaPlugin = (_a21 = class extends Plugin {
|
|
16254
16714
|
constructor(_config = {}, _injector, _renderManagerService) {
|
|
16255
16715
|
super(), this._config = _config, this._injector = _injector, this._renderManagerService = _renderManagerService, this._config = Tools.deepMerge({}, DefaultSheetFormulaConfig, this._config);
|
|
16256
16716
|
}
|
|
@@ -16259,8 +16719,8 @@ let UniverSheetsFormulaPlugin = (_a20 = class extends Plugin {
|
|
|
16259
16719
|
[IFormulaPromptService, { useClass: FormulaPromptService }],
|
|
16260
16720
|
[IRefSelectionsService, { useClass: RefSelectionsService }],
|
|
16261
16721
|
[IDescriptionService, { useFactory: /* @__PURE__ */ __name(() => {
|
|
16262
|
-
var
|
|
16263
|
-
return j.createInstance(DescriptionService, (
|
|
16722
|
+
var _a23;
|
|
16723
|
+
return j.createInstance(DescriptionService, (_a23 = this._config) == null ? void 0 : _a23.description);
|
|
16264
16724
|
}, "useFactory") }],
|
|
16265
16725
|
[IRegisterFunctionService, { useClass: RegisterFunctionService }],
|
|
16266
16726
|
[FormulaRefRangeService],
|
|
@@ -16293,7 +16753,7 @@ let UniverSheetsFormulaPlugin = (_a20 = class extends Plugin {
|
|
|
16293
16753
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(UniverInstanceType.UNIVER_SHEET, dep));
|
|
16294
16754
|
});
|
|
16295
16755
|
}
|
|
16296
|
-
}, __name(
|
|
16756
|
+
}, __name(_a21, "UniverSheetsFormulaPlugin"), _a21);
|
|
16297
16757
|
__publicField2(UniverSheetsFormulaPlugin, "pluginName", FORMULA_UI_PLUGIN_NAME);
|
|
16298
16758
|
__publicField2(UniverSheetsFormulaPlugin, "type", UniverInstanceType.UNIVER_SHEET);
|
|
16299
16759
|
UniverSheetsFormulaPlugin = __decorateClass([
|
|
@@ -16301,8 +16761,8 @@ UniverSheetsFormulaPlugin = __decorateClass([
|
|
|
16301
16761
|
__decorateParam(1, Inject(Injector)),
|
|
16302
16762
|
__decorateParam(2, IRenderManagerService)
|
|
16303
16763
|
], UniverSheetsFormulaPlugin);
|
|
16304
|
-
var
|
|
16305
|
-
let UniverSheetsFormulaMobilePlugin = (
|
|
16764
|
+
var _a22;
|
|
16765
|
+
let UniverSheetsFormulaMobilePlugin = (_a22 = class extends Plugin {
|
|
16306
16766
|
constructor(_config = {}, _injector) {
|
|
16307
16767
|
super(), this._config = _config, this._injector = _injector, this._config = Tools.deepMerge({}, DefaultSheetFormulaConfig, this._config);
|
|
16308
16768
|
}
|
|
@@ -16317,8 +16777,8 @@ let UniverSheetsFormulaMobilePlugin = (_a21 = class extends Plugin {
|
|
|
16317
16777
|
IDescriptionService,
|
|
16318
16778
|
{
|
|
16319
16779
|
useFactory: /* @__PURE__ */ __name(() => {
|
|
16320
|
-
var
|
|
16321
|
-
return this._injector.createInstance(DescriptionService, (
|
|
16780
|
+
var _a23;
|
|
16781
|
+
return this._injector.createInstance(DescriptionService, (_a23 = this._config) == null ? void 0 : _a23.description);
|
|
16322
16782
|
}, "useFactory")
|
|
16323
16783
|
}
|
|
16324
16784
|
],
|
|
@@ -16334,12 +16794,13 @@ let UniverSheetsFormulaMobilePlugin = (_a21 = class extends Plugin {
|
|
|
16334
16794
|
[FormulaRenderManagerController]
|
|
16335
16795
|
].forEach((dependency) => this._injector.add(dependency));
|
|
16336
16796
|
}
|
|
16337
|
-
}, __name(
|
|
16797
|
+
}, __name(_a22, "UniverSheetsFormulaMobilePlugin"), __publicField(_a22, "pluginName", FORMULA_UI_PLUGIN_NAME), __publicField(_a22, "type", UniverInstanceType.UNIVER_SHEET), _a22);
|
|
16338
16798
|
UniverSheetsFormulaMobilePlugin = __decorateClass([
|
|
16339
16799
|
__decorateParam(1, Inject(Injector))
|
|
16340
16800
|
], UniverSheetsFormulaMobilePlugin);
|
|
16341
16801
|
export {
|
|
16342
16802
|
DescriptionService,
|
|
16803
|
+
FORMULA_PROMPT_ACTIVATED,
|
|
16343
16804
|
FormulaRefRangeService,
|
|
16344
16805
|
HelpFunctionOperation,
|
|
16345
16806
|
IDescriptionService,
|