scheduler-node-models 1.0.29 → 1.0.31
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
@@ -86,6 +86,8 @@ class EnterpriseSchedule extends general_1.Report {
|
|
86
86
|
verticalCentered: true
|
87
87
|
}
|
88
88
|
});
|
89
|
+
sheet.properties.defaultColWidth = 5.0;
|
90
|
+
sheet.properties.defaultRowHeight = 20;
|
89
91
|
// set the widths of the columns: 1 = 17.0 and the rest are 4.0
|
90
92
|
let current = new Date(startDate);
|
91
93
|
sheet.getColumn(1).width = 17.0;
|
@@ -93,10 +95,6 @@ class EnterpriseSchedule extends general_1.Report {
|
|
93
95
|
sheet.getColumn(current.getDate() + 1).width = 4.0;
|
94
96
|
current = new Date(current.getTime() + (24 * 3600000));
|
95
97
|
}
|
96
|
-
// the first three rows have a height of 20
|
97
|
-
for (let i = 1; i <= 3; i++) {
|
98
|
-
sheet.getRow(i).height = 20;
|
99
|
-
}
|
100
98
|
// label the first three rows with data
|
101
99
|
let style = {
|
102
100
|
border: this.borders.get('blackthin'),
|
@@ -107,8 +105,8 @@ class EnterpriseSchedule extends general_1.Report {
|
|
107
105
|
current = new Date(startDate);
|
108
106
|
while (current.getTime() < endDate.getTime()) {
|
109
107
|
this.setCell(sheet, this.getCellID(current.getDate(), 1), this.getCellID(current.getDate(), 1), style, months[current.getMonth()]);
|
110
|
-
this.setCell(sheet, this.getCellID(current.getDate(), 2), this.getCellID(current.getDate(),
|
111
|
-
this.setCell(sheet, this.getCellID(current.getDate(), 3), this.getCellID(current.getDate(),
|
108
|
+
this.setCell(sheet, this.getCellID(current.getDate(), 2), this.getCellID(current.getDate(), 2), style, weekdays[current.getDay()]);
|
109
|
+
this.setCell(sheet, this.getCellID(current.getDate(), 3), this.getCellID(current.getDate(), 3), style, current.getDate());
|
112
110
|
current = new Date(current.getTime() + (24 * 3600000));
|
113
111
|
}
|
114
112
|
let row = 3;
|