@fileverse-dev/dsheet 4.1.4 → 4.1.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/dist/{executeStringFunction-adhsb5GH.js → executeStringFunction-DBNi4cwM.js} +1850 -1792
- package/dist/formula.js +1 -1
- package/dist/{index-CRzwkPJq.js → index-CtdRI4_k.js} +5902 -5882
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/locale/en.d.ts +1 -1
- package/dist/sheet-engine/core/modules/copy-range-bounds.d.ts +18 -0
- package/dist/sheet-engine/core/utils/cell-persist-utils.d.ts +9 -0
- package/dist/sheet-engine/core/utils/cell-persist-utils.test.d.ts +1 -0
- package/dist/{template-data-list-ahkAKadB.js → template-data-list-BYOIK_Nd.js} +0 -330
- package/dist/{use-xlsx-import-impl-tzKWGisi.js → use-xlsx-import-impl-Xl-tZ7yA.js} +5 -5
- package/dist/{xlsx-defined-names-CflXuPTO.js → xlsx-defined-names-pRRXEP50.js} +2 -2
- package/dist/{xlsx-export-impl-CkJLfQwm.js → xlsx-export-impl-Bcz3t5iW.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-DWLdqDYy.js → xlsx-hyperlink-inline-DmCEeSix.js} +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as c, k as i, l as S, n as m, o as h, p, q as C, t as u, u as F, v as E, w as g, x as R, z as x, A as f, B as A, D as I, E as L, F as w, G as y, H as T, I as v, J as M, K as b, L as k, M as D, N as z, O as V } from "./index-
|
|
2
|
-
import { cy as K, cz as O, cA as P, cG as U, bs as X, e as _, f as j, l as B, a as H, di as q, dj as J, bb as N, dk as Y, dl as Z, dq as Q, dr as W, dt as $, I as ee, dI as ae, ef as se, b4 as oe } from "./executeStringFunction-
|
|
1
|
+
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as c, k as i, l as S, n as m, o as h, p, q as C, t as u, u as F, v as E, w as g, x as R, z as x, A as f, B as A, D as I, E as L, F as w, G as y, H as T, I as v, J as M, K as b, L as k, M as D, N as z, O as V } from "./index-CtdRI4_k.js";
|
|
2
|
+
import { cy as K, cz as O, cA as P, cG as U, bs as X, e as _, f as j, l as B, a as H, di as q, dj as J, bb as N, dk as Y, dl as Z, dq as Q, dr as W, dt as $, I as ee, dI as ae, ef as se, b4 as oe } from "./executeStringFunction-DBNi4cwM.js";
|
|
3
3
|
import { FLVURL as re } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as ne, S as de } from "./constants-8Ij49Lxv.js";
|
|
5
5
|
export {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trim two selection index arrays down to the bounding box of "meaningful" cells.
|
|
3
|
+
*
|
|
4
|
+
* `rowIndexArr`/`colIndexArr` are sheet row/column indices in selection order.
|
|
5
|
+
* `isMeaningful(r, c)` decides whether a cell contributes content (data, border, or
|
|
6
|
+
* conditional format). Returns the sub-arrays spanning the first→last meaningful
|
|
7
|
+
* position in each axis. If no cell is meaningful (e.g. select-all of an empty sheet),
|
|
8
|
+
* the selection collapses to a single top-left cell so we never serialise a whole grid
|
|
9
|
+
* of blank cells.
|
|
10
|
+
*
|
|
11
|
+
* This is what stops a select-all of a mostly-empty (or fully-empty) sheet from
|
|
12
|
+
* serialising thousands of blank `<td>`s. Dropped rows/cols hold no data and no CSS, so
|
|
13
|
+
* the trim is lossless — it matches Google Sheets' used-range clamp.
|
|
14
|
+
*/
|
|
15
|
+
export declare function clampIndicesToUsedBounds(rowIndexArr: number[], colIndexArr: number[], isMeaningful: (r: number, c: number) => boolean): {
|
|
16
|
+
rows: number[];
|
|
17
|
+
cols: number[];
|
|
18
|
+
};
|
|
@@ -7,4 +7,13 @@ export declare function isFormatOnlyEmptyCell(cell: Cell | string | number | boo
|
|
|
7
7
|
/** Pull only present format attrs from a format-only empty cell (cheap, no clone). */
|
|
8
8
|
export declare function extractCellFormatAttrs(cell: Cell | string | number | boolean | null | undefined): Partial<Record<CellFormatAttr, unknown>> | null;
|
|
9
9
|
export declare function shouldPersistCelldataCell(cell: Cell | string | number | boolean | null | undefined): boolean;
|
|
10
|
+
export declare const CSS_SAFE_CLIPBOARD_ATTRS: readonly ["bg", "ht", "tb", "ff", "vt", "fs", "fc", "bl", "it", "un", "cl"];
|
|
11
|
+
/**
|
|
12
|
+
* True when a cell's `data-fortune-cell` clipboard blob is redundant: the cell
|
|
13
|
+
* has no persistable content and its only format attrs are ones the emitted
|
|
14
|
+
* `<td>` CSS already carries, so cross-document paste reconstructs it losslessly
|
|
15
|
+
* from CSS alone. Cells with content, or with a non-CSS format channel
|
|
16
|
+
* (`ct` / `tr`), return false and keep their blob.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isClipboardMetadataRedundant(cell: Cell | string | number | boolean | null | undefined): boolean;
|
|
10
19
|
export declare function celldataEntryEqual(existing: unknown, next: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -53421,336 +53421,6 @@ const l = [
|
|
|
53421
53421
|
}
|
|
53422
53422
|
}
|
|
53423
53423
|
]
|
|
53424
|
-
},
|
|
53425
|
-
{
|
|
53426
|
-
name: "Invoice",
|
|
53427
|
-
status: 0,
|
|
53428
|
-
order: 1,
|
|
53429
|
-
id: "8f3c4e10-df59-411d-bfe8-807994899b89",
|
|
53430
|
-
row: 500,
|
|
53431
|
-
column: 36,
|
|
53432
|
-
config: {
|
|
53433
|
-
rowlen: {
|
|
53434
|
-
1: 49,
|
|
53435
|
-
2: 0,
|
|
53436
|
-
3: 0,
|
|
53437
|
-
4: 0,
|
|
53438
|
-
6: 50,
|
|
53439
|
-
7: 0,
|
|
53440
|
-
8: 0,
|
|
53441
|
-
9: 0,
|
|
53442
|
-
10: 0,
|
|
53443
|
-
11: 0,
|
|
53444
|
-
12: 0,
|
|
53445
|
-
13: 0,
|
|
53446
|
-
16: 0,
|
|
53447
|
-
17: 0,
|
|
53448
|
-
18: 0,
|
|
53449
|
-
19: 0,
|
|
53450
|
-
20: 0,
|
|
53451
|
-
21: 0,
|
|
53452
|
-
22: 0,
|
|
53453
|
-
23: 0,
|
|
53454
|
-
24: 0
|
|
53455
|
-
},
|
|
53456
|
-
merge: {
|
|
53457
|
-
"1_0": {
|
|
53458
|
-
rs: 1,
|
|
53459
|
-
cs: 4,
|
|
53460
|
-
r: 1,
|
|
53461
|
-
c: 0
|
|
53462
|
-
},
|
|
53463
|
-
"6_0": {
|
|
53464
|
-
rs: 1,
|
|
53465
|
-
cs: 4,
|
|
53466
|
-
r: 6,
|
|
53467
|
-
c: 0
|
|
53468
|
-
},
|
|
53469
|
-
"7_0": {
|
|
53470
|
-
rs: 1,
|
|
53471
|
-
cs: 2,
|
|
53472
|
-
r: 7,
|
|
53473
|
-
c: 0
|
|
53474
|
-
},
|
|
53475
|
-
"8_0": {
|
|
53476
|
-
rs: 1,
|
|
53477
|
-
cs: 2,
|
|
53478
|
-
r: 8,
|
|
53479
|
-
c: 0
|
|
53480
|
-
},
|
|
53481
|
-
"8_2": {
|
|
53482
|
-
rs: 1,
|
|
53483
|
-
cs: 2,
|
|
53484
|
-
r: 8,
|
|
53485
|
-
c: 2
|
|
53486
|
-
},
|
|
53487
|
-
"8_4": {
|
|
53488
|
-
rs: 1,
|
|
53489
|
-
cs: 2,
|
|
53490
|
-
r: 8,
|
|
53491
|
-
c: 4
|
|
53492
|
-
},
|
|
53493
|
-
"9_0": {
|
|
53494
|
-
rs: 1,
|
|
53495
|
-
cs: 2,
|
|
53496
|
-
r: 9,
|
|
53497
|
-
c: 0
|
|
53498
|
-
},
|
|
53499
|
-
"9_2": {
|
|
53500
|
-
rs: 1,
|
|
53501
|
-
cs: 2,
|
|
53502
|
-
r: 9,
|
|
53503
|
-
c: 2
|
|
53504
|
-
},
|
|
53505
|
-
"9_4": {
|
|
53506
|
-
rs: 1,
|
|
53507
|
-
cs: 2,
|
|
53508
|
-
r: 9,
|
|
53509
|
-
c: 4
|
|
53510
|
-
},
|
|
53511
|
-
"10_0": {
|
|
53512
|
-
rs: 1,
|
|
53513
|
-
cs: 2,
|
|
53514
|
-
r: 10,
|
|
53515
|
-
c: 0
|
|
53516
|
-
},
|
|
53517
|
-
"10_2": {
|
|
53518
|
-
rs: 1,
|
|
53519
|
-
cs: 2,
|
|
53520
|
-
r: 10,
|
|
53521
|
-
c: 2
|
|
53522
|
-
},
|
|
53523
|
-
"10_4": {
|
|
53524
|
-
rs: 1,
|
|
53525
|
-
cs: 2,
|
|
53526
|
-
r: 10,
|
|
53527
|
-
c: 4
|
|
53528
|
-
},
|
|
53529
|
-
"11_0": {
|
|
53530
|
-
rs: 1,
|
|
53531
|
-
cs: 2,
|
|
53532
|
-
r: 11,
|
|
53533
|
-
c: 0
|
|
53534
|
-
},
|
|
53535
|
-
"11_2": {
|
|
53536
|
-
rs: 1,
|
|
53537
|
-
cs: 2,
|
|
53538
|
-
r: 11,
|
|
53539
|
-
c: 2
|
|
53540
|
-
},
|
|
53541
|
-
"11_4": {
|
|
53542
|
-
rs: 1,
|
|
53543
|
-
cs: 2,
|
|
53544
|
-
r: 11,
|
|
53545
|
-
c: 4
|
|
53546
|
-
},
|
|
53547
|
-
"12_0": {
|
|
53548
|
-
rs: 1,
|
|
53549
|
-
cs: 2,
|
|
53550
|
-
r: 12,
|
|
53551
|
-
c: 0
|
|
53552
|
-
},
|
|
53553
|
-
"12_2": {
|
|
53554
|
-
rs: 1,
|
|
53555
|
-
cs: 2,
|
|
53556
|
-
r: 12,
|
|
53557
|
-
c: 2
|
|
53558
|
-
},
|
|
53559
|
-
"12_4": {
|
|
53560
|
-
rs: 1,
|
|
53561
|
-
cs: 2,
|
|
53562
|
-
r: 12,
|
|
53563
|
-
c: 4
|
|
53564
|
-
},
|
|
53565
|
-
"13_0": {
|
|
53566
|
-
rs: 1,
|
|
53567
|
-
cs: 2,
|
|
53568
|
-
r: 13,
|
|
53569
|
-
c: 0
|
|
53570
|
-
},
|
|
53571
|
-
"13_2": {
|
|
53572
|
-
rs: 1,
|
|
53573
|
-
cs: 2,
|
|
53574
|
-
r: 13,
|
|
53575
|
-
c: 2
|
|
53576
|
-
},
|
|
53577
|
-
"13_4": {
|
|
53578
|
-
rs: 1,
|
|
53579
|
-
cs: 2,
|
|
53580
|
-
r: 13,
|
|
53581
|
-
c: 4
|
|
53582
|
-
},
|
|
53583
|
-
"16_0": {
|
|
53584
|
-
rs: 1,
|
|
53585
|
-
cs: 3,
|
|
53586
|
-
r: 16,
|
|
53587
|
-
c: 0
|
|
53588
|
-
},
|
|
53589
|
-
"17_0": {
|
|
53590
|
-
rs: 1,
|
|
53591
|
-
cs: 3,
|
|
53592
|
-
r: 17,
|
|
53593
|
-
c: 0
|
|
53594
|
-
},
|
|
53595
|
-
"18_0": {
|
|
53596
|
-
rs: 1,
|
|
53597
|
-
cs: 3,
|
|
53598
|
-
r: 18,
|
|
53599
|
-
c: 0
|
|
53600
|
-
},
|
|
53601
|
-
"19_0": {
|
|
53602
|
-
rs: 1,
|
|
53603
|
-
cs: 3,
|
|
53604
|
-
r: 19,
|
|
53605
|
-
c: 0
|
|
53606
|
-
},
|
|
53607
|
-
"20_0": {
|
|
53608
|
-
rs: 1,
|
|
53609
|
-
cs: 3,
|
|
53610
|
-
r: 20,
|
|
53611
|
-
c: 0
|
|
53612
|
-
},
|
|
53613
|
-
"22_1": {
|
|
53614
|
-
rs: 1,
|
|
53615
|
-
cs: 3,
|
|
53616
|
-
r: 22,
|
|
53617
|
-
c: 1
|
|
53618
|
-
},
|
|
53619
|
-
"23_1": {
|
|
53620
|
-
rs: 1,
|
|
53621
|
-
cs: 3,
|
|
53622
|
-
r: 23,
|
|
53623
|
-
c: 1
|
|
53624
|
-
},
|
|
53625
|
-
"24_4": {
|
|
53626
|
-
rs: 1,
|
|
53627
|
-
cs: 2,
|
|
53628
|
-
r: 24,
|
|
53629
|
-
c: 4
|
|
53630
|
-
}
|
|
53631
|
-
},
|
|
53632
|
-
customHeight: {
|
|
53633
|
-
1: 1,
|
|
53634
|
-
6: 1
|
|
53635
|
-
},
|
|
53636
|
-
borderInfo: [
|
|
53637
|
-
{
|
|
53638
|
-
rangeType: "cell",
|
|
53639
|
-
value: {
|
|
53640
|
-
row_index: 21,
|
|
53641
|
-
col_index: 0,
|
|
53642
|
-
b: {
|
|
53643
|
-
style: 1,
|
|
53644
|
-
color: "rgb(183, 183, 183)"
|
|
53645
|
-
}
|
|
53646
|
-
}
|
|
53647
|
-
},
|
|
53648
|
-
{
|
|
53649
|
-
rangeType: "cell",
|
|
53650
|
-
value: {
|
|
53651
|
-
row_index: 21,
|
|
53652
|
-
col_index: 1,
|
|
53653
|
-
b: {
|
|
53654
|
-
style: 1,
|
|
53655
|
-
color: "rgb(183, 183, 183)"
|
|
53656
|
-
}
|
|
53657
|
-
}
|
|
53658
|
-
},
|
|
53659
|
-
{
|
|
53660
|
-
rangeType: "cell",
|
|
53661
|
-
value: {
|
|
53662
|
-
row_index: 21,
|
|
53663
|
-
col_index: 2,
|
|
53664
|
-
b: {
|
|
53665
|
-
style: 1,
|
|
53666
|
-
color: "rgb(183, 183, 183)"
|
|
53667
|
-
}
|
|
53668
|
-
}
|
|
53669
|
-
},
|
|
53670
|
-
{
|
|
53671
|
-
rangeType: "cell",
|
|
53672
|
-
value: {
|
|
53673
|
-
row_index: 21,
|
|
53674
|
-
col_index: 3,
|
|
53675
|
-
b: {
|
|
53676
|
-
style: 1,
|
|
53677
|
-
color: "rgb(183, 183, 183)"
|
|
53678
|
-
}
|
|
53679
|
-
}
|
|
53680
|
-
},
|
|
53681
|
-
{
|
|
53682
|
-
rangeType: "cell",
|
|
53683
|
-
value: {
|
|
53684
|
-
row_index: 21,
|
|
53685
|
-
col_index: 4,
|
|
53686
|
-
b: {
|
|
53687
|
-
style: 1,
|
|
53688
|
-
color: "rgb(183, 183, 183)"
|
|
53689
|
-
}
|
|
53690
|
-
}
|
|
53691
|
-
},
|
|
53692
|
-
{
|
|
53693
|
-
rangeType: "cell",
|
|
53694
|
-
value: {
|
|
53695
|
-
row_index: 21,
|
|
53696
|
-
col_index: 5,
|
|
53697
|
-
b: {
|
|
53698
|
-
style: 1,
|
|
53699
|
-
color: "rgb(183, 183, 183)"
|
|
53700
|
-
}
|
|
53701
|
-
}
|
|
53702
|
-
}
|
|
53703
|
-
]
|
|
53704
|
-
},
|
|
53705
|
-
pivotTable: null,
|
|
53706
|
-
isPivotTable: !1,
|
|
53707
|
-
zoomRatio: 1,
|
|
53708
|
-
luckysheet_select_save: [
|
|
53709
|
-
{
|
|
53710
|
-
left: 606,
|
|
53711
|
-
width: 100,
|
|
53712
|
-
top: 299,
|
|
53713
|
-
height: 21,
|
|
53714
|
-
left_move: 606,
|
|
53715
|
-
width_move: 100,
|
|
53716
|
-
top_move: 299,
|
|
53717
|
-
height_move: 21,
|
|
53718
|
-
row: [
|
|
53719
|
-
11,
|
|
53720
|
-
11
|
|
53721
|
-
],
|
|
53722
|
-
column: [
|
|
53723
|
-
6,
|
|
53724
|
-
6
|
|
53725
|
-
],
|
|
53726
|
-
row_focus: 11,
|
|
53727
|
-
column_focus: 6
|
|
53728
|
-
}
|
|
53729
|
-
],
|
|
53730
|
-
luckysheet_selection_range: [],
|
|
53731
|
-
calcChain: [
|
|
53732
|
-
{
|
|
53733
|
-
r: 17,
|
|
53734
|
-
c: 5,
|
|
53735
|
-
id: "8f3c4e10-df59-411d-bfe8-807994899b89"
|
|
53736
|
-
},
|
|
53737
|
-
{
|
|
53738
|
-
r: 18,
|
|
53739
|
-
c: 5,
|
|
53740
|
-
id: "8f3c4e10-df59-411d-bfe8-807994899b89"
|
|
53741
|
-
},
|
|
53742
|
-
{
|
|
53743
|
-
r: 22,
|
|
53744
|
-
c: 5,
|
|
53745
|
-
id: "8f3c4e10-df59-411d-bfe8-807994899b89"
|
|
53746
|
-
},
|
|
53747
|
-
{
|
|
53748
|
-
r: 24,
|
|
53749
|
-
c: 4,
|
|
53750
|
-
id: "8f3c4e10-df59-411d-bfe8-807994899b89"
|
|
53751
|
-
}
|
|
53752
|
-
],
|
|
53753
|
-
celldata: []
|
|
53754
53424
|
}
|
|
53755
53425
|
], e = [
|
|
53756
53426
|
{
|