@colijnit/sharedcomponents 1.0.67 → 1.0.69

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 (27) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +67 -8
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +85 -47
  5. package/esm2015/lib/components/date-planning/date-planning.component.js +4 -1
  6. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +5 -5
  7. package/esm2015/lib/enum/calendar-view.enum.js +2 -1
  8. package/esm2015/lib/enum/icon.enum.js +1 -1
  9. package/esm2015/lib/model/icon-svg.js +3 -3
  10. package/esm2015/lib/utils/calendar.utils.js +41 -2
  11. package/fesm2015/colijnit-sharedcomponents.js +134 -53
  12. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  13. package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +2 -0
  14. package/lib/components/date-planning/component/agenda/style/_layout.scss +68 -57
  15. package/lib/components/date-planning/component/agenda/style/_material-definition.scss +1 -1
  16. package/lib/components/date-planning/date-planning.component.d.ts +1 -0
  17. package/lib/components/date-planning/style/_layout.scss +1 -0
  18. package/lib/enum/calendar-view.enum.d.ts +1 -0
  19. package/lib/utils/calendar.utils.d.ts +1 -0
  20. package/package.json +1 -1
  21. package/3rdpartylicenses.txt +0 -1200
  22. package/favicon.ico +0 -0
  23. package/index.html +0 -12
  24. package/main.ed1d93bd7cd10954d7ec.js +0 -1
  25. package/polyfills.907fe9d1887c5de17993.js +0 -1
  26. package/runtime.8aac21847ed3d3829cca.js +0 -1
  27. package/styles.42e2561063e306e59f45.css +0 -1
