nxt-pick-datetime 11.0.0 → 13.0.1

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 (131) hide show
  1. package/README.md +221 -221
  2. package/assets/picker.scss +668 -668
  3. package/esm2020/lib/class/date-time-adapter.class.mjs +112 -0
  4. package/esm2020/lib/class/date-time-format.class.mjs +4 -0
  5. package/esm2020/lib/class/date-time.class.mjs +161 -0
  6. package/esm2020/lib/class/dialog-config.class.mjs +56 -0
  7. package/esm2020/lib/class/dialog-ref.class.mjs +121 -0
  8. package/esm2020/lib/date-time/calendar/calendar.component.mjs +345 -0
  9. package/esm2020/lib/date-time/calendar-body/calendar-body.component.mjs +145 -0
  10. package/esm2020/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +438 -0
  11. package/esm2020/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +359 -0
  12. package/esm2020/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +369 -0
  13. package/esm2020/lib/date-time/date-time-inline/date-time-inline.component.mjs +264 -0
  14. package/esm2020/lib/date-time/date-time-picker/date-time-picker.component.mjs +529 -0
  15. package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.animations.mjs +18 -0
  16. package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +390 -0
  17. package/esm2020/lib/date-time/date-time-picker-input.directive.mjs +624 -0
  18. package/esm2020/lib/date-time/date-time-picker-intl.service.mjs +61 -0
  19. package/esm2020/lib/date-time/date-time-picker-trigger.directive.mjs +68 -0
  20. package/esm2020/lib/date-time/date-time.module.mjs +88 -0
  21. package/esm2020/lib/date-time/number-fixed-len.pipe.mjs +25 -0
  22. package/esm2020/lib/date-time/timer/timer.component.mjs +292 -0
  23. package/esm2020/lib/date-time/timer-box/timer-box.component.mjs +88 -0
  24. package/esm2020/lib/dialog/dialog-container/dialog-container.component.mjs +243 -0
  25. package/esm2020/lib/dialog/dialog.module.mjs +34 -0
  26. package/esm2020/lib/dialog/dialog.service.mjs +240 -0
  27. package/esm2020/lib/utils/object.mjs +23 -0
  28. package/esm2020/moment-adapter/date-time-adapter.class.mjs +215 -0
  29. package/{esm2015/moment-adapter/date-time-format.class.js → esm2020/moment-adapter/date-time-format.class.mjs} +1 -1
  30. package/esm2020/moment-adapter/moment-adapter.module.mjs +41 -0
  31. package/esm2020/moment-adapter/nxt-pick-datetime-moment-adapter.mjs +5 -0
  32. package/{esm2015/moment-adapter/public-api.js → esm2020/moment-adapter/public-api.mjs} +1 -1
  33. package/esm2020/native-adapter/date-time-adapter.class.mjs +344 -0
  34. package/{esm2015/native-adapter/date-time-format.class.js → esm2020/native-adapter/date-time-format.class.mjs} +1 -1
  35. package/esm2020/native-adapter/native-adapter.module.mjs +35 -0
  36. package/esm2020/native-adapter/nxt-pick-datetime-native-adapter.mjs +5 -0
  37. package/{esm2015/native-adapter/public-api.js → esm2020/native-adapter/public-api.mjs} +1 -1
  38. package/esm2020/nxt-pick-datetime.mjs +5 -0
  39. package/{esm2015/public-api.js → esm2020/public-api.mjs} +1 -1
  40. package/fesm2015/nxt-pick-datetime-moment-adapter.mjs +269 -0
  41. package/fesm2015/nxt-pick-datetime-moment-adapter.mjs.map +1 -0
  42. package/fesm2015/{nxt-pick-datetime-native-adapter.js → nxt-pick-datetime-native-adapter.mjs} +41 -27
  43. package/fesm2015/nxt-pick-datetime-native-adapter.mjs.map +1 -0
  44. package/fesm2015/nxt-pick-datetime.mjs +4974 -0
  45. package/fesm2015/nxt-pick-datetime.mjs.map +1 -0
  46. package/{fesm2015/nxt-pick-datetime-moment-adapter.js → fesm2020/nxt-pick-datetime-moment-adapter.mjs} +48 -27
  47. package/fesm2020/nxt-pick-datetime-moment-adapter.mjs.map +1 -0
  48. package/fesm2020/nxt-pick-datetime-native-adapter.mjs +390 -0
  49. package/fesm2020/nxt-pick-datetime-native-adapter.mjs.map +1 -0
  50. package/{fesm2015/nxt-pick-datetime.js → fesm2020/nxt-pick-datetime.mjs} +2207 -1967
  51. package/fesm2020/nxt-pick-datetime.mjs.map +1 -0
  52. package/lib/class/date-time.class.d.ts +3 -0
  53. package/lib/class/dialog-ref.class.d.ts +2 -0
  54. package/lib/date-time/calendar/calendar.component.d.ts +3 -0
  55. package/lib/date-time/calendar-body/calendar-body.component.d.ts +3 -0
  56. package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +3 -0
  57. package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +3 -0
  58. package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +3 -0
  59. package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +3 -0
  60. package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +3 -0
  61. package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +3 -0
  62. package/lib/date-time/date-time-picker-input.directive.d.ts +3 -0
  63. package/lib/date-time/date-time-picker-intl.service.d.ts +3 -0
  64. package/lib/date-time/date-time-picker-trigger.directive.d.ts +3 -0
  65. package/lib/date-time/date-time.module.d.ts +21 -0
  66. package/lib/date-time/number-fixed-len.pipe.d.ts +3 -0
  67. package/lib/date-time/timer/timer.component.d.ts +3 -0
  68. package/lib/date-time/timer-box/timer-box.component.d.ts +3 -0
  69. package/lib/dialog/dialog-container/dialog-container.component.d.ts +5 -2
  70. package/lib/dialog/dialog.module.d.ts +9 -0
  71. package/lib/dialog/dialog.service.d.ts +6 -2
  72. package/moment-adapter/date-time-adapter.class.d.ts +3 -0
  73. package/moment-adapter/moment-adapter.module.d.ts +7 -0
  74. package/moment-adapter/nxt-pick-datetime-moment-adapter.d.ts +1 -3
  75. package/moment-adapter/package.json +6 -7
  76. package/native-adapter/date-time-adapter.class.d.ts +3 -0
  77. package/native-adapter/native-adapter.module.d.ts +8 -0
  78. package/native-adapter/nxt-pick-datetime-native-adapter.d.ts +1 -3
  79. package/native-adapter/package.json +6 -7
  80. package/nxt-pick-datetime.d.ts +1 -14
  81. package/package.json +44 -13
  82. package/bundles/nxt-pick-datetime-moment-adapter.umd.js +0 -579
  83. package/bundles/nxt-pick-datetime-moment-adapter.umd.js.map +0 -1
  84. package/bundles/nxt-pick-datetime-moment-adapter.umd.min.js +0 -16
  85. package/bundles/nxt-pick-datetime-moment-adapter.umd.min.js.map +0 -1
  86. package/bundles/nxt-pick-datetime-native-adapter.umd.js +0 -706
  87. package/bundles/nxt-pick-datetime-native-adapter.umd.js.map +0 -1
  88. package/bundles/nxt-pick-datetime-native-adapter.umd.min.js +0 -16
  89. package/bundles/nxt-pick-datetime-native-adapter.umd.min.js.map +0 -1
  90. package/bundles/nxt-pick-datetime.umd.js +0 -5809
  91. package/bundles/nxt-pick-datetime.umd.js.map +0 -1
  92. package/bundles/nxt-pick-datetime.umd.min.js +0 -17
  93. package/bundles/nxt-pick-datetime.umd.min.js.map +0 -1
  94. package/esm2015/lib/class/date-time-adapter.class.js +0 -112
  95. package/esm2015/lib/class/date-time-format.class.js +0 -4
  96. package/esm2015/lib/class/date-time.class.js +0 -151
  97. package/esm2015/lib/class/dialog-config.class.js +0 -56
  98. package/esm2015/lib/class/dialog-ref.class.js +0 -113
  99. package/esm2015/lib/date-time/calendar/calendar.component.js +0 -331
  100. package/esm2015/lib/date-time/calendar-body/calendar-body.component.js +0 -144
  101. package/esm2015/lib/date-time/calendar-month-view/calendar-month-view.component.js +0 -425
  102. package/esm2015/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.js +0 -347
  103. package/esm2015/lib/date-time/calendar-year-view/calendar-year-view.component.js +0 -356
  104. package/esm2015/lib/date-time/date-time-inline/date-time-inline.component.js +0 -246
  105. package/esm2015/lib/date-time/date-time-picker/date-time-picker.component.js +0 -511
  106. package/esm2015/lib/date-time/date-time-picker-container/date-time-picker-container.animations.js +0 -18
  107. package/esm2015/lib/date-time/date-time-picker-container/date-time-picker-container.component.js +0 -373
  108. package/esm2015/lib/date-time/date-time-picker-input.directive.js +0 -592
  109. package/esm2015/lib/date-time/date-time-picker-intl.service.js +0 -59
  110. package/esm2015/lib/date-time/date-time-picker-trigger.directive.js +0 -63
  111. package/esm2015/lib/date-time/date-time.module.js +0 -60
  112. package/esm2015/lib/date-time/number-fixed-len.pipe.js +0 -21
  113. package/esm2015/lib/date-time/timer/timer.component.js +0 -287
  114. package/esm2015/lib/date-time/timer-box/timer-box.component.js +0 -77
  115. package/esm2015/lib/dialog/dialog-container/dialog-container.component.js +0 -202
  116. package/esm2015/lib/dialog/dialog.module.js +0 -26
  117. package/esm2015/lib/dialog/dialog.service.js +0 -225
  118. package/esm2015/lib/utils/object.js +0 -23
  119. package/esm2015/moment-adapter/date-time-adapter.class.js +0 -206
  120. package/esm2015/moment-adapter/moment-adapter.module.js +0 -28
  121. package/esm2015/moment-adapter/nxt-pick-datetime-moment-adapter.js +0 -8
  122. package/esm2015/native-adapter/date-time-adapter.class.js +0 -342
  123. package/esm2015/native-adapter/native-adapter.module.js +0 -26
  124. package/esm2015/native-adapter/nxt-pick-datetime-native-adapter.js +0 -8
  125. package/esm2015/nxt-pick-datetime.js +0 -19
  126. package/fesm2015/nxt-pick-datetime-moment-adapter.js.map +0 -1
  127. package/fesm2015/nxt-pick-datetime-native-adapter.js.map +0 -1
  128. package/fesm2015/nxt-pick-datetime.js.map +0 -1
  129. package/moment-adapter/nxt-pick-datetime-moment-adapter.metadata.json +0 -1
  130. package/native-adapter/nxt-pick-datetime-native-adapter.metadata.json +0 -1
  131. package/nxt-pick-datetime.metadata.json +0 -1
