reamkit 1.31.0 → 1.32.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.
Files changed (83) hide show
  1. package/README.md +10 -0
  2. package/dist/esm/core/bidi/index.d.ts +10 -0
  3. package/dist/esm/core/bidi/index.js +18 -2
  4. package/dist/esm/core/converter/facade.js +10 -5
  5. package/dist/esm/core/converter/project.js +1 -0
  6. package/dist/esm/core/converter/ream.js +17 -6
  7. package/dist/esm/core/converter/sheet-images.d.ts +17 -0
  8. package/dist/esm/core/converter/sheet-images.js +33 -0
  9. package/dist/esm/core/document-model/index.d.ts +1 -1
  10. package/dist/esm/core/document-model/types.d.ts +112 -0
  11. package/dist/esm/core/drawingml/chart-geometry.d.ts +21 -8
  12. package/dist/esm/core/drawingml/chart-geometry.js +198 -108
  13. package/dist/esm/core/drawingml/chart-parser.js +73 -2
  14. package/dist/esm/core/drawingml/colors.d.ts +6 -0
  15. package/dist/esm/core/drawingml/colors.js +23 -3
  16. package/dist/esm/core/drawingml/shape-render.d.ts +3 -1
  17. package/dist/esm/core/drawingml/shape-render.js +4 -2
  18. package/dist/esm/core/font/measure.d.ts +9 -0
  19. package/dist/esm/core/font/measure.js +9 -1
  20. package/dist/esm/core/fonts/families.js +4 -2
  21. package/dist/esm/core/fonts/scripts.js +4 -2
  22. package/dist/esm/core/ir/flow.d.ts +6 -0
  23. package/dist/esm/core/ir/sheet.d.ts +43 -0
  24. package/dist/esm/core/number-format.js +16 -11
  25. package/dist/esm/core/spreadsheet-model/index.d.ts +1 -1
  26. package/dist/esm/core/spreadsheet-model/types.d.ts +96 -0
  27. package/dist/esm/core/style-cascade/resolver.js +4 -2
  28. package/dist/esm/excel/column-bands.d.ts +39 -6
  29. package/dist/esm/excel/column-bands.js +41 -17
  30. package/dist/esm/excel/comments-parser.js +19 -0
  31. package/dist/esm/excel/conditional-format.d.ts +7 -3
  32. package/dist/esm/excel/conditional-format.js +77 -39
  33. package/dist/esm/excel/formula/context.d.ts +18 -0
  34. package/dist/esm/excel/formula/eval.js +51 -0
  35. package/dist/esm/excel/formula/index.d.ts +2 -2
  36. package/dist/esm/excel/formula/lexer.d.ts +1 -1
  37. package/dist/esm/excel/formula/lexer.js +41 -0
  38. package/dist/esm/excel/formula/parser.d.ts +25 -0
  39. package/dist/esm/excel/formula/parser.js +95 -0
  40. package/dist/esm/excel/print-model.d.ts +38 -1
  41. package/dist/esm/excel/print-model.js +522 -80
  42. package/dist/esm/excel/shared-strings-parser.d.ts +9 -0
  43. package/dist/esm/excel/shared-strings-parser.js +11 -1
  44. package/dist/esm/excel/sheet-drawing.d.ts +38 -2
  45. package/dist/esm/excel/sheet-drawing.js +47 -13
  46. package/dist/esm/excel/sheet-shape-parser.d.ts +6 -2
  47. package/dist/esm/excel/sheet-shape-parser.js +18 -6
  48. package/dist/esm/excel/sheet-to-flow.d.ts +17 -0
  49. package/dist/esm/excel/sheet-to-flow.js +434 -47
  50. package/dist/esm/excel/styles-parser.d.ts +9 -0
  51. package/dist/esm/excel/styles-parser.js +80 -26
  52. package/dist/esm/excel/table-parser.js +5 -0
  53. package/dist/esm/excel/table-style-presets.d.ts +26 -0
  54. package/dist/esm/excel/table-style-presets.js +1555 -0
  55. package/dist/esm/excel/table-style.d.ts +13 -0
  56. package/dist/esm/excel/table-style.js +75 -0
  57. package/dist/esm/excel/tint.d.ts +10 -0
  58. package/dist/esm/excel/tint.js +75 -0
  59. package/dist/esm/excel/vml-drawing.d.ts +41 -3
  60. package/dist/esm/excel/vml-drawing.js +143 -10
  61. package/dist/esm/excel/worksheet-parser.js +89 -15
  62. package/dist/esm/excel/xls/biff-reader.js +10 -2
  63. package/dist/esm/excel/xlsx-reader.js +195 -14
  64. package/dist/esm/excel/xlsx-writer.js +8 -7
  65. package/dist/esm/html/html-writer.js +202 -20
  66. package/dist/esm/layout/fit-pages.d.ts +11 -0
  67. package/dist/esm/layout/fit-pages.js +86 -0
  68. package/dist/esm/layout/line-paint.d.ts +58 -0
  69. package/dist/esm/layout/line-paint.js +107 -0
  70. package/dist/esm/layout/page-doc.d.ts +51 -0
  71. package/dist/esm/layout/page-doc.js +141 -1
  72. package/dist/esm/layout/styled-layout.d.ts +7 -0
  73. package/dist/esm/layout/styled-layout.js +274 -51
  74. package/dist/esm/layout/turned-section.js +14 -2
  75. package/dist/esm/markdown/markdown-writer.js +17 -6
  76. package/dist/esm/pdf/styled-page-emitter.js +49 -71
  77. package/dist/esm/pdf/styled-page-renderer.js +1 -1
  78. package/dist/esm/pdf-reader/font.js +3 -3
  79. package/dist/esm/svg/svg-text.d.ts +58 -0
  80. package/dist/esm/svg/svg-text.js +322 -0
  81. package/dist/esm/svg/svg-writer.js +135 -71
  82. package/dist/esm/word/docx-writer.js +11 -2
  83. package/package.json +5 -1
