@trebco/treb 29.1.4 → 29.1.5
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/package.json
CHANGED
|
@@ -2834,6 +2834,16 @@ export class Sheet {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
+
// and row styles...
|
|
2838
|
+
|
|
2839
|
+
if (data.row_styles) {
|
|
2840
|
+
for (const [row, style] of data.row_styles.entries()) {
|
|
2841
|
+
if (style) {
|
|
2842
|
+
this.UpdateAreaStyle(new Area({ row, column: Infinity }), styles[style]);
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2837
2847
|
// this.cells.FromJSON(cell_data);
|
|
2838
2848
|
this.cells.FromJSON(data.cells);
|
|
2839
2849
|
if (data.name) {
|
|
@@ -506,6 +506,7 @@ export class Importer {
|
|
|
506
506
|
const merges: RangeType[] = [];
|
|
507
507
|
const conditional_formats: ConditionalFormat[] = [];
|
|
508
508
|
const links: HyperlinkType[] = [];
|
|
509
|
+
const row_styles: number[] = []; // may be sparse
|
|
509
510
|
const validations: Array<{
|
|
510
511
|
address: ICellAddress,
|
|
511
512
|
validation: DataValidation,
|
|
@@ -696,6 +697,13 @@ export class Importer {
|
|
|
696
697
|
}
|
|
697
698
|
}
|
|
698
699
|
|
|
700
|
+
if (row.a$?.s) {
|
|
701
|
+
const style_reference = Number(row.a$?.s);
|
|
702
|
+
if (!isNaN(style_reference)) {
|
|
703
|
+
row_styles[row_index - 1] = style_reference;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
699
707
|
// if there's a height which is not === default height, but
|
|
700
708
|
// the customHeight attribute is not set, then it's been auto-sized.
|
|
701
709
|
// not sure that's something we need to care about necessarily...
|
|
@@ -1162,6 +1170,7 @@ export class Importer {
|
|
|
1162
1170
|
default_column_width,
|
|
1163
1171
|
column_widths,
|
|
1164
1172
|
row_heights,
|
|
1173
|
+
row_styles,
|
|
1165
1174
|
annotations,
|
|
1166
1175
|
conditional_formats,
|
|
1167
1176
|
styles: this.workbook?.style_cache?.CellXfToStyles() || [],
|