@json-to-office/jto 3.3.0 → 4.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/dist/cli.js +1 -1
- package/dist/client/assets/{HomePage-sVLlj9Ih.js → HomePage-C4aHPNOW.js} +4 -4
- package/dist/client/assets/{HomePage-sVLlj9Ih.js.map → HomePage-C4aHPNOW.js.map} +1 -1
- package/dist/client/assets/{JsonEditorPage-Bk0UwNIu.js → JsonEditorPage-CIHWNDIm.js} +3 -3
- package/dist/client/assets/{JsonEditorPage-Bk0UwNIu.js.map → JsonEditorPage-CIHWNDIm.js.map} +1 -1
- package/dist/client/assets/{MonacoPluginProvider-t4Vd1z6N.js → MonacoPluginProvider-Cmt7jH6w.js} +5 -5
- package/dist/client/assets/{MonacoPluginProvider-t4Vd1z6N.js.map → MonacoPluginProvider-Cmt7jH6w.js.map} +1 -1
- package/dist/client/assets/{_virtual_jto-plugin-type-libs-KqQsxXBM.js → _virtual_jto-plugin-type-libs-RAYGpBwB.js} +389 -247
- package/dist/client/assets/{_virtual_jto-plugin-type-libs-KqQsxXBM.js.map → _virtual_jto-plugin-type-libs-RAYGpBwB.js.map} +1 -1
- package/dist/client/assets/_virtual_jto-sandbox-runtime-O8bzh0eH.js +2 -0
- package/dist/client/assets/_virtual_jto-sandbox-runtime-O8bzh0eH.js.map +1 -0
- package/dist/client/assets/{editor-D0yLm95a.js → editor-CDkmzFhm.js} +2 -2
- package/dist/client/assets/{editor-D0yLm95a.js.map → editor-CDkmzFhm.js.map} +1 -1
- package/dist/client/assets/{editor-monaco-json-TrlIXpMT.js → editor-monaco-json-DrVOgnJ_.js} +2 -2
- package/dist/client/assets/{editor-monaco-json-TrlIXpMT.js.map → editor-monaco-json-DrVOgnJ_.js.map} +1 -1
- package/dist/client/assets/{index-RkEpNfKk.js → index-COEuUnux.js} +2 -2
- package/dist/client/assets/{index-RkEpNfKk.js.map → index-COEuUnux.js.map} +1 -1
- package/dist/client/assets/{index-cFu0HL2j.js → index-DXYVC0Yn.js} +15 -15
- package/dist/client/assets/index-DXYVC0Yn.js.map +1 -0
- package/dist/client/assets/{preview-CQEw5MyC.js → preview-DOatxsdZ.js} +2 -2
- package/dist/client/assets/{preview-CQEw5MyC.js.map → preview-DOatxsdZ.js.map} +1 -1
- package/dist/client/assets/{useQualityAnalysis-CpRjizha.js → useQualityAnalysis-vNCNeOXS.js} +3 -3
- package/dist/client/assets/{useQualityAnalysis-CpRjizha.js.map → useQualityAnalysis-vNCNeOXS.js.map} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/templates/client-report-blocks.docx.json +44 -22
- package/package.json +8 -8
- package/dist/client/assets/_virtual_jto-sandbox-runtime-BNTRqpDp.js +0 -2
- package/dist/client/assets/_virtual_jto-sandbox-runtime-BNTRqpDp.js.map +0 -1
- package/dist/client/assets/index-cFu0HL2j.js.map +0 -1
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
"title": {
|
|
108
108
|
"type": "string",
|
|
109
109
|
"oneLine": true,
|
|
110
|
-
"maxWords":
|
|
110
|
+
"maxWords": 12,
|
|
111
111
|
"required": true
|
|
112
112
|
},
|
|
113
113
|
"subtitle": {
|
|
114
114
|
"type": "string",
|
|
115
115
|
"oneLine": true,
|
|
116
|
-
"maxWords":
|
|
116
|
+
"maxWords": 20,
|
|
117
117
|
"required": false
|
|
118
118
|
},
|
|
119
119
|
"client": {
|
|
@@ -202,6 +202,7 @@
|
|
|
202
202
|
"default": "accent"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
|
+
"spacing": { "before": 0, "after": 4 },
|
|
205
206
|
"keepNext": true
|
|
206
207
|
}
|
|
207
208
|
}
|
|
@@ -212,6 +213,7 @@
|
|
|
212
213
|
"text": {
|
|
213
214
|
"$slot": "/title"
|
|
214
215
|
},
|
|
216
|
+
"spacing": { "before": 0, "after": 10 },
|
|
215
217
|
"font": {
|
|
216
218
|
"family": {
|
|
217
219
|
"$theme": "/fonts/body/family",
|
|
@@ -228,7 +230,8 @@
|
|
|
228
230
|
"color": {
|
|
229
231
|
"$theme": "/styles/display/color",
|
|
230
232
|
"default": "textPrimary"
|
|
231
|
-
}
|
|
233
|
+
},
|
|
234
|
+
"lineSpacing": { "type": "multiple", "value": 1.1 }
|
|
232
235
|
},
|
|
233
236
|
"keepNext": true
|
|
234
237
|
}
|
|
@@ -257,8 +260,10 @@
|
|
|
257
260
|
"color": {
|
|
258
261
|
"$theme": "/styles/subtitle/color",
|
|
259
262
|
"default": "textPrimary"
|
|
260
|
-
}
|
|
263
|
+
},
|
|
264
|
+
"lineSpacing": { "type": "multiple", "value": 1.1 }
|
|
261
265
|
},
|
|
266
|
+
"spacing": { "before": 0, "after": 6 },
|
|
262
267
|
"keepNext": true
|
|
263
268
|
}
|
|
264
269
|
}
|
|
@@ -288,7 +293,8 @@
|
|
|
288
293
|
"$theme": "/styles/label/color",
|
|
289
294
|
"default": "textPrimary"
|
|
290
295
|
}
|
|
291
|
-
}
|
|
296
|
+
},
|
|
297
|
+
"spacing": { "before": 0, "after": 4 }
|
|
292
298
|
}
|
|
293
299
|
}
|
|
294
300
|
},
|
|
@@ -317,7 +323,8 @@
|
|
|
317
323
|
"$theme": "/styles/label/color",
|
|
318
324
|
"default": "textPrimary"
|
|
319
325
|
}
|
|
320
|
-
}
|
|
326
|
+
},
|
|
327
|
+
"spacing": { "before": 0, "after": 2 }
|
|
321
328
|
}
|
|
322
329
|
}
|
|
323
330
|
}
|
|
@@ -341,7 +348,7 @@
|
|
|
341
348
|
"tracker": {
|
|
342
349
|
"type": "string",
|
|
343
350
|
"oneLine": true,
|
|
344
|
-
"maxWords":
|
|
351
|
+
"maxWords": 3,
|
|
345
352
|
"required": false
|
|
346
353
|
}
|
|
347
354
|
},
|
|
@@ -401,25 +408,25 @@
|
|
|
401
408
|
"title": {
|
|
402
409
|
"type": "string",
|
|
403
410
|
"oneLine": true,
|
|
404
|
-
"maxWords":
|
|
411
|
+
"maxWords": 6,
|
|
405
412
|
"required": false
|
|
406
413
|
},
|
|
407
414
|
"tracker": {
|
|
408
415
|
"type": "string",
|
|
409
416
|
"oneLine": true,
|
|
410
|
-
"maxWords":
|
|
417
|
+
"maxWords": 3,
|
|
411
418
|
"required": false
|
|
412
419
|
},
|
|
413
420
|
"confidentiality": {
|
|
414
421
|
"type": "string",
|
|
415
422
|
"oneLine": true,
|
|
416
|
-
"maxWords":
|
|
423
|
+
"maxWords": 4,
|
|
417
424
|
"required": false
|
|
418
425
|
},
|
|
419
426
|
"date": {
|
|
420
427
|
"type": "string",
|
|
421
428
|
"oneLine": true,
|
|
422
|
-
"maxWords":
|
|
429
|
+
"maxWords": 3,
|
|
423
430
|
"required": false
|
|
424
431
|
},
|
|
425
432
|
"pageNumbers": {
|
|
@@ -648,7 +655,7 @@
|
|
|
648
655
|
]
|
|
649
656
|
},
|
|
650
657
|
"kpi-row": {
|
|
651
|
-
"description": "Two to four headline metrics in equal columns: value with its unit, label, and a signed delta with a direction glyph. An optional source collapses with its hairline. Text budgets reject overflow; columns reflow at unchanged type size.",
|
|
658
|
+
"description": "Two to four headline metrics in equal columns: value with its unit, label, and a signed delta with a direction glyph; four of them set the figures a size smaller. An optional source collapses with its hairline. Text budgets reject overflow; columns reflow at unchanged type size.",
|
|
652
659
|
"slots": {
|
|
653
660
|
"items": {
|
|
654
661
|
"type": "array",
|
|
@@ -661,12 +668,12 @@
|
|
|
661
668
|
"value": {
|
|
662
669
|
"type": "string",
|
|
663
670
|
"required": true,
|
|
664
|
-
"maxLength":
|
|
671
|
+
"maxLength": 7,
|
|
665
672
|
"description": "The headline figure, already formatted: 8.8, 94, +18."
|
|
666
673
|
},
|
|
667
674
|
"unit": {
|
|
668
675
|
"type": "string",
|
|
669
|
-
"maxLength":
|
|
676
|
+
"maxLength": 5,
|
|
670
677
|
"description": "Suffix drawn after the figure at half its size: %, €m, pts. Write the space yourself when one belongs."
|
|
671
678
|
},
|
|
672
679
|
"label": {
|
|
@@ -678,7 +685,7 @@
|
|
|
678
685
|
},
|
|
679
686
|
"delta": {
|
|
680
687
|
"type": "string",
|
|
681
|
-
"maxLength":
|
|
688
|
+
"maxLength": 10,
|
|
682
689
|
"description": "Signed change shown beside the figure: +3.2 pts, −0.4."
|
|
683
690
|
},
|
|
684
691
|
"trend": {
|
|
@@ -724,6 +731,11 @@
|
|
|
724
731
|
},
|
|
725
732
|
"trendValue": {
|
|
726
733
|
"$item": "/delta"
|
|
734
|
+
},
|
|
735
|
+
"size": {
|
|
736
|
+
"$if": "/items/3",
|
|
737
|
+
"then": "small",
|
|
738
|
+
"else": "medium"
|
|
727
739
|
}
|
|
728
740
|
}
|
|
729
741
|
}
|
|
@@ -834,7 +846,7 @@
|
|
|
834
846
|
]
|
|
835
847
|
},
|
|
836
848
|
"data-table": {
|
|
837
|
-
"description": "A sourced numeric table: a title, a text column of row labels, one to
|
|
849
|
+
"description": "A sourced numeric table: a title, a text column of row labels at a fifth of the measure, one to five data columns right-aligned by construction, then optional notes and a source line. With its header, 24 rows keep the table on one page; the table-design rule checks the compiled table for mixed decimals.",
|
|
838
850
|
"slots": {
|
|
839
851
|
"title": {
|
|
840
852
|
"type": "string",
|
|
@@ -857,7 +869,7 @@
|
|
|
857
869
|
"items": {
|
|
858
870
|
"type": "string",
|
|
859
871
|
"oneLine": true,
|
|
860
|
-
"maxWords":
|
|
872
|
+
"maxWords": 5
|
|
861
873
|
},
|
|
862
874
|
"description": "Row labels, top to bottom. Every data column lists its cells in this order and at this count."
|
|
863
875
|
},
|
|
@@ -865,7 +877,7 @@
|
|
|
865
877
|
"type": "array",
|
|
866
878
|
"required": true,
|
|
867
879
|
"minItems": 1,
|
|
868
|
-
"maxItems":
|
|
880
|
+
"maxItems": 5,
|
|
869
881
|
"items": {
|
|
870
882
|
"type": "object",
|
|
871
883
|
"properties": {
|
|
@@ -874,6 +886,7 @@
|
|
|
874
886
|
"required": true,
|
|
875
887
|
"oneLine": true,
|
|
876
888
|
"maxWords": 4,
|
|
889
|
+
"maxLength": 14,
|
|
877
890
|
"description": "Column header; put the unit here: Revenue (€m)."
|
|
878
891
|
},
|
|
879
892
|
"cells": {
|
|
@@ -883,7 +896,7 @@
|
|
|
883
896
|
"maxItems": 24,
|
|
884
897
|
"items": {
|
|
885
898
|
"type": "string",
|
|
886
|
-
"maxLength":
|
|
899
|
+
"maxLength": 10
|
|
887
900
|
},
|
|
888
901
|
"description": "One formatted value per row label, rounded the same way down the column."
|
|
889
902
|
},
|
|
@@ -943,13 +956,20 @@
|
|
|
943
956
|
"props": {
|
|
944
957
|
"width": 100,
|
|
945
958
|
"repeatHeaderOnPageBreak": true,
|
|
959
|
+
"rows": {
|
|
960
|
+
"$each": "/labels",
|
|
961
|
+
"template": { "cantSplit": true }
|
|
962
|
+
},
|
|
946
963
|
"columns": [
|
|
947
964
|
{
|
|
965
|
+
"width": "22%",
|
|
948
966
|
"header": {
|
|
949
967
|
"content": {
|
|
950
968
|
"$slot": "/labelHeader"
|
|
951
|
-
}
|
|
969
|
+
},
|
|
970
|
+
"padding": { "left": 0, "right": 6 }
|
|
952
971
|
},
|
|
972
|
+
"cellDefaults": { "padding": { "left": 0, "right": 6 } },
|
|
953
973
|
"cells": {
|
|
954
974
|
"$each": "/labels",
|
|
955
975
|
"template": {
|
|
@@ -972,7 +992,8 @@
|
|
|
972
992
|
},
|
|
973
993
|
"then": "right",
|
|
974
994
|
"else": "left"
|
|
975
|
-
}
|
|
995
|
+
},
|
|
996
|
+
"padding": { "left": 6, "right": 0 }
|
|
976
997
|
},
|
|
977
998
|
"cellDefaults": {
|
|
978
999
|
"horizontalAlignment": {
|
|
@@ -981,7 +1002,8 @@
|
|
|
981
1002
|
},
|
|
982
1003
|
"then": "right",
|
|
983
1004
|
"else": "left"
|
|
984
|
-
}
|
|
1005
|
+
},
|
|
1006
|
+
"padding": { "left": 6, "right": 0 }
|
|
985
1007
|
},
|
|
986
1008
|
"cells": {
|
|
987
1009
|
"$each": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-to-office/jto",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "JSON to Office CLI - Unified document and presentation generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
"vite": "6.0.5",
|
|
85
85
|
"zod": "^4.0.0",
|
|
86
86
|
"zustand": "5.0.2",
|
|
87
|
-
"@json-to-office/core-
|
|
88
|
-
"@json-to-office/core-
|
|
89
|
-
"@json-to-office/
|
|
90
|
-
"@json-to-office/
|
|
91
|
-
"@json-to-office/shared": "^
|
|
92
|
-
"@json-to-office/shared-
|
|
93
|
-
"@json-to-office/
|
|
87
|
+
"@json-to-office/core-pptx": "^4.0.0",
|
|
88
|
+
"@json-to-office/core-docx": "^4.4.0",
|
|
89
|
+
"@json-to-office/quality": "^4.1.0",
|
|
90
|
+
"@json-to-office/shared": "^4.0.0",
|
|
91
|
+
"@json-to-office/shared-docx": "^4.3.0",
|
|
92
|
+
"@json-to-office/shared-pptx": "^4.0.0",
|
|
93
|
+
"@json-to-office/jto-cli": "^4.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/lodash.debounce": "4.0.9",
|