@univerjs/sheets-formula 0.6.3 → 0.6.4
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 +1 -1
- package/lib/es/index.js +673 -623
- package/lib/types/controllers/active-dirty.controller.d.ts +2 -0
- package/lib/types/controllers/update-formula.controller.d.ts +1 -1
- package/lib/types/facade/f-formula.d.ts +17 -17
- package/lib/types/services/register-other-formula.service.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
|
@@ -9,6 +9,7 @@ export declare class ActiveDirtyController extends Disposable {
|
|
|
9
9
|
private _initialConversion;
|
|
10
10
|
private _initialMove;
|
|
11
11
|
private _initialRowAndColumn;
|
|
12
|
+
private _initialHideRow;
|
|
12
13
|
private _initialSheet;
|
|
13
14
|
private _initialDefinedName;
|
|
14
15
|
private _getDefinedNameMutation;
|
|
@@ -17,6 +18,7 @@ export declare class ActiveDirtyController extends Disposable {
|
|
|
17
18
|
private _getMoveRowsMutationDirtyRange;
|
|
18
19
|
private _getReorderRangeMutationDirtyRange;
|
|
19
20
|
private _getRemoveRowOrColumnMutation;
|
|
21
|
+
private _getHideRowMutation;
|
|
20
22
|
private _getRemoveSheetMutation;
|
|
21
23
|
private _getInsertSheetMutation;
|
|
22
24
|
private _rangeToMatrix;
|
|
@@ -27,7 +27,7 @@ export declare class UpdateFormulaController extends Disposable {
|
|
|
27
27
|
private _handleWorkbookDisposed;
|
|
28
28
|
private _handleInsertSheetMutation;
|
|
29
29
|
private _handleWorkbookAdded;
|
|
30
|
-
private
|
|
30
|
+
private _getDirtyDataByCalculationMode;
|
|
31
31
|
private _getUpdateFormula;
|
|
32
32
|
private _getFormulaReferenceMoveInfo;
|
|
33
33
|
}
|
|
@@ -35,10 +35,10 @@ export interface IFFormulaSheetsMixin {
|
|
|
35
35
|
*
|
|
36
36
|
* // Use the function in a cell
|
|
37
37
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
38
|
-
* const
|
|
39
|
-
* const cellA1 =
|
|
38
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
39
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
40
40
|
* cellA1.setValue('World');
|
|
41
|
-
* const cellA2 =
|
|
41
|
+
* const cellA2 = fWorksheet.getRange('A2');
|
|
42
42
|
* cellA2.setValue({ f: '=HELLO(A1)' });
|
|
43
43
|
*
|
|
44
44
|
* // A2 will display: "Hello, World!"
|
|
@@ -60,10 +60,10 @@ export interface IFFormulaSheetsMixin {
|
|
|
60
60
|
*
|
|
61
61
|
* // Use the function in a cell
|
|
62
62
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
63
|
-
* const
|
|
64
|
-
* const cellA1 =
|
|
63
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
64
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
65
65
|
* cellA1.setValue(100);
|
|
66
|
-
* const cellA2 =
|
|
66
|
+
* const cellA2 = fWorksheet.getRange('A2');
|
|
67
67
|
* cellA2.setValue({ f: '=DISCOUNT(A1, 20)' });
|
|
68
68
|
*
|
|
69
69
|
* // A2 will display: 80
|
|
@@ -100,12 +100,12 @@ export interface IFFormulaSheetsMixin {
|
|
|
100
100
|
*
|
|
101
101
|
* // Use the function in a cell
|
|
102
102
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
103
|
-
* const
|
|
104
|
-
* const cellA1 =
|
|
103
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
104
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
105
105
|
* cellA1.setValue(1);
|
|
106
|
-
* const cellA2 =
|
|
106
|
+
* const cellA2 = fWorksheet.getRange('A2');
|
|
107
107
|
* cellA2.setValue(2);
|
|
108
|
-
* const cellA3 =
|
|
108
|
+
* const cellA3 = fWorksheet.getRange('A3');
|
|
109
109
|
* cellA3.setValue({ f: '=CUSTOMSUM(A1,A2,LAMBDA(x,y,x*y))' });
|
|
110
110
|
*
|
|
111
111
|
* // A3 will display: 5
|
|
@@ -155,10 +155,10 @@ export interface IFFormulaSheetsMixin {
|
|
|
155
155
|
*
|
|
156
156
|
* // Use the function in a cell
|
|
157
157
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
158
|
-
* const
|
|
159
|
-
* const cellA1 =
|
|
158
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
159
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
160
160
|
* cellA1.setValue('World');
|
|
161
|
-
* const cellA2 =
|
|
161
|
+
* const cellA2 = fWorksheet.getRange('A2');
|
|
162
162
|
* cellA2.setValue({ f: '=HELLO(A1)' });
|
|
163
163
|
*
|
|
164
164
|
* // A2 will display: "Hello, World!"
|
|
@@ -193,8 +193,8 @@ export interface IFFormulaSheetsMixin {
|
|
|
193
193
|
*
|
|
194
194
|
* // Use the function in a cell
|
|
195
195
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
196
|
-
* const
|
|
197
|
-
* const cellA1 =
|
|
196
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
197
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
198
198
|
* cellA1.setValue({ f: '=RANDOM_DELAYED()' });
|
|
199
199
|
*
|
|
200
200
|
* // After 0.5 second, A1 will display a random number
|
|
@@ -243,8 +243,8 @@ export interface IFFormulaSheetsMixin {
|
|
|
243
243
|
*
|
|
244
244
|
* // Use the function in a cell
|
|
245
245
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
246
|
-
* const
|
|
247
|
-
* const cellA1 =
|
|
246
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
247
|
+
* const cellA1 = fWorksheet.getRange('A1');
|
|
248
248
|
* cellA1.setValue({ f: '=FETCH_USER_SCORE(42)' });
|
|
249
249
|
*
|
|
250
250
|
* // After 1 second, A1 will display a score
|
|
@@ -28,4 +28,5 @@ export declare class RegisterOtherFormulaService extends Disposable {
|
|
|
28
28
|
deleteFormula(unitId: string, subUnitId: string, formulaIdList: string[]): void;
|
|
29
29
|
getFormulaValue(unitId: string, subUnitId: string, formulaId: string): Promise<Nullable<IOtherFormulaResult>>;
|
|
30
30
|
getFormulaValueSync(unitId: string, subUnitId: string, formulaId: string): Nullable<IOtherFormulaResult>;
|
|
31
|
+
markFormulaDirty(unitId: string, subUnitId: string, formulaId: string): void;
|
|
31
32
|
}
|