@@ -1,17 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("rxjs/operators"),require("@angular/forms"),require("@angular/animations"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/common"),require("@angular/cdk/a11y")):"function"==typeof define&&define.amd?define("nxt-pick-datetime",["exports","@angular/core","rxjs","@angular/cdk/coercion","@angular/cdk/keycodes","rxjs/operators","@angular/forms","@angular/animations","@angular/cdk/overlay","@angular/cdk/portal","@angular/common","@angular/cdk/a11y"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["nxt-pick-datetime"]={},e.ng.core,e.rxjs,e.ng.cdk.coercion,e.ng.cdk.keycodes,e.rxjs.operators,e.ng.forms,e.ng.animations,e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.common,e.ng.cdk.a11y)}(this,(function(e,t,i,n,r,a,o,s,l,c,d,p){"use strict";var u=new t.InjectionToken("OWL_DATE_TIME_LOCALE",{providedIn:"root",factory:h});function h(){return t.inject(t.LOCALE_ID)}var m={provide:u,useExisting:t.LOCALE_ID},f=function(){function e(){this._localeChanges=new i.Subject,this.millisecondsInDay=864e5,this.milliseondsInMinute=6e4}return Object.defineProperty(e.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!1,configurable:!0}),e.prototype.compare=function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var i=this.clone(e),n=this.clone(t),r=this.getTime(i)-this.getTime(n);return r<0?-1:r>0?1:r},e.prototype.compareYear=function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var i=this.getYear(e)-this.getYear(t);return i<0?-1:i>0?1:0},e.prototype.deserialize=function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.clampDate=function(e,t,i){return t&&this.compare(e,t)<0?t:i&&this.compare(e,i)>0?i:e},e}(),g=new t.InjectionToken("OWL_DATE_TIME_FORMATS"),y=function(e,t,i,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=""),this.value=e,this.displayValue=t,this.ariaLabel=i,this.enabled=n,this.out=r,this.cellClass=a},b=function(){function e(e,i){this.elmRef=e,this.ngZone=i,this.activeCell=0,this.numCols=7,this.cellRatio=1,this.select=new t.EventEmitter}return Object.defineProperty(e.prototype,"owlDTCalendarBodyClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.selectCell=function(e){this.select.emit(e)},e.prototype.isActiveCell=function(e,t){return e*this.numCols+t===this.activeCell},e.prototype.isSelected=function(e){if(!this.selectedValues||0===this.selectedValues.length)return!1;if(this.isInSingleMode)return e===this.selectedValues[0];if(this.isInRangeMode){var t=this.selectedValues[0],i=this.selectedValues[1];return e===t||e===i}},e.prototype.isInRange=function(e){if(this.isInRangeMode){var t=this.selectedValues[0],i=this.selectedValues[1];return null!==t&&null!==i?e>=t&&e<=i:e===t||e===i}},e.prototype.isRangeFrom=function(e){if(this.isInRangeMode){var t=this.selectedValues[0];return null!==t&&e===t}},e.prototype.isRangeTo=function(e){if(this.isInRangeMode){var t=this.selectedValues[1];return null!==t&&e===t}},e.prototype.focusActiveCell=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))},e}();b.decorators=[{type:t.Component,args:[{selector:"[owl-date-time-calendar-body]",exportAs:"owlDateTimeCalendarBody",template:'<tr *ngFor="let row of rows; let rowIndex = index"\n role="row">\n <td *ngFor="let item of row; let colIndex = index"\n class="owl-dt-calendar-cell {{item.cellClass}}"\n [tabindex]="isActiveCell(rowIndex, colIndex) ? 0 : -1"\n [class.owl-dt-calendar-cell-active]="isActiveCell(rowIndex, colIndex)"\n [class.owl-dt-calendar-cell-disabled]="!item.enabled"\n [class.owl-dt-calendar-cell-in-range]="isInRange(item.value)"\n [class.owl-dt-calendar-cell-range-from]="isRangeFrom(item.value)"\n [class.owl-dt-calendar-cell-range-to]="isRangeTo(item.value)"\n [attr.aria-label]="item.ariaLabel"\n [attr.aria-disabled]="!item.enabled || null"\n [style.width.%]="100 / numCols"\n [style.paddingTop.%]="50 * cellRatio / numCols"\n [style.paddingBottom.%]="50 * cellRatio / numCols"\n (click)="selectCell(item)">\n <span class="owl-dt-calendar-cell-content"\n [ngClass]="{\n \'owl-dt-calendar-cell-out\': item.out,\n \'owl-dt-calendar-cell-today\': item.value === todayValue,\n \'owl-dt-calendar-cell-selected\': isSelected(item.value)\n }">\n {{item.displayValue}}\n </span>\n </td>\n</tr>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],b.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},b.propDecorators={activeCell:[{type:t.Input}],rows:[{type:t.Input}],numCols:[{type:t.Input}],cellRatio:[{type:t.Input}],todayValue:[{type:t.Input}],selectedValues:[{type:t.Input}],selectMode:[{type:t.Input}],select:[{type:t.Output}],owlDTCalendarBodyClass:[{type:t.HostBinding,args:["class.owl-dt-calendar-body"]}]};var v=function(){function e(e,n,r){this.cdRef=e,this.dateTimeAdapter=n,this.dateTimeFormats=r,this.hideOtherMonths=!1,this._firstDayOfWeek=0,this._selectMode="single",this._selecteds=[],this.localeSub=i.Subscription.EMPTY,this.initiated=!1,this.selectedDates=[],this.selectedChange=new t.EventEmitter,this.userSelection=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){(e=n.coerceNumberProperty(e))>=0&&e<=6&&e!==this._firstDayOfWeek&&(this._firstDayOfWeek=e,this.initiated&&(this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedDates()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedDates()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),this.firstDateOfMonth=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerMoment),this.dateTimeAdapter.getMonth(this._pickerMoment),1),!this.isSameMonth(t,this._pickerMoment)&&this.initiated&&this.generateCalendar()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"weekdays",{get:function(){return this._weekdays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"days",{get:function(){return this._days},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this.pickerMoment)return this.dateTimeAdapter.getDate(this.pickerMoment)+this.firstRowOffset-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.generateWeekDays(),this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){e.generateWeekDays(),e.generateCalendar(),e.cdRef.markForCheck()}))},e.prototype.ngAfterContentInit=function(){this.generateCalendar(),this.initiated=!0},e.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},e.prototype.selectCalendarCell=function(e){!e.enabled||this.hideOtherMonths&&e.out||this.selectDate(e.value)},e.prototype.selectDate=function(e){var t=e-1,i=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,t);this.selectedChange.emit(i),this.userSelection.emit()},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case r.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case r.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case r.UP_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-7),this.pickerMomentChange.emit(t);break;case r.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,7),this.pickerMomentChange.emit(t);break;case r.HOME:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case r.END:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment)-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case r.PAGE_UP:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case r.PAGE_DOWN:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case r.ENTER:this.dateFilter&&!this.dateFilter(this.pickerMoment,"date")||this.selectDate(this.dateTimeAdapter.getDate(this.pickerMoment));break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.generateWeekDays=function(){var e=this.dateTimeAdapter.getDayOfWeekNames("long"),t=this.dateTimeAdapter.getDayOfWeekNames("short"),i=this.dateTimeAdapter.getDayOfWeekNames("narrow"),n=this.firstDayOfWeek,r=e.map((function(e,n){return{long:e,short:t[n],narrow:i[n]}}));this._weekdays=r.slice(n).concat(r.slice(0,n))},e.prototype.generateCalendar=function(){if(this.pickerMoment){this.todayDate=null;var e=0-(this.dateTimeAdapter.getDay(this.firstDateOfMonth)+(7-this.firstDayOfWeek))%7;this.firstRowOffset=Math.abs(e),this._days=[];for(var t=0;t<6;t++){for(var i=[],n=0;n<7;n++){var r=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,e),a=this.createDateCell(r,e);this.dateTimeAdapter.isSameDay(this.dateTimeAdapter.now(),r)&&(this.todayDate=e+1),i.push(a),e+=1}this._days.push(i)}this.setSelectedDates()}},e.prototype.createDateCell=function(e,t){var i=this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment),n=this.dateTimeAdapter.getDate(e).toString(),r=this.dateTimeAdapter.format(e,this.dateTimeFormats.dateA11yLabel),a=this.isDateEnabled(e),o=t+1,s=o<1||o>i,l="owl-dt-day-"+this.dateTimeAdapter.getDay(e);return new y(o,n,r,a,s,l)},e.prototype.isDateEnabled=function(e){return!!e&&(!this.dateFilter||this.dateFilter(e,"date"))&&(!this.minDate||this.dateTimeAdapter.compare(e,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(e,this.maxDate)<=0)},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.isSameMonth=function(e,t){return!!(e&&t&&this.dateTimeAdapter.isValid(e)&&this.dateTimeAdapter.isValid(t)&&this.dateTimeAdapter.getYear(e)===this.dateTimeAdapter.getYear(t)&&this.dateTimeAdapter.getMonth(e)===this.dateTimeAdapter.getMonth(t))},e.prototype.setSelectedDates=function(){var e=this;if(this.selectedDates=[],this.firstDateOfMonth)if(this.isInSingleMode&&this.selected){var t=this.dateTimeAdapter.differenceInCalendarDays(this.selected,this.firstDateOfMonth);this.selectedDates[0]=t+1}else this.isInRangeMode&&this.selecteds&&(this.selectedDates=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.differenceInCalendarDays(t,e.firstDateOfMonth)+1:null})))},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();v.decorators=[{type:t.Component,args:[{selector:"owl-date-time-month-view",exportAs:"owlYearView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-month-table"\n [class.owl-dt-calendar-only-current-month]="hideOtherMonths">\n <thead class="owl-dt-calendar-header">\n <tr class="owl-dt-weekdays">\n <th *ngFor="let weekday of weekdays"\n [attr.aria-label]="weekday.long"\n class="owl-dt-weekday"\n scope="col">\n <span>{{weekday.short}}</span>\n </th>\n </tr>\n <tr>\n <th class="owl-dt-calendar-table-divider"\n aria-hidden="true"\n colspan="7"></th>\n </tr>\n </thead>\n <tbody owl-date-time-calendar-body\n role="grid"\n [rows]="days"\n [todayValue]="todayDate"\n [selectedValues]="selectedDates"\n [selectMode]="selectMode"\n [activeCell]="activeCell"\n (keydown)="handleCalendarKeydown($event)"\n (select)="selectCalendarCell($event)">\n </tbody>\n</table>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],v.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},v.propDecorators={hideOtherMonths:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],selectedChange:[{type:t.Output}],userSelection:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[b,{static:!0}]}],owlDTCalendarView:[{type:t.HostBinding,args:["class.owl-dt-calendar-view"]}]};var k=function(){this.changes=new i.Subject,this.upSecondLabel="Add a second",this.downSecondLabel="Minus a second",this.upMinuteLabel="Add a minute",this.downMinuteLabel="Minus a minute",this.upHourLabel="Add a hour",this.downHourLabel="Minus a hour",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 21 years",this.nextMultiYearLabel="Next 21 years",this.switchToMonthViewLabel="Change to month view",this.switchToMultiYearViewLabel="Choose month and year",this.cancelBtnLabel="Cancel",this.setBtnLabel="Set",this.rangeFromLabel="From",this.rangeToLabel="To",this.hour12AMLabel="AM",this.hour12PMLabel="PM"};k.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new k},token:k,providedIn:"root"}),k.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var w=function(){function e(e,i,n){this.cdRef=e,this.pickerIntl=i,this.dateTimeAdapter=n,this._selectMode="single",this._selecteds=[],this.initiated=!1,this.change=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter,this.keyboardEnter=new t.EventEmitter}return Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.setSelectedYears(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedYears()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedYears()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),t&&this._pickerMoment&&!this.isSameYearList(t,this._pickerMoment)&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todayYear",{get:function(){return this._todayYear},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"years",{get:function(){return this._years},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedYears",{get:function(){return this._selectedYears},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getYear(this._pickerMoment)%21},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableHeader",{get:function(){if(this._years&&this._years.length>0)return this._years[0][0].displayValue+" ~ "+this._years[6][2].displayValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return this.pickerIntl.prevMultiYearLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return this.pickerIntl.nextMultiYearLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarMultiYearView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){this._todayYear=this.dateTimeAdapter.getYear(this.dateTimeAdapter.now()),this.generateYearList(),this.initiated=!0},e.prototype.selectCalendarCell=function(e){this.selectYear(e.value)},e.prototype.selectYear=function(e){this.yearSelected.emit(this.dateTimeAdapter.createDate(e,0,1));var t=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),1),i=this.dateTimeAdapter.getNumDaysInMonth(t),n=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),Math.min(i,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(n)},e.prototype.prevYearList=function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-21),this.generateYearList(),e.preventDefault()},e.prototype.nextYearList=function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,21),this.generateYearList(),e.preventDefault()},e.prototype.generateYearList=function(){this._years=[];for(var e=this.dateTimeAdapter.getYear(this._pickerMoment),t=e%21,i=0;i<7;i++){for(var n=[],r=0;r<3;r++){var a=e-t+(r+3*i),o=this.createYearCell(a);n.push(o)}this._years.push(n)}},e.prototype.previousEnabled=function(){return!this.minDate||(!this.minDate||!this.isSameYearList(this._pickerMoment,this.minDate))},e.prototype.nextEnabled=function(){return!this.maxDate||!this.isSameYearList(this._pickerMoment,this.maxDate)},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case r.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-1),this.pickerMomentChange.emit(t);break;case r.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,1),this.pickerMomentChange.emit(t);break;case r.UP_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-3),this.pickerMomentChange.emit(t);break;case r.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,3),this.pickerMomentChange.emit(t);break;case r.HOME:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-this.dateTimeAdapter.getYear(this._pickerMoment)%21),this.pickerMomentChange.emit(t);break;case r.END:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,21-this.dateTimeAdapter.getYear(this._pickerMoment)%21-1),this.pickerMomentChange.emit(t);break;case r.PAGE_UP:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?-210:-21),this.pickerMomentChange.emit(t);break;case r.PAGE_DOWN:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?210:21),this.pickerMomentChange.emit(t);break;case r.ENTER:this.selectYear(this.dateTimeAdapter.getYear(this._pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.createYearCell=function(e){var t=this.dateTimeAdapter.createDate(e,0,1),i=this.dateTimeAdapter.getYearName(t),n="owl-dt-year-"+e;return new y(e,e.toString(),i,this.isYearEnabled(e),!1,n)},e.prototype.setSelectedYears=function(){var e=this;this._selectedYears=[],this.isInSingleMode&&this.selected&&(this._selectedYears[0]=this.dateTimeAdapter.getYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this._selectedYears=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.getYear(t):null})))},e.prototype.isYearEnabled=function(e){if(null==e||this.maxDate&&e>this.dateTimeAdapter.getYear(this.maxDate)||this.minDate&&e<this.dateTimeAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this.dateTimeAdapter.createDate(e,0,1);this.dateTimeAdapter.getYear(t)==e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(this.dateFilter(t,"year"))return!0;return!1},e.prototype.isSameYearList=function(e,t){return Math.floor(this.dateTimeAdapter.getYear(e)/21)===Math.floor(this.dateTimeAdapter.getYear(t)/21)},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();w.decorators=[{type:t.Component,args:[{selector:"owl-date-time-multi-year-view",template:'<button class="owl-dt-control-button owl-dt-control-arrow-button"\n [disabled]="!previousEnabled()"\n [attr.aria-label]="prevButtonLabel"\n type="button"\n tabindex="0"\n (click)="prevYearList($event)">\n <span class="owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e\n <svg xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n version="1.1"\n x="0px"\n y="0px"\n viewBox="0 0 250.738 250.738"\n style="enable-background:new 0 0 250.738 250.738;"\n xml:space="preserve"\n width="100%"\n height="100%">\n <path style="fill-rule: evenodd; clip-rule: evenodd;"\n d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n</button>\n<table class="owl-dt-calendar-table owl-dt-calendar-multi-year-table">\n <thead class="owl-dt-calendar-header">\n <tr>\n <th colspan="3">{{tableHeader}}</th>\n </tr>\n </thead>\n <tbody owl-date-time-calendar-body\n role="grid"\n [rows]="years"\n [numCols]="3"\n [cellRatio]="3 / 7"\n [activeCell]="activeCell"\n [todayValue]="todayYear"\n [selectedValues]="selectedYears"\n [selectMode]="selectMode"\n (keydown)="handleCalendarKeydown($event)"\n (select)="selectCalendarCell($event)"></tbody>\n</table>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n [disabled]="!nextEnabled()"\n [attr.aria-label]="nextButtonLabel"\n type="button"\n tabindex="0"\n (click)="nextYearList($event)">\n <span class="owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e\n <svg version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n viewBox="0 0 250.738 250.738"\n style="enable-background:new 0 0 250.738 250.738;"\n xml:space="preserve">\n <path style="fill-rule:evenodd;clip-rule:evenodd;"\n d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n C197.237,120.447,195.534,115.448,191.75,111.689z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n</button>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],w.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:k},{type:f,decorators:[{type:t.Optional}]}]},w.propDecorators={selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],change:[{type:t.Output}],yearSelected:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],keyboardEnter:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[b,{static:!0}]}],owlDTCalendarView:[{type:t.HostBinding,args:["class.owl-dt-calendar-view"]}],owlDTCalendarMultiYearView:[{type:t.HostBinding,args:["class.owl-dt-calendar-multi-year-view"]}]};var T=function(){function e(e,n,r){this.cdRef=e,this.dateTimeAdapter=n,this.dateTimeFormats=r,this._selectMode="single",this._selecteds=[],this.localeSub=i.Subscription.EMPTY,this.initiated=!1,this.selectedMonths=[],this.change=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter,this.keyboardEnter=new t.EventEmitter,this.monthNames=this.dateTimeAdapter.getMonthNames("short")}return Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateMonthList(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.setSelectedMonths()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=[];for(var t=0;t<e.length;t++){var i=this.dateTimeAdapter.deserialize(e[t]);this._selecteds.push(this.getValidDate(i))}this.setSelectedMonths()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),!this.hasSameYear(t,this._pickerMoment)&&this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"months",{get:function(){return this._months},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getMonth(this._pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){e.generateMonthList(),e.cdRef.markForCheck()}))},e.prototype.ngAfterContentInit=function(){this.generateMonthList(),this.initiated=!0},e.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},e.prototype.selectCalendarCell=function(e){this.selectMonth(e.value)},e.prototype.selectMonth=function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.monthSelected.emit(t);var i=this.dateTimeAdapter.getNumDaysInMonth(t),n=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,Math.min(i,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(n)},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case r.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case r.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case r.UP_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-3),this.pickerMomentChange.emit(t);break;case r.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,3),this.pickerMomentChange.emit(t);break;case r.HOME:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case r.END:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,11-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case r.PAGE_UP:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?-10:-1),this.pickerMomentChange.emit(t);break;case r.PAGE_DOWN:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?10:1),this.pickerMomentChange.emit(t);break;case r.ENTER:this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.generateMonthList=function(){if(this.pickerMoment){this.setSelectedMonths(),this.todayMonth=this.getMonthInCurrentYear(this.dateTimeAdapter.now()),this._months=[];for(var e=0;e<4;e++){for(var t=[],i=0;i<3;i++){var n=i+3*e,r=this.createMonthCell(n);t.push(r)}this._months.push(t)}}},e.prototype.createMonthCell=function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1),i=this.dateTimeAdapter.format(t,this.dateTimeFormats.monthYearA11yLabel),n="owl-dt-month-"+e;return new y(e,this.monthNames[e],i,this.isMonthEnabled(e),!1,n)},e.prototype.isMonthEnabled=function(e){for(var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.dateTimeAdapter.getMonth(t)===e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(t&&(!this.dateFilter||this.dateFilter(t,"month"))&&(!this.minDate||this.dateTimeAdapter.compare(t,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(t,this.maxDate)<=0))return!0;return!1},e.prototype.getMonthInCurrentYear=function(e){if(this.getValidDate(e)&&this.getValidDate(this._pickerMoment)){var t=this.dateTimeAdapter.compareYear(e,this._pickerMoment);return t<0?-1:t>0?12:this.dateTimeAdapter.getMonth(e)}return null},e.prototype.setSelectedMonths=function(){this.selectedMonths=[],this.isInSingleMode&&this.selected&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selecteds[0]),this.selectedMonths[1]=this.getMonthInCurrentYear(this.selecteds[1]))},e.prototype.hasSameYear=function(e,t){return!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();T.decorators=[{type:t.Component,args:[{selector:"owl-date-time-year-view",exportAs:"owlMonthView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-year-table">\n <thead class="owl-dt-calendar-header">\n <tr>\n <th class="owl-dt-calendar-table-divider"\n aria-hidden="true"\n colspan="3"></th>\n </tr>\n </thead>\n <tbody owl-date-time-calendar-body\n role="grid"\n [rows]="months"\n [numCols]="3"\n [cellRatio]="3 / 7"\n [activeCell]="activeCell"\n [todayValue]="todayMonth"\n [selectedValues]="selectedMonths"\n [selectMode]="selectMode"\n (keydown)="handleCalendarKeydown($event)"\n (select)="selectCalendarCell($event)">\n </tbody>\n</table>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],T.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},T.propDecorators={selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],change:[{type:t.Output}],monthSelected:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],keyboardEnter:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[b,{static:!0}]}],owlDTCalendarView:[{type:t.HostBinding,args:["class.owl-dt-calendar-view"]}]};var M=function(){function e(e,n,r,a,o,s){var l=this;this.elmRef=e,this.pickerIntl=n,this.ngZone=r,this.cdRef=a,this.dateTimeAdapter=o,this.dateTimeFormats=s,this.firstDayOfWeek=0,this._selecteds=[],this.startView="month",this.pickerMomentChange=new t.EventEmitter,this.selectedChange=new t.EventEmitter,this.userSelection=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.dateFilterForViews=function(e){return!!e&&(!l.dateFilter||l.dateFilter(e,"date"))&&(!l.minDate||l.dateTimeAdapter.compare(e,l.minDate)>=0)&&(!l.maxDate||l.dateTimeAdapter.compare(e,l.maxDate)<=0)},this.intlChangesSub=i.Subscription.EMPTY,this.moveFocusOnNextTick=!1,this.intlChangesSub=this.pickerIntl.changes.subscribe((function(){l.cdRef.markForCheck()}))}return Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._minDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._maxDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonText",{get:function(){return this.isMonthView?this.dateTimeAdapter.format(this.pickerMoment,this.dateTimeFormats.monthYearLabel):this.dateTimeAdapter.getYearName(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return this.isMonthView?this.pickerIntl.switchToMultiYearViewLabel:this.pickerIntl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return"month"===this._currentView?this.pickerIntl.prevMonthLabel:"year"===this._currentView?this.pickerIntl.prevYearLabel:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return"month"===this._currentView?this.pickerIntl.nextMonthLabel:"year"===this._currentView?this.pickerIntl.nextYearLabel:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){this._currentView=e,this.moveFocusOnNextTick=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showControlArrows",{get:function(){return"multi-years"!==this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMonthView",{get:function(){return"month"===this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarClass",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this.moveFocusOnNextTick&&(this.moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this.intlChangesSub.unsubscribe()},e.prototype.toggleViews=function(){this.currentView="month"==this._currentView?"multi-years":"month"},e.prototype.previousClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.nextClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.dateSelected=function(e){this.dateFilterForViews(e)&&this.selectedChange.emit(e)},e.prototype.goToDateInView=function(e,t){this.handlePickerMomentChange(e),this.currentView=t},e.prototype.handlePickerMomentChange=function(e){this.pickerMoment=this.dateTimeAdapter.clampDate(e,this.minDate,this.maxDate),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.userSelected=function(){this.userSelection.emit()},e.prototype.prevButtonEnabled=function(){return!this.minDate||!this.isSameView(this.pickerMoment,this.minDate)},e.prototype.nextButtonEnabled=function(){return!this.maxDate||!this.isSameView(this.pickerMoment,this.maxDate)},e.prototype.focusActiveCell=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))},e.prototype.selectYearInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype.selectMonthInYearView=function(e){this.monthSelected.emit(e)},e.prototype.isSameView=function(e,t){return"month"===this._currentView?!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t)||this.dateTimeAdapter.getMonth(e)!==this.dateTimeAdapter.getMonth(t)):"year"===this._currentView&&!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();M.decorators=[{type:t.Component,args:[{selector:"owl-date-time-calendar",exportAs:"owlDateTimeCalendar",template:'<div class="owl-dt-calendar-control">\n \x3c!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) --\x3e\n <button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button"\n type="button"\n tabindex="0"\n [style.visibility]="showControlArrows? \'visible\': \'hidden\'"\n [disabled]="!prevButtonEnabled()"\n [attr.aria-label]="prevButtonLabel"\n (click)="previousClicked()">\n <span class="owl-dt-control-content owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e\n <svg xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n version="1.1"\n x="0px"\n y="0px"\n viewBox="0 0 250.738 250.738"\n style="enable-background:new 0 0 250.738 250.738;"\n xml:space="preserve"\n width="100%"\n height="100%">\n <path style="fill-rule: evenodd; clip-rule: evenodd;"\n d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n </button>\n <div class="owl-dt-calendar-control-content">\n <button class="owl-dt-control owl-dt-control-button owl-dt-control-period-button"\n type="button"\n tabindex="0"\n [attr.aria-label]="periodButtonLabel"\n (click)="toggleViews()">\n <span class="owl-dt-control-content owl-dt-control-button-content"\n tabindex="-1">\n {{periodButtonText}}\n\n <span class="owl-dt-control-button-arrow"\n [style.transform]="\'rotate(\' + (isMonthView? 0 : 180) +\'deg)\'">\n \x3c!-- <editor-fold desc="SVG Arrow"> --\x3e\n <svg version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n width="50%"\n height="50%"\n viewBox="0 0 292.362 292.362"\n style="enable-background:new 0 0 292.362 292.362;"\n xml:space="preserve">\n <g>\n <path\n d="M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z" />\n </g>\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n </span>\n </button>\n </div>\n <button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button"\n type="button"\n tabindex="0"\n [style.visibility]="showControlArrows? \'visible\': \'hidden\'"\n [disabled]="!nextButtonEnabled()"\n [attr.aria-label]="nextButtonLabel"\n (click)="nextClicked()">\n <span class="owl-dt-control-content owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e\n <svg version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n viewBox="0 0 250.738 250.738"\n style="enable-background:new 0 0 250.738 250.738;"\n xml:space="preserve">\n <path style="fill-rule:evenodd;clip-rule:evenodd;"\n d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n C197.237,120.447,195.534,115.448,191.75,111.689z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n </button>\n</div>\n<div class="owl-dt-calendar-main"\n cdkMonitorSubtreeFocus\n [ngSwitch]="currentView"\n tabindex="-1">\n <owl-date-time-month-view *ngSwitchCase="\'month\'"\n [pickerMoment]="pickerMoment"\n [firstDayOfWeek]="firstDayOfWeek"\n [selected]="selected"\n [selecteds]="selecteds"\n [selectMode]="selectMode"\n [minDate]="minDate"\n [maxDate]="maxDate"\n [dateFilter]="dateFilter"\n [hideOtherMonths]="hideOtherMonths"\n (pickerMomentChange)="handlePickerMomentChange($event)"\n (selectedChange)="dateSelected($event)"\n (userSelection)="userSelected()"></owl-date-time-month-view>\n\n <owl-date-time-year-view *ngSwitchCase="\'year\'"\n [pickerMoment]="pickerMoment"\n [selected]="selected"\n [selecteds]="selecteds"\n [selectMode]="selectMode"\n [minDate]="minDate"\n [maxDate]="maxDate"\n [dateFilter]="dateFilter"\n (keyboardEnter)="focusActiveCell()"\n (pickerMomentChange)="handlePickerMomentChange($event)"\n (monthSelected)="selectMonthInYearView($event)"\n (change)="goToDateInView($event, \'month\')"></owl-date-time-year-view>\n\n <owl-date-time-multi-year-view *ngSwitchCase="\'multi-years\'"\n [pickerMoment]="pickerMoment"\n [selected]="selected"\n [selecteds]="selecteds"\n [selectMode]="selectMode"\n [minDate]="minDate"\n [maxDate]="maxDate"\n [dateFilter]="dateFilter"\n (keyboardEnter)="focusActiveCell()"\n (pickerMomentChange)="handlePickerMomentChange($event)"\n (yearSelected)="selectYearInMultiYearView($event)"\n (change)="goToDateInView($event, \'year\')"></owl-date-time-multi-year-view>\n</div>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],M.ctorParameters=function(){return[{type:t.ElementRef},{type:k},{type:t.NgZone},{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},M.propDecorators={dateFilter:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],pickerMoment:[{type:t.Input}],selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],startView:[{type:t.Input}],hideOtherMonths:[{type:t.Input}],pickerMomentChange:[{type:t.Output}],selectedChange:[{type:t.Output}],userSelection:[{type:t.Output}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}],owlDTCalendarClass:[{type:t.HostBinding,args:["class.owl-dt-calendar"]}]};
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function D(e,t){function i(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}Object.create;function A(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,a=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function I(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}Object.create;var _=0,S=function(){function e(e,t){var i=this;if(this.dateTimeAdapter=e,this.dateTimeFormats=t,this._showSecondsTimer=!1,this._hour12Timer=!1,this.startView="month",this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._firstDayOfWeek=0,this._hideOtherMonths=!1,this.dateTimeChecker=function(e){return!!e&&(!i.dateTimeFilter||i.dateTimeFilter(e))&&(!i.minDateTime||i.dateTimeAdapter.compare(e,i.minDateTime)>=0)&&(!i.maxDateTime||i.dateTimeAdapter.compare(e,i.maxDateTime)<=0)},!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimeAdapter. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this._id="owl-dt-picker-"+_++}return Object.defineProperty(e.prototype,"showSecondsTimer",{get:function(){return this._showSecondsTimer},set:function(e){this._showSecondsTimer=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hour12Timer",{get:function(){return this._hour12Timer},set:function(e){this._hour12Timer=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepHour",{get:function(){return this._stepHour},set:function(e){this._stepHour=n.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepMinute",{get:function(){return this._stepMinute},set:function(e){this._stepMinute=n.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepSecond",{get:function(){return this._stepSecond},set:function(e){this._stepSecond=n.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){e=n.coerceNumberProperty(e,0),this._firstDayOfWeek=e>6||e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideOtherMonths",{get:function(){return this._hideOtherMonths},set:function(e){this._hideOtherMonths=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formatString",{get:function(){return"both"===this.pickerType?this.dateTimeFormats.fullPickerInput:"calendar"===this.pickerType?this.dateTimeFormats.datePickerInput:this.dateTimeFormats.timePickerInput},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();S.decorators=[{type:t.Directive}],S.ctorParameters=function(){return[{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},S.propDecorators={showSecondsTimer:[{type:t.Input}],hour12Timer:[{type:t.Input}],startView:[{type:t.Input}],stepHour:[{type:t.Input}],stepMinute:[{type:t.Input}],stepSecond:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],hideOtherMonths:[{type:t.Input}]};var P=function(){function e(e,i,n,r,a){this.ngZone=e,this.elmRef=i,this.pickerIntl=n,this.cdRef=r,this.dateTimeAdapter=a,this.isPM=!1,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.selectedChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDateTime",{get:function(){return this._minDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDateTime=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDateTime",{get:function(){return this._maxDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDateTime=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourValue",{get:function(){return this.dateTimeAdapter.getHours(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourBoxValue",{get:function(){var e=this.hourValue;return this.hour12Timer?(0===e?(e=12,this.isPM=!1):e>0&&e<12?this.isPM=!1:12===e?this.isPM=!0:e>12&&e<24&&(e-=12,this.isPM=!0),e):e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minuteValue",{get:function(){return this.dateTimeAdapter.getMinutes(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"secondValue",{get:function(){return this.dateTimeAdapter.getSeconds(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upHourButtonLabel",{get:function(){return this.pickerIntl.upHourLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downHourButtonLabel",{get:function(){return this.pickerIntl.downHourLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upMinuteButtonLabel",{get:function(){return this.pickerIntl.upMinuteLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downMinuteButtonLabel",{get:function(){return this.pickerIntl.downMinuteLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upSecondButtonLabel",{get:function(){return this.pickerIntl.upSecondLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downSecondButtonLabel",{get:function(){return this.pickerIntl.downSecondLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hour12ButtonLabel",{get:function(){return this.isPM?this.pickerIntl.hour12PMLabel:this.pickerIntl.hour12AMLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimeTabIndex",{get:function(){return-1},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.focus=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){e.elmRef.nativeElement.focus()}))}))},e.prototype.setHourValueViaInput=function(e){this.hour12Timer&&this.isPM&&e>=1&&e<=11?e+=12:this.hour12Timer&&!this.isPM&&12===e&&(e=0),this.setHourValue(e)},e.prototype.setHourValue=function(e){var t=this.dateTimeAdapter.setHours(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setMinuteValue=function(e){var t=this.dateTimeAdapter.setMinutes(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setSecondValue=function(e){var t=this.dateTimeAdapter.setSeconds(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setMeridiem=function(e){this.isPM=!this.isPM;var t=this.hourValue;this.isPM?t+=12:t-=12,t>=0&&t<=23&&this.setHourValue(t),this.cdRef.markForCheck(),e.preventDefault()},e.prototype.upHourEnabled=function(){return!this.maxDateTime||this.compareHours(this.stepHour,this.maxDateTime)<1},e.prototype.downHourEnabled=function(){return!this.minDateTime||this.compareHours(-this.stepHour,this.minDateTime)>-1},e.prototype.upMinuteEnabled=function(){return!this.maxDateTime||this.compareMinutes(this.stepMinute,this.maxDateTime)<1},e.prototype.downMinuteEnabled=function(){return!this.minDateTime||this.compareMinutes(-this.stepMinute,this.minDateTime)>-1},e.prototype.upSecondEnabled=function(){return!this.maxDateTime||this.compareSeconds(this.stepSecond,this.maxDateTime)<1},e.prototype.downSecondEnabled=function(){return!this.minDateTime||this.compareSeconds(-this.stepSecond,this.minDateTime)>-1},e.prototype.compareHours=function(e,t){var i=this.dateTimeAdapter.getHours(this.pickerMoment)+e,n=this.dateTimeAdapter.setHours(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.compareMinutes=function(e,t){var i=this.dateTimeAdapter.getMinutes(this.pickerMoment)+e,n=this.dateTimeAdapter.setMinutes(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.compareSeconds=function(e,t){var i=this.dateTimeAdapter.getSeconds(this.pickerMoment)+e,n=this.dateTimeAdapter.setSeconds(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();P.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeTimer",selector:"owl-date-time-timer",template:'<owl-date-time-timer-box [upBtnAriaLabel]="upHourButtonLabel"\n [downBtnAriaLabel]="downHourButtonLabel"\n [upBtnDisabled]="!upHourEnabled()"\n [downBtnDisabled]="!downHourEnabled()"\n [boxValue]="hourBoxValue"\n [value]="hourValue"\n [min]="0"\n [max]="23"\n [step]="stepHour"\n [inputLabel]="\'Hour\'"\n (inputChange)="setHourValueViaInput($event)"\n (valueChange)="setHourValue($event)"></owl-date-time-timer-box>\n<owl-date-time-timer-box [showDivider]="true"\n [upBtnAriaLabel]="upMinuteButtonLabel"\n [downBtnAriaLabel]="downMinuteButtonLabel"\n [upBtnDisabled]="!upMinuteEnabled()"\n [downBtnDisabled]="!downMinuteEnabled()"\n [value]="minuteValue"\n [min]="0"\n [max]="59"\n [step]="stepMinute"\n [inputLabel]="\'Minute\'"\n (inputChange)="setMinuteValue($event)"\n (valueChange)="setMinuteValue($event)"></owl-date-time-timer-box>\n<owl-date-time-timer-box *ngIf="showSecondsTimer"\n [showDivider]="true"\n [upBtnAriaLabel]="upSecondButtonLabel"\n [downBtnAriaLabel]="downSecondButtonLabel"\n [upBtnDisabled]="!upSecondEnabled()"\n [downBtnDisabled]="!downSecondEnabled()"\n [value]="secondValue"\n [min]="0"\n [max]="59"\n [step]="stepSecond"\n [inputLabel]="\'Second\'"\n (inputChange)="setSecondValue($event)"\n (valueChange)="setSecondValue($event)"></owl-date-time-timer-box>\n\n<div *ngIf="hour12Timer"\n class="owl-dt-timer-hour12">\n <button class="owl-dt-control-button owl-dt-timer-hour12-box"\n type="button"\n tabindex="0"\n (click)="setMeridiem($event)">\n <span class="owl-dt-control-button-content"\n tabindex="-1">\n {{hour12ButtonLabel}}\n </span>\n </button>\n</div>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],P.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:k},{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]}]},P.propDecorators={pickerMoment:[{type:t.Input}],minDateTime:[{type:t.Input}],maxDateTime:[{type:t.Input}],showSecondsTimer:[{type:t.Input}],hour12Timer:[{type:t.Input}],stepHour:[{type:t.Input}],stepMinute:[{type:t.Input}],stepSecond:[{type:t.Input}],selectedChange:[{type:t.Output}],owlDTTimerClass:[{type:t.HostBinding,args:["class.owl-dt-timer"]}],owlDTTimeTabIndex:[{type:t.HostBinding,args:["attr.tabindex"]}]};var x={transformPicker:s.trigger("transformPicker",[s.state("void",s.style({opacity:0,transform:"scale(1, 0)"})),s.state("enter",s.style({opacity:1,transform:"scale(1, 1)"})),s.transition("void => enter",s.group([s.query("@fadeInPicker",s.animateChild(),{optional:!0}),s.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),s.transition("enter => void",s.animate("100ms linear",s.style({opacity:0})))]),fadeInPicker:s.trigger("fadeInPicker",[s.state("enter",s.style({opacity:1})),s.state("void",s.style({opacity:0})),s.transition("void => enter",s.animate("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},V=function(){function e(e,t,n,r){this.cdRef=e,this.elmRef=t,this.pickerIntl=n,this.dateTimeAdapter=r,this.activeSelectedIndex=0,this.hidePicker$=new i.Subject,this.confirmSelected$=new i.Subject,this.pickerOpened$=new i.Subject}return Object.defineProperty(e.prototype,"hidePickerStream",{get:function(){return this.hidePicker$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"confirmSelectedStream",{get:function(){return this.confirmSelected$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerOpenedStream",{get:function(){return this.pickerOpened$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._clamPickerMoment},set:function(e){e&&(this._clamPickerMoment=this.dateTimeAdapter.clampDate(e,this.picker.minDateTime,this.picker.maxDateTime)),this.cdRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerType",{get:function(){return this.picker.pickerType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelLabel",{get:function(){return this.pickerIntl.cancelBtnLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLabel",{get:function(){return this.pickerIntl.setBtnLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromLabel",{get:function(){return this.pickerIntl.rangeFromLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toLabel",{get:function(){return this.pickerIntl.rangeToLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromFormattedValue",{get:function(){var e=this.picker.selecteds[0];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toFormattedValue",{get:function(){var e=this.picker.selecteds[1];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showControlButtons",{get:function(){return"dialog"===this.picker.pickerMode||"calendar"!==this.picker.pickerType&&"inline"!==this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerElm",{get:function(){return this.elmRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTPopupContainerClass",{get:function(){return"popup"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTDialogContainerClass",{get:function(){return"dialog"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTInlineContainerClass",{get:function(){return"inline"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerDisabledClass",{get:function(){return this.picker.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerId",{get:function(){return this.picker.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerAnimation",{get:function(){return"inline"===this.picker.pickerMode?"":"enter"},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){this.initPicker()},e.prototype.ngAfterViewInit=function(){this.focusPicker()},e.prototype.handleContainerAnimationDone=function(e){"enter"===e.toState&&this.pickerOpened$.next()},e.prototype.dateSelected=function(e){var t;this.picker.isInSingleMode?(t=this.dateSelectedInSingleMode(e))?(this.pickerMoment=t,this.picker.select(t)):"calendar"===this.pickerType&&this.hidePicker$.next(null):this.picker.isInRangeMode&&(t=this.dateSelectedInRangeMode(e))&&(this.pickerMoment=t[this.activeSelectedIndex],this.picker.select(t))},e.prototype.timeSelected=function(e){if(this.pickerMoment=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(this.pickerMoment))if(this.picker.isInSingleMode)this.picker.select(this.pickerMoment);else if(this.picker.isInRangeMode){var t=I(this.picker.selecteds);0===this.activeSelectedIndex&&t[1]&&1===this.dateTimeAdapter.compare(this.pickerMoment,t[1])||1===this.activeSelectedIndex&&t[0]&&-1===this.dateTimeAdapter.compare(this.pickerMoment,t[0])?(t[0]=this.pickerMoment,t[1]=this.pickerMoment):t[this.activeSelectedIndex]=this.pickerMoment,this.picker.select(t)}},e.prototype.onCancelClicked=function(e){this.hidePicker$.next(null),e.preventDefault()},e.prototype.onSetClicked=function(e){if(!this.picker.dateTimeChecker(this.pickerMoment))return this.hidePicker$.next(null),void e.preventDefault();this.confirmSelected$.next(e),e.preventDefault()},e.prototype.handleClickOnInfoGroup=function(e,t){this.setActiveSelectedIndex(t),e.preventDefault(),e.stopPropagation()},e.prototype.handleKeydownOnInfoGroup=function(e,t,i){switch(e.keyCode){case r.DOWN_ARROW:case r.RIGHT_ARROW:case r.UP_ARROW:case r.LEFT_ARROW:t.focus(),this.setActiveSelectedIndex(0===i?1:0),e.preventDefault(),e.stopPropagation();break;case r.SPACE:this.setActiveSelectedIndex(i),e.preventDefault(),e.stopPropagation();break;default:return}},e.prototype.setActiveSelectedIndex=function(e){if("range"===this.picker.selectMode&&this.activeSelectedIndex!==e){this.activeSelectedIndex=e;var t=this.picker.selecteds[this.activeSelectedIndex];this.picker.selecteds&&t&&(this.pickerMoment=this.dateTimeAdapter.clone(t))}},e.prototype.initPicker=function(){this.pickerMoment=this.picker.startAt||this.dateTimeAdapter.now(),this.activeSelectedIndex="rangeTo"===this.picker.selectMode?1:0},e.prototype.dateSelectedInSingleMode=function(e){return this.dateTimeAdapter.isSameDay(e,this.picker.selected)?null:this.updateAndCheckCalendarDate(e)},e.prototype.dateSelectedInRangeMode=function(e){var t=this.picker.selecteds[0],i=this.picker.selecteds[1],n=this.updateAndCheckCalendarDate(e);return n?("range"===this.picker.selectMode?this.picker.selecteds&&this.picker.selecteds.length&&!i&&t&&this.dateTimeAdapter.differenceInCalendarDays(n,t)>=0?(i=n,this.activeSelectedIndex=1):(t=n,i=null,this.activeSelectedIndex=0):"rangeFrom"===this.picker.selectMode?(t=n,i&&this.dateTimeAdapter.compare(t,i)>0&&(i=null)):"rangeTo"===this.picker.selectMode&&(i=n,t&&this.dateTimeAdapter.compare(t,i)>0&&(t=null)),[t,i]):null},e.prototype.updateAndCheckCalendarDate=function(e){var t;return"both"===this.picker.pickerType?(t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment)),t=this.dateTimeAdapter.clampDate(t,this.picker.minDateTime,this.picker.maxDateTime)):t=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(t)?t:null},e.prototype.focusPicker=function(){"inline"!==this.picker.pickerMode&&(this.calendar?this.calendar.focusActiveCell():this.timer&&this.timer.focus())},e}();V.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeContainer",selector:"owl-date-time-container",template:'<div [cdkTrapFocus]="picker?.pickerMode !== \'inline\'"\n [@fadeInPicker]="picker?.pickerMode === \'inline\'? \'\' : \'enter\'"\n class="owl-dt-container-inner">\n\n <owl-date-time-calendar *ngIf="pickerType === \'both\' || pickerType === \'calendar\'"\n class="owl-dt-container-row"\n [firstDayOfWeek]="picker?.firstDayOfWeek"\n [(pickerMoment)]="pickerMoment"\n [selected]="picker?.selected"\n [selecteds]="picker?.selecteds"\n [selectMode]="picker?.selectMode"\n [minDate]="picker?.minDateTime"\n [maxDate]="picker?.maxDateTime"\n [dateFilter]="picker?.dateTimeFilter"\n [startView]="picker?.startView"\n [hideOtherMonths]="picker?.hideOtherMonths"\n (yearSelected)="picker?.selectYear($event)"\n (monthSelected)="picker?.selectMonth($event)"\n (selectedChange)="dateSelected($event)"></owl-date-time-calendar>\n\n <owl-date-time-timer *ngIf="pickerType === \'both\' || pickerType === \'timer\'"\n class="owl-dt-container-row"\n [pickerMoment]="pickerMoment"\n [minDateTime]="picker?.minDateTime"\n [maxDateTime]="picker?.maxDateTime"\n [showSecondsTimer]="picker?.showSecondsTimer"\n [hour12Timer]="picker?.hour12Timer"\n [stepHour]="picker?.stepHour"\n [stepMinute]="picker?.stepMinute"\n [stepSecond]="picker?.stepSecond"\n (selectedChange)="timeSelected($event)"></owl-date-time-timer>\n\n <div *ngIf="picker?.isInRangeMode"\n role="radiogroup"\n class="owl-dt-container-info owl-dt-container-row">\n <div role="radio"\n [tabindex]="activeSelectedIndex === 0 ? 0 : -1"\n [attr.aria-checked]="activeSelectedIndex === 0"\n class="owl-dt-control owl-dt-container-range owl-dt-container-from"\n [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 0}"\n (click)="handleClickOnInfoGroup($event, 0)"\n (keydown)="handleKeydownOnInfoGroup($event, to, 0)"\n #from>\n <span class="owl-dt-control-content owl-dt-container-range-content"\n tabindex="-1">\n <span class="owl-dt-container-info-label">{{fromLabel}}:</span>\n <span class="owl-dt-container-info-value">{{fromFormattedValue}}</span>\n </span>\n </div>\n <div role="radio"\n [tabindex]="activeSelectedIndex === 1 ? 0 : -1"\n [attr.aria-checked]="activeSelectedIndex === 1"\n class="owl-dt-control owl-dt-container-range owl-dt-container-to"\n [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 1}"\n (click)="handleClickOnInfoGroup($event, 1)"\n (keydown)="handleKeydownOnInfoGroup($event, from, 1)"\n #to>\n <span class="owl-dt-control-content owl-dt-container-range-content"\n tabindex="-1">\n <span class="owl-dt-container-info-label">{{toLabel}}:</span>\n <span class="owl-dt-container-info-value">{{toFormattedValue}}</span>\n </span>\n </div>\n </div>\n\n <div *ngIf="showControlButtons"\n class="owl-dt-container-buttons owl-dt-container-row">\n <button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button"\n type="button"\n tabindex="0"\n (click)="onCancelClicked($event)">\n <span class="owl-dt-control-content owl-dt-control-button-content"\n tabindex="-1">\n {{cancelLabel}}\n </span>\n </button>\n <button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button"\n type="button"\n tabindex="0"\n (click)="onSetClicked($event)">\n <span class="owl-dt-control-content owl-dt-control-button-content"\n tabindex="-1">\n {{setLabel}}\n </span>\n </button>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,animations:[x.transformPicker,x.fadeInPicker],styles:[""]}]}],V.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:k},{type:f,decorators:[{type:t.Optional}]}]},V.propDecorators={calendar:[{type:t.ViewChild,args:[M]}],timer:[{type:t.ViewChild,args:[P]}],owlDTContainerClass:[{type:t.HostBinding,args:["class.owl-dt-container"]}],owlDTPopupContainerClass:[{type:t.HostBinding,args:["class.owl-dt-popup-container"]}],owlDTDialogContainerClass:[{type:t.HostBinding,args:["class.owl-dt-dialog-container"]}],owlDTInlineContainerClass:[{type:t.HostBinding,args:["class.owl-dt-inline-container"]}],owlDTContainerDisabledClass:[{type:t.HostBinding,args:["class.owl-dt-container-disabled"]}],owlDTContainerId:[{type:t.HostBinding,args:["attr.id"]}],owlDTContainerAnimation:[{type:t.HostBinding,args:["@transformPicker"]}],handleContainerAnimationDone:[{type:t.HostListener,args:["@transformPicker.done",["$event"]]}]};var E={provide:o.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return j})),multi:!0},j=function(e){function i(i,n,r){var a=e.call(this,n,r)||this;return a.changeDetector=i,a.dateTimeAdapter=n,a.dateTimeFormats=r,a._pickerType="both",a._disabled=!1,a._selectMode="single",a._values=[],a.yearSelected=new t.EventEmitter,a.monthSelected=new t.EventEmitter,a._selecteds=[],a.onModelChange=function(){},a.onModelTouched=function(){},a}return D(i,e),Object.defineProperty(i.prototype,"pickerType",{get:function(){return this._pickerType},set:function(e){e!==this._pickerType&&(this._pickerType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return!!this._disabled},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){if("single"!==e&&"range"!==e&&"rangeFrom"!==e&&"rangeTo"!==e)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"startAt",{get:function(){return this._startAt?this._startAt:"single"===this.selectMode?this.value||null:"range"===this.selectMode||"rangeFrom"===this.selectMode?this.values[0]||null:"rangeTo"===this.selectMode&&this.values[1]||null},set:function(e){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},set:function(e){this._dateTimeFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minDateTime",{get:function(){return this._min||null},set:function(e){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxDateTime",{get:function(){return this._max||null},set:function(e){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._value=e,this.selected=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"values",{get:function(){return this._values},set:function(e){var t=this;e&&e.length>0?(e=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),(e=t.getValidDate(e))?t.dateTimeAdapter.clone(e):null})),this._values=I(e),this.selecteds=I(e)):(this._values=[],this.selecteds=[])},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"opened",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pickerMode",{get:function(){return"inline"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDTInlineClass",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){this.container.picker=this},i.prototype.writeValue=function(e){this.isInSingleMode?(this.value=e,this.container.pickerMoment=e):(this.values=e,this.container.pickerMoment=this._values[this.container.activeSelectedIndex])},i.prototype.registerOnChange=function(e){this.onModelChange=e},i.prototype.registerOnTouched=function(e){this.onModelTouched=e},i.prototype.setDisabledState=function(e){this.disabled=e},i.prototype.select=function(e){this.disabled||(Array.isArray(e)?this.values=I(e):this.value=e,this.onModelChange(e),this.onModelTouched())},i.prototype.selectYear=function(e){this.yearSelected.emit(e)},i.prototype.selectMonth=function(e){this.monthSelected.emit(e)},i}(S);j.decorators=[{type:t.Component,args:[{selector:"owl-date-time-inline",template:"<owl-date-time-container></owl-date-time-container>\n",changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,providers:[E],styles:[""]}]}],j.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},j.propDecorators={container:[{type:t.ViewChild,args:[V,{static:!0}]}],pickerType:[{type:t.Input}],disabled:[{type:t.Input}],selectMode:[{type:t.Input}],startAt:[{type:t.Input}],dateTimeFilter:[{type:t.Input,args:["owlDateTimeFilter"]}],minDateTime:[{type:t.Input,args:["min"]}],maxDateTime:[{type:t.Input,args:["max"]}],value:[{type:t.Input}],values:[{type:t.Input}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}],owlDTInlineClass:[{type:t.HostBinding,args:["class.owl-dt-inline"]}]};var R={provide:o.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return F})),multi:!0},L={provide:o.NG_VALIDATORS,useExisting:t.forwardRef((function(){return F})),multi:!0},F=function(){function e(e,n,r,a){var s=this;if(this.elmRef=e,this.renderer=n,this.dateTimeAdapter=r,this.dateTimeFormats=a,this._selectMode="single",this.rangeSeparator="~",this._values=[],this.dateTimeChange=new t.EventEmitter,this.dateTimeInput=new t.EventEmitter,this.dtPickerSub=i.Subscription.EMPTY,this.localeSub=i.Subscription.EMPTY,this.lastValueValid=!0,this.onModelChange=function(){},this.onModelTouched=function(){},this.validatorOnChange=function(){},this.parseValidator=function(){return s.lastValueValid?null:{owlDateTimeParse:{text:s.elmRef.nativeElement.value}}},this.minValidator=function(e){if(s.isInSingleMode){var t=s.getValidDate(s.dateTimeAdapter.deserialize(e.value));return!s.min||!t||s.dateTimeAdapter.compare(s.min,t)<=0?null:{owlDateTimeMin:{min:s.min,actual:t}}}if(s.isInRangeMode&&e.value){var i=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[0])),n=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[1]));return!s.min||!i||!n||s.dateTimeAdapter.compare(s.min,i)<=0?null:{owlDateTimeMin:{min:s.min,actual:[i,n]}}}},this.maxValidator=function(e){if(s.isInSingleMode){var t=s.getValidDate(s.dateTimeAdapter.deserialize(e.value));return!s.max||!t||s.dateTimeAdapter.compare(s.max,t)>=0?null:{owlDateTimeMax:{max:s.max,actual:t}}}if(s.isInRangeMode&&e.value){var i=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[0])),n=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[1]));return!s.max||!i||!n||s.dateTimeAdapter.compare(s.max,n)>=0?null:{owlDateTimeMax:{max:s.max,actual:[i,n]}}}},this.filterValidator=function(e){var t=s.getValidDate(s.dateTimeAdapter.deserialize(e.value));return s._dateTimeFilter&&t&&!s._dateTimeFilter(t)?{owlDateTimeFilter:!0}:null},this.rangeValidator=function(e){if(s.isInSingleMode||!e.value)return null;var t=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[0])),i=s.getValidDate(s.dateTimeAdapter.deserialize(e.value[1]));return!t||!i||s.dateTimeAdapter.compare(t,i)<=0?null:{owlDateTimeRange:!0}},this.validator=o.Validators.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator,this.rangeValidator]),this.valueChange=new t.EventEmitter,this.disabledChange=new t.EventEmitter,!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimePicker. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){s.value=s.value}))}return Object.defineProperty(e.prototype,"owlDateTime",{set:function(e){this.registerDateTimePicker(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeFilter",{set:function(e){this._dateTimeFilter=e,this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled},set:function(e){var t=n.coerceBooleanProperty(e),i=this.elmRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.disabledChange.emit(t)),t&&i.blur&&i.blur()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){if("single"!==e&&"range"!==e&&"rangeFrom"!==e&&"rangeTo"!==e)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){e=this.dateTimeAdapter.deserialize(e),this.lastValueValid=!e||this.dateTimeAdapter.isValid(e),e=this.getValidDate(e);var t=this._value;this._value=e,this.formatNativeInputValue(),this.dateTimeAdapter.isEqual(t,e)||this.valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(e){var t=this;e&&e.length>0?(this._values=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.lastValueValid=(!this._values[0]||this.dateTimeAdapter.isValid(this._values[0]))&&(!this._values[1]||this.dateTimeAdapter.isValid(this._values[1]))):(this._values=[],this.lastValueValid=!0),this.formatNativeInputValue(),this.valueChange.emit(this._values)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementRef",{get:function(){return this.elmRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputAriaHaspopup",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputAriaOwns",{get:function(){return this.dtPicker.opened&&this.dtPicker.id||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minIso8601",{get:function(){return this.min?this.dateTimeAdapter.toIso8601(this.min):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxIso8601",{get:function(){return this.max?this.dateTimeAdapter.toIso8601(this.max):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){if(!this.dtPicker)throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component")},e.prototype.ngAfterContentInit=function(){var e=this;this.dtPickerSub=this.dtPicker.confirmSelectedChange.subscribe((function(t){Array.isArray(t)?e.values=t:e.value=t,e.onModelChange(t),e.onModelTouched(),e.dateTimeChange.emit({source:e,value:t,input:e.elmRef.nativeElement}),e.dateTimeInput.emit({source:e,value:t,input:e.elmRef.nativeElement})}))},e.prototype.ngOnDestroy=function(){this.dtPickerSub.unsubscribe(),this.localeSub.unsubscribe(),this.valueChange.complete(),this.disabledChange.complete()},e.prototype.writeValue=function(e){this.isInSingleMode?this.value=e:this.values=e},e.prototype.registerOnChange=function(e){this.onModelChange=e},e.prototype.registerOnTouched=function(e){this.onModelTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.validate=function(e){return this.validator?this.validator(e):null},e.prototype.registerOnValidatorChange=function(e){this.validatorOnChange=e},e.prototype.handleKeydownOnHost=function(e){e.altKey&&e.keyCode===r.DOWN_ARROW&&(this.dtPicker.open(),e.preventDefault())},e.prototype.handleBlurOnHost=function(e){this.onModelTouched()},e.prototype.handleInputOnHost=function(e){var t=e.target.value;"single"===this._selectMode?this.changeInputInSingleMode(t):"range"===this._selectMode?this.changeInputInRangeMode(t):this.changeInputInRangeFromToMode(t)},e.prototype.handleChangeOnHost=function(e){var t;this.isInSingleMode?t=this.value:this.isInRangeMode&&(t=this.values),this.dateTimeChange.emit({source:this,value:t,input:this.elmRef.nativeElement})},e.prototype.formatNativeInputValue=function(){if(this.isInSingleMode)this.renderer.setProperty(this.elmRef.nativeElement,"value",this._value?this.dateTimeAdapter.format(this._value,this.dtPicker.formatString):"");else if(this.isInRangeMode)if(this._values&&this.values.length>0){var e=this._values[0],t=this._values[1],i=e?this.dateTimeAdapter.format(e,this.dtPicker.formatString):"",n=t?this.dateTimeAdapter.format(t,this.dtPicker.formatString):"";i||n?"range"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",i+" "+this.rangeSeparator+" "+n):"rangeFrom"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",i):"rangeTo"===this._selectMode&&this.renderer.setProperty(this.elmRef.nativeElement,"value",n):this.renderer.setProperty(this.elmRef.nativeElement,"value",null)}else this.renderer.setProperty(this.elmRef.nativeElement,"value","")},e.prototype.registerDateTimePicker=function(e){e&&(this.dtPicker=e,this.dtPicker.registerInput(this))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.convertTimeStringToDateTimeString=function(e,t){if(e){var i=t||this.dateTimeAdapter.now();return this.dateTimeAdapter.format(i,this.dateTimeFormats.datePickerInput)+" "+e}return null},e.prototype.changeInputInSingleMode=function(e){var t=e;"timer"===this.dtPicker.pickerType&&(t=this.convertTimeStringToDateTimeString(t,this.value));var i=this.dateTimeAdapter.parse(t,this.dateTimeFormats.parseInput);this.lastValueValid=!i||this.dateTimeAdapter.isValid(i),i=this.getValidDate(i),this.isSameValue(i,this._value)&&null!==i||(this._value=i,this.valueChange.emit(i),this.onModelChange(i),this.dateTimeInput.emit({source:this,value:i,input:this.elmRef.nativeElement}))},e.prototype.changeInputInRangeFromToMode=function(e){var t="rangeFrom"===this._selectMode?this._values[0]:this._values[1];"timer"===this.dtPicker.pickerType&&(e=this.convertTimeStringToDateTimeString(e,t));var i=this.dateTimeAdapter.parse(e,this.dateTimeFormats.parseInput);this.lastValueValid=!i||this.dateTimeAdapter.isValid(i),i=this.getValidDate(i),"rangeFrom"===this._selectMode&&this.isSameValue(i,this._values[0])&&i||"rangeTo"===this._selectMode&&this.isSameValue(i,this._values[1])&&i||(this._values="rangeFrom"===this._selectMode?[i,this._values[1]]:[this._values[0],i],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},e.prototype.changeInputInRangeMode=function(e){var t=e.split(this.rangeSeparator),i=t[0],n=t[1];"timer"===this.dtPicker.pickerType&&(i=this.convertTimeStringToDateTimeString(i,this.values[0]),n=this.convertTimeStringToDateTimeString(n,this.values[1]));var r=this.dateTimeAdapter.parse(i,this.dateTimeFormats.parseInput),a=this.dateTimeAdapter.parse(n,this.dateTimeFormats.parseInput);this.lastValueValid=(!r||this.dateTimeAdapter.isValid(r))&&(!a||this.dateTimeAdapter.isValid(a)),r=this.getValidDate(r),a=this.getValidDate(a),this.isSameValue(r,this._values[0])&&this.isSameValue(a,this._values[1])&&(null!==r||null!==a)||(this._values=[r,a],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},e.prototype.isSameValue=function(e,t){return e&&t?0===this.dateTimeAdapter.compare(e,t):e==t},e}();F.decorators=[{type:t.Directive,args:[{selector:"input[owlDateTime]",exportAs:"owlDateTimeInput",providers:[R,L]}]}],F.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]}]},F.propDecorators={owlDateTime:[{type:t.Input}],owlDateTimeFilter:[{type:t.Input}],_disabled:[{type:t.Input}],min:[{type:t.Input}],max:[{type:t.Input}],selectMode:[{type:t.Input}],rangeSeparator:[{type:t.Input}],value:[{type:t.Input}],values:[{type:t.Input}],dateTimeChange:[{type:t.Output}],dateTimeInput:[{type:t.Output}],owlDateTimeInputAriaHaspopup:[{type:t.HostBinding,args:["attr.aria-haspopup"]}],owlDateTimeInputAriaOwns:[{type:t.HostBinding,args:["attr.aria-owns"]}],minIso8601:[{type:t.HostBinding,args:["attr.min"]}],maxIso8601:[{type:t.HostBinding,args:["attr.max"]}],owlDateTimeInputDisabled:[{type:t.HostBinding,args:["disabled"]}],handleKeydownOnHost:[{type:t.HostListener,args:["keydown",["$event"]]}],handleBlurOnHost:[{type:t.HostListener,args:["blur",["$event"]]}],handleInputOnHost:[{type:t.HostListener,args:["input",["$event"]]}],handleChangeOnHost:[{type:t.HostListener,args:["change",["$event"]]}]};var Y=function(){function e(e){this.changeDetector=e,this.stateChanges=i.Subscription.EMPTY}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled?this.dtPicker.disabled:!!this._disabled},set:function(e){this._disabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTriggerDisabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.datepicker&&this.watchStateChanges()},e.prototype.ngAfterContentInit=function(){this.watchStateChanges()},e.prototype.ngOnDestroy=function(){this.stateChanges.unsubscribe()},e.prototype.handleClickOnHost=function(e){this.dtPicker&&(this.dtPicker.open(),e.stopPropagation())},e.prototype.watchStateChanges=function(){var e=this;this.stateChanges.unsubscribe();var t=this.dtPicker&&this.dtPicker.dtInput?this.dtPicker.dtInput.disabledChange:i.of(),n=this.dtPicker?this.dtPicker.disabledChange:i.of();this.stateChanges=i.merge(n,t).subscribe((function(){e.changeDetector.markForCheck()}))},e}();Y.decorators=[{type:t.Directive,args:[{selector:"[owlDateTimeTrigger]"}]}],Y.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Y.propDecorators={dtPicker:[{type:t.Input,args:["owlDateTimeTrigger"]}],disabled:[{type:t.Input}],owlDTTriggerDisabledClass:[{type:t.HostBinding,args:["class.owl-dt-trigger-disabled"]}],handleClickOnHost:[{type:t.HostListener,args:["click",["$event"]]}]};var B=0,H=function(){this.ariaDescribedBy=null,this.autoFocus=!0,this.hasBackdrop=!0,this.data=null,this.disableClose=!1,this.role="dialog",this.paneClass="",this.event=null,this.backdropClass="",this.closeOnNavigation=!0,this.width="",this.height="",this.maxWidth="85vw",this.scrollStrategy=new l.NoopScrollStrategy,this.id="owl-dialog-"+B++},W=function(){function e(e,t,n,o){var s=this;this.overlayRef=e,this.container=t,this.id=n,this._beforeClose$=new i.Subject,this._afterOpen$=new i.Subject,this._afterClosed$=new i.Subject,this.locationChanged=i.Subscription.EMPTY,this.disableClose=this.container.config.disableClose,this.container.animationStateChanged.pipe(a.filter((function(e){return"done"===e.phaseName&&"enter"===e.toState})),a.take(1)).subscribe((function(){s._afterOpen$.next(),s._afterOpen$.complete()})),this.container.animationStateChanged.pipe(a.filter((function(e){return"done"===e.phaseName&&"exit"===e.toState})),a.take(1)).subscribe((function(){s.overlayRef.dispose(),s.locationChanged.unsubscribe(),s._afterClosed$.next(s.result),s._afterClosed$.complete(),s.componentInstance=null})),this.overlayRef.keydownEvents().pipe(a.filter((function(e){return e.keyCode===r.ESCAPE&&!s.disableClose}))).subscribe((function(){return s.close()})),o&&(this.locationChanged=o.subscribe((function(){s.container.config.closeOnNavigation&&s.close()})))}return e.prototype.close=function(e){var t=this;this.result=e,this.container.animationStateChanged.pipe(a.filter((function(e){return"start"===e.phaseName})),a.take(1)).subscribe((function(){t._beforeClose$.next(e),t._beforeClose$.complete(),t.overlayRef.detachBackdrop()})),this.container.startExitAnimation()},e.prototype.backdropClick=function(){return this.overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this.overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this.getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this.overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e="auto"),void 0===t&&(t="auto"),this.getPositionStrategy().width(e).height(t),this.overlayRef.updatePosition(),this},e.prototype.isAnimating=function(){return this.container.isAnimating},e.prototype.afterOpen=function(){return this._afterOpen$.asObservable()},e.prototype.beforeClose=function(){return this._beforeClose$.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed$.asObservable()},e.prototype.getPositionStrategy=function(){return this.overlayRef.getConfig().positionStrategy},e}();var N=function(e){function i(i,n,r,a){var o=e.call(this)||this;return o.changeDetector=i,o.elementRef=n,o.focusTrapFactory=r,o.document=a,o.ariaLabelledBy=null,o.animationStateChanged=new t.EventEmitter,o.isAnimating=!1,o.state="enter",o.params={x:"0px",y:"0px",ox:"50%",oy:"50%",scale:0},o.elementFocusedBeforeDialogWasOpened=null,o}return D(i,e),Object.defineProperty(i.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerTabIndex",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerId",{get:function(){return this._config.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerRole",{get:function(){return this._config.role||null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAriaLabelledby",{get:function(){return this.ariaLabelledBy},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAriaDescribedby",{get:function(){return this._config.ariaDescribedBy||null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAnimation",{get:function(){return{value:this.state,params:this.params}},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){},i.prototype.attachComponentPortal=function(e){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach dialog content after content is already attached");return this.savePreviouslyFocusedElement(),this.portalOutlet.attachComponentPortal(e)},i.prototype.attachTemplatePortal=function(e){throw new Error("Method not implemented.")},i.prototype.setConfig=function(e){this._config=e,e.event&&this.calculateZoomOrigin(e.event)},i.prototype.onAnimationStart=function(e){this.isAnimating=!0,this.animationStateChanged.emit(e)},i.prototype.onAnimationDone=function(e){"enter"===e.toState?this.trapFocus():"exit"===e.toState&&this.restoreFocus(),this.animationStateChanged.emit(e),this.isAnimating=!1},i.prototype.startExitAnimation=function(){this.state="exit",this.changeDetector.markForCheck()},i.prototype.calculateZoomOrigin=function(e){if(e){var t=e.clientX,i=e.clientY,n=t-window.innerWidth/2,r=i-window.innerHeight/2,a=t/window.innerWidth,o=i/window.innerHeight;this.params.x=n+"px",this.params.y=r+"px",this.params.ox=100*a+"%",this.params.oy=100*o+"%",this.params.scale=0}},i.prototype.savePreviouslyFocusedElement=function(){var e=this;this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement,Promise.resolve().then((function(){return e.elementRef.nativeElement.focus()})))},i.prototype.trapFocus=function(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this._config.autoFocus&&this.focusTrap.focusInitialElementWhenReady()},i.prototype.restoreFocus=function(){var e=this.elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this.focusTrap&&this.focusTrap.destroy()},i}(c.BasePortalOutlet);N.decorators=[{type:t.Component,args:[{selector:"owl-dialog-container",template:"<ng-template cdkPortalOutlet></ng-template>\n",animations:[s.trigger("slideModal",[s.transition("void => enter",[s.style({opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})",transformOrigin:"{{ ox }} {{ oy }}"}),s.animate("300ms cubic-bezier(0.35, 0, 0.25, 1)",s.style("*")),s.animate("150ms",s.keyframes([s.style({transform:"scale(1)",offset:0}),s.style({transform:"scale(1.05)",offset:.3}),s.style({transform:"scale(.95)",offset:.8}),s.style({transform:"scale(1)",offset:1})])),s.animateChild()],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%",scale:1}}),s.transition("enter => exit",[s.animateChild(),s.animate(200,s.style({opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})"}))],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%"}})])]}]}],N.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:p.FocusTrapFactory},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[d.DOCUMENT]}]}]},N.propDecorators={portalOutlet:[{type:t.ViewChild,args:[c.CdkPortalOutlet,{static:!0}]}],owlDialogContainerClass:[{type:t.HostBinding,args:["class.owl-dialog-container"]}],owlDialogContainerTabIndex:[{type:t.HostBinding,args:["attr.tabindex"]}],owlDialogContainerId:[{type:t.HostBinding,args:["attr.id"]}],owlDialogContainerRole:[{type:t.HostBinding,args:["attr.role"]}],owlDialogContainerAriaLabelledby:[{type:t.HostBinding,args:["attr.aria-labelledby"]}],owlDialogContainerAriaDescribedby:[{type:t.HostBinding,args:["attr.aria-describedby"]}],owlDialogContainerAnimation:[{type:t.HostBinding,args:["@slideModal"]}],onAnimationStart:[{type:t.HostListener,args:["@slideModal.start",["$event"]]}],onAnimationDone:[{type:t.HostListener,args:["@slideModal.done",["$event"]]}]};var $=new t.InjectionToken("OwlDialogData"),z=new t.InjectionToken("owl-dialog-scroll-strategy");function G(e){return function(){return e.scrollStrategies.block()}}var K={provide:z,deps:[l.Overlay],useFactory:G},q=new t.InjectionToken("owl-dialog-default-options"),Z=function(){function e(e,t,n,r,o,s,l){var c=this;this.overlay=e,this.injector=t,this.location=n,this.defaultOptions=o,this.parentDialog=s,this.overlayContainer=l,this.ariaHiddenElements=new Map,this._openDialogsAtThisLevel=[],this._afterOpenAtThisLevel=new i.Subject,this._afterAllClosedAtThisLevel=new i.Subject,this.afterAllClosed=i.defer((function(){return c._openDialogsAtThisLevel.length?c._afterAllClosed:c._afterAllClosed.pipe(a.startWith(void 0))})),this.scrollStrategy=r,!s&&n&&n.subscribe((function(){return c.closeAll()}))}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this.parentDialog?this.parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this.parentDialog?this.parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this.parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!1,configurable:!0}),e.prototype.open=function(e,t){var i=this;if((t=function(e,t){return function(e){for(var t,i,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(null==e)throw TypeError("Cannot convert undefined or null to object");try{for(var a=A(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(null!=s)for(var l in s)s.hasOwnProperty(l)&&(e[l]=s[l])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}return e}(new H,e,t)}(t,this.defaultOptions)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var n=this.createOverlay(t),r=this.attachDialogContainer(n,t),a=this.attachDialogContent(e,r,n,t);return this.openDialogs.length||this.hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return i.removeOpenDialog(a)})),this.afterOpen.next(a),a},e.prototype.closeAll=function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()},e.prototype.getDialogById=function(e){return this.openDialogs.find((function(t){return t.id===e}))},e.prototype.attachDialogContent=function(e,i,n,r){var a=new W(n,i,r.id,this.location);if(r.hasBackdrop&&n.backdropClick().subscribe((function(){a.disableClose||a.close()})),e instanceof t.TemplateRef);else{var o=this.createInjector(r,a,i),s=i.attachComponentPortal(new c.ComponentPortal(e,void 0,o));a.componentInstance=s.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a},e.prototype.createInjector=function(e,t,i){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=new WeakMap;return r.set(W,t),r.set(N,i),r.set($,e.data),new c.PortalInjector(n||this.injector,r)},e.prototype.createOverlay=function(e){var t=this.getOverlayConfig(e);return this.overlay.create(t)},e.prototype.attachDialogContainer=function(e,t){var i=new c.ComponentPortal(N,t.viewContainerRef),n=e.attach(i);return n.instance.setConfig(t),n.instance},e.prototype.getOverlayConfig=function(e){var t=new l.OverlayConfig({positionStrategy:this.overlay.position().global(),scrollStrategy:e.scrollStrategy||this.scrollStrategy(),panelClass:e.paneClass,hasBackdrop:e.hasBackdrop,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype.removeOpenDialog=function(e){var t=this._openDialogsAtThisLevel.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this.ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this.ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype.hideNonDialogContentFromAssistiveTechnology=function(){var e=this.overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,i=t.length-1;i>-1;i--){var n=t[i];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this.ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}},e}();Z.decorators=[{type:t.Injectable}],Z.ctorParameters=function(){return[{type:l.Overlay},{type:t.Injector},{type:d.Location,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[z]}]},{type:H,decorators:[{type:t.Optional},{type:t.Inject,args:[q]}]},{type:Z,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:l.OverlayContainer}]};var X=new t.InjectionToken("owl-dtpicker-scroll-strategy");function U(e){return function(){return e.scrollStrategies.block()}}var J={provide:X,deps:[l.Overlay],useFactory:U},Q=function(e){function o(n,r,a,o,s,l,c,d,p){var u=e.call(this,l,d)||this;return u.overlay=n,u.viewContainerRef=r,u.dialogService=a,u.ngZone=o,u.changeDetector=s,u.dateTimeAdapter=l,u.dateTimeFormats=d,u.document=p,u.backdropClass=[],u.panelClass=[],u._pickerType="both",u._pickerMode="popup",u._opened=!1,u.afterPickerClosed=new t.EventEmitter,u.afterPickerOpen=new t.EventEmitter,u.yearSelected=new t.EventEmitter,u.monthSelected=new t.EventEmitter,u.confirmSelectedChange=new t.EventEmitter,u.disabledChange=new t.EventEmitter,u.dtInputSub=i.Subscription.EMPTY,u.hidePickerStreamSub=i.Subscription.EMPTY,u.confirmSelectedStreamSub=i.Subscription.EMPTY,u.pickerOpenedStreamSub=i.Subscription.EMPTY,u.focusedElementBeforeOpen=null,u._selecteds=[],u.defaultScrollStrategy=c,u}return D(o,e),Object.defineProperty(o.prototype,"startAt",{get:function(){return this._startAt?this._startAt:this._dtInput?"single"===this._dtInput.selectMode?this._dtInput.value||null:"range"===this._dtInput.selectMode||"rangeFrom"===this._dtInput.selectMode?this._dtInput.values[0]||null:"rangeTo"===this._dtInput.selectMode?this._dtInput.values[1]||null:void 0:null},set:function(e){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pickerType",{get:function(){return this._pickerType},set:function(e){e!==this._pickerType&&(this._pickerType=e,this._dtInput&&this._dtInput.formatNativeInputValue())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pickerMode",{get:function(){return this._pickerMode},set:function(e){this._pickerMode="popup"===e?e:"dialog"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._dtInput?this._dtInput.disabled:!!this._disabled},set:function(e){(e=n.coerceBooleanProperty(e))!==this._disabled&&(this._disabled=e,this.disabledChange.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"opened",{get:function(){return this._opened},set:function(e){e?this.open():this.close()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dtInput",{get:function(){return this._dtInput},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"minDateTime",{get:function(){return this._dtInput&&this._dtInput.min},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"maxDateTime",{get:function(){return this._dtInput&&this._dtInput.max},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dateTimeFilter",{get:function(){return this._dtInput&&this._dtInput.dateTimeFilter},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"selectMode",{get:function(){return this._dtInput.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isInSingleMode",{get:function(){return this._dtInput.isInSingleMode},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isInRangeMode",{get:function(){return this._dtInput.isInRangeMode},enumerable:!1,configurable:!0}),o.prototype.ngOnInit=function(){},o.prototype.ngOnDestroy=function(){this.close(),this.dtInputSub.unsubscribe(),this.disabledChange.complete(),this.popupRef&&this.popupRef.dispose()},o.prototype.registerInput=function(e){var t=this;if(this._dtInput)throw Error("A Owl DateTimePicker can only be associated with a single input.");this._dtInput=e,this.dtInputSub=this._dtInput.valueChange.subscribe((function(e){Array.isArray(e)?t.selecteds=e:t.selected=e}))},o.prototype.open=function(){var e=this;if(!this._opened&&!this.disabled){if(!this._dtInput)throw Error("Attempted to open an DateTimePicker with no associated input.");this.document&&(this.focusedElementBeforeOpen=this.document.activeElement),this.isInSingleMode?this.selected=this._dtInput.value:this.isInRangeMode&&(this.selecteds=this._dtInput.values),this.selected&&"calendar"!==this.pickerType&&this._startAt&&(this.selected=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.selected),this.dateTimeAdapter.getMonth(this.selected),this.dateTimeAdapter.getDate(this.selected),this.dateTimeAdapter.getHours(this._startAt),this.dateTimeAdapter.getMinutes(this._startAt),this.dateTimeAdapter.getSeconds(this._startAt))),"dialog"===this.pickerMode?this.openAsDialog():this.openAsPopup(),this.pickerContainer.picker=this,this.hidePickerStreamSub=this.pickerContainer.hidePickerStream.subscribe((function(){e.close()})),this.confirmSelectedStreamSub=this.pickerContainer.confirmSelectedStream.subscribe((function(t){e.confirmSelect(t)}))}},o.prototype.select=function(e){Array.isArray(e)?this.selecteds=I(e):this.selected=e,"dialog"!==this.pickerMode&&"calendar"===this.pickerType&&("single"===this.selectMode&&this.selected||"rangeFrom"===this.selectMode&&this.selecteds[0]||"rangeTo"===this.selectMode&&this.selecteds[1]||"range"===this.selectMode&&this.selecteds[0]&&this.selecteds[1])&&this.confirmSelect()},o.prototype.selectYear=function(e){this.yearSelected.emit(e)},o.prototype.selectMonth=function(e){this.monthSelected.emit(e)},o.prototype.close=function(){var e=this;if(this._opened){this.popupRef&&this.popupRef.hasAttached()&&this.popupRef.detach(),this.pickerContainerPortal&&this.pickerContainerPortal.isAttached&&this.pickerContainerPortal.detach(),this.hidePickerStreamSub&&(this.hidePickerStreamSub.unsubscribe(),this.hidePickerStreamSub=null),this.confirmSelectedStreamSub&&(this.confirmSelectedStreamSub.unsubscribe(),this.confirmSelectedStreamSub=null),this.pickerOpenedStreamSub&&(this.pickerOpenedStreamSub.unsubscribe(),this.pickerOpenedStreamSub=null),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null);var t=function(){e._opened&&(e._opened=!1,e.afterPickerClosed.emit(null),e.focusedElementBeforeOpen=null)};this.focusedElementBeforeOpen&&"function"==typeof this.focusedElementBeforeOpen.focus?(this.focusedElementBeforeOpen.focus(),setTimeout(t)):t()}},o.prototype.confirmSelect=function(e){if(this.isInSingleMode){var t=this.selected||this.startAt||this.dateTimeAdapter.now();this.confirmSelectedChange.emit(t)}else this.isInRangeMode&&this.confirmSelectedChange.emit(this.selecteds);this.close()},o.prototype.openAsDialog=function(){var e=this;this.dialogRef=this.dialogService.open(V,{autoFocus:!1,backdropClass:I(["cdk-overlay-dark-backdrop"],n.coerceArray(this.backdropClass)),paneClass:I(["owl-dt-dialog"],n.coerceArray(this.panelClass)),viewContainerRef:this.viewContainerRef,scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy()}),this.pickerContainer=this.dialogRef.componentInstance,this.dialogRef.afterOpen().subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0})),this.dialogRef.afterClosed().subscribe((function(){return e.close()}))},o.prototype.openAsPopup=function(){var e=this;if(this.pickerContainerPortal||(this.pickerContainerPortal=new c.ComponentPortal(V,this.viewContainerRef)),this.popupRef||this.createPopup(),!this.popupRef.hasAttached()){var t=this.popupRef.attach(this.pickerContainerPortal);this.pickerContainer=t.instance,this.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){e.popupRef.updatePosition()})),this.pickerOpenedStreamSub=this.pickerContainer.pickerOpenedStream.pipe(a.take(1)).subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0}))}},o.prototype.createPopup=function(){var e=this,t=new l.OverlayConfig({positionStrategy:this.createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:I(["cdk-overlay-transparent-backdrop"],n.coerceArray(this.backdropClass)),scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy(),panelClass:I(["owl-dt-popup"],n.coerceArray(this.panelClass))});this.popupRef=this.overlay.create(t),i.merge(this.popupRef.backdropClick(),this.popupRef.detachments(),this.popupRef.keydownEvents().pipe(a.filter((function(t){return t.keyCode===r.ESCAPE||e._dtInput&&t.altKey&&t.keyCode===r.UP_ARROW})))).subscribe((function(){return e.close()}))},o.prototype.createPopupPositionStrategy=function(){return this.overlay.position().flexibleConnectedTo(this._dtInput.elementRef).withTransformOriginOn(".owl-dt-container").withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-176},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-352}])},o}(S);Q.decorators=[{type:t.Component,args:[{selector:"owl-date-time",exportAs:"owlDateTime",template:"<p>date-time-picker works!</p>\n",changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,styles:[""]}]}],Q.ctorParameters=function(){return[{type:l.Overlay},{type:t.ViewContainerRef},{type:Z},{type:t.NgZone},{type:t.ChangeDetectorRef},{type:f,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[X]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[g]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[d.DOCUMENT]}]}]},Q.propDecorators={backdropClass:[{type:t.Input}],panelClass:[{type:t.Input}],startAt:[{type:t.Input}],pickerType:[{type:t.Input}],pickerMode:[{type:t.Input}],disabled:[{type:t.Input}],opened:[{type:t.Input}],scrollStrategy:[{type:t.Input}],afterPickerClosed:[{type:t.Output}],afterPickerOpen:[{type:t.Output}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}]};var ee=function(){};ee.decorators=[{type:t.NgModule,args:[{imports:[d.CommonModule,p.A11yModule,l.OverlayModule,c.PortalModule],exports:[],declarations:[N],providers:[K,Z],entryComponents:[N]}]}];var te=function(){function e(){}return e.prototype.transform=function(e,t){var i=Math.floor(e),n=Math.floor(t);if(null===e||isNaN(i)||isNaN(n))return e;for(var r=i.toString();r.length<n;)r="0"+r;return r},e}();te.decorators=[{type:t.Pipe,args:[{name:"numberFixedLen"}]}];var ie=function(){function e(){this.showDivider=!1,this.step=1,this.valueChange=new t.EventEmitter,this.inputChange=new t.EventEmitter,this.inputStream=new i.Subject,this.inputStreamSub=i.Subscription.EMPTY}return Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.boxValue||this.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimerBoxClass",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.inputStreamSub=this.inputStream.pipe(a.debounceTime(500),a.distinctUntilChanged()).subscribe((function(t){if(t){var i=n.coerceNumberProperty(t,0);e.updateValueViaInput(i)}}))},e.prototype.ngOnDestroy=function(){this.inputStreamSub.unsubscribe()},e.prototype.upBtnClicked=function(){this.updateValue(this.value+this.step)},e.prototype.downBtnClicked=function(){this.updateValue(this.value-this.step)},e.prototype.handleInputChange=function(e){this.inputStream.next(e)},e.prototype.updateValue=function(e){this.valueChange.emit(e)},e.prototype.updateValueViaInput=function(e){e>this.max||e<this.min||this.inputChange.emit(e)},e}();ie.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeTimerBox",selector:"owl-date-time-timer-box",template:'<div *ngIf="showDivider"\n class="owl-dt-timer-divider"\n aria-hidden="true"></div>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n type="button"\n tabindex="-1"\n [disabled]="upBtnDisabled"\n [attr.aria-label]="upBtnAriaLabel"\n (click)="upBtnClicked()">\n <span class="owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Up"> --\x3e\n <svg xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n version="1.1"\n x="0px"\n y="0px"\n viewBox="0 0 451.847 451.846"\n style="enable-background:new 0 0 451.847 451.846;"\n xml:space="preserve"\n width="100%"\n height="100%">\n <path d="M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n</button>\n<label class="owl-dt-timer-content">\n <input class="owl-dt-timer-input"\n maxlength="2"\n [value]="displayValue | numberFixedLen : 2"\n (input)="handleInputChange(valueInput.value)"\n #valueInput>\n <span class="owl-hidden-accessible">{{inputLabel}}</span>\n</label>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n type="button"\n tabindex="-1"\n [disabled]="downBtnDisabled"\n [attr.aria-label]="downBtnAriaLabel"\n (click)="downBtnClicked()">\n <span class="owl-dt-control-button-content"\n tabindex="-1">\n \x3c!-- <editor-fold desc="SVG Arrow Down"> --\x3e\n <svg xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n version="1.1"\n x="0px"\n y="0px"\n viewBox="0 0 451.847 451.846"\n style="enable-background:new 0 0 451.847 451.846;"\n xml:space="preserve"\n width="100%"\n height="100%">\n <path\n d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z" />\n </svg>\n \x3c!-- </editor-fold> --\x3e\n </span>\n</button>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],ie.ctorParameters=function(){return[]},ie.propDecorators={showDivider:[{type:t.Input}],upBtnAriaLabel:[{type:t.Input}],upBtnDisabled:[{type:t.Input}],downBtnAriaLabel:[{type:t.Input}],downBtnDisabled:[{type:t.Input}],boxValue:[{type:t.Input}],value:[{type:t.Input}],min:[{type:t.Input}],max:[{type:t.Input}],step:[{type:t.Input}],inputLabel:[{type:t.Input}],valueChange:[{type:t.Output}],inputChange:[{type:t.Output}],owlDTTimerBoxClass:[{type:t.HostBinding,args:["class.owl-dt-timer-box"]}]};var ne=function(){};ne.decorators=[{type:t.NgModule,args:[{imports:[d.CommonModule,l.OverlayModule,ee,p.A11yModule],exports:[M,P,Y,F,Q,j,w,T,v],declarations:[Y,F,Q,V,w,T,v,P,ie,M,b,te,j],providers:[k,J],entryComponents:[V]}]}],e.DateTimeAdapter=f,e.OWL_DATE_TIME_FORMATS=g,e.OWL_DATE_TIME_LOCALE=u,e.OWL_DATE_TIME_LOCALE_PROVIDER=m,e.OwlCalendarComponent=M,e.OwlDateTimeComponent=Q,e.OwlDateTimeInlineComponent=j,e.OwlDateTimeInputDirective=F,e.OwlDateTimeIntl=k,e.OwlDateTimeModule=ne,e.OwlDateTimeTriggerDirective=Y,e.OwlMonthViewComponent=v,e.OwlMultiYearViewComponent=w,e.OwlTimerComponent=P,e.OwlYearViewComponent=T,e.ɵa=h,e.ɵb=E,e.ɵc=R,e.ɵd=L,e.ɵe=X,e.ɵf=U,e.ɵg=J,e.ɵh=b,e.ɵi=S,e.ɵj=V,e.ɵk=x,e.ɵl=z,e.ɵm=G,e.ɵn=K,e.ɵo=q,e.ɵp=Z,e.ɵq=H,e.ɵr=ee,e.ɵs=N,e.ɵt=ie,e.ɵu=te,Object.defineProperty(e,"__esModule",{value:!0})}));
17
- //# sourceMappingURL=nxt-pick-datetime.umd.min.js.map