@fileverse-dev/fortune-react 1.1.5-patch.4 → 1.1.5-patch.6
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 +12 -3
- package/es/components/Workbook/index.d.ts +1 -0
- package/lib/components/Workbook/api.d.ts +1 -0
- package/lib/components/Workbook/api.js +12 -3
- 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,20 @@ 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
|
+
});
|
|
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
|
|
122
131
|
});
|
|
123
132
|
console.log({
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
id: id,
|
|
134
|
+
previousLiveQuery: previousLiveQuery
|
|
126
135
|
});
|
|
127
136
|
});
|
|
128
137
|
},
|
|
@@ -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,20 @@ 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
|
+
});
|
|
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
|
|
129
138
|
});
|
|
130
139
|
console.log({
|
|
131
|
-
|
|
132
|
-
|
|
140
|
+
id: id,
|
|
141
|
+
previousLiveQuery: previousLiveQuery
|
|
133
142
|
});
|
|
134
143
|
});
|
|
135
144
|
},
|
|
@@ -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.6",
|
|
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.6",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|