@json-to-office/jto 4.0.0 → 4.5.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-BYwbxHMm.js → HomePage-CSBsGUBL.js} +4 -4
- package/dist/client/assets/{HomePage-BYwbxHMm.js.map → HomePage-CSBsGUBL.js.map} +1 -1
- package/dist/client/assets/{JsonEditorPage-D-MrEL0a.js → JsonEditorPage-BHVA2YLP.js} +3 -3
- package/dist/client/assets/{JsonEditorPage-D-MrEL0a.js.map → JsonEditorPage-BHVA2YLP.js.map} +1 -1
- package/dist/client/assets/{MonacoPluginProvider-TvgcvXjE.js → MonacoPluginProvider-D5aUgKZi.js} +5 -5
- package/dist/client/assets/{MonacoPluginProvider-TvgcvXjE.js.map → MonacoPluginProvider-D5aUgKZi.js.map} +1 -1
- package/dist/client/assets/{_virtual_jto-plugin-type-libs-C5SUUP6w.js → _virtual_jto-plugin-type-libs-gZZSIMe7.js} +368 -242
- package/dist/client/assets/{_virtual_jto-plugin-type-libs-C5SUUP6w.js.map → _virtual_jto-plugin-type-libs-gZZSIMe7.js.map} +1 -1
- package/dist/client/assets/_virtual_jto-sandbox-runtime-CVTtmFTd.js +2 -0
- package/dist/client/assets/_virtual_jto-sandbox-runtime-CVTtmFTd.js.map +1 -0
- package/dist/client/assets/{editor-CpMileWb.js → editor-Ce9XFPWx.js} +2 -2
- package/dist/client/assets/{editor-CpMileWb.js.map → editor-Ce9XFPWx.js.map} +1 -1
- package/dist/client/assets/{editor-monaco-json-CL3Vyeb9.js → editor-monaco-json-u3bIh2LA.js} +2 -2
- package/dist/client/assets/{editor-monaco-json-CL3Vyeb9.js.map → editor-monaco-json-u3bIh2LA.js.map} +1 -1
- package/dist/client/assets/{index-daXsvrCR.js → index-CHGFn3dH.js} +15 -15
- package/dist/client/assets/index-CHGFn3dH.js.map +1 -0
- package/dist/client/assets/{index-B5lbDTGF.js → index-DruKDred.js} +2 -2
- package/dist/client/assets/{index-B5lbDTGF.js.map → index-DruKDred.js.map} +1 -1
- package/dist/client/assets/{preview-C6F_ULv-.js → preview-Bjxi6Nq3.js} +2 -2
- package/dist/client/assets/{preview-C6F_ULv-.js.map → preview-Bjxi6Nq3.js.map} +1 -1
- package/dist/client/assets/{useQualityAnalysis-F0fVOTPN.js → useQualityAnalysis-AZKgMcJ7.js} +3 -3
- package/dist/client/assets/{useQualityAnalysis-F0fVOTPN.js.map → useQualityAnalysis-AZKgMcJ7.js.map} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/templates/client-report-blocks.docx.json +81 -66
- package/package.json +7 -7
- package/dist/client/assets/_virtual_jto-sandbox-runtime-DQLwb05P.js +0 -2
- package/dist/client/assets/_virtual_jto-sandbox-runtime-DQLwb05P.js.map +0 -1
- package/dist/client/assets/index-daXsvrCR.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,10 @@
|
|
|
202
202
|
"default": "accent"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
|
+
"spacing": {
|
|
206
|
+
"before": 0,
|
|
207
|
+
"after": 4
|
|
208
|
+
},
|
|
205
209
|
"keepNext": true
|
|
206
210
|
}
|
|
207
211
|
}
|
|
@@ -212,6 +216,10 @@
|
|
|
212
216
|
"text": {
|
|
213
217
|
"$slot": "/title"
|
|
214
218
|
},
|
|
219
|
+
"spacing": {
|
|
220
|
+
"before": 0,
|
|
221
|
+
"after": 10
|
|
222
|
+
},
|
|
215
223
|
"font": {
|
|
216
224
|
"family": {
|
|
217
225
|
"$theme": "/fonts/body/family",
|
|
@@ -228,6 +236,10 @@
|
|
|
228
236
|
"color": {
|
|
229
237
|
"$theme": "/styles/display/color",
|
|
230
238
|
"default": "textPrimary"
|
|
239
|
+
},
|
|
240
|
+
"lineSpacing": {
|
|
241
|
+
"type": "multiple",
|
|
242
|
+
"value": 1.1
|
|
231
243
|
}
|
|
232
244
|
},
|
|
233
245
|
"keepNext": true
|
|
@@ -257,8 +269,16 @@
|
|
|
257
269
|
"color": {
|
|
258
270
|
"$theme": "/styles/subtitle/color",
|
|
259
271
|
"default": "textPrimary"
|
|
272
|
+
},
|
|
273
|
+
"lineSpacing": {
|
|
274
|
+
"type": "multiple",
|
|
275
|
+
"value": 1.1
|
|
260
276
|
}
|
|
261
277
|
},
|
|
278
|
+
"spacing": {
|
|
279
|
+
"before": 0,
|
|
280
|
+
"after": 6
|
|
281
|
+
},
|
|
262
282
|
"keepNext": true
|
|
263
283
|
}
|
|
264
284
|
}
|
|
@@ -288,6 +308,10 @@
|
|
|
288
308
|
"$theme": "/styles/label/color",
|
|
289
309
|
"default": "textPrimary"
|
|
290
310
|
}
|
|
311
|
+
},
|
|
312
|
+
"spacing": {
|
|
313
|
+
"before": 0,
|
|
314
|
+
"after": 4
|
|
291
315
|
}
|
|
292
316
|
}
|
|
293
317
|
}
|
|
@@ -317,6 +341,10 @@
|
|
|
317
341
|
"$theme": "/styles/label/color",
|
|
318
342
|
"default": "textPrimary"
|
|
319
343
|
}
|
|
344
|
+
},
|
|
345
|
+
"spacing": {
|
|
346
|
+
"before": 0,
|
|
347
|
+
"after": 2
|
|
320
348
|
}
|
|
321
349
|
}
|
|
322
350
|
}
|
|
@@ -324,7 +352,7 @@
|
|
|
324
352
|
]
|
|
325
353
|
},
|
|
326
354
|
"section-opener": {
|
|
327
|
-
"description": "A numbered section heading
|
|
355
|
+
"description": "A numbered section heading.",
|
|
328
356
|
"slots": {
|
|
329
357
|
"number": {
|
|
330
358
|
"type": "string",
|
|
@@ -337,20 +365,6 @@
|
|
|
337
365
|
"oneLine": true,
|
|
338
366
|
"maxWords": 12,
|
|
339
367
|
"required": true
|
|
340
|
-
},
|
|
341
|
-
"tracker": {
|
|
342
|
-
"type": "string",
|
|
343
|
-
"oneLine": true,
|
|
344
|
-
"maxWords": 6,
|
|
345
|
-
"required": false
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"section": {
|
|
349
|
-
"tracker": {
|
|
350
|
-
"$slot": "/tracker",
|
|
351
|
-
"default": {
|
|
352
|
-
"$slot": "/title"
|
|
353
|
-
}
|
|
354
368
|
}
|
|
355
369
|
},
|
|
356
370
|
"body": [
|
|
@@ -396,15 +410,9 @@
|
|
|
396
410
|
]
|
|
397
411
|
},
|
|
398
412
|
"running-head": {
|
|
399
|
-
"description": "Document title
|
|
413
|
+
"description": "Document title in the header and confidentiality, page fields and date in the footer, inherited by every later section; those sections continue on the page.",
|
|
400
414
|
"slots": {
|
|
401
415
|
"title": {
|
|
402
|
-
"type": "string",
|
|
403
|
-
"oneLine": true,
|
|
404
|
-
"maxWords": 12,
|
|
405
|
-
"required": false
|
|
406
|
-
},
|
|
407
|
-
"tracker": {
|
|
408
416
|
"type": "string",
|
|
409
417
|
"oneLine": true,
|
|
410
418
|
"maxWords": 6,
|
|
@@ -413,13 +421,13 @@
|
|
|
413
421
|
"confidentiality": {
|
|
414
422
|
"type": "string",
|
|
415
423
|
"oneLine": true,
|
|
416
|
-
"maxWords":
|
|
424
|
+
"maxWords": 4,
|
|
417
425
|
"required": false
|
|
418
426
|
},
|
|
419
427
|
"date": {
|
|
420
428
|
"type": "string",
|
|
421
429
|
"oneLine": true,
|
|
422
|
-
"maxWords":
|
|
430
|
+
"maxWords": 3,
|
|
423
431
|
"required": false
|
|
424
432
|
},
|
|
425
433
|
"pageNumbers": {
|
|
@@ -436,24 +444,11 @@
|
|
|
436
444
|
"name": "paragraph",
|
|
437
445
|
"props": {
|
|
438
446
|
"text": {
|
|
439
|
-
"$
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
"default": ""
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"$context": "/section/tracker",
|
|
449
|
-
"default": {
|
|
450
|
-
"$slot": "/tracker",
|
|
451
|
-
"default": ""
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"separator": "\t",
|
|
456
|
-
"keepEmpty": true
|
|
447
|
+
"$slot": "/title",
|
|
448
|
+
"default": {
|
|
449
|
+
"$context": "/document/title",
|
|
450
|
+
"default": ""
|
|
451
|
+
}
|
|
457
452
|
},
|
|
458
453
|
"font": {
|
|
459
454
|
"family": {
|
|
@@ -473,15 +468,6 @@
|
|
|
473
468
|
"default": "textMuted"
|
|
474
469
|
}
|
|
475
470
|
},
|
|
476
|
-
"tabStops": [
|
|
477
|
-
{
|
|
478
|
-
"type": "right",
|
|
479
|
-
"position": {
|
|
480
|
-
"$measure": "width",
|
|
481
|
-
"unit": "twip"
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
],
|
|
485
471
|
"spacing": {
|
|
486
472
|
"before": 0,
|
|
487
473
|
"after": 0
|
|
@@ -648,7 +634,7 @@
|
|
|
648
634
|
]
|
|
649
635
|
},
|
|
650
636
|
"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.",
|
|
637
|
+
"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
638
|
"slots": {
|
|
653
639
|
"items": {
|
|
654
640
|
"type": "array",
|
|
@@ -661,12 +647,12 @@
|
|
|
661
647
|
"value": {
|
|
662
648
|
"type": "string",
|
|
663
649
|
"required": true,
|
|
664
|
-
"maxLength":
|
|
650
|
+
"maxLength": 7,
|
|
665
651
|
"description": "The headline figure, already formatted: 8.8, 94, +18."
|
|
666
652
|
},
|
|
667
653
|
"unit": {
|
|
668
654
|
"type": "string",
|
|
669
|
-
"maxLength":
|
|
655
|
+
"maxLength": 5,
|
|
670
656
|
"description": "Suffix drawn after the figure at half its size: %, €m, pts. Write the space yourself when one belongs."
|
|
671
657
|
},
|
|
672
658
|
"label": {
|
|
@@ -678,7 +664,7 @@
|
|
|
678
664
|
},
|
|
679
665
|
"delta": {
|
|
680
666
|
"type": "string",
|
|
681
|
-
"maxLength":
|
|
667
|
+
"maxLength": 10,
|
|
682
668
|
"description": "Signed change shown beside the figure: +3.2 pts, −0.4."
|
|
683
669
|
},
|
|
684
670
|
"trend": {
|
|
@@ -724,6 +710,11 @@
|
|
|
724
710
|
},
|
|
725
711
|
"trendValue": {
|
|
726
712
|
"$item": "/delta"
|
|
713
|
+
},
|
|
714
|
+
"size": {
|
|
715
|
+
"$if": "/items/3",
|
|
716
|
+
"then": "small",
|
|
717
|
+
"else": "medium"
|
|
727
718
|
}
|
|
728
719
|
}
|
|
729
720
|
}
|
|
@@ -834,7 +825,7 @@
|
|
|
834
825
|
]
|
|
835
826
|
},
|
|
836
827
|
"data-table": {
|
|
837
|
-
"description": "A sourced numeric table: a title, a text column of row labels, one to
|
|
828
|
+
"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
829
|
"slots": {
|
|
839
830
|
"title": {
|
|
840
831
|
"type": "string",
|
|
@@ -857,7 +848,7 @@
|
|
|
857
848
|
"items": {
|
|
858
849
|
"type": "string",
|
|
859
850
|
"oneLine": true,
|
|
860
|
-
"maxWords":
|
|
851
|
+
"maxWords": 5
|
|
861
852
|
},
|
|
862
853
|
"description": "Row labels, top to bottom. Every data column lists its cells in this order and at this count."
|
|
863
854
|
},
|
|
@@ -865,7 +856,7 @@
|
|
|
865
856
|
"type": "array",
|
|
866
857
|
"required": true,
|
|
867
858
|
"minItems": 1,
|
|
868
|
-
"maxItems":
|
|
859
|
+
"maxItems": 5,
|
|
869
860
|
"items": {
|
|
870
861
|
"type": "object",
|
|
871
862
|
"properties": {
|
|
@@ -874,6 +865,7 @@
|
|
|
874
865
|
"required": true,
|
|
875
866
|
"oneLine": true,
|
|
876
867
|
"maxWords": 4,
|
|
868
|
+
"maxLength": 14,
|
|
877
869
|
"description": "Column header; put the unit here: Revenue (€m)."
|
|
878
870
|
},
|
|
879
871
|
"cells": {
|
|
@@ -883,7 +875,7 @@
|
|
|
883
875
|
"maxItems": 24,
|
|
884
876
|
"items": {
|
|
885
877
|
"type": "string",
|
|
886
|
-
"maxLength":
|
|
878
|
+
"maxLength": 10
|
|
887
879
|
},
|
|
888
880
|
"description": "One formatted value per row label, rounded the same way down the column."
|
|
889
881
|
},
|
|
@@ -943,11 +935,28 @@
|
|
|
943
935
|
"props": {
|
|
944
936
|
"width": 100,
|
|
945
937
|
"repeatHeaderOnPageBreak": true,
|
|
938
|
+
"rows": {
|
|
939
|
+
"$each": "/labels",
|
|
940
|
+
"template": {
|
|
941
|
+
"cantSplit": true
|
|
942
|
+
}
|
|
943
|
+
},
|
|
946
944
|
"columns": [
|
|
947
945
|
{
|
|
946
|
+
"width": "22%",
|
|
948
947
|
"header": {
|
|
949
948
|
"content": {
|
|
950
949
|
"$slot": "/labelHeader"
|
|
950
|
+
},
|
|
951
|
+
"padding": {
|
|
952
|
+
"left": 0,
|
|
953
|
+
"right": 6
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
"cellDefaults": {
|
|
957
|
+
"padding": {
|
|
958
|
+
"left": 0,
|
|
959
|
+
"right": 6
|
|
951
960
|
}
|
|
952
961
|
},
|
|
953
962
|
"cells": {
|
|
@@ -972,6 +981,10 @@
|
|
|
972
981
|
},
|
|
973
982
|
"then": "right",
|
|
974
983
|
"else": "left"
|
|
984
|
+
},
|
|
985
|
+
"padding": {
|
|
986
|
+
"left": 6,
|
|
987
|
+
"right": 0
|
|
975
988
|
}
|
|
976
989
|
},
|
|
977
990
|
"cellDefaults": {
|
|
@@ -981,6 +994,10 @@
|
|
|
981
994
|
},
|
|
982
995
|
"then": "right",
|
|
983
996
|
"else": "left"
|
|
997
|
+
},
|
|
998
|
+
"padding": {
|
|
999
|
+
"left": 6,
|
|
1000
|
+
"right": 0
|
|
984
1001
|
}
|
|
985
1002
|
},
|
|
986
1003
|
"cells": {
|
|
@@ -1346,8 +1363,7 @@
|
|
|
1346
1363
|
"ref": "section-opener",
|
|
1347
1364
|
"slots": {
|
|
1348
1365
|
"number": "01",
|
|
1349
|
-
"title": "Delivery improvements supported growth"
|
|
1350
|
-
"tracker": "Performance"
|
|
1366
|
+
"title": "Delivery improvements supported growth"
|
|
1351
1367
|
}
|
|
1352
1368
|
}
|
|
1353
1369
|
},
|
|
@@ -1432,8 +1448,7 @@
|
|
|
1432
1448
|
"ref": "section-opener",
|
|
1433
1449
|
"slots": {
|
|
1434
1450
|
"number": "02",
|
|
1435
|
-
"title": "Focus the next quarter on retention"
|
|
1436
|
-
"tracker": "Recommendations"
|
|
1451
|
+
"title": "Focus the next quarter on retention"
|
|
1437
1452
|
}
|
|
1438
1453
|
}
|
|
1439
1454
|
},
|
|
@@ -1472,7 +1487,7 @@
|
|
|
1472
1487
|
{
|
|
1473
1488
|
"name": "paragraph",
|
|
1474
1489
|
"props": {
|
|
1475
|
-
"text": "The inherited running header
|
|
1490
|
+
"text": "The inherited running header carries the document title and this section’s page width; the section continues on the page. Page numbers are native Word fields."
|
|
1476
1491
|
}
|
|
1477
1492
|
},
|
|
1478
1493
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-to-office/jto",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.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-docx": "^4.
|
|
88
|
-
"@json-to-office/core-pptx": "^4.
|
|
87
|
+
"@json-to-office/core-docx": "^4.5.0",
|
|
88
|
+
"@json-to-office/core-pptx": "^4.4.1",
|
|
89
89
|
"@json-to-office/jto-cli": "^4.0.0",
|
|
90
|
-
"@json-to-office/quality": "^4.
|
|
91
|
-
"@json-to-office/shared": "^4.
|
|
92
|
-
"@json-to-office/shared-
|
|
93
|
-
"@json-to-office/shared
|
|
90
|
+
"@json-to-office/quality": "^4.5.0",
|
|
91
|
+
"@json-to-office/shared-docx": "^4.3.0",
|
|
92
|
+
"@json-to-office/shared-pptx": "^4.0.0",
|
|
93
|
+
"@json-to-office/shared": "^4.4.1"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/lodash.debounce": "4.0.9",
|