@@ -1259,8 +1259,8 @@ const IconSvg = {
1259
1259
  "arrow_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><polygon points=\"17.06 21.14 17.06 2.5 12.94 2.5 12.94 21.14 12.94 21.14 8.64 21.14 15 27.5 21.36 21.14 17.06 21.14\" fill=\"#484f60\"/></g></svg>",
1260
1260
  "arrow_down_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z\"/></svg>",
1261
1261
  "arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
1262
- "arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
1263
- "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
1262
+ "arrow_point_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>",
1263
+ "arrow_point_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>",
1264
1264
  "at_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M207.8 20.73c-93.45 18.32-168.7 93.66-187 187.1c-27.64 140.9 68.65 266.2 199.1 285.1c19.01 2.888 36.17-12.26 36.17-31.49l.0001-.6631c0-15.74-11.44-28.88-26.84-31.24c-84.35-12.98-149.2-86.13-149.2-174.2c0-102.9 88.61-185.5 193.4-175.4c91.54 8.869 158.6 91.25 158.6 183.2l0 16.16c0 22.09-17.94 40.05-40 40.05s-40.01-17.96-40.01-40.05v-120.1c0-8.847-7.161-16.02-16.01-16.02l-31.98 .0036c-7.299 0-13.2 4.992-15.12 11.68c-24.85-12.15-54.24-16.38-86.06-5.106c-38.75 13.73-68.12 48.91-73.72 89.64c-9.483 69.01 43.81 128 110.9 128c26.44 0 50.43-9.544 69.59-24.88c24 31.3 65.23 48.69 109.4 37.49C465.2 369.3 496 324.1 495.1 277.2V256.3C495.1 107.1 361.2-9.332 207.8 20.73zM239.1 304.3c-26.47 0-48-21.56-48-48.05s21.53-48.05 48-48.05s48 21.56 48 48.05S266.5 304.3 239.1 304.3z\"/></svg>",
1265
1265
  "barcode_read_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M56 48c-4.4 0-8 3.6-8 8v80c0 13.3-10.7 24-24 24s-24-10.7-24-24V56C0 25.1 25.1 0 56 0h80c13.3 0 24 10.7 24 24s-10.7 24-24 24H56zm64 80c13.3 0 24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm56 16c0-8.8 7.2-16 16-16s16 7.2 16 16V368c0 8.8-7.2 16-16 16s-16-7.2-16-16V144zm272 0c0-8.8 7.2-16 16-16s16 7.2 16 16V368c0 8.8-7.2 16-16 16s-16-7.2-16-16V144zm-208 8c0-13.3 10.7-24 24-24s24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152zm152-24c13.3 0 24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM528 56c0-4.4-3.6-8-8-8H440c-13.3 0-24-10.7-24-24s10.7-24 24-24h80c30.9 0 56 25.1 56 56v80c0 13.3-10.7 24-24 24s-24-10.7-24-24V56zM56 464h80c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-30.9 0-56-25.1-56-56V376c0-13.3 10.7-24 24-24s24 10.7 24 24v80c0 4.4 3.6 8 8 8zm472-8V376c0-13.3 10.7-24 24-24s24 10.7 24 24v80c0 30.9-25.1 56-56 56H440c-13.3 0-24-10.7-24-24s10.7-24 24-24h80c4.4 0 8-3.6 8-8z\"/></svg>",
1266
1266
  "bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
@@ -4702,10 +4702,10 @@ StockLocationPopupComponent.decorators = [
4702
4702
  (modelChange)="handleStockStatusRemarkChange($event)"></co-input-text>
4703
4703
  </div>
4704
4704
  <co-input-number-picker
4705
- [(model)]="selectedArticleDetailsData.amountInStock"
4706
- [label]="'STOCK' | localize"
4707
- (modelChange)="amountInStockChanged($event)"
4708
- [min]="1"
4705
+ [(model)]="selectedArticleDetailsData.amountInStock"
4706
+ [label]="'STOCK' | localize"
4707
+ (modelChange)="amountInStockChanged($event)"
4708
+ [min]="1"
4709
4709
  ></co-input-number-picker>
4710
4710
  </div>
4711
4711
  <ng-template #footerTemplate>
@@ -5210,6 +5210,7 @@ LayoutSwitcherModule.decorators = [
5210
5210
  var CalendarView;
5211
5211
  (function (CalendarView) {
5212
5212
  CalendarView["DayView"] = "DAY";
5213
+ CalendarView["DaysAround"] = "DAYS_AROUND";
5213
5214
  CalendarView["WeekView"] = "WEEK";
5214
5215
  CalendarView["WeekSelectView"] = "WEEK_SELECT";
5215
5216
  CalendarView["WeekPlanningView"] = "WEEK_PLANNING";
@@ -5226,6 +5227,7 @@ class DatePlanningComponent {
5226
5227
  this.buttonLabel = "";
5227
5228
  this.eventsPerDay = [];
5228
5229
  this.view = CalendarView.WeekView;
5230
+ this.viewSelection = false;
5229
5231
  this.eventChecked = new EventEmitter();
5230
5232
  this.selectedDateChange = new EventEmitter();
5231
5233
  this.rangeChange = new EventEmitter();
@@ -5277,6 +5279,7 @@ DatePlanningComponent.decorators = [
5277
5279
  [eventsPerDay]="eventsPerDay"
5278
5280
  [selectedDate]="selectedDate"
5279
5281
  (selectedDateChange)="doChangeSelectedDate($event)"
5282
+ [viewSelection]="viewSelection"
5280
5283
  (rangeChange)="doChangeSelectedDate($event, true)"></agenda-header>
5281
5284
  <agenda-view [view]="view"
5282
5285
  [customEventObject]="customEventObject"
@@ -5318,6 +5321,7 @@ DatePlanningComponent.propDecorators = {
5318
5321
  buttonLabel: [{ type: Input }],
5319
5322
  eventsPerDay: [{ type: Input }],
5320
5323
  view: [{ type: Input }],
5324
+ viewSelection: [{ type: Input }],
5321
5325
  eventChecked: [{ type: Output }],
5322
5326
  selectedDateChange: [{ type: Output }],
5323
5327
  rangeChange: [{ type: Output }],
@@ -6070,7 +6074,13 @@ class CalendarUtils {
6070
6074
  return datesByTheHour;
6071
6075
  }
6072
6076
  static GetDaysOfWeek(date) {
6073
- let day = new Date();
6077
+ let day;
6078
+ if (!date) {
6079
+ day = new Date();
6080
+ }
6081
+ else {
6082
+ day = date;
6083
+ }
6074
6084
  const daysOfWeek = [];
6075
6085
  let options;
6076
6086
  let month;
@@ -6100,6 +6110,39 @@ class CalendarUtils {
6100
6110
  week.weekDays = daysOfWeek;
6101
6111
  return week;
6102
6112
  }
6113
+ static GetDaysAround(date) {
6114
+ const daysAround = [];
6115
+ const currentDate = date ? new Date(date) : new Date();
6116
+ currentDate.setHours(0, 0, 0, 0);
6117
+ // Get the current day and go two days back
6118
+ let day = new Date(currentDate);
6119
+ day.setDate(day.getDate() - 2);
6120
+ // Loop to get the two days before and four days after the current day
6121
+ for (let i = 0; i < 7; i++) {
6122
+ const dayPerWeek = new Weekday();
6123
+ const dayHours = CalendarUtils.GetDayHours(day);
6124
+ dayPerWeek.newMonth = day.getMonth() !== currentDate.getMonth();
6125
+ dayPerWeek.weekdaySelected = day.getDate() === currentDate.getDate();
6126
+ dayPerWeek.weekdayDay = day.getDate();
6127
+ let options = { weekday: "short" };
6128
+ dayPerWeek.weekdayShort = day.toLocaleDateString(CalendarUtils.Locale, options);
6129
+ options = { weekday: "long" };
6130
+ dayPerWeek.weekdayLong = day.toLocaleDateString(CalendarUtils.Locale, options);
6131
+ options = { month: "short" };
6132
+ dayPerWeek.weekdayMonthShort = day.toLocaleDateString(CalendarUtils.Locale, options);
6133
+ options = { month: "long" };
6134
+ dayPerWeek.weekdayMonthLong = day.toLocaleDateString(CalendarUtils.Locale, options);
6135
+ dayPerWeek.weekdayYear = day.getFullYear();
6136
+ dayPerWeek.date = new Date(day);
6137
+ dayPerWeek.datesByTheHour = dayHours;
6138
+ daysAround.push(dayPerWeek);
6139
+ // Move to the next day
6140
+ day.setDate(day.getDate() + 1);
6141
+ }
6142
+ const week = new Week();
6143
+ week.weekDays = daysAround;
6144
+ return week;
6145
+ }
6103
6146
  }
6104
6147
  CalendarUtils.Locale = undefined;
6105
6148
  CalendarUtils.Now = new Date();
@@ -6206,8 +6249,11 @@ class AgendaHeaderComponent {
6206
6249
  case CalendarView.DayView:
6207
6250
  newDate.setDate(this.selectedDate.getDate() - 1);
6208
6251
  break;
6252
+ case CalendarView.DaysAround:
6253
+ newDate.setDate(this.selectedDate.getDate() - 1);
6254
+ break;
6209
6255
  case CalendarView.WeekView:
6210
- newDate.setDate(this.selectedDate.getDate() - 7);
6256
+ newDate.setDate(this.selectedDate.getDate() - 3);
6211
6257
  break;
6212
6258
  case CalendarView.WeekSelectView:
6213
6259
  newDate.setDate(this.selectedDate.getDate() - 7);
@@ -6227,8 +6273,11 @@ class AgendaHeaderComponent {
6227
6273
  case CalendarView.DayView:
6228
6274
  newDate.setDate(this.selectedDate.getDate() + 1);
6229
6275
  break;
6276
+ case CalendarView.DaysAround:
6277
+ newDate.setDate(this.selectedDate.getDate() + 1);
6278
+ break;
6230
6279
  case CalendarView.WeekView:
6231
- newDate.setDate(this.selectedDate.getDate() + 7);
6280
+ newDate.setDate(this.selectedDate.getDate() + 3);
6232
6281
  break;
6233
6282
  case CalendarView.WeekSelectView:
6234
6283
  newDate.setDate(this.selectedDate.getDate() + 7);
@@ -6268,6 +6317,13 @@ class AgendaHeaderComponent {
6268
6317
  day.description = this.selectedDate.toLocaleDateString(this._locale, options);
6269
6318
  this.day = day;
6270
6319
  break;
6320
+ case CalendarView.DaysAround:
6321
+ const weekAroundView = CalendarUtils.GetDaysAround(this.selectedDate);
6322
+ this.weekDays = weekAroundView.weekDays;
6323
+ if (this.firstAvailableDate) {
6324
+ this.showBackButton = this.weekDays.find(wd => DateUtils.DatesEqual(this.firstAvailableDate, wd.date)) === undefined;
6325
+ }
6326
+ break;
6271
6327
  case CalendarView.WeekView:
6272
6328
  const weekView = CalendarUtils.GetDaysOfWeek(this.selectedDate);
6273
6329
  this.weekDays = weekView.weekDays;
@@ -6301,62 +6357,86 @@ class AgendaHeaderComponent {
6301
6357
  }
6302
6358
  }
6303
6359
  }
6360
+ capitalizeString(label) {
6361
+ return label[0].toUpperCase() + label.slice(1);
6362
+ }
6304
6363
  }
6305
6364
  AgendaHeaderComponent.decorators = [
6306
6365
  { type: Component, args: [{
6307
6366
  selector: "agenda-header",
6308
6367
  template: `
6309
- <div class="agenda-header-wrapper" *ngIf="view === viewTypes.DayView">
6310
- <div class="hour-label-placeholder">
6311
- <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
6312
- </div>
6313
- <div class="week-day-label">
6314
- <co-icon class="pointer-hover no-user-select sub-unit-icon dark"
6315
- [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6316
- <div class="day-description" [textContent]="day.description"></div>
6317
- <co-icon class="pointer-hover no-user-select add-unit-icon dark"
6318
- [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6319
- </div>
6368
+ <div class="agenda-header-wrapper" *ngIf="view === viewTypes.DayView">
6369
+ <div class="hour-label-placeholder" *ngIf="viewSelection">
6370
+ <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
6371
+ </div>
6372
+ <div class="week-day-label">
6373
+ <co-icon class="pointer-hover no-user-select sub-unit-icon dark"
6374
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6375
+ <div class="day-description" [textContent]="day.description"></div>
6376
+ <co-icon class="pointer-hover no-user-select add-unit-icon dark"
6377
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6320
6378
  </div>
6321
- <div class="agenda-header-wrapper" *ngIf="view === viewTypes.WeekView">
6379
+ </div>
6380
+ <div class="agenda-header-wrapper days-around" *ngIf="view === viewTypes.DaysAround">
6381
+ <div class="hour-label-placeholder" *ngIf="viewSelection">
6382
+ <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
6383
+ </div>
6384
+ <div class="week-day-label days-around" *ngFor="let weekDay of weekDays; let index = index"
6385
+ [class.selected]="weekDay.weekdaySelected" (click)="setUnit(weekDay)">
6386
+ <co-icon *ngIf="showBackButton && index === 0" class="pointer-hover no-user-select sub-unit-icon dark"
6387
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6388
+ <div *ngIf="weekDay.newMonth" [textContent]="weekDay.weekdayMonthLong + ' ' + weekDay.weekdayYear"
6389
+ class="month-description"></div>
6390
+ <div class="weekday-value day"
6391
+ [textContent]="capitalizeString(weekDay.weekdayShort)"></div>
6392
+ <div class="weekday-value date"
6393
+ [textContent]="weekDay.weekdayDay"></div>
6394
+ <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6395
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6396
+ </div>
6397
+ </div>
6398
+ <div class="agenda-header-wrapper" *ngIf="view === viewTypes.WeekView">
6399
+ <div class="hour-label-placeholder" *ngIf="viewSelection">
6400
+ <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
6401
+ </div>
6402
+ <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index"
6403
+ [class.selected]="weekDay.weekdaySelected" (click)="setUnit(weekDay)">
6404
+ <co-icon *ngIf="showBackButton && index === 0" class="pointer-hover no-user-select sub-unit-icon dark"
6405
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6406
+ <div *ngIf="weekDay.newMonth" [textContent]="weekDay.weekdayMonthLong + ' ' + weekDay.weekdayYear"
6407
+ class="month-description"></div>
6408
+ <div class="weekday-value"
6409
+ [textContent]="capitalizeString(weekDay.weekdayLong) + ' ' + weekDay.weekdayDay + ' ' + capitalizeString(weekDay.weekdayMonthLong) + ' ' + weekDay.weekdayYear "></div>
6410
+ <co-icon *ngIf="index === 2" class="pointer-hover no-user-select add-unit-icon dark"
6411
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6322
6412
 
6323
- <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index"
6324
- [class.selected]="weekDay.weekdaySelected" (click)="setUnit(weekDay)">
6325
- <co-icon *ngIf="index === 0 && showBackButton" class="pointer-hover no-user-select sub-unit-icon dark"
6326
- [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6327
- <div *ngIf="weekDay.newMonth" [textContent]="weekDay.weekdayMonthLong + ' ' + weekDay.weekdayYear"
6328
- class="month-description"></div>
6329
- <div class="weekday-value"
6330
- [textContent]="weekDay.weekdayLong + ' ' + weekDay.weekdayDay + ' ' + weekDay.weekdayMonthLong + ' ' + weekDay.weekdayYear "></div>
6331
- <!-- <div class="weekday-description" [textContent]="weekDay.weekdayYear"></div>-->
6332
- <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6333
- [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6334
- </div>
6335
6413
  </div>
6336
6414
 
6415
+ </div>
6337
6416
 
6338
- <div class="agenda-header-wrapper" *ngIf="view === viewTypes.WeekSelectView">
6339
- <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index"
6340
- [class.selected]="weekDay.weekdaySelected"
6341
- [class.selectable]="weekDay.events && weekDay.events.length > 0"
6342
- (click)="setUnit(weekDay)">
6343
- <co-icon *ngIf="index === 0 && showBackButton" class="pointer-hover no-user-select sub-unit-icon dark"
6344
- [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6345
- <div class="weekday-description" [textContent]="weekDay.weekdayShort"></div>
6346
- <div class="weekday-value" [textContent]="weekDay.weekdayDay + ' ' + weekDay.weekdayMonthShort"></div>
6347
- <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6348
- [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6349
- </div>
6417
+
6418
+ <div class="agenda-header-wrapper" *ngIf="view === viewTypes.WeekSelectView">
6419
+ <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index"
6420
+ [class.selected]="weekDay.weekdaySelected"
6421
+ [class.selectable]="weekDay.events && weekDay.events.length > 0"
6422
+ (click)="setUnit(weekDay)">
6423
+ <co-icon *ngIf="index === 0 && showBackButton" class="pointer-hover no-user-select sub-unit-icon dark"
6424
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6425
+ <div class="weekday-description" [textContent]="weekDay.weekdayShort"></div>
6426
+ <div class="weekday-value" [textContent]="weekDay.weekdayDay + ' ' + weekDay.weekdayMonthShort"></div>
6427
+ <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6428
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6350
6429
  </div>
6351
- <div class="agenda-header-wrapper" *ngIf="view === viewTypes.MonthView">
6352
- <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index">
6353
- <co-icon *ngIf="index === 0 && showBackButton" class="pointer-hover no-user-select sub-unit-icon dark"
6354
- [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6355
- <div class="weekday-description" [textContent]="weekDay.weekdayShort"></div>
6356
- <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6357
- [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6358
- </div>
6430
+ </div>
6431
+ <div class="agenda-header-wrapper" *ngIf="view === viewTypes.MonthView">
6432
+ <div class="week-day-label" *ngFor="let weekDay of weekDays; let index = index">
6433
+ <co-icon *ngIf="index === 0 && showBackButton" class="pointer-hover no-user-select sub-unit-icon dark"
6434
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6435
+ <div class="weekday-description" [textContent]="weekDay.weekdayShort"></div>
6436
+ <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6437
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6359
6438
  </div>
6439
+ </div>
6360
6440
  `,
6361
6441
  encapsulation: ViewEncapsulation.None
6362
6442
  },] }
@@ -6373,6 +6453,7 @@ AgendaHeaderComponent.propDecorators = {
6373
6453
  view: [{ type: Input }],
6374
6454
  firstAvailableDate: [{ type: Input }],
6375
6455
  eventsPerDay: [{ type: Input }],
6456
+ viewSelection: [{ type: Input }],
6376
6457
  viewChange: [{ type: Output }],
6377
6458
  selectedDateChange: [{ type: Output }],
6378
6459
  rangeChange: [{ type: Output }]