@quario/csv 0.5.0 → 0.6.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 +6 -0
- package/README.md +6 -5
- package/lib/index.js +1 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -82,12 +82,13 @@ blocks the host. Render-time failures reject with located errors.
|
|
|
82
82
|
|
|
83
83
|
The banded walk flattened as records in render order: report-header items, then per group
|
|
84
84
|
instance its header items, nested content, and footer items, then the table's header record,
|
|
85
|
-
data records, and total
|
|
85
|
+
data records, and total records, then report-footer items. Grouping exists as that order
|
|
86
86
|
alone. Group boundaries add no records of their own, and `break: "page"` and `reset: "page"`
|
|
87
87
|
are ignored. This target is unpaginated: `report-start.page` band closures are ignored.
|
|
88
88
|
|
|
89
|
-
Each item takes one record with one field
|
|
90
|
-
|
|
89
|
+
Each item takes one record with one field; a split takes one record with a field per slot, and a
|
|
90
|
+
spanning cell writes empty fields for the columns it covers so positions hold. A report that is one
|
|
91
|
+
table and no other bands has its column headers as record 1; any other band makes the file ragged.
|
|
91
92
|
|
|
92
93
|
### Typed fields
|
|
93
94
|
|
|
@@ -105,8 +106,8 @@ A hidden cell keeps its column slot as an empty field.
|
|
|
105
106
|
|
|
106
107
|
### Unread
|
|
107
108
|
|
|
108
|
-
`style`, column `width`, page columns, page bands, and images: nothing looks at
|
|
109
|
-
image emits no record.
|
|
109
|
+
`style`, column `width`, slot `width`, page columns, page bands, and images: nothing looks at
|
|
110
|
+
them. An image emits no record, though an image in a slot still writes its empty field.
|
|
110
111
|
|
|
111
112
|
### Text shape
|
|
112
113
|
|
package/lib/index.js
CHANGED
|
@@ -88,12 +88,7 @@ export function csv() {
|
|
|
88
88
|
split = null;
|
|
89
89
|
},
|
|
90
90
|
"table-start": (event) => {
|
|
91
|
-
out +=
|
|
92
|
-
spread(
|
|
93
|
-
event.columns
|
|
94
|
-
.filter((/** @type {any} */ column) => column.header)
|
|
95
|
-
.map((/** @type {any} */ column) => column.header),
|
|
96
|
-
).join(",") + "\n";
|
|
91
|
+
out += spread(event.header.cells).join(",") + "\n";
|
|
97
92
|
},
|
|
98
93
|
row: record,
|
|
99
94
|
"total-row": record,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quario/csv",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The CSV render target for quario — in the makings, not yet released",
|
|
5
5
|
"homepage": "https://getquario.com",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
40
40
|
"@size-limit/preset-small-lib": "^13.0.3",
|
|
41
|
-
"quario": "^0.
|
|
41
|
+
"quario": "^0.6.0",
|
|
42
42
|
"size-limit": "^13.0.3",
|
|
43
43
|
"typescript": "^7.0.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"quario": "^0.
|
|
46
|
+
"quario": "^0.6.0"
|
|
47
47
|
},
|
|
48
48
|
"size-limit": [
|
|
49
49
|
{
|