@quario/xlsx 0.3.0 → 0.4.0
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/CHANGELOG.md +10 -0
- package/lib/cell.js +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.0] - 2026-09-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **A date string under `format: "date"` now reaches the grid as a date.**
|
|
15
|
+
The cell carries a real date value under the `yyyy-mm-dd` number format
|
|
16
|
+
instead of the author's text, so it sorts and computes as a date. Only a
|
|
17
|
+
cell declaring the kind is affected; a string in a form the engine does not
|
|
18
|
+
read stays text. See the `quario` changelog for the forms.
|
|
19
|
+
|
|
10
20
|
## [0.3.0] - 2026-09-02
|
|
11
21
|
|
|
12
22
|
### Added
|
package/lib/cell.js
CHANGED
|
@@ -31,9 +31,9 @@ let numFmtOf = (kind, value, currency) => {
|
|
|
31
31
|
return rule ? rule(value, currency) : null;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
/** @type {(cell: { tokens: any[] }) => any} */
|
|
35
|
-
let shownOf = (cell) => {
|
|
36
|
-
let value = typed(cell.tokens);
|
|
34
|
+
/** @type {(cell: { tokens: any[] }, kind: any) => any} */
|
|
35
|
+
let shownOf = (cell, kind) => {
|
|
36
|
+
let value = typed(cell.tokens, kind);
|
|
37
37
|
return value !== undefined ? value : text(cell.tokens);
|
|
38
38
|
};
|
|
39
39
|
/** @type {(out: any, resolved: any, shown: any, intl: any) => void} */
|
|
@@ -55,7 +55,7 @@ let paintWrap = (out, shown) => {
|
|
|
55
55
|
*/
|
|
56
56
|
let field = (cell, under, intl) => {
|
|
57
57
|
let resolved = sides(under, cell.style);
|
|
58
|
-
let shown = shownOf(cell);
|
|
58
|
+
let shown = shownOf(cell, resolved?.format);
|
|
59
59
|
let out = look(resolved);
|
|
60
60
|
paintFmt(out, resolved, shown, intl);
|
|
61
61
|
paintWrap(out, shown);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quario/xlsx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The spreadsheet render target for quario — in the makings, not yet released",
|
|
5
5
|
"homepage": "https://getquario.com",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
43
43
|
"@size-limit/preset-small-lib": "^13.0.3",
|
|
44
44
|
"@types/node": "^22.20.1",
|
|
45
|
-
"quario": "^0.
|
|
45
|
+
"quario": "^0.4.0",
|
|
46
46
|
"size-limit": "^13.0.3",
|
|
47
47
|
"typescript": "^7.0.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"quario": "^0.
|
|
50
|
+
"quario": "^0.4.0"
|
|
51
51
|
},
|
|
52
52
|
"size-limit": [
|
|
53
53
|
{
|