scheduler-node-models 1.0.20 → 1.0.22
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
@@ -190,17 +190,14 @@ class ScheduleReport extends general_1.Report {
|
|
190
190
|
showGridLines: false
|
191
191
|
}
|
192
192
|
});
|
193
|
+
sheet.properties.defaultRowHeight = 20;
|
194
|
+
sheet.properties.defaultColWidth = 4;
|
193
195
|
// set all the column widths for the month with the first column width of 17.0
|
194
196
|
// and days of the month at 4.0
|
195
197
|
sheet.getColumn(1).width = 17.0;
|
196
198
|
const endofMonth = (new Date(endDate.getTime() - (24 * 3600000))).getDate();
|
197
|
-
for (let i = 0; i < endofMonth; i++) {
|
198
|
-
sheet.getColumn(2 + i).width = 4.0;
|
199
|
-
}
|
200
199
|
const now = new Date();
|
201
200
|
let style = this.styles.get('month');
|
202
|
-
sheet.getRow(1).height = 20;
|
203
|
-
sheet.getRow(2).height = 20;
|
204
201
|
this.setCell(sheet, this.getCellID(0, 1), this.getCellID(0, 1), style, months[startDate.getMonth()]);
|
205
202
|
const formatter = new Intl.DateTimeFormat('en-US', {
|
206
203
|
month: '2-digit',
|
@@ -226,7 +223,6 @@ class ScheduleReport extends general_1.Report {
|
|
226
223
|
this.site.workcenters.forEach(wkctr => {
|
227
224
|
row++;
|
228
225
|
style = this.styles.get('wkctr');
|
229
|
-
sheet.getRow(row).height = 20.0;
|
230
226
|
this.setCell(sheet, this.getCellID(0, row), this.getCellID(endofMonth, row), style, wkctr.name);
|
231
227
|
// sort positions, then add a row for each employee for the positions.
|
232
228
|
if (wkctr.positions && wkctr.positions.length > 0) {
|