@univerjs/sheets 0.8.0 → 0.8.1-nightly.202506131607
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 +2 -2
- package/lib/index.js +2 -2
- package/lib/types/basics/cell-value.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +8 -8
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -1466,7 +1466,7 @@ function ns(t, e) {
|
|
|
1466
1466
|
return t === null ? null : typeof t == "string" ? Io(t) ? (+t == 0 || +t == 1) && e === re.BOOLEAN ? re.BOOLEAN : fi(t) ? re.FORCE_STRING : re.NUMBER : Es(t) ? re.BOOLEAN : re.STRING : typeof t == "number" ? (t === 0 || t === 1) && e === re.BOOLEAN ? re.BOOLEAN : re.NUMBER : typeof t == "boolean" ? re.BOOLEAN : re.FORCE_STRING;
|
|
1467
1467
|
}
|
|
1468
1468
|
function os(t, e) {
|
|
1469
|
-
return t === re.NUMBER ? Number(e.v) : t === re.BOOLEAN ? Va(e.v) ? 1 : 0 : t === re.STRING || t === re.FORCE_STRING ? `${e.v}` : e.v;
|
|
1469
|
+
return e.v === void 0 || e.v === null ? e.v : t === re.NUMBER ? Number(e.v) : t === re.BOOLEAN ? Va(e.v) ? 1 : 0 : t === re.STRING || t === re.FORCE_STRING ? `${e.v}` : e.v;
|
|
1470
1470
|
}
|
|
1471
1471
|
function Va(t) {
|
|
1472
1472
|
if (typeof t == "string") {
|
|
@@ -3346,7 +3346,7 @@ const pr = "sheet.command.delete-range-move-left", Ot = {
|
|
|
3346
3346
|
t,
|
|
3347
3347
|
S
|
|
3348
3348
|
), w = [{ id: Ke.id, params: S }], _ = [{ id: Je.id, params: I }];
|
|
3349
|
-
g && w.push({
|
|
3349
|
+
g && Object.keys(g).length > 0 && w.push({
|
|
3350
3350
|
id: ee.id,
|
|
3351
3351
|
params: {
|
|
3352
3352
|
unitId: d,
|
package/lib/index.js
CHANGED
|
@@ -1466,7 +1466,7 @@ function ns(t, e) {
|
|
|
1466
1466
|
return t === null ? null : typeof t == "string" ? Io(t) ? (+t == 0 || +t == 1) && e === re.BOOLEAN ? re.BOOLEAN : fi(t) ? re.FORCE_STRING : re.NUMBER : Es(t) ? re.BOOLEAN : re.STRING : typeof t == "number" ? (t === 0 || t === 1) && e === re.BOOLEAN ? re.BOOLEAN : re.NUMBER : typeof t == "boolean" ? re.BOOLEAN : re.FORCE_STRING;
|
|
1467
1467
|
}
|
|
1468
1468
|
function os(t, e) {
|
|
1469
|
-
return t === re.NUMBER ? Number(e.v) : t === re.BOOLEAN ? Va(e.v) ? 1 : 0 : t === re.STRING || t === re.FORCE_STRING ? `${e.v}` : e.v;
|
|
1469
|
+
return e.v === void 0 || e.v === null ? e.v : t === re.NUMBER ? Number(e.v) : t === re.BOOLEAN ? Va(e.v) ? 1 : 0 : t === re.STRING || t === re.FORCE_STRING ? `${e.v}` : e.v;
|
|
1470
1470
|
}
|
|
1471
1471
|
function Va(t) {
|
|
1472
1472
|
if (typeof t == "string") {
|
|
@@ -3346,7 +3346,7 @@ const pr = "sheet.command.delete-range-move-left", Ot = {
|
|
|
3346
3346
|
t,
|
|
3347
3347
|
S
|
|
3348
3348
|
), w = [{ id: Ke.id, params: S }], _ = [{ id: Je.id, params: I }];
|
|
3349
|
-
g && w.push({
|
|
3349
|
+
g && Object.keys(g).length > 0 && w.push({
|
|
3350
3350
|
id: ee.id,
|
|
3351
3351
|
params: {
|
|
3352
3352
|
unitId: d,
|
|
@@ -5,7 +5,7 @@ import { ICellData, Nullable, CellValueType } from '@univerjs/core';
|
|
|
5
5
|
* @param cell
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare function getCellValue(type: Nullable<CellValueType>, cell: ICellData):
|
|
8
|
+
export declare function getCellValue(type: Nullable<CellValueType>, cell: ICellData): void | import('@univerjs/core').CellValue | null;
|
|
9
9
|
/**
|
|
10
10
|
* Supplement the data of the cell, set the other value to NULL, Used to reset properties when undoing
|
|
11
11
|
* @param value
|