@univerjs/sheets-formula 0.2.4-alpha.0 → 0.2.5
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 +532 -597
- package/lib/index.css +1 -1
- package/lib/locale/en-US.json +222 -264
- package/lib/locale/ru-RU.json +222 -264
- package/lib/locale/vi-VN.json +171 -221
- package/lib/locale/zh-CN.json +226 -268
- package/lib/locale/zh-TW.json +238 -280
- package/lib/types/controllers/prompt.controller.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +96 -138
- package/lib/types/locale/function-list/date/en-US.d.ts +25 -17
- package/lib/types/locale/function-list/date/ja-JP.d.ts +25 -17
- package/lib/types/locale/function-list/date/zh-CN.d.ts +25 -17
- package/lib/types/locale/function-list/date/zh-TW.d.ts +27 -19
- package/lib/types/locale/function-list/information/en-US.d.ts +4 -12
- package/lib/types/locale/function-list/information/ja-JP.d.ts +4 -12
- package/lib/types/locale/function-list/information/zh-CN.d.ts +4 -12
- package/lib/types/locale/function-list/information/zh-TW.d.ts +4 -12
- package/lib/types/locale/function-list/math/en-US.d.ts +67 -109
- package/lib/types/locale/function-list/math/ja-JP.d.ts +67 -109
- package/lib/types/locale/function-list/math/zh-CN.d.ts +67 -109
- package/lib/types/locale/function-list/math/zh-TW.d.ts +69 -111
- package/lib/types/locale/ru-RU.d.ts +96 -138
- package/lib/types/locale/vi-VN.d.ts +71 -121
- package/lib/types/locale/zh-CN.d.ts +96 -138
- package/lib/types/locale/zh-TW.d.ts +100 -142
- package/lib/umd/index.js +4 -4
- package/package.json +22 -22
package/lib/es/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var ui = Object.defineProperty;
|
|
2
2
|
var mi = (a, e, t) => e in a ? ui(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var g = (a, e, t) => mi(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Disposable as re, ObjectMatrix as z, Dimension as xn, OnLifecycle as Le, LifecycleStages as
|
|
4
|
+
import { Disposable as re, ObjectMatrix as z, Dimension as xn, OnLifecycle as Le, LifecycleStages as Pe, Inject as U, IUniverInstanceService as Ae, CellValueType as Dt, ThemeService as Xt, ICommandService as le, isFormulaString as ge, isFormulaId as He, Tools as ie, Direction as X, UniverInstanceType as w, Injector as xe, DEFAULT_EMPTY_DOCUMENT_VALUE as ua, toDisposable as Ee, ColorKit as ma, Rectangle as Ce, CommandType as Te, createIdentifier as Yt, isRealNum as ci, getCellValueType as fi, useDependency as ce, LocaleService as we, useInjector as si, FOCUSING_DOC as li, FOCUSING_UNIVER_EDITOR as di, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as pi, connectInjector as Li, throttle as vn, cellToRange as Pi, RANGE_TYPE as fe, DisposableCollection as mt, Optional as Ai, isICellData as bi, RxDisposable as Si, FOCUSING_EDITOR_INPUT_FORMULA as bt, getCellInfoInMergeData as Ei, AbsoluteRefType as ee, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ti, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ii, IContextService as Ri, Plugin as An, DependentOn as ca } from "@univerjs/core";
|
|
5
5
|
import { IRPCChannelService as fa, fromModule as Ni, toModule as Ci } from "@univerjs/rpc";
|
|
6
|
-
import { SetDefinedNameMutation as yn, RemoveDefinedNameMutation as Fn, FormulaDataModel as Ge, IActiveDirtyManagerService as bn, IDefinedNamesService as sa, SetArrayFormulaDataMutation as gt, stripErrorMargin as hi, LexerTreeBuilder as lt, SetFormulaCalculationResultMutation as la, ErrorType as K, sequenceNodeType as ue, serializeRange as ct, FUNCTION_NAMES_COMPATIBILITY as B, FunctionType as r, FUNCTION_NAMES_CUBE as _e, FUNCTION_NAMES_DATABASE as oe, FUNCTION_NAMES_DATE as G, FUNCTION_NAMES_ENGINEERING as O, FUNCTION_NAMES_FINANCIAL as _, FUNCTION_NAMES_INFORMATION as j, FUNCTION_NAMES_LOGICAL as J, FUNCTION_NAMES_LOOKUP as V, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as b, FUNCTION_NAMES_TEXT as q, FUNCTION_NAMES_WEB as $t, isReferenceStrings as _i, functionArray as Oi, functionCompatibility as Mi, functionCube as Di, functionDatabase as gi, functionDate as xi, functionEngineering as vi, functionFinancial as yi, functionInformation as Fi, functionLogical as qi, functionLookup as Ui, functionMath as Bi, functionMeta as Vi, functionStatistical as Hi, functionText as wi, functionUniver as Gi, functionWeb as Xi, IFunctionService as Sn, ERROR_TYPE_SET as
|
|
6
|
+
import { SetDefinedNameMutation as yn, RemoveDefinedNameMutation as Fn, FormulaDataModel as Ge, IActiveDirtyManagerService as bn, IDefinedNamesService as sa, SetArrayFormulaDataMutation as gt, stripErrorMargin as hi, LexerTreeBuilder as lt, SetFormulaCalculationResultMutation as la, ErrorType as K, sequenceNodeType as ue, serializeRange as ct, FUNCTION_NAMES_COMPATIBILITY as B, FunctionType as r, FUNCTION_NAMES_CUBE as _e, FUNCTION_NAMES_DATABASE as oe, FUNCTION_NAMES_DATE as G, FUNCTION_NAMES_ENGINEERING as O, FUNCTION_NAMES_FINANCIAL as _, FUNCTION_NAMES_INFORMATION as j, FUNCTION_NAMES_LOGICAL as J, FUNCTION_NAMES_LOOKUP as V, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as b, FUNCTION_NAMES_TEXT as q, FUNCTION_NAMES_WEB as $t, isReferenceStrings as _i, functionArray as Oi, functionCompatibility as Mi, functionCube as Di, functionDatabase as gi, functionDate as xi, functionEngineering as vi, functionFinancial as yi, functionInformation as Fi, functionLogical as qi, functionLookup as Ui, functionMath as Bi, functionMeta as Vi, functionStatistical as Hi, functionText as wi, functionUniver as Gi, functionWeb as Xi, IFunctionService as Sn, ERROR_TYPE_SET as Yi, SetFormulaCalculationStartMutation as jt, SetFormulaCalculationStopMutation as qn, SetFormulaCalculationNotificationMutation as Wi, FormulaExecuteStageType as Qt, FormulaExecutedStateType as Fe, SetFormulaDataMutation as St, initSheetFormulaData as Un, deserializeRangeWithSheet as De, serializeRangeToRefString as Ct, generateStringWithSequence as xt, CustomFunction as da, serializeRangeWithSpreadsheet as Ki, serializeRangeWithSheet as ki, SetOtherFormulaMutation as $i, RemoveOtherFormulaMutation as ji, matchRefDrawToken as Bn, matchToken as qe, compareToken as zt, normalizeSheetName as Qi, getAbsoluteRefTypeWitString as zi, UniverFormulaEnginePlugin as pa } from "@univerjs/engine-formula";
|
|
7
7
|
import { IRenderManagerService as dt, ITextSelectionRenderManager as La, DeviceInputEventType as de, ScrollTimerType as Vn, SHEET_VIEWPORT_KEY as Zi, Vector2 as Ji } from "@univerjs/engine-render";
|
|
8
|
-
import { SetRangeValuesMutation as pe, SetStyleCommand as En, MoveRangeMutation as Hn, MoveRowsMutation as wn, MoveColsMutation as Gn, ReorderRangeMutation as Xn, RemoveRowMutation as
|
|
9
|
-
import { DATA_TYPE as Kn, APPLY_TYPE as Fr, IAutoFillService as qr, PREDEFINED_HOOK_NAME as Ve, COPY_TYPE as ya, ISheetClipboardService as Ur, ISheetSelectionRenderService as Br, SelectionShape as Vr, IEditorBridgeService as Fa, SheetSkeletonManagerService as Nn, SheetPasteCommand as Hr, useActiveWorkbook as wr, getCurrentRangeDisable$ as qa, PASTE_SPECIAL_MENU_ID as Gr, whenFormulaEditorActivated as pt, CellAlertType as Xr, HoverManagerService as
|
|
8
|
+
import { SetRangeValuesMutation as pe, SetStyleCommand as En, MoveRangeMutation as Hn, MoveRowsMutation as wn, MoveColsMutation as Gn, ReorderRangeMutation as Xn, RemoveRowMutation as Yn, RemoveColMutation as Wn, RemoveSheetMutation as fn, InsertSheetMutation as sn, SetDefinedNameCommand as ln, INTERCEPTOR_POINT as Pa, SheetInterceptorService as Tn, SetRangeValuesUndoMutationFactory as er, SetWorksheetRowHeightMutation as tr, SetWorksheetColWidthMutation as nr, SetColHiddenMutation as ar, SetColVisibleMutation as ir, SetRowHiddenMutation as rr, SetRowVisibleMutation as or, SetWorksheetRowAutoHeightMutation as ur, SetRangeValuesCommand as mr, SheetsSelectionsService as In, getSheetCommandTarget as cr, getCellAtRowCol as fr, SetSelectionsOperation as sr, WorkbookEditablePermission as Aa, WorksheetEditPermission as ba, WorksheetSetCellValuePermission as Sa, RangeProtectionPermissionEditPoint as Ea, SetBorderCommand as Ta, ClearSelectionFormatCommand as Ia, INumfmtService as lr, handleMoveRange as Ra, EffectRefRangId as k, runRefRangeMutations as $, handleMoveRows as Na, handleMoveCols as Ca, handleInsertRow as ha, handleInsertCol as _a, handleIRemoveRow as Oa, handleIRemoveCol as Ma, handleDeleteRangeMoveLeft as Da, handleDeleteRangeMoveUp as ga, handleInsertRangeMoveDown as xa, handleInsertRangeMoveRight as va, RemoveSheetCommand as dr, SetWorksheetNameCommand as pr, DeleteRangeMoveLeftCommand as Lr, DeleteRangeMoveUpCommand as Pr, RemoveColCommand as Ar, RemoveRowCommand as br, InsertRangeMoveDownCommand as Sr, InsertRangeMoveRightCommand as Er, InsertColCommand as Tr, InsertRowCommand as Ir, MoveColsCommand as Rr, MoveRowsCommand as Nr, MoveRangeCommand as Cr, SetWorksheetActiveOperation as hr, InsertDefinedNameCommand as _r, RemoveDefinedNameCommand as Or, RefRangeService as Mr, handleDefaultRangeChangeWithEffectRefCommands as Dr, convertSelectionDataToRange as ht, getNormalSelectionStyle as gr, IRefSelectionsService as Rn, DISABLE_NORMAL_SELECTIONS as Zt, setEndForRange as xr, getPrimaryForRange as vr, RefSelectionsService as yr } from "@univerjs/sheets";
|
|
9
|
+
import { DATA_TYPE as Kn, APPLY_TYPE as Fr, IAutoFillService as qr, PREDEFINED_HOOK_NAME as Ve, COPY_TYPE as ya, ISheetClipboardService as Ur, ISheetSelectionRenderService as Br, SelectionShape as Vr, IEditorBridgeService as Fa, SheetSkeletonManagerService as Nn, SheetPasteCommand as Hr, useActiveWorkbook as wr, getCurrentRangeDisable$ as qa, PASTE_SPECIAL_MENU_ID as Gr, whenFormulaEditorActivated as pt, CellAlertType as Xr, HoverManagerService as Yr, CellAlertManagerService as Wr, BaseSelectionRenderService as Kr, getCoordByOffset as kn, checkInHeaderRanges as $n, getAllSelection as kr, getSheetObject as $r, getEditorObject as jr, MoveSelectionCommand as jn, JumpOver as Qn, ExpandSelectionCommand as zn } from "@univerjs/sheets-ui";
|
|
10
10
|
import { IEditorService as Xe, ISidebarService as Ua, MenuGroup as Qr, MenuItemType as Cn, MenuPosition as zr, getMenuHiddenObservable as Zr, IClipboardInterfaceService as Zn, KeyCode as H, MetaKeys as he, ComponentManager as Jr, BuiltInUIPart as eo, IMenuService as to, IShortcutService as Ba, IUIPartsService as no, IProgressService as ao, UNI_DISABLE_CHANGING_FOCUS_KEY as Jt, SetEditorResizeOperation as io, IContextMenuService as ro } from "@univerjs/ui";
|
|
11
11
|
import { Subject as Me, throttleTime as oo, combineLatestWith as uo, map as Je, switchMap as mo, of as Jn, Observable as co, merge as ea, filter as dn, bufferTime as fo } from "rxjs";
|
|
12
|
-
import so, { forwardRef as Lt, useRef as Va, createElement as
|
|
12
|
+
import so, { forwardRef as Lt, useRef as Va, createElement as Pt, useEffect as ft, useState as Y } from "react";
|
|
13
13
|
import { Popup as Ha, Select as lo, Input as po, Button as en } from "@univerjs/design";
|
|
14
|
-
import { ReplaceContentCommand as Lo, DocSkeletonManagerService as
|
|
14
|
+
import { ReplaceContentCommand as Lo, DocSkeletonManagerService as Po, MoveCursorOperation as Ao, TextSelectionManagerService as bo } from "@univerjs/docs";
|
|
15
15
|
const hn = "formula-ui";
|
|
16
16
|
var So = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, To = (a, e, t, n) => {
|
|
17
17
|
for (var i = n > 1 ? void 0 : n ? Eo(e, t) : e, o = a.length - 1, u; o >= 0; o--)
|
|
@@ -72,16 +72,16 @@ let et = class extends re {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
_initialRowAndColumn() {
|
|
75
|
-
this._activeDirtyManagerService.register(
|
|
76
|
-
commandId:
|
|
75
|
+
this._activeDirtyManagerService.register(Yn.id, {
|
|
76
|
+
commandId: Yn.id,
|
|
77
77
|
getDirtyData: (a) => {
|
|
78
78
|
const e = a.params;
|
|
79
79
|
return {
|
|
80
80
|
dirtyRanges: this._getRemoveRowOrColumnMutation(e, !0)
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
}), this._activeDirtyManagerService.register(
|
|
84
|
-
commandId:
|
|
83
|
+
}), this._activeDirtyManagerService.register(Wn.id, {
|
|
84
|
+
commandId: Wn.id,
|
|
85
85
|
getDirtyData: (a) => {
|
|
86
86
|
const e = a.params;
|
|
87
87
|
return {
|
|
@@ -149,16 +149,16 @@ let et = class extends re {
|
|
|
149
149
|
_getDeleteRangeMutationDirtyRange(a) {
|
|
150
150
|
const { subUnitId: e, unitId: t, range: n, shiftDimension: i } = a, o = [], u = this._univerInstanceService.getUniverSheetInstance(t), m = u == null ? void 0 : u.getSheetBySheetId(e), c = (m == null ? void 0 : m.getLastRowWithContent()) || 0, f = (m == null ? void 0 : m.getLastColumnWithContent()) || 0, d = new z();
|
|
151
151
|
let s = null;
|
|
152
|
-
const { startRow: l, startColumn:
|
|
152
|
+
const { startRow: l, startColumn: P, endRow: A, endColumn: S } = n;
|
|
153
153
|
i === xn.ROWS ? s = this._rangeToMatrix({
|
|
154
154
|
startRow: l,
|
|
155
|
-
startColumn:
|
|
155
|
+
startColumn: P,
|
|
156
156
|
endRow: c,
|
|
157
157
|
endColumn: S
|
|
158
158
|
}) : i === xn.COLUMNS && (s = this._rangeToMatrix({
|
|
159
159
|
startRow: l,
|
|
160
|
-
startColumn:
|
|
161
|
-
endRow:
|
|
160
|
+
startColumn: P,
|
|
161
|
+
endRow: A,
|
|
162
162
|
endColumn: f
|
|
163
163
|
})), s != null && d.merge(s);
|
|
164
164
|
const p = d.getData();
|
|
@@ -167,15 +167,15 @@ let et = class extends re {
|
|
|
167
167
|
_getRemoveRowOrColumnMutation(a, e = !0) {
|
|
168
168
|
const { subUnitId: t, unitId: n, range: i } = a, o = [], u = this._univerInstanceService.getUniverSheetInstance(n), m = u == null ? void 0 : u.getSheetBySheetId(t), c = (m == null ? void 0 : m.getRowCount()) || 0, f = (m == null ? void 0 : m.getColumnCount()) || 0, d = new z();
|
|
169
169
|
let s = null;
|
|
170
|
-
const { startRow: l, endRow:
|
|
170
|
+
const { startRow: l, endRow: P, startColumn: A, endColumn: S } = i;
|
|
171
171
|
e === !0 ? s = this._rangeToMatrix({
|
|
172
172
|
startRow: l,
|
|
173
173
|
startColumn: 0,
|
|
174
|
-
endRow:
|
|
174
|
+
endRow: P,
|
|
175
175
|
endColumn: f - 1
|
|
176
176
|
}) : s = this._rangeToMatrix({
|
|
177
177
|
startRow: 0,
|
|
178
|
-
startColumn:
|
|
178
|
+
startColumn: A,
|
|
179
179
|
endRow: c,
|
|
180
180
|
endColumn: S
|
|
181
181
|
}), s != null && d.merge(s);
|
|
@@ -216,17 +216,17 @@ let et = class extends re {
|
|
|
216
216
|
if ((u = o == null ? void 0 : o[a]) != null && u[e]) {
|
|
217
217
|
const c = new z((m = o == null ? void 0 : o[a]) == null ? void 0 : m[e]);
|
|
218
218
|
i.forValue((f, d) => {
|
|
219
|
-
c.forValue((s, l,
|
|
220
|
-
if (
|
|
219
|
+
c.forValue((s, l, P) => {
|
|
220
|
+
if (P == null)
|
|
221
221
|
return !0;
|
|
222
|
-
const { startRow:
|
|
223
|
-
f >=
|
|
222
|
+
const { startRow: A, startColumn: S, endRow: p, endColumn: N } = P;
|
|
223
|
+
f >= A && f <= p && d >= S && d <= N && n.push({
|
|
224
224
|
unitId: a,
|
|
225
225
|
sheetId: e,
|
|
226
226
|
range: {
|
|
227
|
-
startRow:
|
|
227
|
+
startRow: A,
|
|
228
228
|
startColumn: S,
|
|
229
|
-
endRow:
|
|
229
|
+
endRow: A,
|
|
230
230
|
endColumn: S
|
|
231
231
|
}
|
|
232
232
|
});
|
|
@@ -237,9 +237,9 @@ let et = class extends re {
|
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
et = To([
|
|
240
|
-
Le(
|
|
240
|
+
Le(Pe.Ready, et),
|
|
241
241
|
Et(0, bn),
|
|
242
|
-
Et(1,
|
|
242
|
+
Et(1, Ae),
|
|
243
243
|
Et(2, U(Ge)),
|
|
244
244
|
Et(3, sa)
|
|
245
245
|
], et);
|
|
@@ -270,7 +270,7 @@ let tt = class extends re {
|
|
|
270
270
|
}
|
|
271
271
|
_initInterceptorCellContent() {
|
|
272
272
|
this.disposeWithMe(
|
|
273
|
-
this._sheetInterceptorService.intercept(
|
|
273
|
+
this._sheetInterceptorService.intercept(Pa.CELL_CONTENT, {
|
|
274
274
|
priority: 100,
|
|
275
275
|
handler: (a, e, t) => {
|
|
276
276
|
var f, d, s;
|
|
@@ -292,7 +292,7 @@ let tt = class extends re {
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
tt = No([
|
|
295
|
-
Le(
|
|
295
|
+
Le(Pe.Ready, tt),
|
|
296
296
|
Tt(0, le),
|
|
297
297
|
Tt(1, U(Tn)),
|
|
298
298
|
Tt(2, U(Ge)),
|
|
@@ -331,9 +331,9 @@ let _t = class extends re {
|
|
|
331
331
|
for (let d = 1; d <= e; d++) {
|
|
332
332
|
const s = (d - 1) % a.length, l = ie.deepClone(a[s]);
|
|
333
333
|
if (l) {
|
|
334
|
-
const
|
|
335
|
-
if (He(
|
|
336
|
-
l.si =
|
|
334
|
+
const P = ((c = a[s]) == null ? void 0 : c.f) || "", A = ((f = a[s]) == null ? void 0 : f.si) || "", S = ge(P);
|
|
335
|
+
if (He(A))
|
|
336
|
+
l.si = A, l.f = null, l.v = null, l.p = null, l.t = null, t === X.DOWN || t === X.RIGHT ? u.push(l) : u.unshift(l);
|
|
337
337
|
else if (S) {
|
|
338
338
|
let N = m.get(s);
|
|
339
339
|
if (N)
|
|
@@ -341,7 +341,7 @@ let _t = class extends re {
|
|
|
341
341
|
else {
|
|
342
342
|
N = ie.generateRandomId(6), m.set(s, N);
|
|
343
343
|
const { offsetX: I, offsetY: L } = Oo(o, t), h = this._lexerTreeBuilder.moveFormulaRefOffset(
|
|
344
|
-
|
|
344
|
+
P,
|
|
345
345
|
I,
|
|
346
346
|
L
|
|
347
347
|
);
|
|
@@ -355,7 +355,7 @@ let _t = class extends re {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
_t = _o([
|
|
358
|
-
Le(
|
|
358
|
+
Le(Pe.Ready, _t),
|
|
359
359
|
ta(0, qr),
|
|
360
360
|
ta(1, U(lt))
|
|
361
361
|
], _t);
|
|
@@ -432,12 +432,12 @@ let nt = class extends re {
|
|
|
432
432
|
return !d || !s ? {
|
|
433
433
|
undos: [],
|
|
434
434
|
redos: []
|
|
435
|
-
} : this._injector.invoke((
|
|
435
|
+
} : this._injector.invoke((P) => yo(
|
|
436
436
|
d,
|
|
437
437
|
s,
|
|
438
438
|
m,
|
|
439
439
|
c,
|
|
440
|
-
|
|
440
|
+
P,
|
|
441
441
|
u,
|
|
442
442
|
this._lexerTreeBuilder,
|
|
443
443
|
this._formulaDataModel,
|
|
@@ -447,41 +447,41 @@ let nt = class extends re {
|
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
nt = xo([
|
|
450
|
-
Le(
|
|
451
|
-
$e(0,
|
|
450
|
+
Le(Pe.Ready, nt),
|
|
451
|
+
$e(0, Ae),
|
|
452
452
|
$e(1, U(lt)),
|
|
453
453
|
$e(2, Ur),
|
|
454
454
|
$e(3, U(xe)),
|
|
455
455
|
$e(4, U(Ge))
|
|
456
456
|
], nt);
|
|
457
457
|
function yo(a, e, t, n, i, o, u, m, c = !1, f) {
|
|
458
|
-
const d = [], s = [], l = new z(),
|
|
459
|
-
let
|
|
458
|
+
const d = [], s = [], l = new z(), P = /* @__PURE__ */ new Map();
|
|
459
|
+
let A = 0, S = 0;
|
|
460
460
|
if (o && o.copyRange) {
|
|
461
461
|
const { copyType: I, copyRange: L } = o;
|
|
462
|
-
I === ya.COPY && L && (
|
|
462
|
+
I === ya.COPY && L && (A = L.rows.length, S = L.cols.length);
|
|
463
463
|
}
|
|
464
464
|
n.forValue((I, L, h) => {
|
|
465
465
|
var y, v, F, E;
|
|
466
466
|
const M = h.f || "", x = h.si || "";
|
|
467
467
|
let C = {};
|
|
468
|
-
if (c && (C = ie.deepClone(h), C.s = null), !(!
|
|
468
|
+
if (c && (C = ie.deepClone(h), C.s = null), !(!A || !S)) {
|
|
469
469
|
if (He(x)) {
|
|
470
|
-
const { unitId: D = "", subUnitId: Z = "", range:
|
|
471
|
-
if ((D && a !== D || Z && e !== Z) && (
|
|
472
|
-
const Q = m.getFormulaStringByCell(
|
|
470
|
+
const { unitId: D = "", subUnitId: Z = "", range: W } = f || {};
|
|
471
|
+
if ((D && a !== D || Z && e !== Z) && (W != null && W.rows) && (W != null && W.cols)) {
|
|
472
|
+
const Q = m.getFormulaStringByCell(W.rows[I], W.cols[L], Z, D), be = I % A, ne = L % S, Ie = o != null && o.copyRange ? (y = o == null ? void 0 : o.copyRange) == null ? void 0 : y.cols[ne] : ne, se = o != null && o.copyRange ? (v = o == null ? void 0 : o.copyRange) == null ? void 0 : v.rows[be] : be, We = t.cols[L] - Ie, Ke = t.rows[I] - se, ke = u.moveFormulaRefOffset(Q || "", We, Ke);
|
|
473
473
|
C.si = null, C.f = ke, C.v = null, C.p = null;
|
|
474
474
|
} else
|
|
475
475
|
C.si = x, C.f = null, C.v = null, C.p = null;
|
|
476
476
|
} else if (ge(M)) {
|
|
477
|
-
const D = I %
|
|
478
|
-
let Q =
|
|
477
|
+
const D = I % A, Z = L % S, W = `${D}_${Z}`;
|
|
478
|
+
let Q = P.get(W);
|
|
479
479
|
if (Q)
|
|
480
480
|
C.si = Q, C.f = null, C.v = null, C.p = null;
|
|
481
481
|
else {
|
|
482
|
-
Q = ie.generateRandomId(6),
|
|
483
|
-
const be = o != null && o.copyRange ? (F = o == null ? void 0 : o.copyRange) == null ? void 0 : F.cols[Z] : Z, ne = o != null && o.copyRange ? (E = o == null ? void 0 : o.copyRange) == null ? void 0 : E.rows[D] : D, Ie = t.cols[L] - be, se = t.rows[I] - ne,
|
|
484
|
-
C.si = Q, C.f =
|
|
482
|
+
Q = ie.generateRandomId(6), P.set(W, Q);
|
|
483
|
+
const be = o != null && o.copyRange ? (F = o == null ? void 0 : o.copyRange) == null ? void 0 : F.cols[Z] : Z, ne = o != null && o.copyRange ? (E = o == null ? void 0 : o.copyRange) == null ? void 0 : E.rows[D] : D, Ie = t.cols[L] - be, se = t.rows[I] - ne, We = u.moveFormulaRefOffset(M, Ie, se);
|
|
484
|
+
C.si = Q, C.f = We, C.v = null, C.p = null;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
if (o.pasteType === Ve.SPECIAL_PASTE_FORMULA && h.p) {
|
|
@@ -547,16 +547,16 @@ let vt = class extends re {
|
|
|
547
547
|
this._editorBridgeService.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,
|
|
548
548
|
{
|
|
549
549
|
handler: (e, t, n) => {
|
|
550
|
-
var
|
|
550
|
+
var A, S, p, N;
|
|
551
551
|
const { row: i, col: o, unitId: u, subUnitId: m, worksheet: c } = t, f = this._formulaDataModel.getArrayFormulaRange(), d = this._formulaDataModel.getArrayFormulaCellData();
|
|
552
552
|
if (this._removeArrayFormulaRangeShape(), e == null)
|
|
553
553
|
return n(e);
|
|
554
554
|
let s = null;
|
|
555
555
|
const l = this._formulaDataModel.getFormulaStringByCell(i, o, m, u);
|
|
556
|
-
if (l !== null && (s = { f: l }), e.v != null && e.v !== "" && ((p = (S = (
|
|
556
|
+
if (l !== null && (s = { f: l }), e.v != null && e.v !== "" && ((p = (S = (A = d[u]) == null ? void 0 : A[m]) == null ? void 0 : S[i]) == null ? void 0 : p[o]) == null)
|
|
557
557
|
return s ? { ...e, ...s } : n(e);
|
|
558
|
-
const
|
|
559
|
-
return
|
|
558
|
+
const P = (N = f == null ? void 0 : f[u]) == null ? void 0 : N[m];
|
|
559
|
+
return P != null && (s = this._displayArrayFormulaRangeShape(P, i, o, u, m, c, s)), s ? { ...e, ...s } : n(e);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
)
|
|
@@ -582,10 +582,10 @@ let vt = class extends re {
|
|
|
582
582
|
return new z(e).forValue((c, f, d) => {
|
|
583
583
|
if (d == null)
|
|
584
584
|
return !0;
|
|
585
|
-
const { startRow: s, startColumn: l, endRow:
|
|
585
|
+
const { startRow: s, startColumn: l, endRow: P, endColumn: A } = d;
|
|
586
586
|
if (c === t && f === n)
|
|
587
587
|
return this._createArrayFormulaRangeShape(d, i), !1;
|
|
588
|
-
if (t >= s && t <=
|
|
588
|
+
if (t >= s && t <= P && n >= l && n <= A) {
|
|
589
589
|
const S = u.getCell(s, l);
|
|
590
590
|
if ((S == null ? void 0 : S.v) === K.SPILL)
|
|
591
591
|
return;
|
|
@@ -619,8 +619,8 @@ let vt = class extends re {
|
|
|
619
619
|
style: o
|
|
620
620
|
}), d = this._sheetSkeletonManagerService.getCurrentSkeleton();
|
|
621
621
|
if (!m || !d) return;
|
|
622
|
-
const { rowHeaderWidth: s, columnHeaderHeight: l } = d,
|
|
623
|
-
|
|
622
|
+
const { rowHeaderWidth: s, columnHeaderHeight: l } = d, P = new Vr(m, 100, !1, this._themeService);
|
|
623
|
+
P.update(c, s, l, o, f), P.setEvent(!1), this._previousShape = P;
|
|
624
624
|
}
|
|
625
625
|
_removeArrayFormulaRangeShape() {
|
|
626
626
|
this._previousShape != null && (this._previousShape.dispose(), this._previousShape = null);
|
|
@@ -641,13 +641,13 @@ let vt = class extends re {
|
|
|
641
641
|
if (!this._checkCurrentSheet(e, t) || !this._previousShape) return;
|
|
642
642
|
const { startRow: i, endRow: o, startColumn: u, endColumn: m } = this._previousShape.getRange();
|
|
643
643
|
for (let c = 0; c < n.length; c++) {
|
|
644
|
-
const f = n[c], { startRow: d, endRow: s, startColumn: l, endColumn:
|
|
644
|
+
const f = n[c], { startRow: d, endRow: s, startColumn: l, endColumn: P } = f;
|
|
645
645
|
if (Ce.intersects(
|
|
646
646
|
{
|
|
647
647
|
startRow: d,
|
|
648
648
|
endRow: s,
|
|
649
649
|
startColumn: l,
|
|
650
|
-
endColumn:
|
|
650
|
+
endColumn: P
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
startRow: i,
|
|
@@ -655,14 +655,14 @@ let vt = class extends re {
|
|
|
655
655
|
startColumn: u,
|
|
656
656
|
endColumn: m
|
|
657
657
|
}
|
|
658
|
-
) || i >= s || l >=
|
|
659
|
-
const
|
|
658
|
+
) || i >= s || l >= P) {
|
|
659
|
+
const A = {
|
|
660
660
|
startRow: i,
|
|
661
661
|
endRow: o,
|
|
662
662
|
startColumn: u,
|
|
663
663
|
endColumn: m
|
|
664
664
|
};
|
|
665
|
-
this._refreshArrayFormulaRangeShape(e,
|
|
665
|
+
this._refreshArrayFormulaRangeShape(e, A);
|
|
666
666
|
break;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
@@ -710,9 +710,9 @@ const wa = {
|
|
|
710
710
|
f,
|
|
711
711
|
si: l
|
|
712
712
|
});
|
|
713
|
-
const { startRow:
|
|
714
|
-
for (let N =
|
|
715
|
-
for (let I =
|
|
713
|
+
const { startRow: P, startColumn: A, endRow: S, endColumn: p } = m;
|
|
714
|
+
for (let N = P; N <= S; N++)
|
|
715
|
+
for (let I = A; I <= p; I++)
|
|
716
716
|
(N !== d || I !== s) && i.setValue(N, I, {
|
|
717
717
|
si: l
|
|
718
718
|
});
|
|
@@ -754,7 +754,7 @@ const wa = {
|
|
|
754
754
|
// }
|
|
755
755
|
!0
|
|
756
756
|
)
|
|
757
|
-
}, ye =
|
|
757
|
+
}, ye = Yt("formula-ui.prompt-service");
|
|
758
758
|
class Xa {
|
|
759
759
|
constructor() {
|
|
760
760
|
g(this, "_search$", new Me());
|
|
@@ -921,13 +921,13 @@ const pn = {
|
|
|
921
921
|
const t = a.get(In), n = a.get(Xe), i = t.getCurrentSelections();
|
|
922
922
|
if (!i || !i.length)
|
|
923
923
|
return !1;
|
|
924
|
-
const o = cr(a.get(
|
|
924
|
+
const o = cr(a.get(Ae));
|
|
925
925
|
if (!o) return !1;
|
|
926
926
|
const { worksheet: u, unitId: m, subUnitId: c } = o, f = u.getCellMatrix(), { value: d } = e, s = a.get(le), l = [];
|
|
927
|
-
let
|
|
927
|
+
let P = null, A = 0, S = 0, p = "";
|
|
928
928
|
if (i.length === 1 && (Go(i[0].range) || Xo(i[0].range))) {
|
|
929
929
|
const { range: L, primary: h } = i[0], M = (N = h == null ? void 0 : h.actualRow) != null ? N : L.startRow, x = (I = h == null ? void 0 : h.actualColumn) != null ? I : L.startColumn;
|
|
930
|
-
|
|
930
|
+
P = L, A = M, S = x;
|
|
931
931
|
const C = na(f, M, x);
|
|
932
932
|
C && (p = ct(C));
|
|
933
933
|
} else
|
|
@@ -935,7 +935,7 @@ const pn = {
|
|
|
935
935
|
var E, D;
|
|
936
936
|
const { range: h, primary: M } = L, x = (E = M == null ? void 0 : M.actualRow) != null ? E : h.startRow, C = (D = M == null ? void 0 : M.actualColumn) != null ? D : h.startColumn, y = na(f, x, C);
|
|
937
937
|
if (!y)
|
|
938
|
-
return
|
|
938
|
+
return P = h, A = x, S = C, !0;
|
|
939
939
|
const v = ct(y), F = `=${d}(${v})`;
|
|
940
940
|
return l.push({
|
|
941
941
|
range: h,
|
|
@@ -946,18 +946,18 @@ const pn = {
|
|
|
946
946
|
formula: F
|
|
947
947
|
}), !1;
|
|
948
948
|
});
|
|
949
|
-
if (
|
|
950
|
-
const L = fr(
|
|
951
|
-
range: Ce.clone(
|
|
949
|
+
if (P) {
|
|
950
|
+
const L = fr(A, S, u), h = {
|
|
951
|
+
range: Ce.clone(P),
|
|
952
952
|
primary: {
|
|
953
953
|
startRow: L.startRow,
|
|
954
954
|
startColumn: L.startColumn,
|
|
955
955
|
endRow: L.endRow,
|
|
956
956
|
endColumn: L.endColumn,
|
|
957
|
-
actualRow:
|
|
957
|
+
actualRow: A,
|
|
958
958
|
actualColumn: S,
|
|
959
959
|
isMerged: L.isMerged,
|
|
960
|
-
isMergedMainCell: L.startRow ===
|
|
960
|
+
isMergedMainCell: L.startRow === A && L.startColumn === S
|
|
961
961
|
}
|
|
962
962
|
}, M = {
|
|
963
963
|
unitId: m,
|
|
@@ -1040,12 +1040,12 @@ function Go(a) {
|
|
|
1040
1040
|
function Xo(a) {
|
|
1041
1041
|
return a.startRow !== a.endRow && a.startColumn !== a.endColumn;
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1043
|
+
const Ya = `${hn}_MORE_FUNCTIONS_COMPONENT`, Wa = {
|
|
1044
1044
|
id: "formula-ui.operation.more-functions",
|
|
1045
1045
|
type: Te.OPERATION,
|
|
1046
1046
|
handler: async (a) => (a.get(Ua).open({
|
|
1047
1047
|
header: { title: "formula.insert.tooltip" },
|
|
1048
|
-
children: { label:
|
|
1048
|
+
children: { label: Ya }
|
|
1049
1049
|
}), !0)
|
|
1050
1050
|
}, On = {
|
|
1051
1051
|
id: "formula-ui.operation.change-ref-to-absolute",
|
|
@@ -1056,7 +1056,7 @@ const Wa = `${hn}_MORE_FUNCTIONS_COMPONENT`, Ya = {
|
|
|
1056
1056
|
type: Te.OPERATION,
|
|
1057
1057
|
handler: async (a, e) => (a.get(ye).search(e), !0)
|
|
1058
1058
|
};
|
|
1059
|
-
var Ka = { exports: {} },
|
|
1059
|
+
var Ka = { exports: {} }, Wt = {};
|
|
1060
1060
|
/**
|
|
1061
1061
|
* @license React
|
|
1062
1062
|
* react-jsx-runtime.production.min.js
|
|
@@ -1066,18 +1066,18 @@ var Ka = { exports: {} }, Yt = {};
|
|
|
1066
1066
|
* This source code is licensed under the MIT license found in the
|
|
1067
1067
|
* LICENSE file in the root directory of this source tree.
|
|
1068
1068
|
*/
|
|
1069
|
-
var
|
|
1069
|
+
var Yo = so, Wo = Symbol.for("react.element"), Ko = Symbol.for("react.fragment"), ko = Object.prototype.hasOwnProperty, $o = Yo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, jo = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1070
1070
|
function ka(a, e, t) {
|
|
1071
1071
|
var n, i = {}, o = null, u = null;
|
|
1072
1072
|
t !== void 0 && (o = "" + t), e.key !== void 0 && (o = "" + e.key), e.ref !== void 0 && (u = e.ref);
|
|
1073
1073
|
for (n in e) ko.call(e, n) && !jo.hasOwnProperty(n) && (i[n] = e[n]);
|
|
1074
1074
|
if (a && a.defaultProps) for (n in e = a.defaultProps, e) i[n] === void 0 && (i[n] = e[n]);
|
|
1075
|
-
return { $$typeof:
|
|
1075
|
+
return { $$typeof: Wo, type: a, key: o, ref: u, props: i, _owner: $o.current };
|
|
1076
1076
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
Ka.exports =
|
|
1077
|
+
Wt.Fragment = Ko;
|
|
1078
|
+
Wt.jsx = ka;
|
|
1079
|
+
Wt.jsxs = ka;
|
|
1080
|
+
Ka.exports = Wt;
|
|
1081
1081
|
var R = Ka.exports, me = function() {
|
|
1082
1082
|
return me = Object.assign || function(a) {
|
|
1083
1083
|
for (var e, t = 1, n = arguments.length; t < n; t++) {
|
|
@@ -1093,12 +1093,12 @@ var R = Ka.exports, me = function() {
|
|
|
1093
1093
|
for (var i = 0, n = Object.getOwnPropertySymbols(a); i < n.length; i++)
|
|
1094
1094
|
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(a, n[i]) && (t[n[i]] = a[n[i]]);
|
|
1095
1095
|
return t;
|
|
1096
|
-
},
|
|
1096
|
+
}, At = Lt(function(a, e) {
|
|
1097
1097
|
var t = a.icon, n = a.id, i = a.className, o = a.extend, u = Qo(a, ["icon", "id", "className", "extend"]), m = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), c = Va("_".concat(Jo()));
|
|
1098
1098
|
return $a(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, me({ ref: e, className: m }, u), o);
|
|
1099
1099
|
});
|
|
1100
1100
|
function $a(a, e, t, n, i) {
|
|
1101
|
-
return
|
|
1101
|
+
return Pt(a.tag, me(me({ key: e }, zo(a, t, i)), n), (Zo(a, t).children || []).map(function(o, u) {
|
|
1102
1102
|
return $a(o, "".concat(e, "-").concat(a.tag, "-").concat(u), t, void 0, i);
|
|
1103
1103
|
}));
|
|
1104
1104
|
}
|
|
@@ -1120,9 +1120,9 @@ function Zo(a, e) {
|
|
|
1120
1120
|
function Jo() {
|
|
1121
1121
|
return Math.random().toString(36).substring(2, 8);
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1123
|
+
At.displayName = "UniverIcon";
|
|
1124
1124
|
var eu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ja = Lt(function(a, e) {
|
|
1125
|
-
return At
|
|
1125
|
+
return Pt(At, Object.assign({}, a, {
|
|
1126
1126
|
id: "check-mark-single",
|
|
1127
1127
|
ref: e,
|
|
1128
1128
|
icon: eu
|
|
@@ -1130,7 +1130,7 @@ var eu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
1130
1130
|
});
|
|
1131
1131
|
ja.displayName = "CheckMarkSingle";
|
|
1132
1132
|
var tu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, Qa = Lt(function(a, e) {
|
|
1133
|
-
return At
|
|
1133
|
+
return Pt(At, Object.assign({}, a, {
|
|
1134
1134
|
id: "close-single",
|
|
1135
1135
|
ref: e,
|
|
1136
1136
|
icon: tu
|
|
@@ -1138,7 +1138,7 @@ var tu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
1138
1138
|
});
|
|
1139
1139
|
Qa.displayName = "CloseSingle";
|
|
1140
1140
|
var nu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.75 5.32495C8.75 5.73916 8.41421 6.07495 8 6.07495 7.58579 6.07495 7.25 5.73916 7.25 5.32495 7.25 4.91074 7.58579 4.57495 8 4.57495 8.41421 4.57495 8.75 4.91074 8.75 5.32495zM8.5999 7.52505C8.5999 7.19368 8.33127 6.92505 7.9999 6.92505 7.66853 6.92505 7.3999 7.19368 7.3999 7.52505V11.425C7.3999 11.7564 7.66853 12.025 7.9999 12.025 8.33127 12.025 8.5999 11.7564 8.5999 11.425V7.52505z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M0.899902 8.00002C0.899902 4.0788 4.07868 0.900024 7.9999 0.900024C11.9211 0.900024 15.0999 4.0788 15.0999 8.00002C15.0999 11.9212 11.9211 15.1 7.9999 15.1C4.07868 15.1 0.899902 11.9212 0.899902 8.00002ZM7.9999 2.10002C4.74142 2.10002 2.0999 4.74154 2.0999 8.00002C2.0999 11.2585 4.74142 13.9 7.9999 13.9C11.2584 13.9 13.8999 11.2585 13.8999 8.00002C13.8999 4.74154 11.2584 2.10002 7.9999 2.10002Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, za = Lt(function(a, e) {
|
|
1141
|
-
return At
|
|
1141
|
+
return Pt(At, Object.assign({}, a, {
|
|
1142
1142
|
id: "details-single",
|
|
1143
1143
|
ref: e,
|
|
1144
1144
|
icon: nu
|
|
@@ -1146,7 +1146,7 @@ var nu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
|
|
|
1146
1146
|
});
|
|
1147
1147
|
za.displayName = "DetailsSingle";
|
|
1148
1148
|
var au = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Za = Lt(function(a, e) {
|
|
1149
|
-
return At
|
|
1149
|
+
return Pt(At, Object.assign({}, a, {
|
|
1150
1150
|
id: "more-single",
|
|
1151
1151
|
ref: e,
|
|
1152
1152
|
icon: au
|
|
@@ -1185,7 +1185,7 @@ const ou = (a, e = 100) => {
|
|
|
1185
1185
|
t !== null && clearTimeout(t), window.removeEventListener("scroll", n), window.removeEventListener("resize", n);
|
|
1186
1186
|
};
|
|
1187
1187
|
}, [a, e]);
|
|
1188
|
-
}, uu = "univer-formula-help-function", mu = "univer-formula-help-function-title", cu = "univer-formula-help-function-title-icons", fu = "univer-formula-help-function-title-icon", su = "univer-formula-help-function-content", lu = "univer-formula-help-function-content-inner", du = "univer-formula-help-function-content-params", pu = "univer-formula-help-function-content-params-title", Lu = "univer-formula-help-function-content-params-detail",
|
|
1188
|
+
}, uu = "univer-formula-help-function", mu = "univer-formula-help-function-title", cu = "univer-formula-help-function-title-icons", fu = "univer-formula-help-function-title-icon", su = "univer-formula-help-function-content", lu = "univer-formula-help-function-content-inner", du = "univer-formula-help-function-content-params", pu = "univer-formula-help-function-content-params-title", Lu = "univer-formula-help-function-content-params-detail", Pu = "univer-formula-help-function-active", Au = "univer-formula-help-decorator", bu = "univer-formula-help-param", Su = "univer-formula-help-param-prefix", Eu = "univer-formula-help-param-item", Tu = "univer-formula-help-param-active", te = {
|
|
1189
1189
|
formulaHelpFunction: uu,
|
|
1190
1190
|
formulaHelpFunctionTitle: mu,
|
|
1191
1191
|
formulaHelpFunctionTitleIcons: cu,
|
|
@@ -1195,18 +1195,18 @@ const ou = (a, e = 100) => {
|
|
|
1195
1195
|
formulaHelpFunctionContentParams: du,
|
|
1196
1196
|
formulaHelpFunctionContentParamsTitle: pu,
|
|
1197
1197
|
formulaHelpFunctionContentParamsDetail: Lu,
|
|
1198
|
-
formulaHelpFunctionActive:
|
|
1199
|
-
formulaHelpDecorator:
|
|
1198
|
+
formulaHelpFunctionActive: Pu,
|
|
1199
|
+
formulaHelpDecorator: Au,
|
|
1200
1200
|
formulaHelpParam: bu,
|
|
1201
1201
|
formulaHelpParamPrefix: Su,
|
|
1202
1202
|
formulaHelpParamItem: Eu,
|
|
1203
1203
|
formulaHelpParamActive: Tu
|
|
1204
1204
|
};
|
|
1205
1205
|
function Iu() {
|
|
1206
|
-
const [a, e] =
|
|
1206
|
+
const [a, e] = Y(!1), [t, n] = Y(!0), [i, o] = Y(!0), [u, m] = Y(0), [c, f] = Y([0, 0]), [d, s] = Y({ left: 0, top: 0 }), [l, P] = Y(null), A = ce(ye), S = ce(we), p = S.t("formula.prompt.required"), N = S.t("formula.prompt.optional"), I = ce(Ae), L = ce(Xe), h = ce(Ua), M = si();
|
|
1207
1207
|
ou(x), ft(() => {
|
|
1208
|
-
const F =
|
|
1209
|
-
const { visible: Z, paramIndex:
|
|
1208
|
+
const F = A.help$.subscribe((D) => {
|
|
1209
|
+
const { visible: Z, paramIndex: W, functionInfo: Q } = D;
|
|
1210
1210
|
if (!Z) {
|
|
1211
1211
|
e(Z);
|
|
1212
1212
|
return;
|
|
@@ -1215,7 +1215,7 @@ function Iu() {
|
|
|
1215
1215
|
if (be == null)
|
|
1216
1216
|
return;
|
|
1217
1217
|
const { left: ne, top: Ie, height: se } = be;
|
|
1218
|
-
Q.description === "" && Q.functionParameter.length === 0 || (f([ne, Ie + se]), m(
|
|
1218
|
+
Q.description === "" && Q.functionParameter.length === 0 || (f([ne, Ie + se]), m(W), P(Q), s({ left: ne, top: Ie }), e(Z));
|
|
1219
1219
|
}), E = h.scrollEvent$.pipe(oo(100)).subscribe(x);
|
|
1220
1220
|
return () => {
|
|
1221
1221
|
F == null || F.unsubscribe(), E.unsubscribe();
|
|
@@ -1354,7 +1354,7 @@ const tn = (a) => /* @__PURE__ */ R.jsxs("div", { className: te.formulaHelpFunct
|
|
|
1354
1354
|
formulaSearchFunctionItemActive: Mu
|
|
1355
1355
|
};
|
|
1356
1356
|
function Du() {
|
|
1357
|
-
const [a, e] =
|
|
1357
|
+
const [a, e] = Y(!1), [t, n] = Y(0), [i, o] = Y([0, 0]), [u, m] = Y([]), [c, f] = Y(""), d = Va(null), s = ce(ye), l = ce(Ae), P = ce(Xe);
|
|
1358
1358
|
ft(() => {
|
|
1359
1359
|
let I = [], L = 0;
|
|
1360
1360
|
const h = s.search$.subscribe((C) => {
|
|
@@ -1363,11 +1363,11 @@ function Du() {
|
|
|
1363
1363
|
e(y);
|
|
1364
1364
|
return;
|
|
1365
1365
|
}
|
|
1366
|
-
const E =
|
|
1366
|
+
const E = A();
|
|
1367
1367
|
if (E == null)
|
|
1368
1368
|
return;
|
|
1369
|
-
const { left: D, top: Z, height:
|
|
1370
|
-
f(v), m(F), I = F, o([D, Z +
|
|
1369
|
+
const { left: D, top: Z, height: W } = E;
|
|
1370
|
+
f(v), m(F), I = F, o([D, Z + W]), e(y), n(0), L = 0;
|
|
1371
1371
|
}), M = s.navigate$.subscribe((C) => {
|
|
1372
1372
|
const { direction: y } = C;
|
|
1373
1373
|
if (y === X.UP) {
|
|
@@ -1386,11 +1386,11 @@ function Du() {
|
|
|
1386
1386
|
h == null || h.unsubscribe(), M == null || M.unsubscribe(), x == null || x.unsubscribe();
|
|
1387
1387
|
};
|
|
1388
1388
|
}, []);
|
|
1389
|
-
function
|
|
1389
|
+
function A() {
|
|
1390
1390
|
const L = l.getCurrentUniverDocInstance().getUnitId();
|
|
1391
|
-
if (!
|
|
1391
|
+
if (!P.isEditor(L))
|
|
1392
1392
|
return;
|
|
1393
|
-
const h =
|
|
1393
|
+
const h = P.getEditor(L);
|
|
1394
1394
|
return h == null ? void 0 : h.getBoundingClientRect();
|
|
1395
1395
|
}
|
|
1396
1396
|
function S(I) {
|
|
@@ -1476,8 +1476,8 @@ const Uu = "univer-formula-input-params-list", Bu = "univer-formula-input-params
|
|
|
1476
1476
|
function Hu(a) {
|
|
1477
1477
|
const { functionInfo: e, onChange: t } = a;
|
|
1478
1478
|
if (!e) return null;
|
|
1479
|
-
|
|
1480
|
-
const [n, i] =
|
|
1479
|
+
Y([]);
|
|
1480
|
+
const [n, i] = Y(e.functionParameter), [o, u] = Y(-1);
|
|
1481
1481
|
return /* @__PURE__ */ R.jsxs("div", { className: je.formulaInputParams, children: [
|
|
1482
1482
|
/* @__PURE__ */ R.jsx("div", { className: je.formulaInputParamsList, children: n.map((m, c) => /* @__PURE__ */ R.jsxs("div", { children: [
|
|
1483
1483
|
/* @__PURE__ */ R.jsx("div", { className: je.formulaInputParamsListItemName, children: m.name }),
|
|
@@ -2484,7 +2484,7 @@ const wu = [], Gu = [
|
|
|
2484
2484
|
}
|
|
2485
2485
|
]
|
|
2486
2486
|
}
|
|
2487
|
-
],
|
|
2487
|
+
], Yu = [
|
|
2488
2488
|
{
|
|
2489
2489
|
functionName: oe.DAVERAGE,
|
|
2490
2490
|
functionType: r.Database,
|
|
@@ -2749,7 +2749,7 @@ const wu = [], Gu = [
|
|
|
2749
2749
|
}
|
|
2750
2750
|
]
|
|
2751
2751
|
}
|
|
2752
|
-
],
|
|
2752
|
+
], Wu = [
|
|
2753
2753
|
{
|
|
2754
2754
|
functionName: G.DATE,
|
|
2755
2755
|
functionType: r.Date,
|
|
@@ -2786,16 +2786,23 @@ const wu = [], Gu = [
|
|
|
2786
2786
|
abstract: "formula.functionList.DATEDIF.abstract",
|
|
2787
2787
|
functionParameter: [
|
|
2788
2788
|
{
|
|
2789
|
-
name: "formula.functionList.DATEDIF.functionParameter.
|
|
2790
|
-
detail: "formula.functionList.DATEDIF.functionParameter.
|
|
2791
|
-
example: "
|
|
2789
|
+
name: "formula.functionList.DATEDIF.functionParameter.startDate.name",
|
|
2790
|
+
detail: "formula.functionList.DATEDIF.functionParameter.startDate.detail",
|
|
2791
|
+
example: '"2001-6-1"',
|
|
2792
2792
|
require: 1,
|
|
2793
2793
|
repeat: 0
|
|
2794
2794
|
},
|
|
2795
2795
|
{
|
|
2796
|
-
name: "formula.functionList.DATEDIF.functionParameter.
|
|
2797
|
-
detail: "formula.functionList.DATEDIF.functionParameter.
|
|
2798
|
-
example: "
|
|
2796
|
+
name: "formula.functionList.DATEDIF.functionParameter.endDate.name",
|
|
2797
|
+
detail: "formula.functionList.DATEDIF.functionParameter.endDate.detail",
|
|
2798
|
+
example: '"2002-8-15"',
|
|
2799
|
+
require: 1,
|
|
2800
|
+
repeat: 0
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
name: "formula.functionList.DATEDIF.functionParameter.method.name",
|
|
2804
|
+
detail: "formula.functionList.DATEDIF.functionParameter.method.detail",
|
|
2805
|
+
example: '"D"',
|
|
2799
2806
|
require: 1,
|
|
2800
2807
|
repeat: 0
|
|
2801
2808
|
}
|
|
@@ -2838,16 +2845,16 @@ const wu = [], Gu = [
|
|
|
2838
2845
|
abstract: "formula.functionList.DAYS.abstract",
|
|
2839
2846
|
functionParameter: [
|
|
2840
2847
|
{
|
|
2841
|
-
name: "formula.functionList.DAYS.functionParameter.
|
|
2842
|
-
detail: "formula.functionList.DAYS.functionParameter.
|
|
2843
|
-
example: "
|
|
2848
|
+
name: "formula.functionList.DAYS.functionParameter.endDate.name",
|
|
2849
|
+
detail: "formula.functionList.DAYS.functionParameter.endDate.detail",
|
|
2850
|
+
example: '"2021-12-31"',
|
|
2844
2851
|
require: 1,
|
|
2845
2852
|
repeat: 0
|
|
2846
2853
|
},
|
|
2847
2854
|
{
|
|
2848
|
-
name: "formula.functionList.DAYS.functionParameter.
|
|
2849
|
-
detail: "formula.functionList.DAYS.functionParameter.
|
|
2850
|
-
example: "
|
|
2855
|
+
name: "formula.functionList.DAYS.functionParameter.startDate.name",
|
|
2856
|
+
detail: "formula.functionList.DAYS.functionParameter.startDate.detail",
|
|
2857
|
+
example: '"2021-1-1"',
|
|
2851
2858
|
require: 1,
|
|
2852
2859
|
repeat: 0
|
|
2853
2860
|
}
|
|
@@ -2860,18 +2867,25 @@ const wu = [], Gu = [
|
|
|
2860
2867
|
abstract: "formula.functionList.DAYS360.abstract",
|
|
2861
2868
|
functionParameter: [
|
|
2862
2869
|
{
|
|
2863
|
-
name: "formula.functionList.DAYS360.functionParameter.
|
|
2864
|
-
detail: "formula.functionList.DAYS360.functionParameter.
|
|
2865
|
-
example: "
|
|
2870
|
+
name: "formula.functionList.DAYS360.functionParameter.startDate.name",
|
|
2871
|
+
detail: "formula.functionList.DAYS360.functionParameter.startDate.detail",
|
|
2872
|
+
example: '"2021-1-29"',
|
|
2866
2873
|
require: 1,
|
|
2867
2874
|
repeat: 0
|
|
2868
2875
|
},
|
|
2869
2876
|
{
|
|
2870
|
-
name: "formula.functionList.DAYS360.functionParameter.
|
|
2871
|
-
detail: "formula.functionList.DAYS360.functionParameter.
|
|
2872
|
-
example: "
|
|
2877
|
+
name: "formula.functionList.DAYS360.functionParameter.endDate.name",
|
|
2878
|
+
detail: "formula.functionList.DAYS360.functionParameter.endDate.detail",
|
|
2879
|
+
example: '"2021-3-31"',
|
|
2873
2880
|
require: 1,
|
|
2874
2881
|
repeat: 0
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
name: "formula.functionList.DAYS360.functionParameter.method.name",
|
|
2885
|
+
detail: "formula.functionList.DAYS360.functionParameter.method.detail",
|
|
2886
|
+
example: "1",
|
|
2887
|
+
require: 0,
|
|
2888
|
+
repeat: 0
|
|
2875
2889
|
}
|
|
2876
2890
|
]
|
|
2877
2891
|
},
|
|
@@ -2904,16 +2918,16 @@ const wu = [], Gu = [
|
|
|
2904
2918
|
abstract: "formula.functionList.EOMONTH.abstract",
|
|
2905
2919
|
functionParameter: [
|
|
2906
2920
|
{
|
|
2907
|
-
name: "formula.functionList.EOMONTH.functionParameter.
|
|
2908
|
-
detail: "formula.functionList.EOMONTH.functionParameter.
|
|
2909
|
-
example: "
|
|
2921
|
+
name: "formula.functionList.EOMONTH.functionParameter.startDate.name",
|
|
2922
|
+
detail: "formula.functionList.EOMONTH.functionParameter.startDate.detail",
|
|
2923
|
+
example: '"2011-1-1"',
|
|
2910
2924
|
require: 1,
|
|
2911
2925
|
repeat: 0
|
|
2912
2926
|
},
|
|
2913
2927
|
{
|
|
2914
|
-
name: "formula.functionList.EOMONTH.functionParameter.
|
|
2915
|
-
detail: "formula.functionList.EOMONTH.functionParameter.
|
|
2916
|
-
example: "
|
|
2928
|
+
name: "formula.functionList.EOMONTH.functionParameter.months.name",
|
|
2929
|
+
detail: "formula.functionList.EOMONTH.functionParameter.months.detail",
|
|
2930
|
+
example: "1",
|
|
2917
2931
|
require: 1,
|
|
2918
2932
|
repeat: 0
|
|
2919
2933
|
}
|
|
@@ -2941,16 +2955,9 @@ const wu = [], Gu = [
|
|
|
2941
2955
|
abstract: "formula.functionList.ISOWEEKNUM.abstract",
|
|
2942
2956
|
functionParameter: [
|
|
2943
2957
|
{
|
|
2944
|
-
name: "formula.functionList.ISOWEEKNUM.functionParameter.
|
|
2945
|
-
detail: "formula.functionList.ISOWEEKNUM.functionParameter.
|
|
2946
|
-
example: "
|
|
2947
|
-
require: 1,
|
|
2948
|
-
repeat: 0
|
|
2949
|
-
},
|
|
2950
|
-
{
|
|
2951
|
-
name: "formula.functionList.ISOWEEKNUM.functionParameter.number2.name",
|
|
2952
|
-
detail: "formula.functionList.ISOWEEKNUM.functionParameter.number2.detail",
|
|
2953
|
-
example: "A1:A20",
|
|
2958
|
+
name: "formula.functionList.ISOWEEKNUM.functionParameter.date.name",
|
|
2959
|
+
detail: "formula.functionList.ISOWEEKNUM.functionParameter.date.detail",
|
|
2960
|
+
example: '"2012-3-9"',
|
|
2954
2961
|
require: 1,
|
|
2955
2962
|
repeat: 0
|
|
2956
2963
|
}
|
|
@@ -3153,17 +3160,17 @@ const wu = [], Gu = [
|
|
|
3153
3160
|
abstract: "formula.functionList.WEEKNUM.abstract",
|
|
3154
3161
|
functionParameter: [
|
|
3155
3162
|
{
|
|
3156
|
-
name: "formula.functionList.WEEKNUM.functionParameter.
|
|
3157
|
-
detail: "formula.functionList.WEEKNUM.functionParameter.
|
|
3158
|
-
example: "
|
|
3163
|
+
name: "formula.functionList.WEEKNUM.functionParameter.serialNumber.name",
|
|
3164
|
+
detail: "formula.functionList.WEEKNUM.functionParameter.serialNumber.detail",
|
|
3165
|
+
example: '"2012-3-9"',
|
|
3159
3166
|
require: 1,
|
|
3160
3167
|
repeat: 0
|
|
3161
3168
|
},
|
|
3162
3169
|
{
|
|
3163
|
-
name: "formula.functionList.WEEKNUM.functionParameter.
|
|
3164
|
-
detail: "formula.functionList.WEEKNUM.functionParameter.
|
|
3165
|
-
example: "
|
|
3166
|
-
require:
|
|
3170
|
+
name: "formula.functionList.WEEKNUM.functionParameter.returnType.name",
|
|
3171
|
+
detail: "formula.functionList.WEEKNUM.functionParameter.returnType.detail",
|
|
3172
|
+
example: "2",
|
|
3173
|
+
require: 0,
|
|
3167
3174
|
repeat: 0
|
|
3168
3175
|
}
|
|
3169
3176
|
]
|
|
@@ -3255,18 +3262,25 @@ const wu = [], Gu = [
|
|
|
3255
3262
|
abstract: "formula.functionList.YEARFRAC.abstract",
|
|
3256
3263
|
functionParameter: [
|
|
3257
3264
|
{
|
|
3258
|
-
name: "formula.functionList.YEARFRAC.functionParameter.
|
|
3259
|
-
detail: "formula.functionList.YEARFRAC.functionParameter.
|
|
3260
|
-
example: "
|
|
3265
|
+
name: "formula.functionList.YEARFRAC.functionParameter.startDate.name",
|
|
3266
|
+
detail: "formula.functionList.YEARFRAC.functionParameter.startDate.detail",
|
|
3267
|
+
example: '"2012-1-1"',
|
|
3261
3268
|
require: 1,
|
|
3262
3269
|
repeat: 0
|
|
3263
3270
|
},
|
|
3264
3271
|
{
|
|
3265
|
-
name: "formula.functionList.YEARFRAC.functionParameter.
|
|
3266
|
-
detail: "formula.functionList.YEARFRAC.functionParameter.
|
|
3267
|
-
example: "
|
|
3272
|
+
name: "formula.functionList.YEARFRAC.functionParameter.endDate.name",
|
|
3273
|
+
detail: "formula.functionList.YEARFRAC.functionParameter.endDate.detail",
|
|
3274
|
+
example: '"2012-7-30"',
|
|
3268
3275
|
require: 1,
|
|
3269
3276
|
repeat: 0
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
name: "formula.functionList.YEARFRAC.functionParameter.basis.name",
|
|
3280
|
+
detail: "formula.functionList.YEARFRAC.functionParameter.basis.detail",
|
|
3281
|
+
example: "1",
|
|
3282
|
+
require: 0,
|
|
3283
|
+
repeat: 0
|
|
3270
3284
|
}
|
|
3271
3285
|
]
|
|
3272
3286
|
}
|
|
@@ -5678,16 +5692,16 @@ const wu = [], Gu = [
|
|
|
5678
5692
|
abstract: "formula.functionList.CELL.abstract",
|
|
5679
5693
|
functionParameter: [
|
|
5680
5694
|
{
|
|
5681
|
-
name: "formula.functionList.CELL.functionParameter.
|
|
5682
|
-
detail: "formula.functionList.CELL.functionParameter.
|
|
5683
|
-
example: "
|
|
5695
|
+
name: "formula.functionList.CELL.functionParameter.infoType.name",
|
|
5696
|
+
detail: "formula.functionList.CELL.functionParameter.infoType.detail",
|
|
5697
|
+
example: '"type"',
|
|
5684
5698
|
require: 1,
|
|
5685
5699
|
repeat: 0
|
|
5686
5700
|
},
|
|
5687
5701
|
{
|
|
5688
|
-
name: "formula.functionList.CELL.functionParameter.
|
|
5689
|
-
detail: "formula.functionList.CELL.functionParameter.
|
|
5690
|
-
example: "A1
|
|
5702
|
+
name: "formula.functionList.CELL.functionParameter.reference.name",
|
|
5703
|
+
detail: "formula.functionList.CELL.functionParameter.reference.detail",
|
|
5704
|
+
example: "A1",
|
|
5691
5705
|
require: 1,
|
|
5692
5706
|
repeat: 0
|
|
5693
5707
|
}
|
|
@@ -5700,16 +5714,9 @@ const wu = [], Gu = [
|
|
|
5700
5714
|
abstract: "formula.functionList.ERROR_TYPE.abstract",
|
|
5701
5715
|
functionParameter: [
|
|
5702
5716
|
{
|
|
5703
|
-
name: "formula.functionList.ERROR_TYPE.functionParameter.
|
|
5704
|
-
detail: "formula.functionList.ERROR_TYPE.functionParameter.
|
|
5705
|
-
example: "
|
|
5706
|
-
require: 1,
|
|
5707
|
-
repeat: 0
|
|
5708
|
-
},
|
|
5709
|
-
{
|
|
5710
|
-
name: "formula.functionList.ERROR_TYPE.functionParameter.number2.name",
|
|
5711
|
-
detail: "formula.functionList.ERROR_TYPE.functionParameter.number2.detail",
|
|
5712
|
-
example: "A1:A20",
|
|
5717
|
+
name: "formula.functionList.ERROR_TYPE.functionParameter.errorVal.name",
|
|
5718
|
+
detail: "formula.functionList.ERROR_TYPE.functionParameter.errorVal.detail",
|
|
5719
|
+
example: '"#NULL!"',
|
|
5713
5720
|
require: 1,
|
|
5714
5721
|
repeat: 0
|
|
5715
5722
|
}
|
|
@@ -6041,16 +6048,9 @@ const wu = [], Gu = [
|
|
|
6041
6048
|
abstract: "formula.functionList.TYPE.abstract",
|
|
6042
6049
|
functionParameter: [
|
|
6043
6050
|
{
|
|
6044
|
-
name: "formula.functionList.TYPE.functionParameter.
|
|
6045
|
-
detail: "formula.functionList.TYPE.functionParameter.
|
|
6046
|
-
example: "
|
|
6047
|
-
require: 1,
|
|
6048
|
-
repeat: 0
|
|
6049
|
-
},
|
|
6050
|
-
{
|
|
6051
|
-
name: "formula.functionList.TYPE.functionParameter.number2.name",
|
|
6052
|
-
detail: "formula.functionList.TYPE.functionParameter.number2.detail",
|
|
6053
|
-
example: "A1:A20",
|
|
6051
|
+
name: "formula.functionList.TYPE.functionParameter.value.name",
|
|
6052
|
+
detail: "formula.functionList.TYPE.functionParameter.value.detail",
|
|
6053
|
+
example: "A2",
|
|
6054
6054
|
require: 1,
|
|
6055
6055
|
repeat: 0
|
|
6056
6056
|
}
|
|
@@ -7662,16 +7662,16 @@ const wu = [], Gu = [
|
|
|
7662
7662
|
abstract: "formula.functionList.CEILING.abstract",
|
|
7663
7663
|
functionParameter: [
|
|
7664
7664
|
{
|
|
7665
|
-
name: "formula.functionList.CEILING.functionParameter.
|
|
7666
|
-
detail: "formula.functionList.CEILING.functionParameter.
|
|
7667
|
-
example: "
|
|
7665
|
+
name: "formula.functionList.CEILING.functionParameter.number.name",
|
|
7666
|
+
detail: "formula.functionList.CEILING.functionParameter.number.detail",
|
|
7667
|
+
example: "2.5",
|
|
7668
7668
|
require: 1,
|
|
7669
7669
|
repeat: 0
|
|
7670
7670
|
},
|
|
7671
7671
|
{
|
|
7672
|
-
name: "formula.functionList.CEILING.functionParameter.
|
|
7673
|
-
detail: "formula.functionList.CEILING.functionParameter.
|
|
7674
|
-
example: "
|
|
7672
|
+
name: "formula.functionList.CEILING.functionParameter.significance.name",
|
|
7673
|
+
detail: "formula.functionList.CEILING.functionParameter.significance.detail",
|
|
7674
|
+
example: "1",
|
|
7675
7675
|
require: 1,
|
|
7676
7676
|
repeat: 0
|
|
7677
7677
|
}
|
|
@@ -7684,17 +7684,24 @@ const wu = [], Gu = [
|
|
|
7684
7684
|
abstract: "formula.functionList.CEILING_MATH.abstract",
|
|
7685
7685
|
functionParameter: [
|
|
7686
7686
|
{
|
|
7687
|
-
name: "formula.functionList.CEILING_MATH.functionParameter.
|
|
7688
|
-
detail: "formula.functionList.CEILING_MATH.functionParameter.
|
|
7689
|
-
example: "
|
|
7687
|
+
name: "formula.functionList.CEILING_MATH.functionParameter.number.name",
|
|
7688
|
+
detail: "formula.functionList.CEILING_MATH.functionParameter.number.detail",
|
|
7689
|
+
example: "-5.5",
|
|
7690
7690
|
require: 1,
|
|
7691
7691
|
repeat: 0
|
|
7692
7692
|
},
|
|
7693
7693
|
{
|
|
7694
|
-
name: "formula.functionList.CEILING_MATH.functionParameter.
|
|
7695
|
-
detail: "formula.functionList.CEILING_MATH.functionParameter.
|
|
7696
|
-
example: "
|
|
7697
|
-
require:
|
|
7694
|
+
name: "formula.functionList.CEILING_MATH.functionParameter.significance.name",
|
|
7695
|
+
detail: "formula.functionList.CEILING_MATH.functionParameter.significance.detail",
|
|
7696
|
+
example: "2",
|
|
7697
|
+
require: 0,
|
|
7698
|
+
repeat: 0
|
|
7699
|
+
},
|
|
7700
|
+
{
|
|
7701
|
+
name: "formula.functionList.CEILING_MATH.functionParameter.mode.name",
|
|
7702
|
+
detail: "formula.functionList.CEILING_MATH.functionParameter.mode.detail",
|
|
7703
|
+
example: "-1",
|
|
7704
|
+
require: 0,
|
|
7698
7705
|
repeat: 0
|
|
7699
7706
|
}
|
|
7700
7707
|
]
|
|
@@ -7706,17 +7713,17 @@ const wu = [], Gu = [
|
|
|
7706
7713
|
abstract: "formula.functionList.CEILING_PRECISE.abstract",
|
|
7707
7714
|
functionParameter: [
|
|
7708
7715
|
{
|
|
7709
|
-
name: "formula.functionList.CEILING_PRECISE.functionParameter.
|
|
7710
|
-
detail: "formula.functionList.CEILING_PRECISE.functionParameter.
|
|
7711
|
-
example: "
|
|
7716
|
+
name: "formula.functionList.CEILING_PRECISE.functionParameter.number.name",
|
|
7717
|
+
detail: "formula.functionList.CEILING_PRECISE.functionParameter.number.detail",
|
|
7718
|
+
example: "4.3",
|
|
7712
7719
|
require: 1,
|
|
7713
7720
|
repeat: 0
|
|
7714
7721
|
},
|
|
7715
7722
|
{
|
|
7716
|
-
name: "formula.functionList.CEILING_PRECISE.functionParameter.
|
|
7717
|
-
detail: "formula.functionList.CEILING_PRECISE.functionParameter.
|
|
7718
|
-
example: "
|
|
7719
|
-
require:
|
|
7723
|
+
name: "formula.functionList.CEILING_PRECISE.functionParameter.significance.name",
|
|
7724
|
+
detail: "formula.functionList.CEILING_PRECISE.functionParameter.significance.detail",
|
|
7725
|
+
example: "2",
|
|
7726
|
+
require: 0,
|
|
7720
7727
|
repeat: 0
|
|
7721
7728
|
}
|
|
7722
7729
|
]
|
|
@@ -7862,16 +7869,16 @@ const wu = [], Gu = [
|
|
|
7862
7869
|
abstract: "formula.functionList.DECIMAL.abstract",
|
|
7863
7870
|
functionParameter: [
|
|
7864
7871
|
{
|
|
7865
|
-
name: "formula.functionList.DECIMAL.functionParameter.
|
|
7866
|
-
detail: "formula.functionList.DECIMAL.functionParameter.
|
|
7867
|
-
example: "
|
|
7872
|
+
name: "formula.functionList.DECIMAL.functionParameter.text.name",
|
|
7873
|
+
detail: "formula.functionList.DECIMAL.functionParameter.text.detail",
|
|
7874
|
+
example: '"FF"',
|
|
7868
7875
|
require: 1,
|
|
7869
7876
|
repeat: 0
|
|
7870
7877
|
},
|
|
7871
7878
|
{
|
|
7872
|
-
name: "formula.functionList.DECIMAL.functionParameter.
|
|
7873
|
-
detail: "formula.functionList.DECIMAL.functionParameter.
|
|
7874
|
-
example: "
|
|
7879
|
+
name: "formula.functionList.DECIMAL.functionParameter.radix.name",
|
|
7880
|
+
detail: "formula.functionList.DECIMAL.functionParameter.radix.detail",
|
|
7881
|
+
example: "16",
|
|
7875
7882
|
require: 1,
|
|
7876
7883
|
repeat: 0
|
|
7877
7884
|
}
|
|
@@ -7884,16 +7891,9 @@ const wu = [], Gu = [
|
|
|
7884
7891
|
abstract: "formula.functionList.DEGREES.abstract",
|
|
7885
7892
|
functionParameter: [
|
|
7886
7893
|
{
|
|
7887
|
-
name: "formula.functionList.DEGREES.functionParameter.
|
|
7888
|
-
detail: "formula.functionList.DEGREES.functionParameter.
|
|
7889
|
-
example: "
|
|
7890
|
-
require: 1,
|
|
7891
|
-
repeat: 0
|
|
7892
|
-
},
|
|
7893
|
-
{
|
|
7894
|
-
name: "formula.functionList.DEGREES.functionParameter.number2.name",
|
|
7895
|
-
detail: "formula.functionList.DEGREES.functionParameter.number2.detail",
|
|
7896
|
-
example: "A1:A20",
|
|
7894
|
+
name: "formula.functionList.DEGREES.functionParameter.angle.name",
|
|
7895
|
+
detail: "formula.functionList.DEGREES.functionParameter.angle.detail",
|
|
7896
|
+
example: "PI()",
|
|
7897
7897
|
require: 1,
|
|
7898
7898
|
repeat: 0
|
|
7899
7899
|
}
|
|
@@ -7906,16 +7906,9 @@ const wu = [], Gu = [
|
|
|
7906
7906
|
abstract: "formula.functionList.EVEN.abstract",
|
|
7907
7907
|
functionParameter: [
|
|
7908
7908
|
{
|
|
7909
|
-
name: "formula.functionList.EVEN.functionParameter.
|
|
7910
|
-
detail: "formula.functionList.EVEN.functionParameter.
|
|
7911
|
-
example: "
|
|
7912
|
-
require: 1,
|
|
7913
|
-
repeat: 0
|
|
7914
|
-
},
|
|
7915
|
-
{
|
|
7916
|
-
name: "formula.functionList.EVEN.functionParameter.number2.name",
|
|
7917
|
-
detail: "formula.functionList.EVEN.functionParameter.number2.detail",
|
|
7918
|
-
example: "A1:A20",
|
|
7909
|
+
name: "formula.functionList.EVEN.functionParameter.number.name",
|
|
7910
|
+
detail: "formula.functionList.EVEN.functionParameter.number.detail",
|
|
7911
|
+
example: "1.5",
|
|
7919
7912
|
require: 1,
|
|
7920
7913
|
repeat: 0
|
|
7921
7914
|
}
|
|
@@ -7928,16 +7921,9 @@ const wu = [], Gu = [
|
|
|
7928
7921
|
abstract: "formula.functionList.EXP.abstract",
|
|
7929
7922
|
functionParameter: [
|
|
7930
7923
|
{
|
|
7931
|
-
name: "formula.functionList.EXP.functionParameter.
|
|
7932
|
-
detail: "formula.functionList.EXP.functionParameter.
|
|
7933
|
-
example: "
|
|
7934
|
-
require: 1,
|
|
7935
|
-
repeat: 0
|
|
7936
|
-
},
|
|
7937
|
-
{
|
|
7938
|
-
name: "formula.functionList.EXP.functionParameter.number2.name",
|
|
7939
|
-
detail: "formula.functionList.EXP.functionParameter.number2.detail",
|
|
7940
|
-
example: "A1:A20",
|
|
7924
|
+
name: "formula.functionList.EXP.functionParameter.number.name",
|
|
7925
|
+
detail: "formula.functionList.EXP.functionParameter.number.detail",
|
|
7926
|
+
example: "2",
|
|
7941
7927
|
require: 1,
|
|
7942
7928
|
repeat: 0
|
|
7943
7929
|
}
|
|
@@ -7994,16 +7980,16 @@ const wu = [], Gu = [
|
|
|
7994
7980
|
abstract: "formula.functionList.FLOOR.abstract",
|
|
7995
7981
|
functionParameter: [
|
|
7996
7982
|
{
|
|
7997
|
-
name: "formula.functionList.FLOOR.functionParameter.
|
|
7998
|
-
detail: "formula.functionList.FLOOR.functionParameter.
|
|
7999
|
-
example: "
|
|
7983
|
+
name: "formula.functionList.FLOOR.functionParameter.number.name",
|
|
7984
|
+
detail: "formula.functionList.FLOOR.functionParameter.number.detail",
|
|
7985
|
+
example: "3.7",
|
|
8000
7986
|
require: 1,
|
|
8001
7987
|
repeat: 0
|
|
8002
7988
|
},
|
|
8003
7989
|
{
|
|
8004
|
-
name: "formula.functionList.FLOOR.functionParameter.
|
|
8005
|
-
detail: "formula.functionList.FLOOR.functionParameter.
|
|
8006
|
-
example: "
|
|
7990
|
+
name: "formula.functionList.FLOOR.functionParameter.significance.name",
|
|
7991
|
+
detail: "formula.functionList.FLOOR.functionParameter.significance.detail",
|
|
7992
|
+
example: "2",
|
|
8007
7993
|
require: 1,
|
|
8008
7994
|
repeat: 0
|
|
8009
7995
|
}
|
|
@@ -8016,17 +8002,24 @@ const wu = [], Gu = [
|
|
|
8016
8002
|
abstract: "formula.functionList.FLOOR_MATH.abstract",
|
|
8017
8003
|
functionParameter: [
|
|
8018
8004
|
{
|
|
8019
|
-
name: "formula.functionList.FLOOR_MATH.functionParameter.
|
|
8020
|
-
detail: "formula.functionList.FLOOR_MATH.functionParameter.
|
|
8021
|
-
example: "
|
|
8005
|
+
name: "formula.functionList.FLOOR_MATH.functionParameter.number.name",
|
|
8006
|
+
detail: "formula.functionList.FLOOR_MATH.functionParameter.number.detail",
|
|
8007
|
+
example: "-5.5",
|
|
8022
8008
|
require: 1,
|
|
8023
8009
|
repeat: 0
|
|
8024
8010
|
},
|
|
8025
8011
|
{
|
|
8026
|
-
name: "formula.functionList.FLOOR_MATH.functionParameter.
|
|
8027
|
-
detail: "formula.functionList.FLOOR_MATH.functionParameter.
|
|
8028
|
-
example: "
|
|
8029
|
-
require:
|
|
8012
|
+
name: "formula.functionList.FLOOR_MATH.functionParameter.significance.name",
|
|
8013
|
+
detail: "formula.functionList.FLOOR_MATH.functionParameter.significance.detail",
|
|
8014
|
+
example: "2",
|
|
8015
|
+
require: 0,
|
|
8016
|
+
repeat: 0
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
name: "formula.functionList.FLOOR_MATH.functionParameter.mode.name",
|
|
8020
|
+
detail: "formula.functionList.FLOOR_MATH.functionParameter.mode.detail",
|
|
8021
|
+
example: "-1",
|
|
8022
|
+
require: 0,
|
|
8030
8023
|
repeat: 0
|
|
8031
8024
|
}
|
|
8032
8025
|
]
|
|
@@ -8038,17 +8031,17 @@ const wu = [], Gu = [
|
|
|
8038
8031
|
abstract: "formula.functionList.FLOOR_PRECISE.abstract",
|
|
8039
8032
|
functionParameter: [
|
|
8040
8033
|
{
|
|
8041
|
-
name: "formula.functionList.FLOOR_PRECISE.functionParameter.
|
|
8042
|
-
detail: "formula.functionList.FLOOR_PRECISE.functionParameter.
|
|
8043
|
-
example: "
|
|
8034
|
+
name: "formula.functionList.FLOOR_PRECISE.functionParameter.number.name",
|
|
8035
|
+
detail: "formula.functionList.FLOOR_PRECISE.functionParameter.number.detail",
|
|
8036
|
+
example: "-3.2",
|
|
8044
8037
|
require: 1,
|
|
8045
8038
|
repeat: 0
|
|
8046
8039
|
},
|
|
8047
8040
|
{
|
|
8048
|
-
name: "formula.functionList.FLOOR_PRECISE.functionParameter.
|
|
8049
|
-
detail: "formula.functionList.FLOOR_PRECISE.functionParameter.
|
|
8050
|
-
example: "
|
|
8051
|
-
require:
|
|
8041
|
+
name: "formula.functionList.FLOOR_PRECISE.functionParameter.significance.name",
|
|
8042
|
+
detail: "formula.functionList.FLOOR_PRECISE.functionParameter.significance.detail",
|
|
8043
|
+
example: "-1",
|
|
8044
|
+
require: 0,
|
|
8052
8045
|
repeat: 0
|
|
8053
8046
|
}
|
|
8054
8047
|
]
|
|
@@ -8170,16 +8163,9 @@ const wu = [], Gu = [
|
|
|
8170
8163
|
abstract: "formula.functionList.LN.abstract",
|
|
8171
8164
|
functionParameter: [
|
|
8172
8165
|
{
|
|
8173
|
-
name: "formula.functionList.LN.functionParameter.
|
|
8174
|
-
detail: "formula.functionList.LN.functionParameter.
|
|
8175
|
-
example: "
|
|
8176
|
-
require: 1,
|
|
8177
|
-
repeat: 0
|
|
8178
|
-
},
|
|
8179
|
-
{
|
|
8180
|
-
name: "formula.functionList.LN.functionParameter.number2.name",
|
|
8181
|
-
detail: "formula.functionList.LN.functionParameter.number2.detail",
|
|
8182
|
-
example: "A1:A20",
|
|
8166
|
+
name: "formula.functionList.LN.functionParameter.number.name",
|
|
8167
|
+
detail: "formula.functionList.LN.functionParameter.number.detail",
|
|
8168
|
+
example: "EXP(3)",
|
|
8183
8169
|
require: 1,
|
|
8184
8170
|
repeat: 0
|
|
8185
8171
|
}
|
|
@@ -8192,17 +8178,17 @@ const wu = [], Gu = [
|
|
|
8192
8178
|
abstract: "formula.functionList.LOG.abstract",
|
|
8193
8179
|
functionParameter: [
|
|
8194
8180
|
{
|
|
8195
|
-
name: "formula.functionList.LOG.functionParameter.
|
|
8196
|
-
detail: "formula.functionList.LOG.functionParameter.
|
|
8197
|
-
example: "
|
|
8181
|
+
name: "formula.functionList.LOG.functionParameter.number.name",
|
|
8182
|
+
detail: "formula.functionList.LOG.functionParameter.number.detail",
|
|
8183
|
+
example: "8",
|
|
8198
8184
|
require: 1,
|
|
8199
8185
|
repeat: 0
|
|
8200
8186
|
},
|
|
8201
8187
|
{
|
|
8202
|
-
name: "formula.functionList.LOG.functionParameter.
|
|
8203
|
-
detail: "formula.functionList.LOG.functionParameter.
|
|
8204
|
-
example: "
|
|
8205
|
-
require:
|
|
8188
|
+
name: "formula.functionList.LOG.functionParameter.base.name",
|
|
8189
|
+
detail: "formula.functionList.LOG.functionParameter.base.detail",
|
|
8190
|
+
example: "2",
|
|
8191
|
+
require: 0,
|
|
8206
8192
|
repeat: 0
|
|
8207
8193
|
}
|
|
8208
8194
|
]
|
|
@@ -8214,16 +8200,9 @@ const wu = [], Gu = [
|
|
|
8214
8200
|
abstract: "formula.functionList.LOG10.abstract",
|
|
8215
8201
|
functionParameter: [
|
|
8216
8202
|
{
|
|
8217
|
-
name: "formula.functionList.LOG10.functionParameter.
|
|
8218
|
-
detail: "formula.functionList.LOG10.functionParameter.
|
|
8219
|
-
example: "
|
|
8220
|
-
require: 1,
|
|
8221
|
-
repeat: 0
|
|
8222
|
-
},
|
|
8223
|
-
{
|
|
8224
|
-
name: "formula.functionList.LOG10.functionParameter.number2.name",
|
|
8225
|
-
detail: "formula.functionList.LOG10.functionParameter.number2.detail",
|
|
8226
|
-
example: "A1:A20",
|
|
8203
|
+
name: "formula.functionList.LOG10.functionParameter.number.name",
|
|
8204
|
+
detail: "formula.functionList.LOG10.functionParameter.number.detail",
|
|
8205
|
+
example: "100000",
|
|
8227
8206
|
require: 1,
|
|
8228
8207
|
repeat: 0
|
|
8229
8208
|
}
|
|
@@ -8324,16 +8303,16 @@ const wu = [], Gu = [
|
|
|
8324
8303
|
abstract: "formula.functionList.MROUND.abstract",
|
|
8325
8304
|
functionParameter: [
|
|
8326
8305
|
{
|
|
8327
|
-
name: "formula.functionList.MROUND.functionParameter.
|
|
8328
|
-
detail: "formula.functionList.MROUND.functionParameter.
|
|
8329
|
-
example: "
|
|
8306
|
+
name: "formula.functionList.MROUND.functionParameter.number.name",
|
|
8307
|
+
detail: "formula.functionList.MROUND.functionParameter.number.detail",
|
|
8308
|
+
example: "10",
|
|
8330
8309
|
require: 1,
|
|
8331
8310
|
repeat: 0
|
|
8332
8311
|
},
|
|
8333
8312
|
{
|
|
8334
|
-
name: "formula.functionList.MROUND.functionParameter.
|
|
8335
|
-
detail: "formula.functionList.MROUND.functionParameter.
|
|
8336
|
-
example: "
|
|
8313
|
+
name: "formula.functionList.MROUND.functionParameter.multiple.name",
|
|
8314
|
+
detail: "formula.functionList.MROUND.functionParameter.multiple.detail",
|
|
8315
|
+
example: "3",
|
|
8337
8316
|
require: 1,
|
|
8338
8317
|
repeat: 0
|
|
8339
8318
|
}
|
|
@@ -8390,16 +8369,9 @@ const wu = [], Gu = [
|
|
|
8390
8369
|
abstract: "formula.functionList.ODD.abstract",
|
|
8391
8370
|
functionParameter: [
|
|
8392
8371
|
{
|
|
8393
|
-
name: "formula.functionList.ODD.functionParameter.
|
|
8394
|
-
detail: "formula.functionList.ODD.functionParameter.
|
|
8395
|
-
example: "
|
|
8396
|
-
require: 1,
|
|
8397
|
-
repeat: 0
|
|
8398
|
-
},
|
|
8399
|
-
{
|
|
8400
|
-
name: "formula.functionList.ODD.functionParameter.number2.name",
|
|
8401
|
-
detail: "formula.functionList.ODD.functionParameter.number2.detail",
|
|
8402
|
-
example: "A1:A20",
|
|
8372
|
+
name: "formula.functionList.ODD.functionParameter.number.name",
|
|
8373
|
+
detail: "formula.functionList.ODD.functionParameter.number.detail",
|
|
8374
|
+
example: "1.5",
|
|
8403
8375
|
require: 1,
|
|
8404
8376
|
repeat: 0
|
|
8405
8377
|
}
|
|
@@ -8410,22 +8382,7 @@ const wu = [], Gu = [
|
|
|
8410
8382
|
functionType: r.Math,
|
|
8411
8383
|
description: "formula.functionList.PI.description",
|
|
8412
8384
|
abstract: "formula.functionList.PI.abstract",
|
|
8413
|
-
functionParameter: [
|
|
8414
|
-
{
|
|
8415
|
-
name: "formula.functionList.PI.functionParameter.number1.name",
|
|
8416
|
-
detail: "formula.functionList.PI.functionParameter.number1.detail",
|
|
8417
|
-
example: "A1:A20",
|
|
8418
|
-
require: 1,
|
|
8419
|
-
repeat: 0
|
|
8420
|
-
},
|
|
8421
|
-
{
|
|
8422
|
-
name: "formula.functionList.PI.functionParameter.number2.name",
|
|
8423
|
-
detail: "formula.functionList.PI.functionParameter.number2.detail",
|
|
8424
|
-
example: "A1:A20",
|
|
8425
|
-
require: 1,
|
|
8426
|
-
repeat: 0
|
|
8427
|
-
}
|
|
8428
|
-
]
|
|
8385
|
+
functionParameter: []
|
|
8429
8386
|
},
|
|
8430
8387
|
{
|
|
8431
8388
|
functionName: T.POWER,
|
|
@@ -8500,16 +8457,9 @@ const wu = [], Gu = [
|
|
|
8500
8457
|
abstract: "formula.functionList.RADIANS.abstract",
|
|
8501
8458
|
functionParameter: [
|
|
8502
8459
|
{
|
|
8503
|
-
name: "formula.functionList.RADIANS.functionParameter.
|
|
8504
|
-
detail: "formula.functionList.RADIANS.functionParameter.
|
|
8505
|
-
example: "
|
|
8506
|
-
require: 1,
|
|
8507
|
-
repeat: 0
|
|
8508
|
-
},
|
|
8509
|
-
{
|
|
8510
|
-
name: "formula.functionList.RADIANS.functionParameter.number2.name",
|
|
8511
|
-
detail: "formula.functionList.RADIANS.functionParameter.number2.detail",
|
|
8512
|
-
example: "A1:A20",
|
|
8460
|
+
name: "formula.functionList.RADIANS.functionParameter.angle.name",
|
|
8461
|
+
detail: "formula.functionList.RADIANS.functionParameter.angle.detail",
|
|
8462
|
+
example: "270",
|
|
8513
8463
|
require: 1,
|
|
8514
8464
|
repeat: 0
|
|
8515
8465
|
}
|
|
@@ -8520,22 +8470,7 @@ const wu = [], Gu = [
|
|
|
8520
8470
|
functionType: r.Math,
|
|
8521
8471
|
description: "formula.functionList.RAND.description",
|
|
8522
8472
|
abstract: "formula.functionList.RAND.abstract",
|
|
8523
|
-
functionParameter: [
|
|
8524
|
-
{
|
|
8525
|
-
name: "formula.functionList.RAND.functionParameter.number1.name",
|
|
8526
|
-
detail: "formula.functionList.RAND.functionParameter.number1.detail",
|
|
8527
|
-
example: "A1:A20",
|
|
8528
|
-
require: 1,
|
|
8529
|
-
repeat: 0
|
|
8530
|
-
},
|
|
8531
|
-
{
|
|
8532
|
-
name: "formula.functionList.RAND.functionParameter.number2.name",
|
|
8533
|
-
detail: "formula.functionList.RAND.functionParameter.number2.detail",
|
|
8534
|
-
example: "A1:A20",
|
|
8535
|
-
require: 1,
|
|
8536
|
-
repeat: 0
|
|
8537
|
-
}
|
|
8538
|
-
]
|
|
8473
|
+
functionParameter: []
|
|
8539
8474
|
},
|
|
8540
8475
|
{
|
|
8541
8476
|
functionName: T.RANDARRAY,
|
|
@@ -8544,17 +8479,38 @@ const wu = [], Gu = [
|
|
|
8544
8479
|
abstract: "formula.functionList.RANDARRAY.abstract",
|
|
8545
8480
|
functionParameter: [
|
|
8546
8481
|
{
|
|
8547
|
-
name: "formula.functionList.RANDARRAY.functionParameter.
|
|
8548
|
-
detail: "formula.functionList.RANDARRAY.functionParameter.
|
|
8549
|
-
example: "
|
|
8550
|
-
require:
|
|
8482
|
+
name: "formula.functionList.RANDARRAY.functionParameter.rows.name",
|
|
8483
|
+
detail: "formula.functionList.RANDARRAY.functionParameter.rows.detail",
|
|
8484
|
+
example: "5",
|
|
8485
|
+
require: 0,
|
|
8551
8486
|
repeat: 0
|
|
8552
8487
|
},
|
|
8553
8488
|
{
|
|
8554
|
-
name: "formula.functionList.RANDARRAY.functionParameter.
|
|
8555
|
-
detail: "formula.functionList.RANDARRAY.functionParameter.
|
|
8556
|
-
example: "
|
|
8557
|
-
require:
|
|
8489
|
+
name: "formula.functionList.RANDARRAY.functionParameter.columns.name",
|
|
8490
|
+
detail: "formula.functionList.RANDARRAY.functionParameter.columns.detail",
|
|
8491
|
+
example: "3",
|
|
8492
|
+
require: 0,
|
|
8493
|
+
repeat: 0
|
|
8494
|
+
},
|
|
8495
|
+
{
|
|
8496
|
+
name: "formula.functionList.RANDARRAY.functionParameter.min.name",
|
|
8497
|
+
detail: "formula.functionList.RANDARRAY.functionParameter.min.detail",
|
|
8498
|
+
example: "1",
|
|
8499
|
+
require: 0,
|
|
8500
|
+
repeat: 0
|
|
8501
|
+
},
|
|
8502
|
+
{
|
|
8503
|
+
name: "formula.functionList.RANDARRAY.functionParameter.max.name",
|
|
8504
|
+
detail: "formula.functionList.RANDARRAY.functionParameter.max.detail",
|
|
8505
|
+
example: "100",
|
|
8506
|
+
require: 0,
|
|
8507
|
+
repeat: 0
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
name: "formula.functionList.RANDARRAY.functionParameter.wholeNumber.name",
|
|
8511
|
+
detail: "formula.functionList.RANDARRAY.functionParameter.wholeNumber.detail",
|
|
8512
|
+
example: "TRUE",
|
|
8513
|
+
require: 0,
|
|
8558
8514
|
repeat: 0
|
|
8559
8515
|
}
|
|
8560
8516
|
]
|
|
@@ -8566,16 +8522,16 @@ const wu = [], Gu = [
|
|
|
8566
8522
|
abstract: "formula.functionList.RANDBETWEEN.abstract",
|
|
8567
8523
|
functionParameter: [
|
|
8568
8524
|
{
|
|
8569
|
-
name: "formula.functionList.RANDBETWEEN.functionParameter.
|
|
8570
|
-
detail: "formula.functionList.RANDBETWEEN.functionParameter.
|
|
8571
|
-
example: "
|
|
8525
|
+
name: "formula.functionList.RANDBETWEEN.functionParameter.bottom.name",
|
|
8526
|
+
detail: "formula.functionList.RANDBETWEEN.functionParameter.bottom.detail",
|
|
8527
|
+
example: "1",
|
|
8572
8528
|
require: 1,
|
|
8573
8529
|
repeat: 0
|
|
8574
8530
|
},
|
|
8575
8531
|
{
|
|
8576
|
-
name: "formula.functionList.RANDBETWEEN.functionParameter.
|
|
8577
|
-
detail: "formula.functionList.RANDBETWEEN.functionParameter.
|
|
8578
|
-
example: "
|
|
8532
|
+
name: "formula.functionList.RANDBETWEEN.functionParameter.top.name",
|
|
8533
|
+
detail: "formula.functionList.RANDBETWEEN.functionParameter.top.detail",
|
|
8534
|
+
example: "100",
|
|
8579
8535
|
require: 1,
|
|
8580
8536
|
repeat: 0
|
|
8581
8537
|
}
|
|
@@ -8610,16 +8566,16 @@ const wu = [], Gu = [
|
|
|
8610
8566
|
abstract: "formula.functionList.ROUND.abstract",
|
|
8611
8567
|
functionParameter: [
|
|
8612
8568
|
{
|
|
8613
|
-
name: "formula.functionList.ROUND.functionParameter.
|
|
8614
|
-
detail: "formula.functionList.ROUND.functionParameter.
|
|
8615
|
-
example: "
|
|
8569
|
+
name: "formula.functionList.ROUND.functionParameter.number.name",
|
|
8570
|
+
detail: "formula.functionList.ROUND.functionParameter.number.detail",
|
|
8571
|
+
example: "2.15",
|
|
8616
8572
|
require: 1,
|
|
8617
8573
|
repeat: 0
|
|
8618
8574
|
},
|
|
8619
8575
|
{
|
|
8620
|
-
name: "formula.functionList.ROUND.functionParameter.
|
|
8621
|
-
detail: "formula.functionList.ROUND.functionParameter.
|
|
8622
|
-
example: "
|
|
8576
|
+
name: "formula.functionList.ROUND.functionParameter.numDigits.name",
|
|
8577
|
+
detail: "formula.functionList.ROUND.functionParameter.numDigits.detail",
|
|
8578
|
+
example: "1",
|
|
8623
8579
|
require: 1,
|
|
8624
8580
|
repeat: 0
|
|
8625
8581
|
}
|
|
@@ -8632,16 +8588,16 @@ const wu = [], Gu = [
|
|
|
8632
8588
|
abstract: "formula.functionList.ROUNDDOWN.abstract",
|
|
8633
8589
|
functionParameter: [
|
|
8634
8590
|
{
|
|
8635
|
-
name: "formula.functionList.ROUNDDOWN.functionParameter.
|
|
8636
|
-
detail: "formula.functionList.ROUNDDOWN.functionParameter.
|
|
8637
|
-
example: "
|
|
8591
|
+
name: "formula.functionList.ROUNDDOWN.functionParameter.number.name",
|
|
8592
|
+
detail: "formula.functionList.ROUNDDOWN.functionParameter.number.detail",
|
|
8593
|
+
example: "3.2",
|
|
8638
8594
|
require: 1,
|
|
8639
8595
|
repeat: 0
|
|
8640
8596
|
},
|
|
8641
8597
|
{
|
|
8642
|
-
name: "formula.functionList.ROUNDDOWN.functionParameter.
|
|
8643
|
-
detail: "formula.functionList.ROUNDDOWN.functionParameter.
|
|
8644
|
-
example: "
|
|
8598
|
+
name: "formula.functionList.ROUNDDOWN.functionParameter.numDigits.name",
|
|
8599
|
+
detail: "formula.functionList.ROUNDDOWN.functionParameter.numDigits.detail",
|
|
8600
|
+
example: "0",
|
|
8645
8601
|
require: 1,
|
|
8646
8602
|
repeat: 0
|
|
8647
8603
|
}
|
|
@@ -8654,16 +8610,16 @@ const wu = [], Gu = [
|
|
|
8654
8610
|
abstract: "formula.functionList.ROUNDUP.abstract",
|
|
8655
8611
|
functionParameter: [
|
|
8656
8612
|
{
|
|
8657
|
-
name: "formula.functionList.ROUNDUP.functionParameter.
|
|
8658
|
-
detail: "formula.functionList.ROUNDUP.functionParameter.
|
|
8659
|
-
example: "
|
|
8613
|
+
name: "formula.functionList.ROUNDUP.functionParameter.number.name",
|
|
8614
|
+
detail: "formula.functionList.ROUNDUP.functionParameter.number.detail",
|
|
8615
|
+
example: "3.2",
|
|
8660
8616
|
require: 1,
|
|
8661
8617
|
repeat: 0
|
|
8662
8618
|
},
|
|
8663
8619
|
{
|
|
8664
|
-
name: "formula.functionList.ROUNDUP.functionParameter.
|
|
8665
|
-
detail: "formula.functionList.ROUNDUP.functionParameter.
|
|
8666
|
-
example: "
|
|
8620
|
+
name: "formula.functionList.ROUNDUP.functionParameter.numDigits.name",
|
|
8621
|
+
detail: "formula.functionList.ROUNDUP.functionParameter.numDigits.detail",
|
|
8622
|
+
example: "0",
|
|
8667
8623
|
require: 1,
|
|
8668
8624
|
repeat: 0
|
|
8669
8625
|
}
|
|
@@ -8676,16 +8632,9 @@ const wu = [], Gu = [
|
|
|
8676
8632
|
abstract: "formula.functionList.SEC.abstract",
|
|
8677
8633
|
functionParameter: [
|
|
8678
8634
|
{
|
|
8679
|
-
name: "formula.functionList.SEC.functionParameter.
|
|
8680
|
-
detail: "formula.functionList.SEC.functionParameter.
|
|
8681
|
-
example: "
|
|
8682
|
-
require: 1,
|
|
8683
|
-
repeat: 0
|
|
8684
|
-
},
|
|
8685
|
-
{
|
|
8686
|
-
name: "formula.functionList.SEC.functionParameter.number2.name",
|
|
8687
|
-
detail: "formula.functionList.SEC.functionParameter.number2.detail",
|
|
8688
|
-
example: "A1:A20",
|
|
8635
|
+
name: "formula.functionList.SEC.functionParameter.number.name",
|
|
8636
|
+
detail: "formula.functionList.SEC.functionParameter.number.detail",
|
|
8637
|
+
example: "30",
|
|
8689
8638
|
require: 1,
|
|
8690
8639
|
repeat: 0
|
|
8691
8640
|
}
|
|
@@ -8698,16 +8647,9 @@ const wu = [], Gu = [
|
|
|
8698
8647
|
abstract: "formula.functionList.SECH.abstract",
|
|
8699
8648
|
functionParameter: [
|
|
8700
8649
|
{
|
|
8701
|
-
name: "formula.functionList.SECH.functionParameter.
|
|
8702
|
-
detail: "formula.functionList.SECH.functionParameter.
|
|
8703
|
-
example: "
|
|
8704
|
-
require: 1,
|
|
8705
|
-
repeat: 0
|
|
8706
|
-
},
|
|
8707
|
-
{
|
|
8708
|
-
name: "formula.functionList.SECH.functionParameter.number2.name",
|
|
8709
|
-
detail: "formula.functionList.SECH.functionParameter.number2.detail",
|
|
8710
|
-
example: "A1:A20",
|
|
8650
|
+
name: "formula.functionList.SECH.functionParameter.number.name",
|
|
8651
|
+
detail: "formula.functionList.SECH.functionParameter.number.detail",
|
|
8652
|
+
example: "30",
|
|
8711
8653
|
require: 1,
|
|
8712
8654
|
repeat: 0
|
|
8713
8655
|
}
|
|
@@ -8816,16 +8758,9 @@ const wu = [], Gu = [
|
|
|
8816
8758
|
abstract: "formula.functionList.SQRT.abstract",
|
|
8817
8759
|
functionParameter: [
|
|
8818
8760
|
{
|
|
8819
|
-
name: "formula.functionList.SQRT.functionParameter.
|
|
8820
|
-
detail: "formula.functionList.SQRT.functionParameter.
|
|
8821
|
-
example: "
|
|
8822
|
-
require: 1,
|
|
8823
|
-
repeat: 0
|
|
8824
|
-
},
|
|
8825
|
-
{
|
|
8826
|
-
name: "formula.functionList.SQRT.functionParameter.number2.name",
|
|
8827
|
-
detail: "formula.functionList.SQRT.functionParameter.number2.detail",
|
|
8828
|
-
example: "A1:A20",
|
|
8761
|
+
name: "formula.functionList.SQRT.functionParameter.number.name",
|
|
8762
|
+
detail: "formula.functionList.SQRT.functionParameter.number.detail",
|
|
8763
|
+
example: "16",
|
|
8829
8764
|
require: 1,
|
|
8830
8765
|
repeat: 0
|
|
8831
8766
|
}
|
|
@@ -8838,16 +8773,9 @@ const wu = [], Gu = [
|
|
|
8838
8773
|
abstract: "formula.functionList.SQRTPI.abstract",
|
|
8839
8774
|
functionParameter: [
|
|
8840
8775
|
{
|
|
8841
|
-
name: "formula.functionList.SQRTPI.functionParameter.
|
|
8842
|
-
detail: "formula.functionList.SQRTPI.functionParameter.
|
|
8843
|
-
example: "
|
|
8844
|
-
require: 1,
|
|
8845
|
-
repeat: 0
|
|
8846
|
-
},
|
|
8847
|
-
{
|
|
8848
|
-
name: "formula.functionList.SQRTPI.functionParameter.number2.name",
|
|
8849
|
-
detail: "formula.functionList.SQRTPI.functionParameter.number2.detail",
|
|
8850
|
-
example: "A1:A20",
|
|
8776
|
+
name: "formula.functionList.SQRTPI.functionParameter.number.name",
|
|
8777
|
+
detail: "formula.functionList.SQRTPI.functionParameter.number.detail",
|
|
8778
|
+
example: "1",
|
|
8851
8779
|
require: 1,
|
|
8852
8780
|
repeat: 0
|
|
8853
8781
|
}
|
|
@@ -9009,16 +8937,16 @@ const wu = [], Gu = [
|
|
|
9009
8937
|
{
|
|
9010
8938
|
name: "formula.functionList.SUMSQ.functionParameter.number1.name",
|
|
9011
8939
|
detail: "formula.functionList.SUMSQ.functionParameter.number1.detail",
|
|
9012
|
-
example: "
|
|
8940
|
+
example: "3",
|
|
9013
8941
|
require: 1,
|
|
9014
8942
|
repeat: 0
|
|
9015
8943
|
},
|
|
9016
8944
|
{
|
|
9017
8945
|
name: "formula.functionList.SUMSQ.functionParameter.number2.name",
|
|
9018
8946
|
detail: "formula.functionList.SUMSQ.functionParameter.number2.detail",
|
|
9019
|
-
example: "
|
|
9020
|
-
require:
|
|
9021
|
-
repeat:
|
|
8947
|
+
example: "4",
|
|
8948
|
+
require: 0,
|
|
8949
|
+
repeat: 1
|
|
9022
8950
|
}
|
|
9023
8951
|
]
|
|
9024
8952
|
},
|
|
@@ -9029,16 +8957,16 @@ const wu = [], Gu = [
|
|
|
9029
8957
|
abstract: "formula.functionList.SUMX2MY2.abstract",
|
|
9030
8958
|
functionParameter: [
|
|
9031
8959
|
{
|
|
9032
|
-
name: "formula.functionList.SUMX2MY2.functionParameter.
|
|
9033
|
-
detail: "formula.functionList.SUMX2MY2.functionParameter.
|
|
9034
|
-
example: "
|
|
8960
|
+
name: "formula.functionList.SUMX2MY2.functionParameter.arrayX.name",
|
|
8961
|
+
detail: "formula.functionList.SUMX2MY2.functionParameter.arrayX.detail",
|
|
8962
|
+
example: "A2:A8",
|
|
9035
8963
|
require: 1,
|
|
9036
8964
|
repeat: 0
|
|
9037
8965
|
},
|
|
9038
8966
|
{
|
|
9039
|
-
name: "formula.functionList.SUMX2MY2.functionParameter.
|
|
9040
|
-
detail: "formula.functionList.SUMX2MY2.functionParameter.
|
|
9041
|
-
example: "
|
|
8967
|
+
name: "formula.functionList.SUMX2MY2.functionParameter.arrayY.name",
|
|
8968
|
+
detail: "formula.functionList.SUMX2MY2.functionParameter.arrayY.detail",
|
|
8969
|
+
example: "B2:B8",
|
|
9042
8970
|
require: 1,
|
|
9043
8971
|
repeat: 0
|
|
9044
8972
|
}
|
|
@@ -9051,16 +8979,16 @@ const wu = [], Gu = [
|
|
|
9051
8979
|
abstract: "formula.functionList.SUMX2PY2.abstract",
|
|
9052
8980
|
functionParameter: [
|
|
9053
8981
|
{
|
|
9054
|
-
name: "formula.functionList.SUMX2PY2.functionParameter.
|
|
9055
|
-
detail: "formula.functionList.SUMX2PY2.functionParameter.
|
|
9056
|
-
example: "
|
|
8982
|
+
name: "formula.functionList.SUMX2PY2.functionParameter.arrayX.name",
|
|
8983
|
+
detail: "formula.functionList.SUMX2PY2.functionParameter.arrayX.detail",
|
|
8984
|
+
example: "A2:A8",
|
|
9057
8985
|
require: 1,
|
|
9058
8986
|
repeat: 0
|
|
9059
8987
|
},
|
|
9060
8988
|
{
|
|
9061
|
-
name: "formula.functionList.SUMX2PY2.functionParameter.
|
|
9062
|
-
detail: "formula.functionList.SUMX2PY2.functionParameter.
|
|
9063
|
-
example: "
|
|
8989
|
+
name: "formula.functionList.SUMX2PY2.functionParameter.arrayY.name",
|
|
8990
|
+
detail: "formula.functionList.SUMX2PY2.functionParameter.arrayY.detail",
|
|
8991
|
+
example: "B2:B8",
|
|
9064
8992
|
require: 1,
|
|
9065
8993
|
repeat: 0
|
|
9066
8994
|
}
|
|
@@ -9073,16 +9001,16 @@ const wu = [], Gu = [
|
|
|
9073
9001
|
abstract: "formula.functionList.SUMXMY2.abstract",
|
|
9074
9002
|
functionParameter: [
|
|
9075
9003
|
{
|
|
9076
|
-
name: "formula.functionList.SUMXMY2.functionParameter.
|
|
9077
|
-
detail: "formula.functionList.SUMXMY2.functionParameter.
|
|
9078
|
-
example: "
|
|
9004
|
+
name: "formula.functionList.SUMXMY2.functionParameter.arrayX.name",
|
|
9005
|
+
detail: "formula.functionList.SUMXMY2.functionParameter.arrayX.detail",
|
|
9006
|
+
example: "A2:A8",
|
|
9079
9007
|
require: 1,
|
|
9080
9008
|
repeat: 0
|
|
9081
9009
|
},
|
|
9082
9010
|
{
|
|
9083
|
-
name: "formula.functionList.SUMXMY2.functionParameter.
|
|
9084
|
-
detail: "formula.functionList.SUMXMY2.functionParameter.
|
|
9085
|
-
example: "
|
|
9011
|
+
name: "formula.functionList.SUMXMY2.functionParameter.arrayY.name",
|
|
9012
|
+
detail: "formula.functionList.SUMXMY2.functionParameter.arrayY.detail",
|
|
9013
|
+
example: "B2:B8",
|
|
9086
9014
|
require: 1,
|
|
9087
9015
|
repeat: 0
|
|
9088
9016
|
}
|
|
@@ -12748,11 +12676,11 @@ const wu = [], Gu = [
|
|
|
12748
12676
|
}
|
|
12749
12677
|
], nm = [
|
|
12750
12678
|
...ku,
|
|
12751
|
-
...
|
|
12679
|
+
...Wu,
|
|
12752
12680
|
...zu,
|
|
12753
12681
|
...Zu,
|
|
12754
12682
|
...Qu,
|
|
12755
|
-
...
|
|
12683
|
+
...Yu,
|
|
12756
12684
|
...Ju,
|
|
12757
12685
|
...ju,
|
|
12758
12686
|
...$u,
|
|
@@ -12768,7 +12696,7 @@ var am = Object.defineProperty, im = Object.getOwnPropertyDescriptor, rm = (a, e
|
|
|
12768
12696
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
12769
12697
|
return n && i && am(e, t, i), i;
|
|
12770
12698
|
}, ia = (a, e) => (t, n) => e(t, n, a);
|
|
12771
|
-
const
|
|
12699
|
+
const Ye = Yt("formula-ui.description-service");
|
|
12772
12700
|
let Ft = class {
|
|
12773
12701
|
constructor(a = [], e, t) {
|
|
12774
12702
|
g(this, "_descriptions", []);
|
|
@@ -12886,7 +12814,7 @@ const om = "univer-formula-select-function-select", um = "univer-formula-select-
|
|
|
12886
12814
|
formulaSelectFunctionContent: lm
|
|
12887
12815
|
};
|
|
12888
12816
|
function dm(a) {
|
|
12889
|
-
const { onChange: e } = a, t = "-1", [n, i] =
|
|
12817
|
+
const { onChange: e } = a, t = "-1", [n, i] = Y(""), [o, u] = Y([]), [m, c] = Y(0), [f, d] = Y(t), [s, l] = Y(0), [P, A] = Y(null), S = ce(Ye), p = ce(we), N = iu(r, p);
|
|
12890
12818
|
N.unshift({
|
|
12891
12819
|
label: p.t("formula.moreFunctions.allFunctions"),
|
|
12892
12820
|
value: t
|
|
@@ -12900,19 +12828,19 @@ function dm(a) {
|
|
|
12900
12828
|
const h = (E) => {
|
|
12901
12829
|
if (n.trim() === "") return E;
|
|
12902
12830
|
const D = new RegExp(`(${n.toLocaleUpperCase()})`);
|
|
12903
|
-
return E.split(D).filter(Boolean).map((
|
|
12831
|
+
return E.split(D).filter(Boolean).map((W, Q) => W.match(D) ? /* @__PURE__ */ R.jsx("span", { className: Se.formulaSelectFunctionResultItemNameLight, children: W }, Q) : W);
|
|
12904
12832
|
}, M = (E) => {
|
|
12905
12833
|
if (o.length === 0) {
|
|
12906
|
-
|
|
12834
|
+
A(null);
|
|
12907
12835
|
return;
|
|
12908
12836
|
}
|
|
12909
12837
|
l(E);
|
|
12910
12838
|
const D = S.getFunctionInfo(o[E].name);
|
|
12911
12839
|
if (!D) {
|
|
12912
|
-
|
|
12840
|
+
A(null);
|
|
12913
12841
|
return;
|
|
12914
12842
|
}
|
|
12915
|
-
|
|
12843
|
+
A(D), e(D);
|
|
12916
12844
|
};
|
|
12917
12845
|
function x(E) {
|
|
12918
12846
|
d(E);
|
|
@@ -12967,23 +12895,23 @@ function dm(a) {
|
|
|
12967
12895
|
},
|
|
12968
12896
|
D
|
|
12969
12897
|
)) }),
|
|
12970
|
-
|
|
12971
|
-
/* @__PURE__ */ R.jsx(ze, { title:
|
|
12898
|
+
P && /* @__PURE__ */ R.jsxs("div", { className: Se.formulaSelectFunctionContent, children: [
|
|
12899
|
+
/* @__PURE__ */ R.jsx(ze, { title: P.functionName, value: P.description }),
|
|
12972
12900
|
/* @__PURE__ */ R.jsx(
|
|
12973
12901
|
ze,
|
|
12974
12902
|
{
|
|
12975
12903
|
title: p.t("formula.moreFunctions.syntax"),
|
|
12976
|
-
value: /* @__PURE__ */ R.jsx(ei, { prefix:
|
|
12904
|
+
value: /* @__PURE__ */ R.jsx(ei, { prefix: P.functionName, value: P.functionParameter })
|
|
12977
12905
|
}
|
|
12978
12906
|
),
|
|
12979
12907
|
/* @__PURE__ */ R.jsx(
|
|
12980
12908
|
ze,
|
|
12981
12909
|
{
|
|
12982
12910
|
title: p.t("formula.prompt.helpExample"),
|
|
12983
|
-
value: `${
|
|
12911
|
+
value: `${P.functionName}(${P.functionParameter.map((E) => E.example).join(",")})`
|
|
12984
12912
|
}
|
|
12985
12913
|
),
|
|
12986
|
-
|
|
12914
|
+
P.functionParameter && P.functionParameter.map((E, D) => /* @__PURE__ */ R.jsx(
|
|
12987
12915
|
ze,
|
|
12988
12916
|
{
|
|
12989
12917
|
title: E.name,
|
|
@@ -12995,7 +12923,7 @@ function dm(a) {
|
|
|
12995
12923
|
] });
|
|
12996
12924
|
}
|
|
12997
12925
|
function pm() {
|
|
12998
|
-
const a = wr(), [e, t] =
|
|
12926
|
+
const a = wr(), [e, t] = Y(!0), [n, i] = Y(!1), [o, u] = Y(null), m = ce(we), c = ce(Xe);
|
|
12999
12927
|
function f() {
|
|
13000
12928
|
t(!e), i(!n);
|
|
13001
12929
|
}
|
|
@@ -13056,19 +12984,19 @@ function Lm(a) {
|
|
|
13056
12984
|
}
|
|
13057
12985
|
],
|
|
13058
12986
|
hidden$: Zr(a, w.UNIVER_SHEET),
|
|
13059
|
-
disabled$: qa(a, { workbookTypes: [
|
|
12987
|
+
disabled$: qa(a, { workbookTypes: [Aa], worksheetTypes: [ba, Sa], rangeTypes: [Ea] })
|
|
13060
12988
|
};
|
|
13061
12989
|
}
|
|
13062
|
-
function
|
|
12990
|
+
function Pm(a) {
|
|
13063
12991
|
return {
|
|
13064
|
-
id:
|
|
12992
|
+
id: Wa.id,
|
|
13065
12993
|
title: "formula.insert.more",
|
|
13066
12994
|
positions: _n.id,
|
|
13067
12995
|
type: Cn.BUTTON
|
|
13068
12996
|
};
|
|
13069
12997
|
}
|
|
13070
|
-
function
|
|
13071
|
-
return a.get(
|
|
12998
|
+
function Am(a) {
|
|
12999
|
+
return a.get(Ae).getCurrentTypeOfUnit$(w.UNIVER_SHEET).pipe(
|
|
13072
13000
|
mo((n) => n ? a.get(Zn) ? new co((o) => o.next(!a.get(Zn).supportClipboard)) : Jn(!0) : Jn(!0))
|
|
13073
13001
|
);
|
|
13074
13002
|
}
|
|
@@ -13078,8 +13006,8 @@ function bm(a) {
|
|
|
13078
13006
|
type: Cn.BUTTON,
|
|
13079
13007
|
title: "formula.operation.pasteFormula",
|
|
13080
13008
|
positions: [Gr],
|
|
13081
|
-
disabled$:
|
|
13082
|
-
uo(qa(a, { workbookTypes: [
|
|
13009
|
+
disabled$: Am(a).pipe(
|
|
13010
|
+
uo(qa(a, { workbookTypes: [Aa], rangeTypes: [Ea], worksheetTypes: [Sa, ba] })),
|
|
13083
13011
|
Je(([e, t]) => e || t)
|
|
13084
13012
|
)
|
|
13085
13013
|
};
|
|
@@ -13089,7 +13017,7 @@ function Sm(a) {
|
|
|
13089
13017
|
return a.getContextValue(li) && a.getContextValue(di) && a.getContextValue(pi);
|
|
13090
13018
|
}
|
|
13091
13019
|
function ni(a) {
|
|
13092
|
-
return (ge(a == null ? void 0 : a.f) || He(a == null ? void 0 : a.si)) && typeof (a == null ? void 0 : a.v) == "string" &&
|
|
13020
|
+
return (ge(a == null ? void 0 : a.f) || He(a == null ? void 0 : a.si)) && typeof (a == null ? void 0 : a.v) == "string" && Yi.has(a.v) ? a.v : null;
|
|
13093
13021
|
}
|
|
13094
13022
|
const Kt = [
|
|
13095
13023
|
H.ARROW_DOWN,
|
|
@@ -13191,7 +13119,7 @@ let at = class extends re {
|
|
|
13191
13119
|
}
|
|
13192
13120
|
_registerMenus() {
|
|
13193
13121
|
const { menu: a = {} } = this._config;
|
|
13194
|
-
[Lm,
|
|
13122
|
+
[Lm, Pm, bm].forEach(
|
|
13195
13123
|
(e) => {
|
|
13196
13124
|
this.disposeWithMe(this._menuService.addMenuItem(this._injector.invoke(e), a));
|
|
13197
13125
|
}
|
|
@@ -13202,7 +13130,7 @@ let at = class extends re {
|
|
|
13202
13130
|
Ga,
|
|
13203
13131
|
wa,
|
|
13204
13132
|
_n,
|
|
13205
|
-
|
|
13133
|
+
Wa,
|
|
13206
13134
|
Ln,
|
|
13207
13135
|
pn,
|
|
13208
13136
|
ve,
|
|
@@ -13225,14 +13153,14 @@ let at = class extends re {
|
|
|
13225
13153
|
_registerComponents() {
|
|
13226
13154
|
this.disposeWithMe(
|
|
13227
13155
|
this._uiPartsService.registerComponent(eo.CONTENT, () => Li(gu, this._injector))
|
|
13228
|
-
), this._componentManager.register(
|
|
13156
|
+
), this._componentManager.register(Ya, pm);
|
|
13229
13157
|
}
|
|
13230
13158
|
_registerRenderModules() {
|
|
13231
13159
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, [vt]));
|
|
13232
13160
|
}
|
|
13233
13161
|
};
|
|
13234
13162
|
at = Mm([
|
|
13235
|
-
Le(
|
|
13163
|
+
Le(Pe.Ready, at),
|
|
13236
13164
|
Oe(1, U(xe)),
|
|
13237
13165
|
Oe(2, to),
|
|
13238
13166
|
Oe(3, le),
|
|
@@ -13251,6 +13179,7 @@ let it = class extends re {
|
|
|
13251
13179
|
super();
|
|
13252
13180
|
g(this, "_waitingCommandQueue", []);
|
|
13253
13181
|
g(this, "_executingDirtyData", {
|
|
13182
|
+
forceCalculation: !1,
|
|
13254
13183
|
dirtyRanges: [],
|
|
13255
13184
|
dirtyNameMap: {},
|
|
13256
13185
|
dirtyDefinedNameMap: {},
|
|
@@ -13299,15 +13228,16 @@ let it = class extends re {
|
|
|
13299
13228
|
const c = this._activeDirtyManagerService.get(m.id);
|
|
13300
13229
|
if (c == null)
|
|
13301
13230
|
continue;
|
|
13302
|
-
const f = c.getDirtyData(m), { dirtyRanges: d, dirtyNameMap: s, dirtyDefinedNameMap: l, dirtyUnitFeatureMap:
|
|
13303
|
-
d != null && t.push(...d), s != null && this._mergeDirtyNameMap(n, s), l != null && this._mergeDirtyNameMap(i, l),
|
|
13231
|
+
const f = c.getDirtyData(m), { dirtyRanges: d, dirtyNameMap: s, dirtyDefinedNameMap: l, dirtyUnitFeatureMap: P, dirtyUnitOtherFormulaMap: A } = f;
|
|
13232
|
+
d != null && t.push(...d), s != null && this._mergeDirtyNameMap(n, s), l != null && this._mergeDirtyNameMap(i, l), P != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(o, P), A != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, A);
|
|
13304
13233
|
}
|
|
13305
13234
|
return {
|
|
13306
13235
|
dirtyRanges: t,
|
|
13307
13236
|
dirtyNameMap: n,
|
|
13308
13237
|
dirtyDefinedNameMap: i,
|
|
13309
13238
|
dirtyUnitFeatureMap: o,
|
|
13310
|
-
dirtyUnitOtherFormulaMap: u
|
|
13239
|
+
dirtyUnitOtherFormulaMap: u,
|
|
13240
|
+
forceCalculation: !1
|
|
13311
13241
|
// numfmtItemMap,
|
|
13312
13242
|
};
|
|
13313
13243
|
}
|
|
@@ -13318,7 +13248,8 @@ let it = class extends re {
|
|
|
13318
13248
|
dirtyNameMap: i,
|
|
13319
13249
|
dirtyDefinedNameMap: o,
|
|
13320
13250
|
dirtyUnitFeatureMap: u,
|
|
13321
|
-
dirtyUnitOtherFormulaMap: m
|
|
13251
|
+
dirtyUnitOtherFormulaMap: m,
|
|
13252
|
+
forceCalculation: !1
|
|
13322
13253
|
};
|
|
13323
13254
|
}
|
|
13324
13255
|
_mergeDirtyNameMap(e, t) {
|
|
@@ -13345,21 +13276,21 @@ let it = class extends re {
|
|
|
13345
13276
|
this.disposeWithMe(
|
|
13346
13277
|
// eslint-disable-next-line complexity, max-lines-per-function
|
|
13347
13278
|
this._commandService.onCommandExecuted((f) => {
|
|
13348
|
-
if (f.id !==
|
|
13279
|
+
if (f.id !== Wi.id)
|
|
13349
13280
|
return;
|
|
13350
13281
|
const d = f.params;
|
|
13351
13282
|
if (d.stageInfo != null) {
|
|
13352
13283
|
const {
|
|
13353
13284
|
totalFormulasToCalculate: s,
|
|
13354
13285
|
completedFormulasCount: l,
|
|
13355
|
-
totalArrayFormulasToCalculate:
|
|
13356
|
-
completedArrayFormulasCount:
|
|
13286
|
+
totalArrayFormulasToCalculate: P,
|
|
13287
|
+
completedArrayFormulasCount: A,
|
|
13357
13288
|
stage: S
|
|
13358
13289
|
} = d.stageInfo;
|
|
13359
13290
|
S === Qt.START_DEPENDENCY ? (i++, n !== null && (clearTimeout(n), n = null), n = setTimeout(() => {
|
|
13360
13291
|
const p = o - this._formulaCalculationDoneCount + (u - this._arrayFormulaCalculationDoneCount) + 100;
|
|
13361
13292
|
this._progressService.insertTaskCount(p), this._progressService.pushTask({ count: 5 }), n = null;
|
|
13362
|
-
}, 1e3)) : S === Qt.CURRENTLY_CALCULATING ? (l === 1 && !m && (m = !0, n ? o += s : this._progressService.insertTaskCount(s)), n ? this._formulaCalculationDoneCount = l : e(l)) : S === Qt.CURRENTLY_CALCULATING_ARRAY_FORMULA && (
|
|
13293
|
+
}, 1e3)) : S === Qt.CURRENTLY_CALCULATING ? (l === 1 && !m && (m = !0, n ? o += s : this._progressService.insertTaskCount(s)), n ? this._formulaCalculationDoneCount = l : e(l)) : S === Qt.CURRENTLY_CALCULATING_ARRAY_FORMULA && (A === 1 && !c && (c = !0, n ? u += P : this._progressService.insertTaskCount(P)), n ? this._arrayFormulaCalculationDoneCount = A : t(A)), this._executionInProgressParams = d.stageInfo;
|
|
13363
13294
|
} else {
|
|
13364
13295
|
const s = d.functionsExecutedState;
|
|
13365
13296
|
let l = "";
|
|
@@ -13396,7 +13327,8 @@ let it = class extends re {
|
|
|
13396
13327
|
dirtyNameMap: {},
|
|
13397
13328
|
dirtyDefinedNameMap: {},
|
|
13398
13329
|
dirtyUnitFeatureMap: {},
|
|
13399
|
-
dirtyUnitOtherFormulaMap: {}
|
|
13330
|
+
dirtyUnitOtherFormulaMap: {},
|
|
13331
|
+
forceCalculation: !1
|
|
13400
13332
|
};
|
|
13401
13333
|
}
|
|
13402
13334
|
_initialExecuteFormula() {
|
|
@@ -13441,7 +13373,7 @@ let it = class extends re {
|
|
|
13441
13373
|
}
|
|
13442
13374
|
};
|
|
13443
13375
|
it = xm([
|
|
13444
|
-
Le(
|
|
13376
|
+
Le(Pe.Ready, it),
|
|
13445
13377
|
Qe(0, le),
|
|
13446
13378
|
Qe(1, bn),
|
|
13447
13379
|
Qe(2, U(lr)),
|
|
@@ -13489,18 +13421,18 @@ function Fm(a, e) {
|
|
|
13489
13421
|
subUnitId: m,
|
|
13490
13422
|
unitId: i,
|
|
13491
13423
|
cellValue: d.clone()
|
|
13492
|
-
},
|
|
13424
|
+
}, P = {
|
|
13493
13425
|
id: pe.id,
|
|
13494
13426
|
params: l
|
|
13495
13427
|
};
|
|
13496
|
-
n.push(
|
|
13497
|
-
const
|
|
13428
|
+
n.push(P);
|
|
13429
|
+
const A = {
|
|
13498
13430
|
subUnitId: m,
|
|
13499
13431
|
unitId: i,
|
|
13500
13432
|
cellValue: s.clone()
|
|
13501
13433
|
}, S = {
|
|
13502
13434
|
id: pe.id,
|
|
13503
|
-
params:
|
|
13435
|
+
params: A
|
|
13504
13436
|
};
|
|
13505
13437
|
t.push(S);
|
|
13506
13438
|
});
|
|
@@ -13546,8 +13478,8 @@ function Um(a, e, t) {
|
|
|
13546
13478
|
redoFormulaData: n,
|
|
13547
13479
|
undoFormulaData: i
|
|
13548
13480
|
};
|
|
13549
|
-
const s = a[u][m], l = e[u][m],
|
|
13550
|
-
return n = Zm(S,
|
|
13481
|
+
const s = a[u][m], l = e[u][m], P = new z(s || {}), A = new z(l || {}), S = Bm(P, o, f, d, c);
|
|
13482
|
+
return n = Zm(S, P, A), i = Jm(S, P), {
|
|
13551
13483
|
redoFormulaData: n,
|
|
13552
13484
|
undoFormulaData: i
|
|
13553
13485
|
};
|
|
@@ -13556,7 +13488,7 @@ function Bm(a, e, t, n, i) {
|
|
|
13556
13488
|
const o = [];
|
|
13557
13489
|
return a.forValue((u, m, c) => {
|
|
13558
13490
|
if (c == null || !ec(c)) return !0;
|
|
13559
|
-
const f =
|
|
13491
|
+
const f = Pi(u, m);
|
|
13560
13492
|
let d = null, s = !1;
|
|
13561
13493
|
if ([
|
|
13562
13494
|
0,
|
|
@@ -13590,10 +13522,10 @@ function Hm(a, e, t) {
|
|
|
13590
13522
|
let n = null, i = !1;
|
|
13591
13523
|
switch (a) {
|
|
13592
13524
|
case 3:
|
|
13593
|
-
n =
|
|
13525
|
+
n = Ym(e, t), i = !0;
|
|
13594
13526
|
break;
|
|
13595
13527
|
case 4:
|
|
13596
|
-
n =
|
|
13528
|
+
n = Wm(e, t), i = !0;
|
|
13597
13529
|
break;
|
|
13598
13530
|
case 5:
|
|
13599
13531
|
n = Km(e, t);
|
|
@@ -13646,7 +13578,7 @@ function Xm(a, e, t) {
|
|
|
13646
13578
|
);
|
|
13647
13579
|
return $(n, t);
|
|
13648
13580
|
}
|
|
13649
|
-
function
|
|
13581
|
+
function Ym(a, e) {
|
|
13650
13582
|
const t = ha(
|
|
13651
13583
|
{
|
|
13652
13584
|
id: k.InsertRowCommandId,
|
|
@@ -13656,7 +13588,7 @@ function Wm(a, e) {
|
|
|
13656
13588
|
);
|
|
13657
13589
|
return $(t, e);
|
|
13658
13590
|
}
|
|
13659
|
-
function
|
|
13591
|
+
function Wm(a, e) {
|
|
13660
13592
|
const t = _a(
|
|
13661
13593
|
{
|
|
13662
13594
|
id: k.InsertColCommandId,
|
|
@@ -13924,10 +13856,10 @@ let rt = class extends re {
|
|
|
13924
13856
|
case br.id:
|
|
13925
13857
|
t = this._handleRemoveRow(a);
|
|
13926
13858
|
break;
|
|
13927
|
-
case
|
|
13859
|
+
case Ar.id:
|
|
13928
13860
|
t = this._handleRemoveCol(a);
|
|
13929
13861
|
break;
|
|
13930
|
-
case
|
|
13862
|
+
case Pr.id:
|
|
13931
13863
|
t = this._handleDeleteRangeMoveUp(a);
|
|
13932
13864
|
break;
|
|
13933
13865
|
case Lr.id:
|
|
@@ -14151,10 +14083,10 @@ let rt = class extends re {
|
|
|
14151
14083
|
ie.isDefine(i[u]) || (i[u] = {}), ie.isDefine(o[u]) || (o[u] = {});
|
|
14152
14084
|
for (const f of c) {
|
|
14153
14085
|
const d = new z(m[f] || {}), s = new z();
|
|
14154
|
-
d.forValue((l,
|
|
14086
|
+
d.forValue((l, P, A) => {
|
|
14155
14087
|
var C;
|
|
14156
|
-
if (!
|
|
14157
|
-
const { f: S, x: p, y: N, si: I } =
|
|
14088
|
+
if (!A) return !0;
|
|
14089
|
+
const { f: S, x: p, y: N, si: I } = A, L = this._lexerTreeBuilder.sequenceNodesBuilder(S);
|
|
14158
14090
|
if (L == null)
|
|
14159
14091
|
return !0;
|
|
14160
14092
|
let h = !1;
|
|
@@ -14163,7 +14095,7 @@ let rt = class extends re {
|
|
|
14163
14095
|
const F = L[y];
|
|
14164
14096
|
if (typeof F == "string" || F.nodeType !== ue.REFERENCE)
|
|
14165
14097
|
continue;
|
|
14166
|
-
const { token: E } = F, D = De(E), { range: Z, sheetName:
|
|
14098
|
+
const { token: E } = F, D = De(E), { range: Z, sheetName: W, unitId: Q } = D, be = Q == null || Q.length === 0 ? u : Q, ne = (C = e == null ? void 0 : e[be]) == null ? void 0 : C[W];
|
|
14167
14099
|
if (!this._checkIsSameUnitAndSheet(
|
|
14168
14100
|
t.unitId,
|
|
14169
14101
|
t.sheetId,
|
|
@@ -14177,14 +14109,14 @@ let rt = class extends re {
|
|
|
14177
14109
|
range: Z,
|
|
14178
14110
|
sheetId: ne,
|
|
14179
14111
|
unitId: Q,
|
|
14180
|
-
sheetName:
|
|
14112
|
+
sheetName: W,
|
|
14181
14113
|
refOffsetX: p || 0,
|
|
14182
14114
|
refOffsetY: N || 0
|
|
14183
14115
|
};
|
|
14184
14116
|
let se = null;
|
|
14185
14117
|
if (t.type === 11) {
|
|
14186
14118
|
const {
|
|
14187
|
-
unitId:
|
|
14119
|
+
unitId: We,
|
|
14188
14120
|
sheetId: Ke,
|
|
14189
14121
|
sheetName: ke
|
|
14190
14122
|
} = t;
|
|
@@ -14197,7 +14129,7 @@ let rt = class extends re {
|
|
|
14197
14129
|
});
|
|
14198
14130
|
} else if (t.type === 12) {
|
|
14199
14131
|
const {
|
|
14200
|
-
unitId:
|
|
14132
|
+
unitId: We,
|
|
14201
14133
|
sheetId: Ke,
|
|
14202
14134
|
sheetName: ke
|
|
14203
14135
|
} = t;
|
|
@@ -14219,9 +14151,9 @@ let rt = class extends re {
|
|
|
14219
14151
|
if (!h)
|
|
14220
14152
|
return !0;
|
|
14221
14153
|
const x = this._updateRefOffset(L, M, p, N);
|
|
14222
|
-
p !== void 0 && p > 0 || N !== void 0 && N > 0 ? s.setValue(l,
|
|
14154
|
+
p !== void 0 && p > 0 || N !== void 0 && N > 0 ? s.setValue(l, P, {
|
|
14223
14155
|
f: `=${xt(x)}`
|
|
14224
|
-
}) : s.setValue(l,
|
|
14156
|
+
}) : s.setValue(l, P, {
|
|
14225
14157
|
f: `=${xt(x)}`,
|
|
14226
14158
|
si: I
|
|
14227
14159
|
});
|
|
@@ -14235,8 +14167,8 @@ let rt = class extends re {
|
|
|
14235
14167
|
range: d,
|
|
14236
14168
|
sheetId: s,
|
|
14237
14169
|
unitId: l,
|
|
14238
|
-
sheetName:
|
|
14239
|
-
refOffsetX:
|
|
14170
|
+
sheetName: P,
|
|
14171
|
+
refOffsetX: A,
|
|
14240
14172
|
refOffsetY: S
|
|
14241
14173
|
} = a;
|
|
14242
14174
|
if (!this._checkIsSameUnitAndSheet(
|
|
@@ -14248,7 +14180,7 @@ let rt = class extends re {
|
|
|
14248
14180
|
s
|
|
14249
14181
|
))
|
|
14250
14182
|
return;
|
|
14251
|
-
const p = Ce.moveOffset(d,
|
|
14183
|
+
const p = Ce.moveOffset(d, A, S);
|
|
14252
14184
|
let N = null;
|
|
14253
14185
|
if (i === 0) {
|
|
14254
14186
|
if (c == null || f == null)
|
|
@@ -14408,7 +14340,7 @@ let rt = class extends re {
|
|
|
14408
14340
|
if (N != null)
|
|
14409
14341
|
return Ct({
|
|
14410
14342
|
range: N,
|
|
14411
|
-
sheetName:
|
|
14343
|
+
sheetName: P,
|
|
14412
14344
|
unitId: l
|
|
14413
14345
|
});
|
|
14414
14346
|
}
|
|
@@ -14431,11 +14363,11 @@ let rt = class extends re {
|
|
|
14431
14363
|
i.push(m);
|
|
14432
14364
|
continue;
|
|
14433
14365
|
}
|
|
14434
|
-
const { token: c } = m, f = De(c), { range: d, sheetName: s, unitId: l } = f,
|
|
14366
|
+
const { token: c } = m, f = De(c), { range: d, sheetName: s, unitId: l } = f, P = Ce.moveOffset(d, t, n);
|
|
14435
14367
|
i.push({
|
|
14436
14368
|
...m,
|
|
14437
14369
|
token: Ct({
|
|
14438
|
-
range:
|
|
14370
|
+
range: P,
|
|
14439
14371
|
unitId: l,
|
|
14440
14372
|
sheetName: s
|
|
14441
14373
|
})
|
|
@@ -14482,8 +14414,8 @@ let rt = class extends re {
|
|
|
14482
14414
|
startRow: d,
|
|
14483
14415
|
startColumn: s,
|
|
14484
14416
|
endRow: l,
|
|
14485
|
-
endColumn:
|
|
14486
|
-
rangeType:
|
|
14417
|
+
endColumn: P,
|
|
14418
|
+
rangeType: A = fe.NORMAL
|
|
14487
14419
|
} = t, { startRow: S, startColumn: p, endRow: N, endColumn: I } = n, {
|
|
14488
14420
|
startRow: L,
|
|
14489
14421
|
endRow: h,
|
|
@@ -14530,9 +14462,9 @@ let rt = class extends re {
|
|
|
14530
14462
|
else if (f < F)
|
|
14531
14463
|
E.startColumn = c;
|
|
14532
14464
|
else if (f >= F && p <= F)
|
|
14533
|
-
E.startColumn =
|
|
14465
|
+
E.startColumn = P + 1, E.endColumn = f;
|
|
14534
14466
|
else if (p > F)
|
|
14535
|
-
E.endColumn -=
|
|
14467
|
+
E.endColumn -= P + 1 - v;
|
|
14536
14468
|
else
|
|
14537
14469
|
return;
|
|
14538
14470
|
else
|
|
@@ -14551,7 +14483,7 @@ let rt = class extends re {
|
|
|
14551
14483
|
return;
|
|
14552
14484
|
else
|
|
14553
14485
|
return;
|
|
14554
|
-
else a === 4 ? (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f) : s <= v &&
|
|
14486
|
+
else a === 4 ? (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f) : s <= v && P >= F ? S > y ? E.endRow -= l - d + 1 : N < C && (E.startRow += l - d + 1) : d <= C && l >= y ? p > F ? E.endColumn -= P - s + 1 : I < v && (E.startColumn += P - s + 1) : ((p <= x + 1 && I >= F || p <= v && I >= M - 1) && S <= C && N >= y || (S <= h + 1 && N >= y || S <= C && N >= L - 1) && p <= v && I >= F) && (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f);
|
|
14555
14487
|
return E;
|
|
14556
14488
|
}
|
|
14557
14489
|
_getCurrentSheetInfo() {
|
|
@@ -14564,8 +14496,8 @@ let rt = class extends re {
|
|
|
14564
14496
|
}
|
|
14565
14497
|
};
|
|
14566
14498
|
rt = ac([
|
|
14567
|
-
Le(
|
|
14568
|
-
Ne(0,
|
|
14499
|
+
Le(Pe.Ready, rt),
|
|
14500
|
+
Ne(0, Ae),
|
|
14569
14501
|
Ne(1, le),
|
|
14570
14502
|
Ne(2, U(lt)),
|
|
14571
14503
|
Ne(3, U(Ge)),
|
|
@@ -14579,7 +14511,7 @@ var ic = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, oc = (a, e
|
|
|
14579
14511
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
14580
14512
|
return n && i && ic(e, t, i), i;
|
|
14581
14513
|
}, uc = (a, e) => (t, n) => e(t, n, a);
|
|
14582
|
-
const Dn = "sheets-formula.remote-register-function.service", ii =
|
|
14514
|
+
const Dn = "sheets-formula.remote-register-function.service", ii = Yt(Dn);
|
|
14583
14515
|
let qt = class {
|
|
14584
14516
|
constructor(a) {
|
|
14585
14517
|
this._functionService = a;
|
|
@@ -14604,7 +14536,7 @@ var cc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, sc = (a, e
|
|
|
14604
14536
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
14605
14537
|
return n && i && cc(e, t, i), i;
|
|
14606
14538
|
}, It = (a, e) => (t, n) => e(t, n, a);
|
|
14607
|
-
const ri =
|
|
14539
|
+
const ri = Yt(
|
|
14608
14540
|
"sheets-formula.register-function-service"
|
|
14609
14541
|
);
|
|
14610
14542
|
let Ut = class extends re {
|
|
@@ -14643,9 +14575,9 @@ let Ut = class extends re {
|
|
|
14643
14575
|
};
|
|
14644
14576
|
Ut = sc([
|
|
14645
14577
|
It(0, U(we)),
|
|
14646
|
-
It(1, U(
|
|
14578
|
+
It(1, U(Ye)),
|
|
14647
14579
|
It(2, Sn),
|
|
14648
|
-
It(3,
|
|
14580
|
+
It(3, Ai(ii))
|
|
14649
14581
|
], Ut);
|
|
14650
14582
|
var lc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, pc = (a, e, t, n) => {
|
|
14651
14583
|
for (var i = n > 1 ? void 0 : n ? dc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
|
|
@@ -14769,14 +14701,14 @@ let ot = class extends re {
|
|
|
14769
14701
|
}
|
|
14770
14702
|
};
|
|
14771
14703
|
ot = pc([
|
|
14772
|
-
Le(
|
|
14773
|
-
Rt(0,
|
|
14704
|
+
Le(Pe.Rendered, ot),
|
|
14705
|
+
Rt(0, Ye),
|
|
14774
14706
|
Rt(1, sa),
|
|
14775
|
-
Rt(2,
|
|
14707
|
+
Rt(2, Ae),
|
|
14776
14708
|
Rt(3, le)
|
|
14777
14709
|
], ot);
|
|
14778
|
-
var Lc = Object.defineProperty,
|
|
14779
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
14710
|
+
var Lc = Object.defineProperty, Pc = Object.getOwnPropertyDescriptor, Ac = (a, e, t, n) => {
|
|
14711
|
+
for (var i = n > 1 ? void 0 : n ? Pc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
|
|
14780
14712
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
14781
14713
|
return n && i && Lc(e, t, i), i;
|
|
14782
14714
|
}, on = (a, e) => (t, n) => e(t, n, a);
|
|
@@ -14786,19 +14718,19 @@ let Bt = class extends re {
|
|
|
14786
14718
|
}
|
|
14787
14719
|
registerFormula(a, e) {
|
|
14788
14720
|
const t = /* @__PURE__ */ new Map(), n = this._lexerTreeBuilder.sequenceNodesBuilder(a), i = new mt(), o = (u) => {
|
|
14789
|
-
const m = this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), c = m.getActiveSheet(), f = m.getUnitId(), d = c == null ? void 0 : c.getSheetId(), s = n == null ? void 0 : n.map((
|
|
14790
|
-
if (typeof
|
|
14791
|
-
const
|
|
14792
|
-
if (
|
|
14793
|
-
return
|
|
14794
|
-
const S = Dr(
|
|
14721
|
+
const m = this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), c = m.getActiveSheet(), f = m.getUnitId(), d = c == null ? void 0 : c.getSheetId(), s = n == null ? void 0 : n.map((P) => {
|
|
14722
|
+
if (typeof P == "object" && P.nodeType === ue.REFERENCE) {
|
|
14723
|
+
const A = t.get(P.token);
|
|
14724
|
+
if (A.unitId && A.unitId !== f && A.subUnitId && A.subUnitId !== d)
|
|
14725
|
+
return P;
|
|
14726
|
+
const S = Dr(A.range, u);
|
|
14795
14727
|
let p = "";
|
|
14796
|
-
return
|
|
14797
|
-
...
|
|
14728
|
+
return A.unitId && A.sheetName ? p = Ki(A.unitId, A.sheetName, A.range) : A.sheetName ? p = ki(A.sheetName, A.range) : p = S ? ct(S) : K.ERROR, {
|
|
14729
|
+
...P,
|
|
14798
14730
|
token: p
|
|
14799
14731
|
};
|
|
14800
14732
|
} else
|
|
14801
|
-
return
|
|
14733
|
+
return P;
|
|
14802
14734
|
}), l = s && xt(s);
|
|
14803
14735
|
return e(`=${l}`);
|
|
14804
14736
|
};
|
|
@@ -14807,21 +14739,21 @@ let Bt = class extends re {
|
|
|
14807
14739
|
const m = De(u.token), { range: c, unitId: f, sheetName: d } = m, s = f ? this._univerInstanceService.getUniverSheetInstance(f) : this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), l = d ? s == null ? void 0 : s.getSheetBySheetName(d) : s == null ? void 0 : s.getActiveSheet();
|
|
14808
14740
|
if (!l)
|
|
14809
14741
|
return;
|
|
14810
|
-
const
|
|
14742
|
+
const P = l.getSheetId(), A = {
|
|
14811
14743
|
unitId: f,
|
|
14812
|
-
subUnitId:
|
|
14744
|
+
subUnitId: P,
|
|
14813
14745
|
range: c,
|
|
14814
14746
|
sheetName: d
|
|
14815
14747
|
};
|
|
14816
|
-
t.set(u.token,
|
|
14748
|
+
t.set(u.token, A), i.add(this._refRangeService.registerRefRange(c, o, f, P));
|
|
14817
14749
|
}
|
|
14818
14750
|
}), i;
|
|
14819
14751
|
}
|
|
14820
14752
|
};
|
|
14821
|
-
Bt =
|
|
14753
|
+
Bt = Ac([
|
|
14822
14754
|
on(0, U(Mr)),
|
|
14823
14755
|
on(1, U(lt)),
|
|
14824
|
-
on(2,
|
|
14756
|
+
on(2, Ae)
|
|
14825
14757
|
], Bt);
|
|
14826
14758
|
var Ze = /* @__PURE__ */ ((a) => (a[a.NOT_REGISTER = 1] = "NOT_REGISTER", a[a.SUCCESS = 2] = "SUCCESS", a[a.WAIT = 3] = "WAIT", a[a.ERROR = 4] = "ERROR", a))(Ze || {}), bc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, Ec = (a, e, t, n) => {
|
|
14827
14759
|
for (var i = n > 1 ? void 0 : n ? Sc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
|
|
@@ -14889,12 +14821,12 @@ let Vt = class extends re {
|
|
|
14889
14821
|
const f = this._ensureCacheMap(o, c), d = u[c], s = [];
|
|
14890
14822
|
m[c] = s;
|
|
14891
14823
|
for (const l in d) {
|
|
14892
|
-
const
|
|
14824
|
+
const P = d[l];
|
|
14893
14825
|
if (f.has(l)) {
|
|
14894
|
-
const
|
|
14895
|
-
|
|
14896
|
-
S(
|
|
14897
|
-
}),
|
|
14826
|
+
const A = f.get(l);
|
|
14827
|
+
A.result = P, A.status = Ze.SUCCESS, A.callbacks.forEach((S) => {
|
|
14828
|
+
S(P);
|
|
14829
|
+
}), A.callbacks.clear(), s.push(A);
|
|
14898
14830
|
}
|
|
14899
14831
|
}
|
|
14900
14832
|
}
|
|
@@ -14963,7 +14895,7 @@ const mn = "SHEET_FORMULA_ALERT", Nc = {
|
|
|
14963
14895
|
[K.CONNECT]: "connect",
|
|
14964
14896
|
[K.NULL]: "null"
|
|
14965
14897
|
};
|
|
14966
|
-
let
|
|
14898
|
+
let Pn = class extends re {
|
|
14967
14899
|
constructor(a, e, t, n) {
|
|
14968
14900
|
super(), this._context = a, this._hoverManagerService = e, this._cellAlertManagerService = t, this._localeService = n, this._init();
|
|
14969
14901
|
}
|
|
@@ -15000,11 +14932,11 @@ let An = class extends re {
|
|
|
15000
14932
|
}));
|
|
15001
14933
|
}
|
|
15002
14934
|
};
|
|
15003
|
-
|
|
15004
|
-
un(1, U(
|
|
15005
|
-
un(2, U(
|
|
14935
|
+
Pn = Rc([
|
|
14936
|
+
un(1, U(Yr)),
|
|
14937
|
+
un(2, U(Wr)),
|
|
15006
14938
|
un(3, U(we))
|
|
15007
|
-
],
|
|
14939
|
+
], Pn);
|
|
15008
14940
|
var Cc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, _c = (a, e, t, n) => {
|
|
15009
14941
|
for (var i = n > 1 ? void 0 : n ? hc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15010
14942
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
@@ -15022,7 +14954,7 @@ let ut = class extends Si {
|
|
|
15022
14954
|
}
|
|
15023
14955
|
_init() {
|
|
15024
14956
|
this.disposeWithMe(this._sheetInterceptorService.intercept(
|
|
15025
|
-
|
|
14957
|
+
Pa.CELL_CONTENT,
|
|
15026
14958
|
{
|
|
15027
14959
|
handler: (a, e, t) => ni(a) ? t({
|
|
15028
14960
|
...a,
|
|
@@ -15037,7 +14969,7 @@ let ut = class extends Si {
|
|
|
15037
14969
|
}
|
|
15038
14970
|
};
|
|
15039
14971
|
ut = _c([
|
|
15040
|
-
Le(
|
|
14972
|
+
Le(Pe.Rendered, ut),
|
|
15041
14973
|
Oc(0, U(Tn))
|
|
15042
14974
|
], ut);
|
|
15043
14975
|
var Dc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor, xc = (a, e, t, n) => {
|
|
@@ -15169,7 +15101,7 @@ var yc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, qc = (a, e
|
|
|
15169
15101
|
}, ae = (a, e) => (t, n) => e(t, n, a);
|
|
15170
15102
|
const Uc = [Ti, Ii];
|
|
15171
15103
|
let Mt = class extends re {
|
|
15172
|
-
constructor(e, t, n, i, o, u, m, c, f, d, s, l,
|
|
15104
|
+
constructor(e, t, n, i, o, u, m, c, f, d, s, l, P, A, S) {
|
|
15173
15105
|
super();
|
|
15174
15106
|
g(this, "_formulaRefColors", []);
|
|
15175
15107
|
g(this, "_previousSequenceNodes");
|
|
@@ -15188,7 +15120,7 @@ let Mt = class extends re {
|
|
|
15188
15120
|
g(this, "_currentlyWorkingRefRenderer", null);
|
|
15189
15121
|
g(this, "_selectionsChangeDisposables");
|
|
15190
15122
|
g(this, "_isSelectingMode", !1);
|
|
15191
|
-
this._commandService = e, this._contextService = t, this._textSelectionRenderManager = n, this._editorBridgeService = i, this._formulaPromptService = o, this._lexerTreeBuilder = u, this._renderManagerService = m, this._themeService = c, this._sheetsSelectionsService = f, this._refSelectionsService = d, this._univerInstanceService = s, this._descriptionService = l, this._textSelectionManagerService =
|
|
15123
|
+
this._commandService = e, this._contextService = t, this._textSelectionRenderManager = n, this._editorBridgeService = i, this._formulaPromptService = o, this._lexerTreeBuilder = u, this._renderManagerService = m, this._themeService = c, this._sheetsSelectionsService = f, this._refSelectionsService = d, this._univerInstanceService = s, this._descriptionService = l, this._textSelectionManagerService = P, this._contextMenuService = A, this._editorService = S, this._initialize();
|
|
15192
15124
|
}
|
|
15193
15125
|
// TODO@wzhudev: selection render service would be a render unit, we we cannot
|
|
15194
15126
|
// easily access it here.
|
|
@@ -15344,15 +15276,15 @@ let Mt = class extends re {
|
|
|
15344
15276
|
c.token = e, c.endIndex += m, i[o] = c;
|
|
15345
15277
|
const f = this._descriptionService.hasDefinedNameDescription(e), d = this._descriptionService.isFormulaDefinedName(e), s = e.length + 1, l = !f || d;
|
|
15346
15278
|
l && i.splice(o + 1, 0, qe.OPEN_BRACKET);
|
|
15347
|
-
for (let
|
|
15348
|
-
const p = i[
|
|
15279
|
+
for (let A = o + 2, S = i.length; A < S; A++) {
|
|
15280
|
+
const p = i[A];
|
|
15349
15281
|
if (typeof p == "string")
|
|
15350
15282
|
continue;
|
|
15351
15283
|
const N = { ...p };
|
|
15352
|
-
N.startIndex += s, N.endIndex += s, i[
|
|
15284
|
+
N.startIndex += s, N.endIndex += s, i[A] = N;
|
|
15353
15285
|
}
|
|
15354
|
-
let
|
|
15355
|
-
l && (
|
|
15286
|
+
let P = c.endIndex + 1;
|
|
15287
|
+
l && (P += 1), this._syncToEditor(i, P, void 0, !0, !1);
|
|
15356
15288
|
})
|
|
15357
15289
|
);
|
|
15358
15290
|
}
|
|
@@ -15512,21 +15444,21 @@ let Mt = class extends re {
|
|
|
15512
15444
|
const d = e[c];
|
|
15513
15445
|
if (typeof d == "string" || this._descriptionService.hasDefinedNameDescription(d.token.trim()))
|
|
15514
15446
|
continue;
|
|
15515
|
-
const { startIndex: s, endIndex: l, nodeType:
|
|
15447
|
+
const { startIndex: s, endIndex: l, nodeType: P, token: A } = d;
|
|
15516
15448
|
let S = "";
|
|
15517
|
-
if (
|
|
15518
|
-
if (i.has(
|
|
15519
|
-
S = i.get(
|
|
15449
|
+
if (P === ue.REFERENCE) {
|
|
15450
|
+
if (i.has(A))
|
|
15451
|
+
S = i.get(A);
|
|
15520
15452
|
else {
|
|
15521
15453
|
const p = o % this._formulaRefColors.length;
|
|
15522
|
-
S = this._formulaRefColors[p], i.set(
|
|
15454
|
+
S = this._formulaRefColors[p], i.set(A, S), o++;
|
|
15523
15455
|
}
|
|
15524
15456
|
n.push({
|
|
15525
15457
|
refIndex: c,
|
|
15526
15458
|
themeColor: S,
|
|
15527
|
-
token:
|
|
15459
|
+
token: A
|
|
15528
15460
|
});
|
|
15529
|
-
} else
|
|
15461
|
+
} else P === ue.NUMBER ? S = this._numberColor : P === ue.STRING ? S = this._stringColor : P === ue.ARRAY && (S = this._stringColor);
|
|
15530
15462
|
S && S.length > 0 && t.push({
|
|
15531
15463
|
st: s + 1 - u,
|
|
15532
15464
|
ed: l + 2 - u,
|
|
@@ -15551,8 +15483,8 @@ let Mt = class extends re {
|
|
|
15551
15483
|
const [n, i] = e.getLocation(), { unitId: o, sheetId: u } = this._getCurrentUnitIdAndSheetId(), m = n === o && i === u, f = this._univerInstanceService.getUniverSheetInstance(n).getSheetBySheetId(i);
|
|
15552
15484
|
let d = null;
|
|
15553
15485
|
const s = [];
|
|
15554
|
-
for (let l = 0,
|
|
15555
|
-
const
|
|
15486
|
+
for (let l = 0, P = t.length; l < P; l++) {
|
|
15487
|
+
const A = t[l], { themeColor: S, token: p, refIndex: N } = A, I = De(p), { unitId: L, sheetName: h, range: M } = I;
|
|
15556
15488
|
if (!m && (!L || !h))
|
|
15557
15489
|
continue;
|
|
15558
15490
|
const x = xr(M, f.getRowCount(), f.getColumnCount());
|
|
@@ -15578,8 +15510,8 @@ let Mt = class extends re {
|
|
|
15578
15510
|
_getPrimary(e, t, n) {
|
|
15579
15511
|
var s;
|
|
15580
15512
|
const i = (s = this._insertSelections.find((l) => {
|
|
15581
|
-
const { startRow:
|
|
15582
|
-
return
|
|
15513
|
+
const { startRow: P, startColumn: A, endRow: S, endColumn: p } = l.range;
|
|
15514
|
+
return P === e.startRow && A === e.startColumn && S === e.endRow && p === e.endColumn || P === e.startRow && A === e.startColumn && e.startRow === e.endRow && e.startColumn === e.endColumn;
|
|
15583
15515
|
})) == null ? void 0 : s.primary;
|
|
15584
15516
|
if (i == null)
|
|
15585
15517
|
return;
|
|
@@ -15637,8 +15569,8 @@ let Mt = class extends re {
|
|
|
15637
15569
|
const { unitId: i, sheetId: o } = e.range, { openUnitId: u, openSheetId: m } = this._getEditorOpenedForSheet();
|
|
15638
15570
|
i !== u && i && (t = i), o !== m && i && o && (n = this._getSheetNameById(i, o));
|
|
15639
15571
|
const { range: c, primary: f } = e;
|
|
15640
|
-
let { startRow: d, endRow: s, startColumn: l, endColumn:
|
|
15641
|
-
const { startAbsoluteRefType:
|
|
15572
|
+
let { startRow: d, endRow: s, startColumn: l, endColumn: P } = c;
|
|
15573
|
+
const { startAbsoluteRefType: A, endAbsoluteRefType: S, rangeType: p } = c;
|
|
15642
15574
|
if (f) {
|
|
15643
15575
|
const {
|
|
15644
15576
|
isMerged: N,
|
|
@@ -15648,7 +15580,7 @@ let Mt = class extends re {
|
|
|
15648
15580
|
startColumn: M,
|
|
15649
15581
|
endColumn: x
|
|
15650
15582
|
} = f;
|
|
15651
|
-
(N || I) && L === d && M === l && h === s && x ===
|
|
15583
|
+
(N || I) && L === d && M === l && h === s && x === P && (d = L, l = M, s = L, P = M);
|
|
15652
15584
|
}
|
|
15653
15585
|
return Ct({
|
|
15654
15586
|
sheetName: n,
|
|
@@ -15657,9 +15589,9 @@ let Mt = class extends re {
|
|
|
15657
15589
|
startRow: d,
|
|
15658
15590
|
endRow: s,
|
|
15659
15591
|
startColumn: l,
|
|
15660
|
-
endColumn:
|
|
15592
|
+
endColumn: P,
|
|
15661
15593
|
rangeType: p,
|
|
15662
|
-
startAbsoluteRefType:
|
|
15594
|
+
startAbsoluteRefType: A,
|
|
15663
15595
|
endAbsoluteRefType: S
|
|
15664
15596
|
}
|
|
15665
15597
|
});
|
|
@@ -15681,17 +15613,17 @@ let Mt = class extends re {
|
|
|
15681
15613
|
this._currentInsertRefStringIndex = t, n == null && (n = this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()), this._fitEditorSize();
|
|
15682
15614
|
const l = this._editorService.getEditor(n);
|
|
15683
15615
|
l != null && l.isSingleChoice() ? (u = u.split(",")[0], this._selectionRenderService.setSingleSelectionEnabled(!0)) : this._selectionRenderService.setSingleSelectionEnabled(!1);
|
|
15684
|
-
let
|
|
15685
|
-
(!l || !l.onlyInputRange()) && (
|
|
15616
|
+
let P = u, A = 1;
|
|
15617
|
+
(!l || !l.onlyInputRange()) && (P = `${zt.EQUALS}${u}`, A = 0), i ? (this._commandService.executeCommand(Lo.id, {
|
|
15686
15618
|
unitId: n,
|
|
15687
15619
|
body: {
|
|
15688
|
-
dataStream:
|
|
15620
|
+
dataStream: P,
|
|
15689
15621
|
textRuns: m
|
|
15690
15622
|
},
|
|
15691
15623
|
textRanges: [
|
|
15692
15624
|
{
|
|
15693
|
-
startOffset: t + 1 -
|
|
15694
|
-
endOffset: t + 1 -
|
|
15625
|
+
startOffset: t + 1 - A,
|
|
15626
|
+
endOffset: t + 1 - A,
|
|
15695
15627
|
collapsed: d,
|
|
15696
15628
|
style: s
|
|
15697
15629
|
}
|
|
@@ -15700,15 +15632,15 @@ let Mt = class extends re {
|
|
|
15700
15632
|
options: { fromSelection: o }
|
|
15701
15633
|
}), this._textSelectionManagerService.replaceTextRanges([
|
|
15702
15634
|
{
|
|
15703
|
-
startOffset: t + 1 -
|
|
15704
|
-
endOffset: t + 1 -
|
|
15635
|
+
startOffset: t + 1 - A,
|
|
15636
|
+
endOffset: t + 1 - A,
|
|
15705
15637
|
style: s
|
|
15706
15638
|
}
|
|
15707
|
-
], !0, { fromSelection: o })) : (this._updateEditorModel(`${
|
|
15639
|
+
], !0, { fromSelection: o })) : (this._updateEditorModel(`${P}\r
|
|
15708
15640
|
`, m), this._textSelectionManagerService.replaceTextRanges([
|
|
15709
15641
|
{
|
|
15710
|
-
startOffset: t + 1 -
|
|
15711
|
-
endOffset: t + 1 -
|
|
15642
|
+
startOffset: t + 1 - A,
|
|
15643
|
+
endOffset: t + 1 - A,
|
|
15712
15644
|
style: s
|
|
15713
15645
|
}
|
|
15714
15646
|
], !0, { fromSelection: o })), setTimeout(() => {
|
|
@@ -15731,7 +15663,7 @@ let Mt = class extends re {
|
|
|
15731
15663
|
const n = this._univerInstanceService.getCurrentUniverDocInstance(), i = n.getUnitId();
|
|
15732
15664
|
if (!this._editorService.isEditor(i))
|
|
15733
15665
|
return;
|
|
15734
|
-
const o = (c = this._renderManagerService.getRenderById(i)) == null ? void 0 : c.with(
|
|
15666
|
+
const o = (c = this._renderManagerService.getRenderById(i)) == null ? void 0 : c.with(Po).getViewModel();
|
|
15735
15667
|
if (o == null || n == null)
|
|
15736
15668
|
return;
|
|
15737
15669
|
const u = n == null ? void 0 : n.getSnapshot();
|
|
@@ -15776,8 +15708,8 @@ let Mt = class extends re {
|
|
|
15776
15708
|
_updateRefSelectionStyle(e, t) {
|
|
15777
15709
|
const n = e.getSelectionControls(), [i, o] = e.getLocation(), u = /* @__PURE__ */ new Set();
|
|
15778
15710
|
for (let m = 0, c = t.length; m < c; m++) {
|
|
15779
|
-
const f = t[m], { refIndex: d, themeColor: s, token: l } = f,
|
|
15780
|
-
if (!
|
|
15711
|
+
const f = t[m], { refIndex: d, themeColor: s, token: l } = f, P = De(l), { unitId: A, sheetName: S, range: p } = P;
|
|
15712
|
+
if (!A && A.length > 0 && i !== A)
|
|
15781
15713
|
continue;
|
|
15782
15714
|
const N = this._getSheetIdByName(i, S.trim());
|
|
15783
15715
|
if (N && N !== o)
|
|
@@ -15818,7 +15750,7 @@ let Mt = class extends re {
|
|
|
15818
15750
|
const N = s.token;
|
|
15819
15751
|
l = zi(N), l.endAbsoluteRefType == null && (l.endAbsoluteRefType = l.startAbsoluteRefType);
|
|
15820
15752
|
}
|
|
15821
|
-
const
|
|
15753
|
+
const P = this._generateRefString({
|
|
15822
15754
|
range: {
|
|
15823
15755
|
startRow: Math.min(o, u),
|
|
15824
15756
|
endRow: Math.max(o, u),
|
|
@@ -15829,9 +15761,9 @@ let Mt = class extends re {
|
|
|
15829
15761
|
primary: f,
|
|
15830
15762
|
style: null
|
|
15831
15763
|
});
|
|
15832
|
-
this._formulaPromptService.updateSequenceRef(d,
|
|
15833
|
-
const
|
|
15834
|
-
typeof S != "string" && (this._syncToEditor(
|
|
15764
|
+
this._formulaPromptService.updateSequenceRef(d, P);
|
|
15765
|
+
const A = this._formulaPromptService.getSequenceNodes(), S = A[d];
|
|
15766
|
+
typeof S != "string" && (this._syncToEditor(A, S.endIndex + 1), t.update(e, void 0, void 0, void 0, this._selectionRenderService.attachPrimaryWithCoord(f)));
|
|
15835
15767
|
}
|
|
15836
15768
|
_refreshFormulaAndCellEditor(e) {
|
|
15837
15769
|
var t;
|
|
@@ -15963,7 +15895,7 @@ let Mt = class extends re {
|
|
|
15963
15895
|
if (e == null)
|
|
15964
15896
|
return;
|
|
15965
15897
|
let t = X.LEFT;
|
|
15966
|
-
e === H.ARROW_DOWN ? t = X.DOWN : e === H.ARROW_UP ? t = X.UP : e === H.ARROW_RIGHT && (t = X.RIGHT), this._commandService.executeCommand(
|
|
15898
|
+
e === H.ARROW_DOWN ? t = X.DOWN : e === H.ARROW_UP ? t = X.UP : e === H.ARROW_RIGHT && (t = X.RIGHT), this._commandService.executeCommand(Ao.id, {
|
|
15967
15899
|
direction: t
|
|
15968
15900
|
});
|
|
15969
15901
|
}
|
|
@@ -15988,7 +15920,7 @@ let Mt = class extends re {
|
|
|
15988
15920
|
unitId: ""
|
|
15989
15921
|
});
|
|
15990
15922
|
const o = this._lexerTreeBuilder.sequenceNodesBuilder(t) || [];
|
|
15991
|
-
this._formulaPromptService.setSequenceNodes(o), this._syncToEditor(o, t.length - 1, n);
|
|
15923
|
+
this._formulaPromptService.setSequenceNodes(o), this._syncToEditor(o, t.length - 1, n, !0, !1);
|
|
15992
15924
|
})
|
|
15993
15925
|
), this.disposeWithMe(
|
|
15994
15926
|
// TODO: unfinished
|
|
@@ -15996,6 +15928,9 @@ let Mt = class extends re {
|
|
|
15996
15928
|
})
|
|
15997
15929
|
);
|
|
15998
15930
|
}
|
|
15931
|
+
/**
|
|
15932
|
+
* Absolute range, triggered by F4
|
|
15933
|
+
*/
|
|
15999
15934
|
_changeRefString() {
|
|
16000
15935
|
const e = this._textSelectionManagerService.getActiveRange();
|
|
16001
15936
|
if (e == null)
|
|
@@ -16014,8 +15949,8 @@ let Mt = class extends re {
|
|
|
16014
15949
|
if (!this._userCursorMove)
|
|
16015
15950
|
f = this._changeRangeRef(m);
|
|
16016
15951
|
else {
|
|
16017
|
-
const s = m.split(qe.COLON), l = s[0],
|
|
16018
|
-
n - o.startIndex <= l.length ? f = this._changeSingleRef(l) + qe.COLON +
|
|
15952
|
+
const s = m.split(qe.COLON), l = s[0], P = s[1];
|
|
15953
|
+
n - o.startIndex <= l.length ? f = this._changeSingleRef(l) + qe.COLON + P : f = l + qe.COLON + this._changeSingleRef(P);
|
|
16019
15954
|
}
|
|
16020
15955
|
else
|
|
16021
15956
|
f = this._changeSingleRef(m);
|
|
@@ -16039,7 +15974,7 @@ let Mt = class extends re {
|
|
|
16039
15974
|
}
|
|
16040
15975
|
};
|
|
16041
15976
|
Mt = qc([
|
|
16042
|
-
Le(
|
|
15977
|
+
Le(Pe.Steady, Mt),
|
|
16043
15978
|
ae(0, le),
|
|
16044
15979
|
ae(1, Ri),
|
|
16045
15980
|
ae(2, La),
|
|
@@ -16050,8 +15985,8 @@ Mt = qc([
|
|
|
16050
15985
|
ae(7, U(Xt)),
|
|
16051
15986
|
ae(8, U(In)),
|
|
16052
15987
|
ae(9, Rn),
|
|
16053
|
-
ae(10,
|
|
16054
|
-
ae(11, U(
|
|
15988
|
+
ae(10, Ae),
|
|
15989
|
+
ae(11, U(Ye)),
|
|
16055
15990
|
ae(12, U(bo)),
|
|
16056
15991
|
ae(13, ro),
|
|
16057
15992
|
ae(14, Xe)
|
|
@@ -16061,7 +15996,7 @@ var oi = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, Vc = (a, e
|
|
|
16061
15996
|
(u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
|
|
16062
15997
|
return n && i && oi(e, t, i), i;
|
|
16063
15998
|
}, Ht = (a, e) => (t, n) => e(t, n, a), kt = (a, e, t) => Vc(a, typeof e != "symbol" ? e + "" : e, t);
|
|
16064
|
-
let wt = class extends
|
|
15999
|
+
let wt = class extends An {
|
|
16065
16000
|
constructor(a = {}, e) {
|
|
16066
16001
|
super(), this._config = a, this._injector = e;
|
|
16067
16002
|
}
|
|
@@ -16078,7 +16013,7 @@ wt = gn([
|
|
|
16078
16013
|
ca(pa),
|
|
16079
16014
|
Ht(1, U(xe))
|
|
16080
16015
|
], wt);
|
|
16081
|
-
let Gt = class extends
|
|
16016
|
+
let Gt = class extends An {
|
|
16082
16017
|
constructor(a = {}, e, t) {
|
|
16083
16018
|
super(), this._config = a, this._injector = e, this._renderManagerService = t, this._config = ie.deepMerge({}, ai, this._config);
|
|
16084
16019
|
}
|
|
@@ -16086,7 +16021,7 @@ let Gt = class extends Pn {
|
|
|
16086
16021
|
const a = this._injector, e = [
|
|
16087
16022
|
[ye, { useClass: Xa }],
|
|
16088
16023
|
[Rn, { useClass: yr }],
|
|
16089
|
-
[
|
|
16024
|
+
[Ye, { useFactory: () => {
|
|
16090
16025
|
var t;
|
|
16091
16026
|
return a.createInstance(Ft, (t = this._config) == null ? void 0 : t.description);
|
|
16092
16027
|
} }],
|
|
@@ -16116,7 +16051,7 @@ let Gt = class extends Pn {
|
|
|
16116
16051
|
onRendered() {
|
|
16117
16052
|
[
|
|
16118
16053
|
[st],
|
|
16119
|
-
[
|
|
16054
|
+
[Pn]
|
|
16120
16055
|
].forEach((a) => {
|
|
16121
16056
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, a));
|
|
16122
16057
|
});
|
|
@@ -16130,7 +16065,7 @@ Gt = gn([
|
|
|
16130
16065
|
Ht(2, dt)
|
|
16131
16066
|
], Gt);
|
|
16132
16067
|
var Nt;
|
|
16133
|
-
let oa = (Nt = class extends
|
|
16068
|
+
let oa = (Nt = class extends An {
|
|
16134
16069
|
constructor(a = {}, e) {
|
|
16135
16070
|
super(), this._config = a, this._injector = e, this._config = ie.deepMerge({}, ai, this._config);
|
|
16136
16071
|
}
|
|
@@ -16142,7 +16077,7 @@ let oa = (Nt = class extends Pn {
|
|
|
16142
16077
|
// services
|
|
16143
16078
|
[ye, { useClass: Xa }],
|
|
16144
16079
|
[
|
|
16145
|
-
|
|
16080
|
+
Ye,
|
|
16146
16081
|
{
|
|
16147
16082
|
useFactory: () => {
|
|
16148
16083
|
var e;
|
|
@@ -16170,12 +16105,12 @@ export {
|
|
|
16170
16105
|
Ft as DescriptionService,
|
|
16171
16106
|
Bt as FormulaRefRangeService,
|
|
16172
16107
|
pn as HelpFunctionOperation,
|
|
16173
|
-
|
|
16108
|
+
Ye as IDescriptionService,
|
|
16174
16109
|
ri as IRegisterFunctionService,
|
|
16175
16110
|
ii as IRemoteRegisterFunctionService,
|
|
16176
16111
|
Ga as InsertFunctionCommand,
|
|
16177
16112
|
_n as InsertFunctionOperation,
|
|
16178
|
-
|
|
16113
|
+
Wa as MoreFunctionsOperation,
|
|
16179
16114
|
Ot as OtherFormulaMarkDirty,
|
|
16180
16115
|
On as ReferenceAbsoluteOperation,
|
|
16181
16116
|
Ut as RegisterFunctionService,
|