@fileverse-dev/fortune-react 1.1.5-patch.4 → 1.1.5-patch.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/es/components/Workbook/api.d.ts +1 -0
- package/es/components/Workbook/api.js +9 -4
- package/es/components/Workbook/index.d.ts +1 -0
- package/lib/components/Workbook/api.d.ts +1 -0
- package/lib/components/Workbook/api.js +9 -4
- package/lib/components/Workbook/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -10,6 +10,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
10
10
|
onboardingActiveCell: (functionName: string) => void;
|
|
11
11
|
initializeComment: (row: number, column: number) => void;
|
|
12
12
|
updateSheetLiveQueryList: (subsheetIndex: number, _data: LiveQueryData) => void;
|
|
13
|
+
removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
|
|
13
14
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
14
15
|
type?: keyof Cell;
|
|
15
16
|
}) => void;
|
|
@@ -118,11 +118,16 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
|
|
|
118
118
|
var _a;
|
|
119
119
|
var previousLiveQuery = ctx.luckysheetfile[subsheetIndex].liveQueryList;
|
|
120
120
|
ctx.luckysheetfile[subsheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subsheetIndex]), {
|
|
121
|
-
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.
|
|
121
|
+
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.id)] = _data, _a))
|
|
122
122
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
removeFromLiveQueryList: function removeFromLiveQueryList(subSheetIndex, id) {
|
|
126
|
+
setContext(function (ctx) {
|
|
127
|
+
var previousLiveQuery = __assign({}, ctx.luckysheetfile[subSheetIndex].liveQueryList);
|
|
128
|
+
previousLiveQuery === null || previousLiveQuery === void 0 ? true : delete previousLiveQuery[id];
|
|
129
|
+
ctx.luckysheetfile[subSheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subSheetIndex]), {
|
|
130
|
+
liveQueryList: previousLiveQuery
|
|
126
131
|
});
|
|
127
132
|
});
|
|
128
133
|
},
|
|
@@ -17,6 +17,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
17
17
|
onboardingActiveCell: (functionName: string) => void;
|
|
18
18
|
initializeComment: (row: number, column: number) => void;
|
|
19
19
|
updateSheetLiveQueryList: (subsheetIndex: number, _data: import("@fileverse-dev/fortune-core").LiveQueryData) => void;
|
|
20
|
+
removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
|
|
20
21
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
21
22
|
type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
22
23
|
}) => void;
|
|
@@ -10,6 +10,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
10
10
|
onboardingActiveCell: (functionName: string) => void;
|
|
11
11
|
initializeComment: (row: number, column: number) => void;
|
|
12
12
|
updateSheetLiveQueryList: (subsheetIndex: number, _data: LiveQueryData) => void;
|
|
13
|
+
removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
|
|
13
14
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
14
15
|
type?: keyof Cell;
|
|
15
16
|
}) => void;
|
|
@@ -125,11 +125,16 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
125
125
|
var _a;
|
|
126
126
|
var previousLiveQuery = ctx.luckysheetfile[subsheetIndex].liveQueryList;
|
|
127
127
|
ctx.luckysheetfile[subsheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subsheetIndex]), {
|
|
128
|
-
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.
|
|
128
|
+
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.id)] = _data, _a))
|
|
129
129
|
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
});
|
|
131
|
+
},
|
|
132
|
+
removeFromLiveQueryList: function removeFromLiveQueryList(subSheetIndex, id) {
|
|
133
|
+
setContext(function (ctx) {
|
|
134
|
+
var previousLiveQuery = __assign({}, ctx.luckysheetfile[subSheetIndex].liveQueryList);
|
|
135
|
+
previousLiveQuery === null || previousLiveQuery === void 0 ? true : delete previousLiveQuery[id];
|
|
136
|
+
ctx.luckysheetfile[subSheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subSheetIndex]), {
|
|
137
|
+
liveQueryList: previousLiveQuery
|
|
133
138
|
});
|
|
134
139
|
});
|
|
135
140
|
},
|
|
@@ -17,6 +17,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
17
17
|
onboardingActiveCell: (functionName: string) => void;
|
|
18
18
|
initializeComment: (row: number, column: number) => void;
|
|
19
19
|
updateSheetLiveQueryList: (subsheetIndex: number, _data: import("@fileverse-dev/fortune-core").LiveQueryData) => void;
|
|
20
|
+
removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
|
|
20
21
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
21
22
|
type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
22
23
|
}) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.5-patch.
|
|
3
|
+
"version": "1.1.5-patch.5",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.1.5-patch.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.5-patch.5",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|