@@ -0,0 +1,1555 @@
1
+ //#region src/excel/table-style-presets.ts
2
+ var DXFS = [
3
+ {
4
+ color: [1, 0],
5
+ fill: [9, .8],
6
+ border: {
7
+ left: ["thin", [9, .4]],
8
+ right: ["thin", [9, .4]],
9
+ top: ["thin", [9, .4]],
10
+ bottom: ["thin", [9, .4]],
11
+ vertical: ["thin", [9, .4]],
12
+ horizontal: ["thin", [9, .4]]
13
+ }
14
+ },
15
+ {
16
+ bold: true,
17
+ color: [1, 0]
18
+ },
19
+ {
20
+ bold: true,
21
+ color: [1, 0],
22
+ border: { top: ["medium", [9, 0]] }
23
+ },
24
+ { fill: [9, .6] },
25
+ {
26
+ color: [1, 0],
27
+ fill: [8, .8],
28
+ border: {
29
+ left: ["thin", [8, .4]],
30
+ right: ["thin", [8, .4]],
31
+ top: ["thin", [8, .4]],
32
+ bottom: ["thin", [8, .4]],
33
+ vertical: ["thin", [8, .4]],
34
+ horizontal: ["thin", [8, .4]]
35
+ }
36
+ },
37
+ {
38
+ bold: true,
39
+ color: [1, 0],
40
+ border: { top: ["medium", [8, 0]] }
41
+ },
42
+ { fill: [8, .6] },
43
+ {
44
+ color: [1, 0],
45
+ fill: [7, .8],
46
+ border: {
47
+ left: ["thin", [7, .4]],
48
+ right: ["thin", [7, .4]],
49
+ top: ["thin", [7, .4]],
50
+ bottom: ["thin", [7, .4]],
51
+ vertical: ["thin", [7, .4]],
52
+ horizontal: ["thin", [7, .4]]
53
+ }
54
+ },
55
+ {
56
+ bold: true,
57
+ color: [1, 0],
58
+ border: { top: ["medium", [7, 0]] }
59
+ },
60
+ { fill: [7, .6] },
61
+ {
62
+ color: [1, 0],
63
+ fill: [6, .8],
64
+ border: {
65
+ left: ["thin", [6, .4]],
66
+ right: ["thin", [6, .4]],
67
+ top: ["thin", [6, .4]],
68
+ bottom: ["thin", [6, .4]],
69
+ vertical: ["thin", [6, .4]],
70
+ horizontal: ["thin", [6, .4]]
71
+ }
72
+ },
73
+ {
74
+ bold: true,
75
+ color: [1, 0],
76
+ border: { top: ["medium", [6, 0]] }
77
+ },
78
+ { fill: [6, .6] },
79
+ {
80
+ color: [1, 0],
81
+ fill: [5, .8],
82
+ border: {
83
+ left: ["thin", [5, .4]],
84
+ right: ["thin", [5, .4]],
85
+ top: ["thin", [5, .4]],
86
+ bottom: ["thin", [5, .4]],
87
+ vertical: ["thin", [5, .4]],
88
+ horizontal: ["thin", [5, .4]]
89
+ }
90
+ },
91
+ {
92
+ bold: true,
93
+ color: [1, 0],
94
+ border: { top: ["medium", [5, 0]] }
95
+ },
96
+ { fill: [5, .6] },
97
+ {
98
+ color: [1, 0],
99
+ fill: [4, .8],
100
+ border: {
101
+ left: ["thin", [4, .4]],
102
+ right: ["thin", [4, .4]],
103
+ top: ["thin", [4, .4]],
104
+ bottom: ["thin", [4, .4]],
105
+ vertical: ["thin", [4, .4]],
106
+ horizontal: ["thin", [4, .4]]
107
+ }
108
+ },
109
+ {
110
+ bold: true,
111
+ color: [1, 0],
112
+ border: { top: ["medium", [4, 0]] }
113
+ },
114
+ { fill: [4, .6] },
115
+ {
116
+ color: [1, 0],
117
+ fill: [0, -.15],
118
+ border: {
119
+ left: ["thin", [1, 0]],
120
+ right: ["thin", [1, 0]],
121
+ top: ["thin", [1, 0]],
122
+ bottom: ["thin", [1, 0]],
123
+ vertical: ["thin", [1, 0]],
124
+ horizontal: ["thin", [1, 0]]
125
+ }
126
+ },
127
+ {
128
+ bold: true,
129
+ color: [1, 0],
130
+ border: { top: ["medium", [1, 0]] }
131
+ },
132
+ { fill: [0, -.35] },
133
+ {
134
+ color: [1, 0],
135
+ border: {
136
+ top: ["medium", [1, 0]],
137
+ bottom: ["medium", [1, 0]]
138
+ }
139
+ },
140
+ {
141
+ bold: true,
142
+ color: [0, 0],
143
+ fill: [9, 0],
144
+ border: { bottom: ["medium", [1, 0]] }
145
+ },
146
+ { border: { top: ["double", [1, 0]] } },
147
+ {
148
+ bold: true,
149
+ color: [0, 0],
150
+ fill: [9, 0]
151
+ },
152
+ { fill: [0, -.15] },
153
+ {
154
+ bold: true,
155
+ color: [0, 0],
156
+ fill: [8, 0],
157
+ border: { bottom: ["medium", [1, 0]] }
158
+ },
159
+ {
160
+ bold: true,
161
+ color: [0, 0],
162
+ fill: [8, 0]
163
+ },
164
+ {
165
+ bold: true,
166
+ color: [0, 0],
167
+ fill: [7, 0],
168
+ border: { bottom: ["medium", [1, 0]] }
169
+ },
170
+ {
171
+ bold: true,
172
+ color: [0, 0],
173
+ fill: [7, 0]
174
+ },
175
+ {
176
+ bold: true,
177
+ color: [0, 0],
178
+ fill: [6, 0],
179
+ border: { bottom: ["medium", [1, 0]] }
180
+ },
181
+ {
182
+ bold: true,
183
+ color: [0, 0],
184
+ fill: [6, 0]
185
+ },
186
+ {
187
+ bold: true,
188
+ color: [0, 0],
189
+ fill: [5, 0],
190
+ border: { bottom: ["medium", [1, 0]] }
191
+ },
192
+ {
193
+ bold: true,
194
+ color: [0, 0],
195
+ fill: [5, 0]
196
+ },
197
+ {
198
+ bold: true,
199
+ color: [0, 0],
200
+ fill: [4, 0],
201
+ border: { bottom: ["medium", [1, 0]] }
202
+ },
203
+ {
204
+ bold: true,
205
+ color: [0, 0],
206
+ fill: [4, 0]
207
+ },
208
+ {
209
+ color: [1, 0],
210
+ border: {
211
+ left: ["thin", [1, 0]],
212
+ right: ["thin", [1, 0]],
213
+ top: ["medium", [1, 0]],
214
+ bottom: ["medium", [1, 0]],
215
+ vertical: ["thin", [1, 0]],
216
+ horizontal: ["thin", [1, 0]]
217
+ }
218
+ },
219
+ {
220
+ bold: true,
221
+ color: [0, 0],
222
+ fill: [1, 0],
223
+ border: { bottom: ["medium", [1, 0]] }
224
+ },
225
+ {
226
+ bold: true,
227
+ color: [0, 0],
228
+ fill: [1, 0]
229
+ },
230
+ {
231
+ color: [1, 0],
232
+ fill: [9, .8],
233
+ border: {
234
+ vertical: ["thin", [0, 0]],
235
+ horizontal: ["thin", [0, 0]]
236
+ }
237
+ },
238
+ {
239
+ bold: true,
240
+ color: [0, 0],
241
+ fill: [9, 0],
242
+ border: { bottom: ["thick", [0, 0]] }
243
+ },
244
+ {
245
+ bold: true,
246
+ color: [0, 0],
247
+ fill: [9, 0],
248
+ border: { top: ["thick", [0, 0]] }
249
+ },
250
+ {
251
+ color: [1, 0],
252
+ fill: [8, .8],
253
+ border: {
254
+ vertical: ["thin", [0, 0]],
255
+ horizontal: ["thin", [0, 0]]
256
+ }
257
+ },
258
+ {
259
+ bold: true,
260
+ color: [0, 0],
261
+ fill: [8, 0],
262
+ border: { bottom: ["thick", [0, 0]] }
263
+ },
264
+ {
265
+ bold: true,
266
+ color: [0, 0],
267
+ fill: [8, 0],
268
+ border: { top: ["thick", [0, 0]] }
269
+ },
270
+ {
271
+ color: [1, 0],
272
+ fill: [7, .8],
273
+ border: {
274
+ vertical: ["thin", [0, 0]],
275
+ horizontal: ["thin", [0, 0]]
276
+ }
277
+ },
278
+ {
279
+ bold: true,
280
+ color: [0, 0],
281
+ fill: [7, 0],
282
+ border: { bottom: ["thick", [0, 0]] }
283
+ },
284
+ {
285
+ bold: true,
286
+ color: [0, 0],
287
+ fill: [7, 0],
288
+ border: { top: ["thick", [0, 0]] }
289
+ },
290
+ {
291
+ color: [1, 0],
292
+ fill: [6, .8],
293
+ border: {
294
+ vertical: ["thin", [0, 0]],
295
+ horizontal: ["thin", [0, 0]]
296
+ }
297
+ },
298
+ {
299
+ bold: true,
300
+ color: [0, 0],
301
+ fill: [6, 0],
302
+ border: { bottom: ["thick", [0, 0]] }
303
+ },
304
+ {
305
+ bold: true,
306
+ color: [0, 0],
307
+ fill: [6, 0],
308
+ border: { top: ["thick", [0, 0]] }
309
+ },
310
+ {
311
+ color: [1, 0],
312
+ fill: [5, .8],
313
+ border: {
314
+ vertical: ["thin", [0, 0]],
315
+ horizontal: ["thin", [0, 0]]
316
+ }
317
+ },
318
+ {
319
+ bold: true,
320
+ color: [0, 0],
321
+ fill: [5, 0],
322
+ border: { bottom: ["thick", [0, 0]] }
323
+ },
324
+ {
325
+ bold: true,
326
+ color: [0, 0],
327
+ fill: [5, 0],
328
+ border: { top: ["thick", [0, 0]] }
329
+ },
330
+ {
331
+ color: [1, 0],
332
+ fill: [4, .8],
333
+ border: {
334
+ vertical: ["thin", [0, 0]],
335
+ horizontal: ["thin", [0, 0]]
336
+ }
337
+ },
338
+ {
339
+ bold: true,
340
+ color: [0, 0],
341
+ fill: [4, 0],
342
+ border: { bottom: ["thick", [0, 0]] }
343
+ },
344
+ {
345
+ bold: true,
346
+ color: [0, 0],
347
+ fill: [4, 0],
348
+ border: { top: ["thick", [0, 0]] }
349
+ },
350
+ {
351
+ color: [1, 0],
352
+ fill: [0, -.15],
353
+ border: {
354
+ vertical: ["thin", [0, 0]],
355
+ horizontal: ["thin", [0, 0]]
356
+ }
357
+ },
358
+ {
359
+ bold: true,
360
+ color: [0, 0],
361
+ fill: [1, 0],
362
+ border: { bottom: ["thick", [0, 0]] }
363
+ },
364
+ {
365
+ bold: true,
366
+ color: [0, 0],
367
+ fill: [1, 0],
368
+ border: { top: ["thick", [0, 0]] }
369
+ },
370
+ {
371
+ color: [1, 0],
372
+ border: {
373
+ left: ["thin", [9, .4]],
374
+ right: ["thin", [9, .4]],
375
+ top: ["thin", [9, .4]],
376
+ bottom: ["thin", [9, .4]],
377
+ horizontal: ["thin", [9, .4]]
378
+ }
379
+ },
380
+ {
381
+ bold: true,
382
+ color: [1, 0],
383
+ border: { top: ["double", [9, 0]] }
384
+ },
385
+ { fill: [9, .8] },
386
+ {
387
+ color: [1, 0],
388
+ border: {
389
+ left: ["thin", [8, .4]],
390
+ right: ["thin", [8, .4]],
391
+ top: ["thin", [8, .4]],
392
+ bottom: ["thin", [8, .4]],
393
+ horizontal: ["thin", [8, .4]]
394
+ }
395
+ },
396
+ {
397
+ bold: true,
398
+ color: [1, 0],
399
+ border: { top: ["double", [8, 0]] }
400
+ },
401
+ { fill: [8, .8] },
402
+ {
403
+ color: [1, 0],
404
+ border: {
405
+ left: ["thin", [7, .4]],
406
+ right: ["thin", [7, .4]],
407
+ top: ["thin", [7, .4]],
408
+ bottom: ["thin", [7, .4]],
409
+ horizontal: ["thin", [7, .4]]
410
+ }
411
+ },
412
+ {
413
+ bold: true,
414
+ color: [1, 0],
415
+ border: { top: ["double", [7, 0]] }
416
+ },
417
+ { fill: [7, .8] },
418
+ {
419
+ color: [1, 0],
420
+ border: {
421
+ left: ["thin", [6, .4]],
422
+ right: ["thin", [6, .4]],
423
+ top: ["thin", [6, .4]],
424
+ bottom: ["thin", [6, .4]],
425
+ horizontal: ["thin", [6, .4]]
426
+ }
427
+ },
428
+ {
429
+ bold: true,
430
+ color: [1, 0],
431
+ border: { top: ["double", [6, 0]] }
432
+ },
433
+ { fill: [6, .8] },
434
+ {
435
+ color: [1, 0],
436
+ border: {
437
+ left: ["thin", [5, .4]],
438
+ right: ["thin", [5, .4]],
439
+ top: ["thin", [5, .4]],
440
+ bottom: ["thin", [5, .4]],
441
+ horizontal: ["thin", [5, .4]]
442
+ }
443
+ },
444
+ {
445
+ bold: true,
446
+ color: [1, 0],
447
+ border: { top: ["double", [5, 0]] }
448
+ },
449
+ { fill: [5, .8] },
450
+ {
451
+ color: [1, 0],
452
+ border: {
453
+ left: ["thin", [4, .4]],
454
+ right: ["thin", [4, .4]],
455
+ top: ["thin", [4, .4]],
456
+ bottom: ["thin", [4, .4]],
457
+ horizontal: ["thin", [4, .4]]
458
+ }
459
+ },
460
+ {
461
+ bold: true,
462
+ color: [1, 0],
463
+ border: { top: ["double", [4, 0]] }
464
+ },
465
+ { fill: [4, .8] },
466
+ {
467
+ color: [1, 0],
468
+ border: {
469
+ left: ["thin", [1, 0]],
470
+ right: ["thin", [1, 0]],
471
+ top: ["thin", [1, 0]],
472
+ bottom: ["thin", [1, 0]],
473
+ horizontal: ["thin", [1, 0]]
474
+ }
475
+ },
476
+ {
477
+ bold: true,
478
+ color: [1, 0],
479
+ border: { top: ["double", [1, 0]] }
480
+ },
481
+ {
482
+ color: [1, 0],
483
+ border: {
484
+ left: ["thin", [9, 0]],
485
+ right: ["thin", [9, 0]],
486
+ top: ["thin", [9, 0]],
487
+ bottom: ["thin", [9, 0]],
488
+ vertical: ["thin", [9, 0]],
489
+ horizontal: ["thin", [9, 0]]
490
+ }
491
+ },
492
+ {
493
+ bold: true,
494
+ color: [1, 0],
495
+ border: { bottom: ["medium", [9, 0]] }
496
+ },
497
+ {
498
+ color: [1, 0],
499
+ border: {
500
+ left: ["thin", [8, 0]],
501
+ right: ["thin", [8, 0]],
502
+ top: ["thin", [8, 0]],
503
+ bottom: ["thin", [8, 0]],
504
+ vertical: ["thin", [8, 0]],
505
+ horizontal: ["thin", [8, 0]]
506
+ }
507
+ },
508
+ {
509
+ bold: true,
510
+ color: [1, 0],
511
+ border: { bottom: ["medium", [8, 0]] }
512
+ },
513
+ {
514
+ color: [1, 0],
515
+ border: {
516
+ left: ["thin", [7, 0]],
517
+ right: ["thin", [7, 0]],
518
+ top: ["thin", [7, 0]],
519
+ bottom: ["thin", [7, 0]],
520
+ vertical: ["thin", [7, 0]],
521
+ horizontal: ["thin", [7, 0]]
522
+ }
523
+ },
524
+ {
525
+ bold: true,
526
+ color: [1, 0],
527
+ border: { bottom: ["medium", [7, 0]] }
528
+ },
529
+ {
530
+ color: [1, 0],
531
+ border: {
532
+ left: ["thin", [6, 0]],
533
+ right: ["thin", [6, 0]],
534
+ top: ["thin", [6, 0]],
535
+ bottom: ["thin", [6, 0]],
536
+ vertical: ["thin", [6, 0]],
537
+ horizontal: ["thin", [6, 0]]
538
+ }
539
+ },
540
+ {
541
+ bold: true,
542
+ color: [1, 0],
543
+ border: { bottom: ["medium", [6, 0]] }
544
+ },
545
+ {
546
+ color: [1, 0],
547
+ border: {
548
+ left: ["thin", [5, 0]],
549
+ right: ["thin", [5, 0]],
550
+ top: ["thin", [5, 0]],
551
+ bottom: ["thin", [5, 0]],
552
+ vertical: ["thin", [5, 0]],
553
+ horizontal: ["thin", [5, 0]]
554
+ }
555
+ },
556
+ {
557
+ bold: true,
558
+ color: [1, 0],
559
+ border: { bottom: ["medium", [5, 0]] }
560
+ },
561
+ {
562
+ color: [1, 0],
563
+ border: {
564
+ left: ["thin", [4, 0]],
565
+ right: ["thin", [4, 0]],
566
+ top: ["thin", [4, 0]],
567
+ bottom: ["thin", [4, 0]],
568
+ vertical: ["thin", [4, 0]],
569
+ horizontal: ["thin", [4, 0]]
570
+ }
571
+ },
572
+ {
573
+ bold: true,
574
+ color: [1, 0],
575
+ border: { bottom: ["medium", [4, 0]] }
576
+ },
577
+ {
578
+ color: [1, 0],
579
+ border: {
580
+ left: ["thin", [1, 0]],
581
+ right: ["thin", [1, 0]],
582
+ top: ["thin", [1, 0]],
583
+ bottom: ["thin", [1, 0]],
584
+ vertical: ["thin", [1, 0]],
585
+ horizontal: ["thin", [1, 0]]
586
+ }
587
+ },
588
+ {
589
+ bold: true,
590
+ color: [1, 0],
591
+ border: { bottom: ["medium", [1, 0]] }
592
+ },
593
+ {
594
+ color: [1, 0],
595
+ border: {
596
+ left: ["thin", [9, 0]],
597
+ right: ["thin", [9, 0]],
598
+ top: ["thin", [9, 0]],
599
+ bottom: ["thin", [9, 0]]
600
+ }
601
+ },
602
+ { border: { top: ["thin", [9, 0]] } },
603
+ { border: { left: ["thin", [9, 0]] } },
604
+ {
605
+ color: [1, 0],
606
+ border: {
607
+ left: ["thin", [8, 0]],
608
+ right: ["thin", [8, 0]],
609
+ top: ["thin", [8, 0]],
610
+ bottom: ["thin", [8, 0]]
611
+ }
612
+ },
613
+ { border: { top: ["thin", [8, 0]] } },
614
+ { border: { left: ["thin", [8, 0]] } },
615
+ {
616
+ color: [1, 0],
617
+ border: {
618
+ left: ["thin", [7, 0]],
619
+ right: ["thin", [7, 0]],
620
+ top: ["thin", [7, 0]],
621
+ bottom: ["thin", [7, 0]]
622
+ }
623
+ },
624
+ { border: { top: ["thin", [7, 0]] } },
625
+ { border: { left: ["thin", [7, 0]] } },
626
+ {
627
+ color: [1, 0],
628
+ border: {
629
+ left: ["thin", [6, 0]],
630
+ right: ["thin", [6, 0]],
631
+ top: ["thin", [6, 0]],
632
+ bottom: ["thin", [6, 0]]
633
+ }
634
+ },
635
+ { border: { top: ["thin", [6, 0]] } },
636
+ { border: { left: ["thin", [6, 0]] } },
637
+ {
638
+ color: [1, 0],
639
+ border: {
640
+ left: ["thin", [5, 0]],
641
+ right: ["thin", [5, 0]],
642
+ top: ["thin", [5, 0]],
643
+ bottom: ["thin", [5, 0]]
644
+ }
645
+ },
646
+ { border: { top: ["thin", [5, 0]] } },
647
+ { border: { left: ["thin", [5, 0]] } },
648
+ {
649
+ color: [1, 0],
650
+ border: {
651
+ left: ["thin", [4, 0]],
652
+ right: ["thin", [4, 0]],
653
+ top: ["thin", [4, 0]],
654
+ bottom: ["thin", [4, 0]]
655
+ }
656
+ },
657
+ { border: { top: ["thin", [4, 0]] } },
658
+ { border: { left: ["thin", [4, 0]] } },
659
+ {
660
+ color: [1, 0],
661
+ border: {
662
+ left: ["thin", [1, 0]],
663
+ right: ["thin", [1, 0]],
664
+ top: ["thin", [1, 0]],
665
+ bottom: ["thin", [1, 0]]
666
+ }
667
+ },
668
+ { border: { top: ["thin", [1, 0]] } },
669
+ { border: { left: ["thin", [1, 0]] } },
670
+ {
671
+ color: [9, -.25],
672
+ border: {
673
+ top: ["thin", [9, 0]],
674
+ bottom: ["thin", [9, 0]]
675
+ }
676
+ },
677
+ {
678
+ bold: true,
679
+ color: [9, -.25],
680
+ border: { bottom: ["thin", [9, 0]] }
681
+ },
682
+ {
683
+ bold: true,
684
+ color: [9, -.25],
685
+ border: { top: ["thin", [9, 0]] }
686
+ },
687
+ {
688
+ bold: true,
689
+ color: [9, -.25]
690
+ },
691
+ {
692
+ color: [8, -.25],
693
+ border: {
694
+ top: ["thin", [8, 0]],
695
+ bottom: ["thin", [8, 0]]
696
+ }
697
+ },
698
+ {
699
+ bold: true,
700
+ color: [8, -.25],
701
+ border: { bottom: ["thin", [8, 0]] }
702
+ },
703
+ {
704
+ bold: true,
705
+ color: [8, -.25],
706
+ border: { top: ["thin", [8, 0]] }
707
+ },
708
+ {
709
+ bold: true,
710
+ color: [8, -.25]
711
+ },
712
+ {
713
+ color: [7, -.25],
714
+ border: {
715
+ top: ["thin", [7, 0]],
716
+ bottom: ["thin", [7, 0]]
717
+ }
718
+ },
719
+ {
720
+ bold: true,
721
+ color: [7, -.25],
722
+ border: { bottom: ["thin", [7, 0]] }
723
+ },
724
+ {
725
+ bold: true,
726
+ color: [7, -.25],
727
+ border: { top: ["thin", [7, 0]] }
728
+ },
729
+ {
730
+ bold: true,
731
+ color: [7, -.25]
732
+ },
733
+ {
734
+ color: [6, -.25],
735
+ border: {
736
+ top: ["thin", [6, 0]],
737
+ bottom: ["thin", [6, 0]]
738
+ }
739
+ },
740
+ {
741
+ bold: true,
742
+ color: [6, -.25],
743
+ border: { bottom: ["thin", [6, 0]] }
744
+ },
745
+ {
746
+ bold: true,
747
+ color: [6, -.25],
748
+ border: { top: ["thin", [6, 0]] }
749
+ },
750
+ {
751
+ bold: true,
752
+ color: [6, -.25]
753
+ },
754
+ {
755
+ color: [5, -.25],
756
+ border: {
757
+ top: ["thin", [5, 0]],
758
+ bottom: ["thin", [5, 0]]
759
+ }
760
+ },
761
+ {
762
+ bold: true,
763
+ color: [5, -.25],
764
+ border: { bottom: ["thin", [5, 0]] }
765
+ },
766
+ {
767
+ bold: true,
768
+ color: [5, -.25],
769
+ border: { top: ["thin", [5, 0]] }
770
+ },
771
+ {
772
+ bold: true,
773
+ color: [5, -.25]
774
+ },
775
+ {
776
+ color: [4, -.25],
777
+ border: {
778
+ top: ["thin", [4, 0]],
779
+ bottom: ["thin", [4, 0]]
780
+ }
781
+ },
782
+ {
783
+ bold: true,
784
+ color: [4, -.25],
785
+ border: { bottom: ["thin", [4, 0]] }
786
+ },
787
+ {
788
+ bold: true,
789
+ color: [4, -.25],
790
+ border: { top: ["thin", [4, 0]] }
791
+ },
792
+ {
793
+ bold: true,
794
+ color: [4, -.25]
795
+ },
796
+ {
797
+ color: [1, 0],
798
+ border: {
799
+ top: ["thin", [1, 0]],
800
+ bottom: ["thin", [1, 0]]
801
+ }
802
+ },
803
+ {
804
+ bold: true,
805
+ color: [1, 0],
806
+ border: { bottom: ["thin", [1, 0]] }
807
+ },
808
+ {
809
+ bold: true,
810
+ color: [1, 0],
811
+ border: { top: ["thin", [1, 0]] }
812
+ },
813
+ {
814
+ color: [0, 0],
815
+ fill: [9, 0]
816
+ },
817
+ {
818
+ color: [0, 0],
819
+ fill: [7, 0]
820
+ },
821
+ {
822
+ color: [0, 0],
823
+ fill: [5, 0]
824
+ },
825
+ {
826
+ color: [0, 0],
827
+ fill: [1, 0]
828
+ },
829
+ {
830
+ bold: true,
831
+ color: [0, 0],
832
+ fill: [1, 0],
833
+ border: { bottom: ["medium", [0, 0]] }
834
+ },
835
+ {
836
+ bold: true,
837
+ color: [0, 0],
838
+ fill: [9, -.5],
839
+ border: { top: ["medium", [0, 0]] }
840
+ },
841
+ {
842
+ bold: true,
843
+ color: [0, 0],
844
+ fill: [9, -.25],
845
+ border: { right: ["medium", [0, 0]] }
846
+ },
847
+ {
848
+ bold: true,
849
+ color: [0, 0],
850
+ fill: [9, -.25],
851
+ border: { left: ["medium", [0, 0]] }
852
+ },
853
+ { fill: [9, -.25] },
854
+ {
855
+ color: [0, 0],
856
+ fill: [8, 0]
857
+ },
858
+ {
859
+ bold: true,
860
+ color: [0, 0],
861
+ fill: [8, -.5],
862
+ border: { top: ["medium", [0, 0]] }
863
+ },
864
+ {
865
+ bold: true,
866
+ color: [0, 0],
867
+ fill: [8, -.25],
868
+ border: { right: ["medium", [0, 0]] }
869
+ },
870
+ {
871
+ bold: true,
872
+ color: [0, 0],
873
+ fill: [8, -.25],
874
+ border: { left: ["medium", [0, 0]] }
875
+ },
876
+ { fill: [8, -.25] },
877
+ {
878
+ bold: true,
879
+ color: [0, 0],
880
+ fill: [7, -.5],
881
+ border: { top: ["medium", [0, 0]] }
882
+ },
883
+ {
884
+ bold: true,
885
+ color: [0, 0],
886
+ fill: [7, -.25],
887
+ border: { right: ["medium", [0, 0]] }
888
+ },
889
+ {
890
+ bold: true,
891
+ color: [0, 0],
892
+ fill: [7, -.25],
893
+ border: { left: ["medium", [0, 0]] }
894
+ },
895
+ { fill: [7, -.25] },
896
+ {
897
+ color: [0, 0],
898
+ fill: [6, 0]
899
+ },
900
+ {
901
+ bold: true,
902
+ color: [0, 0],
903
+ fill: [6, -.5],
904
+ border: { top: ["medium", [0, 0]] }
905
+ },
906
+ {
907
+ bold: true,
908
+ color: [0, 0],
909
+ fill: [6, -.25],
910
+ border: { right: ["medium", [0, 0]] }
911
+ },
912
+ {
913
+ bold: true,
914
+ color: [0, 0],
915
+ fill: [6, -.25],
916
+ border: { left: ["medium", [0, 0]] }
917
+ },
918
+ { fill: [6, -.25] },
919
+ {
920
+ bold: true,
921
+ color: [0, 0],
922
+ fill: [5, -.5],
923
+ border: { top: ["medium", [0, 0]] }
924
+ },
925
+ {
926
+ bold: true,
927
+ color: [0, 0],
928
+ fill: [5, -.25],
929
+ border: { right: ["medium", [0, 0]] }
930
+ },
931
+ {
932
+ bold: true,
933
+ color: [0, 0],
934
+ fill: [5, -.25],
935
+ border: { left: ["medium", [0, 0]] }
936
+ },
937
+ { fill: [5, -.25] },
938
+ {
939
+ color: [0, 0],
940
+ fill: [4, 0]
941
+ },
942
+ {
943
+ bold: true,
944
+ color: [0, 0],
945
+ fill: [4, -.5],
946
+ border: { top: ["medium", [0, 0]] }
947
+ },
948
+ {
949
+ bold: true,
950
+ color: [0, 0],
951
+ fill: [4, -.25],
952
+ border: { right: ["medium", [0, 0]] }
953
+ },
954
+ {
955
+ bold: true,
956
+ color: [0, 0],
957
+ fill: [4, -.25],
958
+ border: { left: ["medium", [0, 0]] }
959
+ },
960
+ { fill: [4, -.25] },
961
+ {
962
+ color: [0, 0],
963
+ fill: [1, .45]
964
+ },
965
+ {
966
+ bold: true,
967
+ color: [0, 0],
968
+ fill: [1, .15],
969
+ border: { top: ["medium", [0, 0]] }
970
+ },
971
+ {
972
+ bold: true,
973
+ color: [0, 0],
974
+ fill: [1, .25],
975
+ border: { right: ["medium", [0, 0]] }
976
+ },
977
+ {
978
+ bold: true,
979
+ color: [0, 0],
980
+ fill: [1, .25],
981
+ border: { left: ["medium", [0, 0]] }
982
+ },
983
+ { fill: [1, .25] }
984
+ ];
985
+ var STYLES = {
986
+ TableStyleLight1: {
987
+ wholeTable: 140,
988
+ firstColumnStripe: 26,
989
+ firstRowStripe: 26,
990
+ lastColumn: 1,
991
+ firstColumn: 1,
992
+ headerRow: 141,
993
+ totalRow: 142
994
+ },
995
+ TableStyleLight2: {
996
+ wholeTable: 136,
997
+ firstColumnStripe: 78,
998
+ firstRowStripe: 78,
999
+ lastColumn: 139,
1000
+ firstColumn: 139,
1001
+ headerRow: 137,
1002
+ totalRow: 138
1003
+ },
1004
+ TableStyleLight3: {
1005
+ wholeTable: 132,
1006
+ firstColumnStripe: 75,
1007
+ firstRowStripe: 75,
1008
+ lastColumn: 135,
1009
+ firstColumn: 135,
1010
+ headerRow: 133,
1011
+ totalRow: 134
1012
+ },
1013
+ TableStyleLight4: {
1014
+ wholeTable: 128,
1015
+ firstColumnStripe: 72,
1016
+ firstRowStripe: 72,
1017
+ lastColumn: 131,
1018
+ firstColumn: 131,
1019
+ headerRow: 129,
1020
+ totalRow: 130
1021
+ },
1022
+ TableStyleLight5: {
1023
+ wholeTable: 124,
1024
+ firstColumnStripe: 69,
1025
+ firstRowStripe: 69,
1026
+ lastColumn: 127,
1027
+ firstColumn: 127,
1028
+ headerRow: 125,
1029
+ totalRow: 126
1030
+ },
1031
+ TableStyleLight6: {
1032
+ wholeTable: 120,
1033
+ firstColumnStripe: 66,
1034
+ firstRowStripe: 66,
1035
+ lastColumn: 123,
1036
+ firstColumn: 123,
1037
+ headerRow: 121,
1038
+ totalRow: 122
1039
+ },
1040
+ TableStyleLight7: {
1041
+ wholeTable: 116,
1042
+ firstColumnStripe: 63,
1043
+ firstRowStripe: 63,
1044
+ lastColumn: 119,
1045
+ firstColumn: 119,
1046
+ headerRow: 117,
1047
+ totalRow: 118
1048
+ },
1049
+ TableStyleLight8: {
1050
+ wholeTable: 113,
1051
+ firstColumnStripe: 115,
1052
+ secondColumnStripe: 115,
1053
+ firstRowStripe: 114,
1054
+ secondRowStripe: 114,
1055
+ lastColumn: 1,
1056
+ firstColumn: 1,
1057
+ headerRow: 39,
1058
+ totalRow: 80
1059
+ },
1060
+ TableStyleLight9: {
1061
+ wholeTable: 110,
1062
+ firstColumnStripe: 112,
1063
+ secondColumnStripe: 112,
1064
+ firstRowStripe: 111,
1065
+ secondRowStripe: 111,
1066
+ lastColumn: 1,
1067
+ firstColumn: 1,
1068
+ headerRow: 36,
1069
+ totalRow: 77
1070
+ },
1071
+ TableStyleLight10: {
1072
+ wholeTable: 107,
1073
+ firstColumnStripe: 109,
1074
+ secondColumnStripe: 109,
1075
+ firstRowStripe: 108,
1076
+ secondRowStripe: 108,
1077
+ lastColumn: 1,
1078
+ firstColumn: 1,
1079
+ headerRow: 34,
1080
+ totalRow: 74
1081
+ },
1082
+ TableStyleLight11: {
1083
+ wholeTable: 104,
1084
+ firstColumnStripe: 106,
1085
+ secondColumnStripe: 106,
1086
+ firstRowStripe: 105,
1087
+ secondRowStripe: 105,
1088
+ lastColumn: 1,
1089
+ firstColumn: 1,
1090
+ headerRow: 32,
1091
+ totalRow: 71
1092
+ },
1093
+ TableStyleLight12: {
1094
+ wholeTable: 101,
1095
+ firstColumnStripe: 103,
1096
+ secondColumnStripe: 103,
1097
+ firstRowStripe: 102,
1098
+ secondRowStripe: 102,
1099
+ lastColumn: 1,
1100
+ firstColumn: 1,
1101
+ headerRow: 30,
1102
+ totalRow: 68
1103
+ },
1104
+ TableStyleLight13: {
1105
+ wholeTable: 98,
1106
+ firstColumnStripe: 100,
1107
+ secondColumnStripe: 100,
1108
+ firstRowStripe: 99,
1109
+ secondRowStripe: 99,
1110
+ lastColumn: 1,
1111
+ firstColumn: 1,
1112
+ headerRow: 28,
1113
+ totalRow: 65
1114
+ },
1115
+ TableStyleLight14: {
1116
+ wholeTable: 95,
1117
+ firstColumnStripe: 97,
1118
+ secondColumnStripe: 97,
1119
+ firstRowStripe: 96,
1120
+ secondRowStripe: 96,
1121
+ lastColumn: 1,
1122
+ firstColumn: 1,
1123
+ headerRow: 25,
1124
+ totalRow: 62
1125
+ },
1126
+ TableStyleLight15: {
1127
+ wholeTable: 93,
1128
+ firstColumnStripe: 26,
1129
+ firstRowStripe: 26,
1130
+ lastColumn: 1,
1131
+ firstColumn: 1,
1132
+ headerRow: 94,
1133
+ totalRow: 80
1134
+ },
1135
+ TableStyleLight16: {
1136
+ wholeTable: 91,
1137
+ firstColumnStripe: 78,
1138
+ firstRowStripe: 78,
1139
+ lastColumn: 1,
1140
+ firstColumn: 1,
1141
+ headerRow: 92,
1142
+ totalRow: 77
1143
+ },
1144
+ TableStyleLight17: {
1145
+ wholeTable: 89,
1146
+ firstColumnStripe: 75,
1147
+ firstRowStripe: 75,
1148
+ lastColumn: 1,
1149
+ firstColumn: 1,
1150
+ headerRow: 90,
1151
+ totalRow: 74
1152
+ },
1153
+ TableStyleLight18: {
1154
+ wholeTable: 87,
1155
+ firstColumnStripe: 72,
1156
+ firstRowStripe: 72,
1157
+ lastColumn: 1,
1158
+ firstColumn: 1,
1159
+ headerRow: 88,
1160
+ totalRow: 71
1161
+ },
1162
+ TableStyleLight19: {
1163
+ wholeTable: 85,
1164
+ firstColumnStripe: 69,
1165
+ firstRowStripe: 69,
1166
+ lastColumn: 1,
1167
+ firstColumn: 1,
1168
+ headerRow: 86,
1169
+ totalRow: 68
1170
+ },
1171
+ TableStyleLight20: {
1172
+ wholeTable: 83,
1173
+ firstColumnStripe: 66,
1174
+ firstRowStripe: 66,
1175
+ lastColumn: 1,
1176
+ firstColumn: 1,
1177
+ headerRow: 84,
1178
+ totalRow: 65
1179
+ },
1180
+ TableStyleLight21: {
1181
+ wholeTable: 81,
1182
+ firstColumnStripe: 63,
1183
+ firstRowStripe: 63,
1184
+ lastColumn: 1,
1185
+ firstColumn: 1,
1186
+ headerRow: 82,
1187
+ totalRow: 62
1188
+ },
1189
+ TableStyleMedium1: {
1190
+ wholeTable: 79,
1191
+ firstColumnStripe: 26,
1192
+ firstRowStripe: 26,
1193
+ lastColumn: 1,
1194
+ firstColumn: 1,
1195
+ headerRow: 39,
1196
+ totalRow: 80
1197
+ },
1198
+ TableStyleMedium2: {
1199
+ wholeTable: 76,
1200
+ firstColumnStripe: 78,
1201
+ firstRowStripe: 78,
1202
+ lastColumn: 1,
1203
+ firstColumn: 1,
1204
+ headerRow: 36,
1205
+ totalRow: 77
1206
+ },
1207
+ TableStyleMedium3: {
1208
+ wholeTable: 73,
1209
+ firstColumnStripe: 75,
1210
+ firstRowStripe: 75,
1211
+ lastColumn: 1,
1212
+ firstColumn: 1,
1213
+ headerRow: 34,
1214
+ totalRow: 74
1215
+ },
1216
+ TableStyleMedium4: {
1217
+ wholeTable: 70,
1218
+ firstColumnStripe: 72,
1219
+ firstRowStripe: 72,
1220
+ lastColumn: 1,
1221
+ firstColumn: 1,
1222
+ headerRow: 32,
1223
+ totalRow: 71
1224
+ },
1225
+ TableStyleMedium5: {
1226
+ wholeTable: 67,
1227
+ firstColumnStripe: 69,
1228
+ firstRowStripe: 69,
1229
+ lastColumn: 1,
1230
+ firstColumn: 1,
1231
+ headerRow: 30,
1232
+ totalRow: 68
1233
+ },
1234
+ TableStyleMedium6: {
1235
+ wholeTable: 64,
1236
+ firstColumnStripe: 66,
1237
+ firstRowStripe: 66,
1238
+ lastColumn: 1,
1239
+ firstColumn: 1,
1240
+ headerRow: 28,
1241
+ totalRow: 65
1242
+ },
1243
+ TableStyleMedium7: {
1244
+ wholeTable: 61,
1245
+ firstColumnStripe: 63,
1246
+ firstRowStripe: 63,
1247
+ lastColumn: 1,
1248
+ firstColumn: 1,
1249
+ headerRow: 25,
1250
+ totalRow: 62
1251
+ },
1252
+ TableStyleMedium8: {
1253
+ wholeTable: 58,
1254
+ firstColumnStripe: 21,
1255
+ firstRowStripe: 21,
1256
+ lastColumn: 39,
1257
+ firstColumn: 39,
1258
+ headerRow: 59,
1259
+ totalRow: 60
1260
+ },
1261
+ TableStyleMedium9: {
1262
+ wholeTable: 55,
1263
+ firstColumnStripe: 18,
1264
+ firstRowStripe: 18,
1265
+ lastColumn: 36,
1266
+ firstColumn: 36,
1267
+ headerRow: 56,
1268
+ totalRow: 57
1269
+ },
1270
+ TableStyleMedium10: {
1271
+ wholeTable: 52,
1272
+ firstColumnStripe: 15,
1273
+ firstRowStripe: 15,
1274
+ lastColumn: 34,
1275
+ firstColumn: 34,
1276
+ headerRow: 53,
1277
+ totalRow: 54
1278
+ },
1279
+ TableStyleMedium11: {
1280
+ wholeTable: 49,
1281
+ firstColumnStripe: 12,
1282
+ firstRowStripe: 12,
1283
+ lastColumn: 32,
1284
+ firstColumn: 32,
1285
+ headerRow: 50,
1286
+ totalRow: 51
1287
+ },
1288
+ TableStyleMedium12: {
1289
+ wholeTable: 46,
1290
+ firstColumnStripe: 9,
1291
+ firstRowStripe: 9,
1292
+ lastColumn: 30,
1293
+ firstColumn: 30,
1294
+ headerRow: 47,
1295
+ totalRow: 48
1296
+ },
1297
+ TableStyleMedium13: {
1298
+ wholeTable: 43,
1299
+ firstColumnStripe: 6,
1300
+ firstRowStripe: 6,
1301
+ lastColumn: 28,
1302
+ firstColumn: 28,
1303
+ headerRow: 44,
1304
+ totalRow: 45
1305
+ },
1306
+ TableStyleMedium14: {
1307
+ wholeTable: 40,
1308
+ firstColumnStripe: 3,
1309
+ firstRowStripe: 3,
1310
+ lastColumn: 25,
1311
+ firstColumn: 25,
1312
+ headerRow: 41,
1313
+ totalRow: 42
1314
+ },
1315
+ TableStyleMedium15: {
1316
+ wholeTable: 37,
1317
+ firstColumnStripe: 26,
1318
+ firstRowStripe: 26,
1319
+ lastColumn: 39,
1320
+ firstColumn: 39,
1321
+ headerRow: 38,
1322
+ totalRow: 24
1323
+ },
1324
+ TableStyleMedium16: {
1325
+ wholeTable: 22,
1326
+ firstColumnStripe: 26,
1327
+ firstRowStripe: 26,
1328
+ lastColumn: 36,
1329
+ firstColumn: 36,
1330
+ headerRow: 35,
1331
+ totalRow: 24
1332
+ },
1333
+ TableStyleMedium17: {
1334
+ wholeTable: 22,
1335
+ firstColumnStripe: 26,
1336
+ firstRowStripe: 26,
1337
+ lastColumn: 34,
1338
+ firstColumn: 34,
1339
+ headerRow: 33,
1340
+ totalRow: 24
1341
+ },
1342
+ TableStyleMedium18: {
1343
+ wholeTable: 22,
1344
+ firstColumnStripe: 26,
1345
+ firstRowStripe: 26,
1346
+ lastColumn: 32,
1347
+ firstColumn: 32,
1348
+ headerRow: 31,
1349
+ totalRow: 24
1350
+ },
1351
+ TableStyleMedium19: {
1352
+ wholeTable: 22,
1353
+ firstColumnStripe: 26,
1354
+ firstRowStripe: 26,
1355
+ lastColumn: 30,
1356
+ firstColumn: 30,
1357
+ headerRow: 29,
1358
+ totalRow: 24
1359
+ },
1360
+ TableStyleMedium20: {
1361
+ wholeTable: 22,
1362
+ firstColumnStripe: 26,
1363
+ firstRowStripe: 26,
1364
+ lastColumn: 28,
1365
+ firstColumn: 28,
1366
+ headerRow: 27,
1367
+ totalRow: 24
1368
+ },
1369
+ TableStyleMedium21: {
1370
+ wholeTable: 22,
1371
+ firstColumnStripe: 26,
1372
+ firstRowStripe: 26,
1373
+ lastColumn: 25,
1374
+ firstColumn: 25,
1375
+ headerRow: 23,
1376
+ totalRow: 24
1377
+ },
1378
+ TableStyleMedium22: {
1379
+ wholeTable: 19,
1380
+ firstColumnStripe: 21,
1381
+ firstRowStripe: 21,
1382
+ lastColumn: 1,
1383
+ firstColumn: 1,
1384
+ headerRow: 1,
1385
+ totalRow: 20
1386
+ },
1387
+ TableStyleMedium23: {
1388
+ wholeTable: 16,
1389
+ firstColumnStripe: 18,
1390
+ firstRowStripe: 18,
1391
+ lastColumn: 1,
1392
+ firstColumn: 1,
1393
+ headerRow: 1,
1394
+ totalRow: 17
1395
+ },
1396
+ TableStyleMedium24: {
1397
+ wholeTable: 13,
1398
+ firstColumnStripe: 15,
1399
+ firstRowStripe: 15,
1400
+ lastColumn: 1,
1401
+ firstColumn: 1,
1402
+ headerRow: 1,
1403
+ totalRow: 14
1404
+ },
1405
+ TableStyleMedium25: {
1406
+ wholeTable: 10,
1407
+ firstColumnStripe: 12,
1408
+ firstRowStripe: 12,
1409
+ lastColumn: 1,
1410
+ firstColumn: 1,
1411
+ headerRow: 1,
1412
+ totalRow: 11
1413
+ },
1414
+ TableStyleMedium26: {
1415
+ wholeTable: 7,
1416
+ firstColumnStripe: 9,
1417
+ firstRowStripe: 9,
1418
+ lastColumn: 1,
1419
+ firstColumn: 1,
1420
+ headerRow: 1,
1421
+ totalRow: 8
1422
+ },
1423
+ TableStyleMedium27: {
1424
+ wholeTable: 4,
1425
+ firstColumnStripe: 6,
1426
+ firstRowStripe: 6,
1427
+ lastColumn: 1,
1428
+ firstColumn: 1,
1429
+ headerRow: 1,
1430
+ totalRow: 5
1431
+ },
1432
+ TableStyleMedium28: {
1433
+ wholeTable: 0,
1434
+ firstColumnStripe: 3,
1435
+ firstRowStripe: 3,
1436
+ lastColumn: 1,
1437
+ firstColumn: 1,
1438
+ headerRow: 1,
1439
+ totalRow: 2
1440
+ },
1441
+ TableStyleDark1: {
1442
+ wholeTable: 175,
1443
+ firstColumnStripe: 179,
1444
+ firstRowStripe: 179,
1445
+ lastColumn: 178,
1446
+ firstColumn: 177,
1447
+ headerRow: 147,
1448
+ totalRow: 176
1449
+ },
1450
+ TableStyleDark2: {
1451
+ wholeTable: 170,
1452
+ firstColumnStripe: 174,
1453
+ firstRowStripe: 174,
1454
+ lastColumn: 173,
1455
+ firstColumn: 172,
1456
+ headerRow: 147,
1457
+ totalRow: 171
1458
+ },
1459
+ TableStyleDark3: {
1460
+ wholeTable: 145,
1461
+ firstColumnStripe: 169,
1462
+ firstRowStripe: 169,
1463
+ lastColumn: 168,
1464
+ firstColumn: 167,
1465
+ headerRow: 147,
1466
+ totalRow: 166
1467
+ },
1468
+ TableStyleDark4: {
1469
+ wholeTable: 161,
1470
+ firstColumnStripe: 165,
1471
+ firstRowStripe: 165,
1472
+ lastColumn: 164,
1473
+ firstColumn: 163,
1474
+ headerRow: 147,
1475
+ totalRow: 162
1476
+ },
1477
+ TableStyleDark5: {
1478
+ wholeTable: 144,
1479
+ firstColumnStripe: 160,
1480
+ firstRowStripe: 160,
1481
+ lastColumn: 159,
1482
+ firstColumn: 158,
1483
+ headerRow: 147,
1484
+ totalRow: 157
1485
+ },
1486
+ TableStyleDark6: {
1487
+ wholeTable: 152,
1488
+ firstColumnStripe: 156,
1489
+ firstRowStripe: 156,
1490
+ lastColumn: 155,
1491
+ firstColumn: 154,
1492
+ headerRow: 147,
1493
+ totalRow: 153
1494
+ },
1495
+ TableStyleDark7: {
1496
+ wholeTable: 143,
1497
+ firstColumnStripe: 151,
1498
+ firstRowStripe: 151,
1499
+ lastColumn: 150,
1500
+ firstColumn: 149,
1501
+ headerRow: 147,
1502
+ totalRow: 148
1503
+ },
1504
+ TableStyleDark8: {
1505
+ wholeTable: 26,
1506
+ firstColumnStripe: 21,
1507
+ firstRowStripe: 21,
1508
+ lastColumn: 1,
1509
+ firstColumn: 1,
1510
+ headerRow: 146,
1511
+ totalRow: 80
1512
+ },
1513
+ TableStyleDark9: {
1514
+ wholeTable: 78,
1515
+ firstColumnStripe: 18,
1516
+ firstRowStripe: 18,
1517
+ lastColumn: 1,
1518
+ firstColumn: 1,
1519
+ headerRow: 145,
1520
+ totalRow: 80
1521
+ },
1522
+ TableStyleDark10: {
1523
+ wholeTable: 72,
1524
+ firstColumnStripe: 12,
1525
+ firstRowStripe: 12,
1526
+ lastColumn: 1,
1527
+ firstColumn: 1,
1528
+ headerRow: 144,
1529
+ totalRow: 80
1530
+ },
1531
+ TableStyleDark11: {
1532
+ wholeTable: 66,
1533
+ firstColumnStripe: 6,
1534
+ firstRowStripe: 6,
1535
+ lastColumn: 1,
1536
+ firstColumn: 1,
1537
+ headerRow: 143,
1538
+ totalRow: 80
1539
+ }
1540
+ };
1541
+ /**
1542
+ * A built-in table style by its name, each region with its format.
1543
+ *
1544
+ * @param name The style's name as a workbook gives it (`TableStyleMedium2`).
1545
+ * @returns Its regions' formats, or undefined for a name Excel does not build in.
1546
+ */
1547
+ function presetTableStyle(name) {
1548
+ const style = STYLES[name];
1549
+ if (!style) return void 0;
1550
+ const out = {};
1551
+ for (const [type, i] of Object.entries(style)) out[type] = DXFS[i];
1552
+ return out;
1553
+ }
1554
+ //#endregion
1555
+ export { presetTableStyle };