@imihai/angular-datetime-picker 21.0.2 → 22.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/imihai-angular-datetime-picker.mjs +271 -273
- package/fesm2022/imihai-angular-datetime-picker.mjs.map +1 -1
- package/imihai-angular-datetime-picker-22.0.6.tgz +0 -0
- package/package.json +6 -5
- package/types/imihai-angular-datetime-picker.d.ts +39 -39
- package/imihai-angular-datetime-picker-21.0.2.tgz +0 -0
|
@@ -62,10 +62,10 @@ class OwlDateTimeTriggerDirective {
|
|
|
62
62
|
this.changeDetector.markForCheck();
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeTriggerDirective, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: OwlDateTimeTriggerDirective, isStandalone: false, selector: "[owlDateTimeTrigger]", inputs: { dtPicker: ["owlDateTimeTrigger", "dtPicker"], disabled: "disabled" }, host: { listeners: { "click": "handleClickOnHost($event)" }, properties: { "class.owl-dt-trigger-disabled": "owlDTTriggerDisabledClass" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeTriggerDirective, decorators: [{
|
|
69
69
|
type: Directive,
|
|
70
70
|
args: [{
|
|
71
71
|
selector: '[owlDateTimeTrigger]',
|
|
@@ -337,14 +337,12 @@ class OwlDateTime {
|
|
|
337
337
|
this.dateTimeAdapter.compare(dateTime, this.maxDateTime) <= 0));
|
|
338
338
|
};
|
|
339
339
|
if (!this.dateTimeAdapter) {
|
|
340
|
-
throw Error(`OwlDateTimePicker: No provider found for DateTimeAdapter. You must import
|
|
341
|
-
`
|
|
342
|
-
`custom implementation.`);
|
|
340
|
+
throw Error(`OwlDateTimePicker: No provider found for DateTimeAdapter. You must import ` +
|
|
341
|
+
`OwlLuxonDateTimeModule at your application root or provide a custom implementation.`);
|
|
343
342
|
}
|
|
344
343
|
if (!this.dateTimeFormats) {
|
|
345
|
-
throw Error(`OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import
|
|
346
|
-
`
|
|
347
|
-
`custom implementation.`);
|
|
344
|
+
throw Error(`OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import ` +
|
|
345
|
+
`OwlLuxonDateTimeModule at your application root or provide custom formats.`);
|
|
348
346
|
}
|
|
349
347
|
this._id = `owl-dt-picker-${nextUniqueId++}`;
|
|
350
348
|
}
|
|
@@ -354,10 +352,10 @@ class OwlDateTime {
|
|
|
354
352
|
? obj
|
|
355
353
|
: null;
|
|
356
354
|
}
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
358
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTime, deps: [{ token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
356
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: OwlDateTime, isStandalone: true, inputs: { showSecondsTimer: "showSecondsTimer", hour12Timer: "hour12Timer", startView: "startView", showCalendarWeeks: "showCalendarWeeks", yearOnly: "yearOnly", multiyearOnly: "multiyearOnly", stepHour: "stepHour", stepMinute: "stepMinute", stepSecond: "stepSecond", firstDayOfWeek: "firstDayOfWeek", hideOtherMonths: "hideOtherMonths" }, ngImport: i0 }); }
|
|
359
357
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTime, decorators: [{
|
|
361
359
|
type: Directive
|
|
362
360
|
}], ctorParameters: () => [{ type: DateTimeAdapter, decorators: [{
|
|
363
361
|
type: Optional
|
|
@@ -441,10 +439,10 @@ class OwlDateTimeIntl {
|
|
|
441
439
|
/** A label for the hour12 button (PM) */
|
|
442
440
|
this.hour12PMLabel = 'PM';
|
|
443
441
|
}
|
|
444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
445
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
442
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
443
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeIntl, providedIn: 'root' }); }
|
|
446
444
|
}
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeIntl, decorators: [{
|
|
448
446
|
type: Injectable,
|
|
449
447
|
args: [{ providedIn: 'root' }]
|
|
450
448
|
}] });
|
|
@@ -566,10 +564,10 @@ class OwlCalendarBodyComponent {
|
|
|
566
564
|
});
|
|
567
565
|
});
|
|
568
566
|
}
|
|
569
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
570
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlCalendarBodyComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
568
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlCalendarBodyComponent, isStandalone: false, selector: "[owl-date-time-calendar-body]", inputs: { activeCell: "activeCell", rows: "rows", numCols: "numCols", cellRatio: "cellRatio", todayValue: "todayValue", selectedValues: "selectedValues", selectMode: "selectMode" }, outputs: { select: "select" }, host: { properties: { "class.owl-dt-calendar-body": "owlDTCalendarBodyClass" } }, exportAs: ["owlDateTimeCalendarBody"], ngImport: i0, template: "@for (row of rows; track $index; let rowIndex = $index) {\r\n <tr role=\"row\">\r\n @for (item of row; track $index; let colIndex = $index) {\r\n <td\r\n class=\"owl-dt-calendar-cell {{ item.cellClass }}\"\r\n [tabindex]=\"isActiveCell(rowIndex, colIndex) ? 0 : -1\"\r\n [class.owl-dt-calendar-cell-active]=\"\r\n isActiveCell(rowIndex, colIndex)\r\n \"\r\n [class.owl-dt-calendar-cell-disabled]=\"!item.enabled\"\r\n [class.owl-dt-calendar-cell-in-range]=\"isInRange(item.value)\"\r\n [class.owl-dt-calendar-cell-range-from]=\"\r\n isRangeFrom(item.value)\r\n \"\r\n [class.owl-dt-calendar-cell-range-to]=\"isRangeTo(item.value)\"\r\n [attr.aria-label]=\"item.ariaLabel\"\r\n [attr.aria-disabled]=\"!item.enabled || null\"\r\n [attr.aria-current]=\"item.value === todayValue ? 'date' : null\"\r\n [attr.aria-selected]=\"isSelected(item.value)\"\r\n [style.width.%]=\"100 / numCols\"\r\n [style.paddingTop.%]=\"(50 * cellRatio) / numCols\"\r\n [style.paddingBottom.%]=\"(50 * cellRatio) / numCols\"\r\n (click)=\"selectCell(item)\"\r\n >\r\n <span\r\n class=\"owl-dt-calendar-cell-content\"\r\n [ngClass]=\"{\r\n 'owl-dt-calendar-cell-out': item.out,\r\n 'owl-dt-calendar-cell-today': item.value === todayValue,\r\n 'owl-dt-calendar-cell-selected': isSelected(item.value),\r\n }\"\r\n >\r\n {{ item.displayValue }}\r\n </span>\r\n </td>\r\n }\r\n </tr>\r\n}\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
571
569
|
}
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlCalendarBodyComponent, decorators: [{
|
|
573
571
|
type: Component,
|
|
574
572
|
args: [{ selector: '[owl-date-time-calendar-body]', exportAs: 'owlDateTimeCalendarBody', host: {
|
|
575
573
|
'[class.owl-dt-calendar-body]': 'owlDTCalendarBodyClass'
|
|
@@ -660,15 +658,15 @@ class OwlMultiYearViewComponent {
|
|
|
660
658
|
});
|
|
661
659
|
this.setSelectedYears();
|
|
662
660
|
}
|
|
663
|
-
get
|
|
664
|
-
return this.
|
|
661
|
+
get pickerDateTime() {
|
|
662
|
+
return this._pickerDateTime;
|
|
665
663
|
}
|
|
666
|
-
set
|
|
667
|
-
const
|
|
664
|
+
set pickerDateTime(value) {
|
|
665
|
+
const oldDateTime = this._pickerDateTime;
|
|
668
666
|
value = this.dateTimeAdapter.deserialize(value);
|
|
669
|
-
this.
|
|
670
|
-
if (
|
|
671
|
-
!this.isSameYearList(
|
|
667
|
+
this._pickerDateTime = this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
668
|
+
if (oldDateTime && this._pickerDateTime &&
|
|
669
|
+
!this.isSameYearList(oldDateTime, this._pickerDateTime)) {
|
|
672
670
|
this.generateYearList();
|
|
673
671
|
}
|
|
674
672
|
}
|
|
@@ -718,8 +716,8 @@ class OwlMultiYearViewComponent {
|
|
|
718
716
|
|| this.selectMode === 'rangeTo';
|
|
719
717
|
}
|
|
720
718
|
get activeCell() {
|
|
721
|
-
if (this.
|
|
722
|
-
return this.dateTimeAdapter.getYear(this.
|
|
719
|
+
if (this._pickerDateTime) {
|
|
720
|
+
return this.dateTimeAdapter.getYear(this._pickerDateTime) % (this.options.yearsPerRow * this.options.yearRows);
|
|
723
721
|
}
|
|
724
722
|
}
|
|
725
723
|
get tableHeader() {
|
|
@@ -759,7 +757,7 @@ class OwlMultiYearViewComponent {
|
|
|
759
757
|
* */
|
|
760
758
|
this.yearSelected = new EventEmitter();
|
|
761
759
|
/** Emits when any date is activated. */
|
|
762
|
-
this.
|
|
760
|
+
this.pickerDateTimeChange = new EventEmitter();
|
|
763
761
|
/** Emits when use keyboard enter to select a calendar cell */
|
|
764
762
|
this.keyboardEnter = new EventEmitter();
|
|
765
763
|
}
|
|
@@ -778,16 +776,16 @@ class OwlMultiYearViewComponent {
|
|
|
778
776
|
}
|
|
779
777
|
selectYear(year) {
|
|
780
778
|
this.yearSelected.emit(this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.firstMonthOfTheYear, 1));
|
|
781
|
-
const firstDateOfMonth = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.
|
|
779
|
+
const firstDateOfMonth = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.pickerDateTime), 1);
|
|
782
780
|
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
783
|
-
const selected = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.
|
|
781
|
+
const selected = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.pickerDateTime), Math.min(daysInMonth, this.dateTimeAdapter.getDate(this.pickerDateTime)), this.dateTimeAdapter.getHours(this.pickerDateTime), this.dateTimeAdapter.getMinutes(this.pickerDateTime), this.dateTimeAdapter.getSeconds(this.pickerDateTime));
|
|
784
782
|
this.change.emit(selected);
|
|
785
783
|
}
|
|
786
784
|
/**
|
|
787
785
|
* Generate the previous year list
|
|
788
786
|
* */
|
|
789
787
|
prevYearList(event) {
|
|
790
|
-
this.
|
|
788
|
+
this._pickerDateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, -1 * this.options.yearsPerRow * this.options.yearRows);
|
|
791
789
|
this.generateYearList();
|
|
792
790
|
event.preventDefault();
|
|
793
791
|
}
|
|
@@ -795,18 +793,18 @@ class OwlMultiYearViewComponent {
|
|
|
795
793
|
* Generate the next year list
|
|
796
794
|
* */
|
|
797
795
|
nextYearList(event) {
|
|
798
|
-
this.
|
|
796
|
+
this._pickerDateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, this.options.yearsPerRow * this.options.yearRows);
|
|
799
797
|
this.generateYearList();
|
|
800
798
|
event.preventDefault();
|
|
801
799
|
}
|
|
802
800
|
generateYearList() {
|
|
803
801
|
this._years = [];
|
|
804
|
-
const
|
|
805
|
-
const offset =
|
|
802
|
+
const pickerDateTimeYear = this.dateTimeAdapter.getYear(this._pickerDateTime);
|
|
803
|
+
const offset = pickerDateTimeYear % (this.options.yearsPerRow * this.options.yearRows);
|
|
806
804
|
for (let i = 0; i < this.options.yearRows; i++) {
|
|
807
805
|
const row = [];
|
|
808
806
|
for (let j = 0; j < this.options.yearsPerRow; j++) {
|
|
809
|
-
const year =
|
|
807
|
+
const year = pickerDateTimeYear - offset + (j + i * this.options.yearsPerRow);
|
|
810
808
|
const yearCell = this.createYearCell(year);
|
|
811
809
|
row.push(yearCell);
|
|
812
810
|
}
|
|
@@ -819,57 +817,57 @@ class OwlMultiYearViewComponent {
|
|
|
819
817
|
if (!this.minDate) {
|
|
820
818
|
return true;
|
|
821
819
|
}
|
|
822
|
-
return !this.minDate || !this.isSameYearList(this.
|
|
820
|
+
return !this.minDate || !this.isSameYearList(this._pickerDateTime, this.minDate);
|
|
823
821
|
}
|
|
824
822
|
/** Whether the next period button is enabled. */
|
|
825
823
|
nextEnabled() {
|
|
826
|
-
return !this.maxDate || !this.isSameYearList(this.
|
|
824
|
+
return !this.maxDate || !this.isSameYearList(this._pickerDateTime, this.maxDate);
|
|
827
825
|
}
|
|
828
826
|
handleCalendarKeydown(event) {
|
|
829
|
-
let
|
|
827
|
+
let dateTime;
|
|
830
828
|
switch (event.keyCode) {
|
|
831
829
|
// minus 1 year
|
|
832
830
|
case LEFT_ARROW:
|
|
833
|
-
|
|
834
|
-
this.
|
|
831
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, -1);
|
|
832
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
835
833
|
break;
|
|
836
834
|
// add 1 year
|
|
837
835
|
case RIGHT_ARROW:
|
|
838
|
-
|
|
839
|
-
this.
|
|
836
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, 1);
|
|
837
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
840
838
|
break;
|
|
841
839
|
// minus 3 years
|
|
842
840
|
case UP_ARROW:
|
|
843
|
-
|
|
844
|
-
this.
|
|
841
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, -1 * this.options.yearsPerRow);
|
|
842
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
845
843
|
break;
|
|
846
844
|
// add 3 years
|
|
847
845
|
case DOWN_ARROW:
|
|
848
|
-
|
|
849
|
-
this.
|
|
846
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, this.options.yearsPerRow);
|
|
847
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
850
848
|
break;
|
|
851
849
|
// go to the first year of the year page
|
|
852
850
|
case HOME:
|
|
853
|
-
|
|
854
|
-
this.
|
|
851
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, -this.dateTimeAdapter.getYear(this._pickerDateTime) % (this.options.yearsPerRow * this.options.yearRows));
|
|
852
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
855
853
|
break;
|
|
856
854
|
// go to the last year of the year page
|
|
857
855
|
case END:
|
|
858
|
-
|
|
859
|
-
this.
|
|
856
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this._pickerDateTime, (this.options.yearsPerRow * this.options.yearRows) - this.dateTimeAdapter.getYear(this._pickerDateTime) % (this.options.yearsPerRow * this.options.yearRows) - 1);
|
|
857
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
860
858
|
break;
|
|
861
859
|
// minus 1 year page (or 10 year pages)
|
|
862
860
|
case PAGE_UP:
|
|
863
|
-
|
|
864
|
-
this.
|
|
861
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, event.altKey ? -10 * (this.options.yearsPerRow * this.options.yearRows) : -1 * (this.options.yearsPerRow * this.options.yearRows));
|
|
862
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
865
863
|
break;
|
|
866
864
|
// add 1 year page (or 10 year pages)
|
|
867
865
|
case PAGE_DOWN:
|
|
868
|
-
|
|
869
|
-
this.
|
|
866
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, event.altKey ? 10 * (this.options.yearsPerRow * this.options.yearRows) : (this.options.yearsPerRow * this.options.yearRows));
|
|
867
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
870
868
|
break;
|
|
871
869
|
case ENTER:
|
|
872
|
-
this.selectYear(this.dateTimeAdapter.getYear(this.
|
|
870
|
+
this.selectYear(this.dateTimeAdapter.getYear(this._pickerDateTime));
|
|
873
871
|
this.keyboardEnter.emit();
|
|
874
872
|
break;
|
|
875
873
|
default:
|
|
@@ -937,10 +935,10 @@ class OwlMultiYearViewComponent {
|
|
|
937
935
|
focusActiveCell() {
|
|
938
936
|
this.calendarBodyElm.focusActiveCell();
|
|
939
937
|
}
|
|
940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
941
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
938
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlMultiYearViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }, { token: OptionsTokens.multiYear }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
939
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: OwlMultiYearViewComponent, isStandalone: false, selector: "owl-date-time-multi-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerDateTime: "pickerDateTime", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { change: "change", yearSelected: "yearSelected", pickerDateTimeChange: "pickerDateTimeChange", keyboardEnter: "keyboardEnter" }, host: { properties: { "class.owl-dt-calendar-view": "owlDTCalendarView", "class.owl-dt-calendar-multi-year-view": "owlDTCalendarMultiYearView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], ngImport: i0, template: "<button class=\"owl-dt-control-button owl-dt-control-arrow-button\"\r\n [disabled]=\"!previousEnabled()\" [attr.aria-label]=\"prevButtonLabel\"\r\n type=\"button\" tabindex=\"0\" (click)=\"prevYearList($event)\">\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background:new 0 0 250.738 250.738;\" xml:space=\"preserve\"\r\n width=\"100%\" height=\"100%\">\r\n <path style=\"fill-rule: evenodd; clip-rule: evenodd;\" 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\"/>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n</button>\r\n<table class=\"owl-dt-calendar-table owl-dt-calendar-multi-year-table\">\r\n <thead class=\"owl-dt-calendar-header\">\r\n <tr>\r\n <th colspan=\"3\">{{tableHeader}}</th>\r\n </tr>\r\n </thead>\r\n <tbody owl-date-time-calendar-body role=\"grid\"\r\n [rows]=\"years\" [numCols]=\"3\" [cellRatio]=\"3 / 7\"\r\n [activeCell]=\"activeCell\"\r\n [todayValue]=\"todayYear\"\r\n [selectedValues]=\"selectedYears\"\r\n [selectMode]=\"selectMode\"\r\n (keydown)=\"handleCalendarKeydown($event)\"\r\n (select)=\"selectCalendarCell($event)\"></tbody>\r\n</table>\r\n<button class=\"owl-dt-control-button owl-dt-control-arrow-button\"\r\n [disabled]=\"!nextEnabled()\" [attr.aria-label]=\"nextButtonLabel\"\r\n type=\"button\" tabindex=\"0\" (click)=\"nextYearList($event)\">\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\r\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\" style=\"enable-background:new 0 0 250.738 250.738;\" xml:space=\"preserve\">\r\n <path style=\"fill-rule:evenodd;clip-rule:evenodd;\" d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\r\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\r\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\r\n C197.237,120.447,195.534,115.448,191.75,111.689z\"/>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n</button>\r\n", styles: [""], dependencies: [{ kind: "component", type: OwlCalendarBodyComponent, selector: "[owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["select"], exportAs: ["owlDateTimeCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
942
940
|
}
|
|
943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlMultiYearViewComponent, decorators: [{
|
|
944
942
|
type: Component,
|
|
945
943
|
args: [{ selector: 'owl-date-time-multi-year-view', host: {
|
|
946
944
|
'[class.owl-dt-calendar-view]': 'owlDTCalendarView',
|
|
@@ -957,7 +955,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
957
955
|
type: Input
|
|
958
956
|
}], selecteds: [{
|
|
959
957
|
type: Input
|
|
960
|
-
}],
|
|
958
|
+
}], pickerDateTime: [{
|
|
961
959
|
type: Input
|
|
962
960
|
}], dateFilter: [{
|
|
963
961
|
type: Input
|
|
@@ -969,7 +967,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
969
967
|
type: Output
|
|
970
968
|
}], yearSelected: [{
|
|
971
969
|
type: Output
|
|
972
|
-
}],
|
|
970
|
+
}], pickerDateTimeChange: [{
|
|
973
971
|
type: Output
|
|
974
972
|
}], keyboardEnter: [{
|
|
975
973
|
type: Output
|
|
@@ -1013,15 +1011,15 @@ class OwlYearViewComponent {
|
|
|
1013
1011
|
}
|
|
1014
1012
|
this.setSelectedMonths();
|
|
1015
1013
|
}
|
|
1016
|
-
get
|
|
1017
|
-
return this.
|
|
1014
|
+
get pickerDateTime() {
|
|
1015
|
+
return this._pickerDateTime;
|
|
1018
1016
|
}
|
|
1019
|
-
set
|
|
1020
|
-
const
|
|
1017
|
+
set pickerDateTime(value) {
|
|
1018
|
+
const oldDateTime = this._pickerDateTime;
|
|
1021
1019
|
value = this.dateTimeAdapter.deserialize(value);
|
|
1022
|
-
this.
|
|
1020
|
+
this._pickerDateTime =
|
|
1023
1021
|
this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
1024
|
-
if (!this.hasSameYear(
|
|
1022
|
+
if (!this.hasSameYear(oldDateTime, this._pickerDateTime) &&
|
|
1025
1023
|
this.initiated) {
|
|
1026
1024
|
this.generateMonthList();
|
|
1027
1025
|
}
|
|
@@ -1059,8 +1057,8 @@ class OwlYearViewComponent {
|
|
|
1059
1057
|
return this._months;
|
|
1060
1058
|
}
|
|
1061
1059
|
get activeCell() {
|
|
1062
|
-
if (this.
|
|
1063
|
-
return this.dateTimeAdapter.getMonth(this.
|
|
1060
|
+
if (this._pickerDateTime) {
|
|
1061
|
+
return this.dateTimeAdapter.getMonth(this._pickerDateTime);
|
|
1064
1062
|
}
|
|
1065
1063
|
}
|
|
1066
1064
|
get isInSingleMode() {
|
|
@@ -1099,7 +1097,7 @@ class OwlYearViewComponent {
|
|
|
1099
1097
|
* */
|
|
1100
1098
|
this.monthSelected = new EventEmitter();
|
|
1101
1099
|
/** Emits when any date is activated. */
|
|
1102
|
-
this.
|
|
1100
|
+
this.pickerDateTimeChange = new EventEmitter();
|
|
1103
1101
|
/** Emits when use keyboard enter to select a calendar cell */
|
|
1104
1102
|
this.keyboardEnter = new EventEmitter();
|
|
1105
1103
|
this.monthNames = this.dateTimeAdapter.getMonthNames('short');
|
|
@@ -1127,61 +1125,61 @@ class OwlYearViewComponent {
|
|
|
1127
1125
|
* Handle a new month selected
|
|
1128
1126
|
*/
|
|
1129
1127
|
selectMonth(month) {
|
|
1130
|
-
const firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.
|
|
1128
|
+
const firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerDateTime), month, 1);
|
|
1131
1129
|
this.monthSelected.emit(firstDateOfMonth);
|
|
1132
1130
|
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
1133
|
-
const result = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.
|
|
1131
|
+
const result = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerDateTime), month, Math.min(daysInMonth, this.dateTimeAdapter.getDate(this.pickerDateTime)), this.dateTimeAdapter.getHours(this.pickerDateTime), this.dateTimeAdapter.getMinutes(this.pickerDateTime), this.dateTimeAdapter.getSeconds(this.pickerDateTime));
|
|
1134
1132
|
this.change.emit(result);
|
|
1135
1133
|
}
|
|
1136
1134
|
/**
|
|
1137
1135
|
* Handle keydown event on calendar body
|
|
1138
1136
|
*/
|
|
1139
1137
|
handleCalendarKeydown(event) {
|
|
1140
|
-
let
|
|
1138
|
+
let dateTime;
|
|
1141
1139
|
switch (event.keyCode) {
|
|
1142
1140
|
// minus 1 month
|
|
1143
1141
|
case LEFT_ARROW:
|
|
1144
|
-
|
|
1145
|
-
this.
|
|
1142
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, -1);
|
|
1143
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1146
1144
|
break;
|
|
1147
1145
|
// add 1 month
|
|
1148
1146
|
case RIGHT_ARROW:
|
|
1149
|
-
|
|
1150
|
-
this.
|
|
1147
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, 1);
|
|
1148
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1151
1149
|
break;
|
|
1152
1150
|
// minus 3 months
|
|
1153
1151
|
case UP_ARROW:
|
|
1154
|
-
|
|
1155
|
-
this.
|
|
1152
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, -3);
|
|
1153
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1156
1154
|
break;
|
|
1157
1155
|
// add 3 months
|
|
1158
1156
|
case DOWN_ARROW:
|
|
1159
|
-
|
|
1160
|
-
this.
|
|
1157
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, 3);
|
|
1158
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1161
1159
|
break;
|
|
1162
1160
|
// move to first month of current year
|
|
1163
1161
|
case HOME:
|
|
1164
|
-
|
|
1165
|
-
this.
|
|
1162
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, -this.dateTimeAdapter.getMonth(this.pickerDateTime));
|
|
1163
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1166
1164
|
break;
|
|
1167
1165
|
// move to last month of current year
|
|
1168
1166
|
case END:
|
|
1169
|
-
|
|
1170
|
-
this.
|
|
1167
|
+
dateTime = this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, 11 - this.dateTimeAdapter.getMonth(this.pickerDateTime));
|
|
1168
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1171
1169
|
break;
|
|
1172
1170
|
// minus 1 year (or 10 year)
|
|
1173
1171
|
case PAGE_UP:
|
|
1174
|
-
|
|
1175
|
-
this.
|
|
1172
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, event.altKey ? -10 : -1);
|
|
1173
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1176
1174
|
break;
|
|
1177
1175
|
// add 1 year (or 10 year)
|
|
1178
1176
|
case PAGE_DOWN:
|
|
1179
|
-
|
|
1180
|
-
this.
|
|
1177
|
+
dateTime = this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, event.altKey ? 10 : 1);
|
|
1178
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1181
1179
|
break;
|
|
1182
1180
|
// Select current month
|
|
1183
1181
|
case ENTER:
|
|
1184
|
-
this.selectMonth(this.dateTimeAdapter.getMonth(this.
|
|
1182
|
+
this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerDateTime));
|
|
1185
1183
|
this.keyboardEnter.emit();
|
|
1186
1184
|
break;
|
|
1187
1185
|
default:
|
|
@@ -1194,7 +1192,7 @@ class OwlYearViewComponent {
|
|
|
1194
1192
|
* Generate the calendar month list
|
|
1195
1193
|
* */
|
|
1196
1194
|
generateMonthList() {
|
|
1197
|
-
if (!this.
|
|
1195
|
+
if (!this.pickerDateTime) {
|
|
1198
1196
|
return;
|
|
1199
1197
|
}
|
|
1200
1198
|
this.setSelectedMonths();
|
|
@@ -1215,7 +1213,7 @@ class OwlYearViewComponent {
|
|
|
1215
1213
|
* Creates an CalendarCell for the given month.
|
|
1216
1214
|
*/
|
|
1217
1215
|
createMonthCell(month) {
|
|
1218
|
-
const startDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.
|
|
1216
|
+
const startDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerDateTime), month, 1);
|
|
1219
1217
|
const ariaLabel = this.dateTimeAdapter.format(startDateOfMonth, this.dateTimeFormats.monthYearA11yLabel);
|
|
1220
1218
|
const cellClass = 'owl-dt-month-' + month;
|
|
1221
1219
|
return new CalendarCell(month, this.monthNames[month - this.dateTimeAdapter.firstMonthOfTheYear], ariaLabel, this.isMonthEnabled(month), false, cellClass);
|
|
@@ -1224,7 +1222,7 @@ class OwlYearViewComponent {
|
|
|
1224
1222
|
* Check if the given month is enable
|
|
1225
1223
|
*/
|
|
1226
1224
|
isMonthEnabled(month) {
|
|
1227
|
-
const firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.
|
|
1225
|
+
const firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerDateTime), month, 1);
|
|
1228
1226
|
// If any date in the month is selectable,
|
|
1229
1227
|
// we count the month as enable
|
|
1230
1228
|
for (let date = firstDateOfMonth; this.dateTimeAdapter.getMonth(date) === month; date = this.dateTimeAdapter.addCalendarDays(date, 1)) {
|
|
@@ -1244,11 +1242,11 @@ class OwlYearViewComponent {
|
|
|
1244
1242
|
* Returns null if the given Date is in another year.
|
|
1245
1243
|
*/
|
|
1246
1244
|
getMonthInCurrentYear(date) {
|
|
1247
|
-
if (this.getValidDate(date) && this.getValidDate(this.
|
|
1248
|
-
const result = this.dateTimeAdapter.compareYear(date, this.
|
|
1249
|
-
// < 0
|
|
1250
|
-
// > 0
|
|
1251
|
-
// 0
|
|
1245
|
+
if (this.getValidDate(date) && this.getValidDate(this._pickerDateTime)) {
|
|
1246
|
+
const result = this.dateTimeAdapter.compareYear(date, this._pickerDateTime);
|
|
1247
|
+
// < 0: the selected date is in an earlier year, so return -1.
|
|
1248
|
+
// > 0: the selected date is in a later year, so return 12.
|
|
1249
|
+
// 0: both values are in the same year, so return the actual month.
|
|
1252
1250
|
if (result < 0) {
|
|
1253
1251
|
return -1;
|
|
1254
1252
|
}
|
|
@@ -1299,10 +1297,10 @@ class OwlYearViewComponent {
|
|
|
1299
1297
|
focusActiveCell() {
|
|
1300
1298
|
this.calendarBodyElm.focusActiveCell();
|
|
1301
1299
|
}
|
|
1302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1303
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlYearViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: OwlYearViewComponent, isStandalone: false, selector: "owl-date-time-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerDateTime: "pickerDateTime", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { change: "change", monthSelected: "monthSelected", pickerDateTimeChange: "pickerDateTimeChange", keyboardEnter: "keyboardEnter" }, host: { properties: { "class.owl-dt-calendar-view": "owlDTCalendarView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], exportAs: ["owlMonthView"], ngImport: i0, template: "<table class=\"owl-dt-calendar-table owl-dt-calendar-year-table\">\r\n <thead class=\"owl-dt-calendar-header\">\r\n <tr>\r\n <th class=\"owl-dt-calendar-table-divider\" aria-hidden=\"true\" colspan=\"3\"></th>\r\n </tr>\r\n </thead>\r\n <tbody owl-date-time-calendar-body role=\"grid\"\r\n [rows]=\"months\" [numCols]=\"3\" [cellRatio]=\"3 / 7\"\r\n [activeCell]=\"activeCell\"\r\n [todayValue]=\"todayMonth\"\r\n [selectedValues]=\"selectedMonths\"\r\n [selectMode]=\"selectMode\"\r\n (keydown)=\"handleCalendarKeydown($event)\"\r\n (select)=\"selectCalendarCell($event)\">\r\n </tbody>\r\n</table>\r\n", styles: [""], dependencies: [{ kind: "component", type: OwlCalendarBodyComponent, selector: "[owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["select"], exportAs: ["owlDateTimeCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1304
1302
|
}
|
|
1305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlYearViewComponent, decorators: [{
|
|
1306
1304
|
type: Component,
|
|
1307
1305
|
args: [{ selector: 'owl-date-time-year-view', exportAs: 'owlMonthView', host: {
|
|
1308
1306
|
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
@@ -1320,7 +1318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1320
1318
|
type: Input
|
|
1321
1319
|
}], selecteds: [{
|
|
1322
1320
|
type: Input
|
|
1323
|
-
}],
|
|
1321
|
+
}], pickerDateTime: [{
|
|
1324
1322
|
type: Input
|
|
1325
1323
|
}], dateFilter: [{
|
|
1326
1324
|
type: Input
|
|
@@ -1332,7 +1330,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1332
1330
|
type: Output
|
|
1333
1331
|
}], monthSelected: [{
|
|
1334
1332
|
type: Output
|
|
1335
|
-
}],
|
|
1333
|
+
}], pickerDateTimeChange: [{
|
|
1336
1334
|
type: Output
|
|
1337
1335
|
}], keyboardEnter: [{
|
|
1338
1336
|
type: Output
|
|
@@ -1392,16 +1390,16 @@ class OwlMonthViewComponent {
|
|
|
1392
1390
|
});
|
|
1393
1391
|
this.setSelectedDates();
|
|
1394
1392
|
}
|
|
1395
|
-
get
|
|
1396
|
-
return this.
|
|
1393
|
+
get pickerDateTime() {
|
|
1394
|
+
return this._pickerDateTime;
|
|
1397
1395
|
}
|
|
1398
|
-
set
|
|
1399
|
-
const
|
|
1396
|
+
set pickerDateTime(value) {
|
|
1397
|
+
const oldDateTime = this._pickerDateTime;
|
|
1400
1398
|
value = this.dateTimeAdapter.deserialize(value);
|
|
1401
|
-
this.
|
|
1399
|
+
this._pickerDateTime =
|
|
1402
1400
|
this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
1403
|
-
this.firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.
|
|
1404
|
-
if (!this.isSameMonth(
|
|
1401
|
+
this.firstDateOfMonth = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerDateTime), this.dateTimeAdapter.getMonth(this._pickerDateTime), 1);
|
|
1402
|
+
if (!this.isSameMonth(oldDateTime, this._pickerDateTime) &&
|
|
1405
1403
|
this.initiated) {
|
|
1406
1404
|
this.generateCalendar();
|
|
1407
1405
|
}
|
|
@@ -1445,8 +1443,8 @@ class OwlMonthViewComponent {
|
|
|
1445
1443
|
return this._days;
|
|
1446
1444
|
}
|
|
1447
1445
|
get activeCell() {
|
|
1448
|
-
if (this.
|
|
1449
|
-
return (this.dateTimeAdapter.getDate(this.
|
|
1446
|
+
if (this.pickerDateTime) {
|
|
1447
|
+
return (this.dateTimeAdapter.getDate(this.pickerDateTime) +
|
|
1450
1448
|
this.firstRowOffset -
|
|
1451
1449
|
1);
|
|
1452
1450
|
}
|
|
@@ -1496,7 +1494,7 @@ class OwlMonthViewComponent {
|
|
|
1496
1494
|
* */
|
|
1497
1495
|
this.userSelection = new EventEmitter();
|
|
1498
1496
|
/** Emits when any date is activated. */
|
|
1499
|
-
this.
|
|
1497
|
+
this.pickerDateTimeChange = new EventEmitter();
|
|
1500
1498
|
}
|
|
1501
1499
|
ngOnInit() {
|
|
1502
1500
|
this.updateFirstDayOfWeek(this.dateTimeAdapter.getLocale());
|
|
@@ -1540,57 +1538,57 @@ class OwlMonthViewComponent {
|
|
|
1540
1538
|
* Handle keydown event on calendar body
|
|
1541
1539
|
*/
|
|
1542
1540
|
handleCalendarKeydown(event) {
|
|
1543
|
-
let
|
|
1541
|
+
let dateTime;
|
|
1544
1542
|
switch (event.keyCode) {
|
|
1545
1543
|
// minus 1 day
|
|
1546
1544
|
case LEFT_ARROW:
|
|
1547
|
-
|
|
1548
|
-
this.
|
|
1545
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, -1);
|
|
1546
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1549
1547
|
break;
|
|
1550
1548
|
// add 1 day
|
|
1551
1549
|
case RIGHT_ARROW:
|
|
1552
|
-
|
|
1553
|
-
this.
|
|
1550
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, 1);
|
|
1551
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1554
1552
|
break;
|
|
1555
1553
|
// minus 1 week
|
|
1556
1554
|
case UP_ARROW:
|
|
1557
|
-
|
|
1558
|
-
this.
|
|
1555
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, -7);
|
|
1556
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1559
1557
|
break;
|
|
1560
1558
|
// add 1 week
|
|
1561
1559
|
case DOWN_ARROW:
|
|
1562
|
-
|
|
1563
|
-
this.
|
|
1560
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, 7);
|
|
1561
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1564
1562
|
break;
|
|
1565
1563
|
// move to first day of current month
|
|
1566
1564
|
case HOME:
|
|
1567
|
-
|
|
1568
|
-
this.
|
|
1565
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, 1 - this.dateTimeAdapter.getDate(this.pickerDateTime));
|
|
1566
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1569
1567
|
break;
|
|
1570
1568
|
// move to last day of current month
|
|
1571
1569
|
case END:
|
|
1572
|
-
|
|
1573
|
-
this.dateTimeAdapter.getDate(this.
|
|
1574
|
-
this.
|
|
1570
|
+
dateTime = this.dateTimeAdapter.addCalendarDays(this.pickerDateTime, this.dateTimeAdapter.getNumDaysInMonth(this.pickerDateTime) -
|
|
1571
|
+
this.dateTimeAdapter.getDate(this.pickerDateTime));
|
|
1572
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1575
1573
|
break;
|
|
1576
1574
|
// minus 1 month (or 1 year)
|
|
1577
1575
|
case PAGE_UP:
|
|
1578
|
-
|
|
1579
|
-
? this.dateTimeAdapter.addCalendarYears(this.
|
|
1580
|
-
: this.dateTimeAdapter.addCalendarMonths(this.
|
|
1581
|
-
this.
|
|
1576
|
+
dateTime = event.altKey
|
|
1577
|
+
? this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, -1)
|
|
1578
|
+
: this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, -1);
|
|
1579
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1582
1580
|
break;
|
|
1583
1581
|
// add 1 month (or 1 year)
|
|
1584
1582
|
case PAGE_DOWN:
|
|
1585
|
-
|
|
1586
|
-
? this.dateTimeAdapter.addCalendarYears(this.
|
|
1587
|
-
: this.dateTimeAdapter.addCalendarMonths(this.
|
|
1588
|
-
this.
|
|
1583
|
+
dateTime = event.altKey
|
|
1584
|
+
? this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, 1)
|
|
1585
|
+
: this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, 1);
|
|
1586
|
+
this.pickerDateTimeChange.emit(dateTime);
|
|
1589
1587
|
break;
|
|
1590
|
-
//
|
|
1588
|
+
// Select the active date.
|
|
1591
1589
|
case ENTER:
|
|
1592
|
-
if (!this.dateFilter || this.dateFilter(this.
|
|
1593
|
-
this.selectDate(this.dateTimeAdapter.getDate(this.
|
|
1590
|
+
if (!this.dateFilter || this.dateFilter(this.pickerDateTime)) {
|
|
1591
|
+
this.selectDate(this.dateTimeAdapter.getDate(this.pickerDateTime));
|
|
1594
1592
|
}
|
|
1595
1593
|
break;
|
|
1596
1594
|
default:
|
|
@@ -1620,7 +1618,7 @@ class OwlMonthViewComponent {
|
|
|
1620
1618
|
* Generate the calendar days array
|
|
1621
1619
|
* */
|
|
1622
1620
|
generateCalendar() {
|
|
1623
|
-
if (!this.
|
|
1621
|
+
if (!this.pickerDateTime) {
|
|
1624
1622
|
return;
|
|
1625
1623
|
}
|
|
1626
1624
|
this.todayDate = null;
|
|
@@ -1677,7 +1675,7 @@ class OwlMonthViewComponent {
|
|
|
1677
1675
|
*/
|
|
1678
1676
|
createDateCell(date, daysDiff) {
|
|
1679
1677
|
// total days of the month
|
|
1680
|
-
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(this.
|
|
1678
|
+
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(this.pickerDateTime);
|
|
1681
1679
|
const dateNum = this.dateTimeAdapter.getDate(date);
|
|
1682
1680
|
// const dateName = this.dateNames[dateNum - 1];
|
|
1683
1681
|
const dateName = dateNum.toString();
|
|
@@ -1759,10 +1757,10 @@ class OwlMonthViewComponent {
|
|
|
1759
1757
|
focusActiveCell() {
|
|
1760
1758
|
this.calendarBodyElm.focusActiveCell();
|
|
1761
1759
|
}
|
|
1762
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1763
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlMonthViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1761
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlMonthViewComponent, isStandalone: false, selector: "owl-date-time-month-view", inputs: { hideOtherMonths: "hideOtherMonths", showCalendarWeeks: "showCalendarWeeks", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerDateTime: "pickerDateTime", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", pickerDateTimeChange: "pickerDateTimeChange" }, host: { properties: { "class.owl-dt-calendar-view": "owlDTCalendarView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], exportAs: ["owlYearView"], ngImport: i0, template: "@if (showCalendarWeeks) {\r\n <ul class=\"week-number\">\r\n @for (week of weekNumbers; track week) {\r\n <li>\r\n <span>{{ week }}</span>\r\n </li>\r\n }\r\n </ul>\r\n}\r\n<table\r\n class=\"owl-dt-calendar-table owl-dt-calendar-month-table\"\r\n [ngClass]=\"{ 'owl-calendar-weeks': showCalendarWeeks }\"\r\n [class.owl-dt-calendar-only-current-month]=\"hideOtherMonths\"\r\n>\r\n <thead class=\"owl-dt-calendar-header\">\r\n <tr class=\"owl-dt-weekdays\">\r\n @for (weekday of weekdays; track weekday.short) {\r\n <th\r\n [attr.aria-label]=\"weekday.long\"\r\n class=\"owl-dt-weekday\"\r\n scope=\"col\"\r\n >\r\n <span>{{ weekday.short }}</span>\r\n </th>\r\n }\r\n </tr>\r\n <tr>\r\n <th\r\n class=\"owl-dt-calendar-table-divider\"\r\n [ngClass]=\"{ 'owl-calendar-weeks': showCalendarWeeks }\"\r\n aria-hidden=\"true\"\r\n colspan=\"7\"\r\n ></th>\r\n </tr>\r\n </thead>\r\n <tbody\r\n owl-date-time-calendar-body\r\n role=\"grid\"\r\n [rows]=\"days\"\r\n [todayValue]=\"todayDate\"\r\n [selectedValues]=\"selectedDates\"\r\n [selectMode]=\"selectMode\"\r\n [activeCell]=\"activeCell\"\r\n (keydown)=\"handleCalendarKeydown($event)\"\r\n (select)=\"selectCalendarCell($event)\"\r\n ></tbody>\r\n</table>\r\n", styles: [".week-number{display:flex;flex-direction:column;justify-content:space-between;margin:46px 0 14px;padding:0;list-style:none;border-right:1px solid rgba(0,0,0,.12);width:8%;font-weight:700}.week-number li{font-size:.8em}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: OwlCalendarBodyComponent, selector: "[owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["select"], exportAs: ["owlDateTimeCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1764
1762
|
}
|
|
1765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlMonthViewComponent, decorators: [{
|
|
1766
1764
|
type: Component,
|
|
1767
1765
|
args: [{ selector: 'owl-date-time-month-view', exportAs: 'owlYearView', standalone: false, host: {
|
|
1768
1766
|
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
@@ -1786,7 +1784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1786
1784
|
type: Input
|
|
1787
1785
|
}], selecteds: [{
|
|
1788
1786
|
type: Input
|
|
1789
|
-
}],
|
|
1787
|
+
}], pickerDateTime: [{
|
|
1790
1788
|
type: Input
|
|
1791
1789
|
}], dateFilter: [{
|
|
1792
1790
|
type: Input
|
|
@@ -1798,7 +1796,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1798
1796
|
type: Output
|
|
1799
1797
|
}], userSelection: [{
|
|
1800
1798
|
type: Output
|
|
1801
|
-
}],
|
|
1799
|
+
}], pickerDateTimeChange: [{
|
|
1802
1800
|
type: Output
|
|
1803
1801
|
}], calendarBodyElm: [{
|
|
1804
1802
|
type: ViewChild,
|
|
@@ -1829,12 +1827,12 @@ class OwlCalendarComponent {
|
|
|
1829
1827
|
? this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(value), this.dateTimeAdapter.getMonth(value), this.dateTimeAdapter.getDate(value))
|
|
1830
1828
|
: null;
|
|
1831
1829
|
}
|
|
1832
|
-
get
|
|
1833
|
-
return this.
|
|
1830
|
+
get pickerDateTime() {
|
|
1831
|
+
return this._pickerDateTime;
|
|
1834
1832
|
}
|
|
1835
|
-
set
|
|
1833
|
+
set pickerDateTime(value) {
|
|
1836
1834
|
value = this.dateTimeAdapter.deserialize(value);
|
|
1837
|
-
this.
|
|
1835
|
+
this._pickerDateTime =
|
|
1838
1836
|
this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
1839
1837
|
}
|
|
1840
1838
|
get selected() {
|
|
@@ -1855,8 +1853,8 @@ class OwlCalendarComponent {
|
|
|
1855
1853
|
}
|
|
1856
1854
|
get periodButtonText() {
|
|
1857
1855
|
return this.isMonthView
|
|
1858
|
-
? this.dateTimeAdapter.format(this.
|
|
1859
|
-
: this.dateTimeAdapter.getYearName(this.
|
|
1856
|
+
? this.dateTimeAdapter.format(this.pickerDateTime, this.dateTimeFormats.monthYearLabel)
|
|
1857
|
+
: this.dateTimeAdapter.getYearName(this.pickerDateTime);
|
|
1860
1858
|
}
|
|
1861
1859
|
get periodButtonLabel() {
|
|
1862
1860
|
return this.isMonthView
|
|
@@ -1937,8 +1935,8 @@ class OwlCalendarComponent {
|
|
|
1937
1935
|
* Whether to should only the multi-year view.
|
|
1938
1936
|
*/
|
|
1939
1937
|
this.multiyearOnly = false;
|
|
1940
|
-
/** Emits when the
|
|
1941
|
-
this.
|
|
1938
|
+
/** Emits when the displayed date and time changes. */
|
|
1939
|
+
this.pickerDateTimeChange = new EventEmitter();
|
|
1942
1940
|
/** Emits when the selected date changes. */
|
|
1943
1941
|
this.dateClicked = new EventEmitter();
|
|
1944
1942
|
/** Emits when the currently selected date changes. */
|
|
@@ -2014,19 +2012,19 @@ class OwlCalendarComponent {
|
|
|
2014
2012
|
* Handles user clicks on the previous button.
|
|
2015
2013
|
* */
|
|
2016
2014
|
previousClicked() {
|
|
2017
|
-
this.
|
|
2018
|
-
? this.dateTimeAdapter.addCalendarMonths(this.
|
|
2019
|
-
: this.dateTimeAdapter.addCalendarYears(this.
|
|
2020
|
-
this.
|
|
2015
|
+
this.pickerDateTime = this.isMonthView
|
|
2016
|
+
? this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, -1)
|
|
2017
|
+
: this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, -1);
|
|
2018
|
+
this.pickerDateTimeChange.emit(this.pickerDateTime);
|
|
2021
2019
|
}
|
|
2022
2020
|
/**
|
|
2023
2021
|
* Handles user clicks on the next button.
|
|
2024
2022
|
* */
|
|
2025
2023
|
nextClicked() {
|
|
2026
|
-
this.
|
|
2027
|
-
? this.dateTimeAdapter.addCalendarMonths(this.
|
|
2028
|
-
: this.dateTimeAdapter.addCalendarYears(this.
|
|
2029
|
-
this.
|
|
2024
|
+
this.pickerDateTime = this.isMonthView
|
|
2025
|
+
? this.dateTimeAdapter.addCalendarMonths(this.pickerDateTime, 1)
|
|
2026
|
+
: this.dateTimeAdapter.addCalendarYears(this.pickerDateTime, 1);
|
|
2027
|
+
this.pickerDateTimeChange.emit(this.pickerDateTime);
|
|
2030
2028
|
}
|
|
2031
2029
|
dateSelected(date) {
|
|
2032
2030
|
if (!this.dateFilterForViews(date)) {
|
|
@@ -2040,10 +2038,10 @@ class OwlCalendarComponent {
|
|
|
2040
2038
|
}*/
|
|
2041
2039
|
}
|
|
2042
2040
|
/**
|
|
2043
|
-
* Change the
|
|
2041
|
+
* Change the displayed date and switch to a specific view.
|
|
2044
2042
|
*/
|
|
2045
2043
|
goToDateInView(date, view) {
|
|
2046
|
-
this.
|
|
2044
|
+
this.handlePickerDateTimeChange(date);
|
|
2047
2045
|
if ((!this.yearOnly && !this.multiyearOnly) ||
|
|
2048
2046
|
(this.multiyearOnly && (view !== DateView.MONTH && view !== DateView.YEAR)) ||
|
|
2049
2047
|
(this.yearOnly && view !== DateView.MONTH)) {
|
|
@@ -2055,11 +2053,11 @@ class OwlCalendarComponent {
|
|
|
2055
2053
|
return;
|
|
2056
2054
|
}
|
|
2057
2055
|
/**
|
|
2058
|
-
* Change the
|
|
2056
|
+
* Change the displayed date.
|
|
2059
2057
|
*/
|
|
2060
|
-
|
|
2061
|
-
this.
|
|
2062
|
-
this.
|
|
2058
|
+
handlePickerDateTimeChange(date) {
|
|
2059
|
+
this.pickerDateTime = this.dateTimeAdapter.clampDate(date, this.minDate, this.maxDate);
|
|
2060
|
+
this.pickerDateTimeChange.emit(this.pickerDateTime);
|
|
2063
2061
|
return;
|
|
2064
2062
|
}
|
|
2065
2063
|
userSelected() {
|
|
@@ -2069,13 +2067,13 @@ class OwlCalendarComponent {
|
|
|
2069
2067
|
* Whether the previous period button is enabled.
|
|
2070
2068
|
*/
|
|
2071
2069
|
prevButtonEnabled() {
|
|
2072
|
-
return (!this.minDate || !this.isSameView(this.
|
|
2070
|
+
return (!this.minDate || !this.isSameView(this.pickerDateTime, this.minDate));
|
|
2073
2071
|
}
|
|
2074
2072
|
/**
|
|
2075
2073
|
* Whether the next period button is enabled.
|
|
2076
2074
|
*/
|
|
2077
2075
|
nextButtonEnabled() {
|
|
2078
|
-
return (!this.maxDate || !this.isSameView(this.
|
|
2076
|
+
return (!this.maxDate || !this.isSameView(this.pickerDateTime, this.maxDate));
|
|
2079
2077
|
}
|
|
2080
2078
|
/**
|
|
2081
2079
|
* Focus to the host element
|
|
@@ -2129,14 +2127,14 @@ class OwlCalendarComponent {
|
|
|
2129
2127
|
? obj
|
|
2130
2128
|
: null;
|
|
2131
2129
|
}
|
|
2132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: OwlCalendarComponent, isStandalone: false, selector: "owl-date-time-calendar", inputs: { minDate: "minDate", maxDate: "maxDate", pickerMoment: "pickerMoment", selected: "selected", selecteds: "selecteds", dateFilter: "dateFilter", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", startView: "startView", yearOnly: "yearOnly", showCalendarWeeks: "showCalendarWeeks", multiyearOnly: "multiyearOnly", hideOtherMonths: "hideOtherMonths" }, outputs: { pickerMomentChange: "pickerMomentChange", dateClicked: "dateClicked", selectedChange: "selectedChange", userSelection: "userSelection", yearSelected: "yearSelected", monthSelected: "monthSelected" }, host: { properties: { "class.owl-dt-calendar": "owlDTCalendarClass" } }, exportAs: ["owlDateTimeCalendar"], ngImport: i0, template: "<div class=\"owl-dt-calendar-control\">\r\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!prevButtonEnabled()\"\r\n [attr.aria-label]=\"prevButtonLabel\"\r\n (click)=\"previousClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\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\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n <div class=\"owl-dt-calendar-control-content\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"periodButtonLabel\"\r\n (click)=\"toggleViews()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ periodButtonText }}\r\n\r\n <span\r\n class=\"owl-dt-control-button-arrow\"\r\n [style.transform]=\"\r\n 'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\r\n \"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n width=\"50%\"\r\n height=\"50%\"\r\n viewBox=\"0 0 292.362 292.362\"\r\n style=\"enable-background: new 0 0 292.362 292.362\"\r\n xml:space=\"preserve\"\r\n >\r\n <g>\r\n <path\r\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\r\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\r\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\"\r\n />\r\n </g>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!nextButtonEnabled()\"\r\n [attr.aria-label]=\"nextButtonLabel\"\r\n (click)=\"nextClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\r\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\r\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\r\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n</div>\r\n<div class=\"owl-dt-calendar-main\" cdkMonitorSubtreeFocus tabindex=\"-1\">\r\n @switch (currentView) {\r\n @case (DateView.MONTH) {\r\n <owl-date-time-month-view\r\n [pickerMoment]=\"pickerMoment\"\r\n [firstDayOfWeek]=\"firstDayOfWeek\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [showCalendarWeeks]=\"showCalendarWeeks\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n [hideOtherMonths]=\"hideOtherMonths\"\r\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\r\n (selectedChange)=\"dateSelected($event)\"\r\n (userSelection)=\"userSelected()\"\r\n ></owl-date-time-month-view>\r\n }\r\n @case (DateView.YEAR) {\r\n <owl-date-time-year-view\r\n [pickerMoment]=\"pickerMoment\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\r\n (monthSelected)=\"selectMonthInYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.MONTH)\"\r\n ></owl-date-time-year-view>\r\n }\r\n @case (DateView.MULTI_YEARS) {\r\n <owl-date-time-multi-year-view\r\n [pickerMoment]=\"pickerMoment\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\r\n (yearSelected)=\"selectYearInMultiYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.YEAR)\"\r\n ></owl-date-time-multi-year-view>\r\n }\r\n }\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "component", type: OwlMultiYearViewComponent, selector: "owl-date-time-multi-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["change", "yearSelected", "pickerMomentChange", "keyboardEnter"] }, { kind: "component", type: OwlYearViewComponent, selector: "owl-date-time-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["change", "monthSelected", "pickerMomentChange", "keyboardEnter"], exportAs: ["owlMonthView"] }, { kind: "component", type: OwlMonthViewComponent, selector: "owl-date-time-month-view", inputs: ["hideOtherMonths", "showCalendarWeeks", "firstDayOfWeek", "selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["selectedChange", "userSelection", "pickerMomentChange"], exportAs: ["owlYearView"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlCalendarComponent, deps: [{ token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2131
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlCalendarComponent, isStandalone: false, selector: "owl-date-time-calendar", inputs: { minDate: "minDate", maxDate: "maxDate", pickerDateTime: "pickerDateTime", selected: "selected", selecteds: "selecteds", dateFilter: "dateFilter", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", startView: "startView", yearOnly: "yearOnly", showCalendarWeeks: "showCalendarWeeks", multiyearOnly: "multiyearOnly", hideOtherMonths: "hideOtherMonths" }, outputs: { pickerDateTimeChange: "pickerDateTimeChange", dateClicked: "dateClicked", selectedChange: "selectedChange", userSelection: "userSelection", yearSelected: "yearSelected", monthSelected: "monthSelected" }, host: { properties: { "class.owl-dt-calendar": "owlDTCalendarClass" } }, exportAs: ["owlDateTimeCalendar"], ngImport: i0, template: "<div class=\"owl-dt-calendar-control\">\r\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!prevButtonEnabled()\"\r\n [attr.aria-label]=\"prevButtonLabel\"\r\n (click)=\"previousClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\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\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n <div class=\"owl-dt-calendar-control-content\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"periodButtonLabel\"\r\n (click)=\"toggleViews()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ periodButtonText }}\r\n\r\n <span\r\n class=\"owl-dt-control-button-arrow\"\r\n [style.transform]=\"\r\n 'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\r\n \"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n width=\"50%\"\r\n height=\"50%\"\r\n viewBox=\"0 0 292.362 292.362\"\r\n style=\"enable-background: new 0 0 292.362 292.362\"\r\n xml:space=\"preserve\"\r\n >\r\n <g>\r\n <path\r\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\r\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\r\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\"\r\n />\r\n </g>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!nextButtonEnabled()\"\r\n [attr.aria-label]=\"nextButtonLabel\"\r\n (click)=\"nextClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\r\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\r\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\r\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n</div>\r\n<div class=\"owl-dt-calendar-main\" cdkMonitorSubtreeFocus tabindex=\"-1\">\r\n @switch (currentView) {\r\n @case (DateView.MONTH) {\r\n <owl-date-time-month-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [firstDayOfWeek]=\"firstDayOfWeek\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [showCalendarWeeks]=\"showCalendarWeeks\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n [hideOtherMonths]=\"hideOtherMonths\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (selectedChange)=\"dateSelected($event)\"\r\n (userSelection)=\"userSelected()\"\r\n ></owl-date-time-month-view>\r\n }\r\n @case (DateView.YEAR) {\r\n <owl-date-time-year-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (monthSelected)=\"selectMonthInYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.MONTH)\"\r\n ></owl-date-time-year-view>\r\n }\r\n @case (DateView.MULTI_YEARS) {\r\n <owl-date-time-multi-year-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (yearSelected)=\"selectYearInMultiYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.YEAR)\"\r\n ></owl-date-time-multi-year-view>\r\n }\r\n }\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "component", type: OwlMultiYearViewComponent, selector: "owl-date-time-multi-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerDateTime", "dateFilter", "minDate", "maxDate"], outputs: ["change", "yearSelected", "pickerDateTimeChange", "keyboardEnter"] }, { kind: "component", type: OwlYearViewComponent, selector: "owl-date-time-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerDateTime", "dateFilter", "minDate", "maxDate"], outputs: ["change", "monthSelected", "pickerDateTimeChange", "keyboardEnter"], exportAs: ["owlMonthView"] }, { kind: "component", type: OwlMonthViewComponent, selector: "owl-date-time-month-view", inputs: ["hideOtherMonths", "showCalendarWeeks", "firstDayOfWeek", "selectMode", "selected", "selecteds", "pickerDateTime", "dateFilter", "minDate", "maxDate"], outputs: ["selectedChange", "userSelection", "pickerDateTimeChange"], exportAs: ["owlYearView"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2134
2132
|
}
|
|
2135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlCalendarComponent, decorators: [{
|
|
2136
2134
|
type: Component,
|
|
2137
2135
|
args: [{ selector: 'owl-date-time-calendar', exportAs: 'owlDateTimeCalendar', standalone: false, host: {
|
|
2138
2136
|
'[class.owl-dt-calendar]': 'owlDTCalendarClass'
|
|
2139
|
-
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"owl-dt-calendar-control\">\r\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!prevButtonEnabled()\"\r\n [attr.aria-label]=\"prevButtonLabel\"\r\n (click)=\"previousClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\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\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n <div class=\"owl-dt-calendar-control-content\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"periodButtonLabel\"\r\n (click)=\"toggleViews()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ periodButtonText }}\r\n\r\n <span\r\n class=\"owl-dt-control-button-arrow\"\r\n [style.transform]=\"\r\n 'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\r\n \"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n width=\"50%\"\r\n height=\"50%\"\r\n viewBox=\"0 0 292.362 292.362\"\r\n style=\"enable-background: new 0 0 292.362 292.362\"\r\n xml:space=\"preserve\"\r\n >\r\n <g>\r\n <path\r\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\r\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\r\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\"\r\n />\r\n </g>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!nextButtonEnabled()\"\r\n [attr.aria-label]=\"nextButtonLabel\"\r\n (click)=\"nextClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\r\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\r\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\r\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n</div>\r\n<div class=\"owl-dt-calendar-main\" cdkMonitorSubtreeFocus tabindex=\"-1\">\r\n @switch (currentView) {\r\n @case (DateView.MONTH) {\r\n <owl-date-time-month-view\r\n [
|
|
2137
|
+
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"owl-dt-calendar-control\">\r\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!prevButtonEnabled()\"\r\n [attr.aria-label]=\"prevButtonLabel\"\r\n (click)=\"previousClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\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\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n <div class=\"owl-dt-calendar-control-content\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"periodButtonLabel\"\r\n (click)=\"toggleViews()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ periodButtonText }}\r\n\r\n <span\r\n class=\"owl-dt-control-button-arrow\"\r\n [style.transform]=\"\r\n 'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\r\n \"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n width=\"50%\"\r\n height=\"50%\"\r\n viewBox=\"0 0 292.362 292.362\"\r\n style=\"enable-background: new 0 0 292.362 292.362\"\r\n xml:space=\"preserve\"\r\n >\r\n <g>\r\n <path\r\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\r\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\r\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\"\r\n />\r\n </g>\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\r\n [disabled]=\"!nextButtonEnabled()\"\r\n [attr.aria-label]=\"nextButtonLabel\"\r\n (click)=\"nextClicked()\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 250.738 250.738\"\r\n style=\"enable-background: new 0 0 250.738 250.738\"\r\n xml:space=\"preserve\"\r\n >\r\n <path\r\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\r\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\r\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\r\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\r\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n </button>\r\n</div>\r\n<div class=\"owl-dt-calendar-main\" cdkMonitorSubtreeFocus tabindex=\"-1\">\r\n @switch (currentView) {\r\n @case (DateView.MONTH) {\r\n <owl-date-time-month-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [firstDayOfWeek]=\"firstDayOfWeek\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [showCalendarWeeks]=\"showCalendarWeeks\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n [hideOtherMonths]=\"hideOtherMonths\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (selectedChange)=\"dateSelected($event)\"\r\n (userSelection)=\"userSelected()\"\r\n ></owl-date-time-month-view>\r\n }\r\n @case (DateView.YEAR) {\r\n <owl-date-time-year-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (monthSelected)=\"selectMonthInYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.MONTH)\"\r\n ></owl-date-time-year-view>\r\n }\r\n @case (DateView.MULTI_YEARS) {\r\n <owl-date-time-multi-year-view\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [selected]=\"selected\"\r\n [selecteds]=\"selecteds\"\r\n [selectMode]=\"selectMode\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [dateFilter]=\"dateFilter\"\r\n (keyboardEnter)=\"focusActiveCell()\"\r\n (pickerDateTimeChange)=\"handlePickerDateTimeChange($event)\"\r\n (yearSelected)=\"selectYearInMultiYearView($event)\"\r\n (change)=\"goToDateInView($event, DateView.YEAR)\"\r\n ></owl-date-time-multi-year-view>\r\n }\r\n }\r\n</div>\r\n" }]
|
|
2140
2138
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
2141
2139
|
type: Optional
|
|
2142
2140
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2148,7 +2146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2148
2146
|
type: Input
|
|
2149
2147
|
}], maxDate: [{
|
|
2150
2148
|
type: Input
|
|
2151
|
-
}],
|
|
2149
|
+
}], pickerDateTime: [{
|
|
2152
2150
|
type: Input
|
|
2153
2151
|
}], selected: [{
|
|
2154
2152
|
type: Input
|
|
@@ -2170,7 +2168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2170
2168
|
type: Input
|
|
2171
2169
|
}], hideOtherMonths: [{
|
|
2172
2170
|
type: Input
|
|
2173
|
-
}],
|
|
2171
|
+
}], pickerDateTimeChange: [{
|
|
2174
2172
|
type: Output
|
|
2175
2173
|
}], dateClicked: [{
|
|
2176
2174
|
type: Output
|
|
@@ -2274,10 +2272,10 @@ class OwlTimerBoxComponent {
|
|
|
2274
2272
|
unbindValueInputMouseWheel() {
|
|
2275
2273
|
this.valueInput.nativeElement.removeEventListener('onwheel' in document ? 'wheel' : 'mousewheel', this.onValueInputMouseWheelBind);
|
|
2276
2274
|
}
|
|
2277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlTimerBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlTimerBoxComponent, isStandalone: false, selector: "owl-date-time-timer-box", inputs: { showDivider: "showDivider", upBtnAriaLabel: "upBtnAriaLabel", upBtnDisabled: "upBtnDisabled", downBtnAriaLabel: "downBtnAriaLabel", downBtnDisabled: "downBtnDisabled", boxValue: "boxValue", value: "value", min: "min", max: "max", step: "step", inputLabel: "inputLabel" }, outputs: { valueChange: "valueChange", inputChange: "inputChange" }, host: { properties: { "class.owl-dt-timer-box": "owlDTTimerBoxClass" } }, viewQueries: [{ propertyName: "valueInput", first: true, predicate: ["valueInput"], descendants: true, static: true }], exportAs: ["owlDateTimeTimerBox"], ngImport: i0, template: "@if (showDivider) {\r\n <div class=\"owl-dt-timer-divider\" aria-hidden=\"true\"></div>\r\n}\r\n<button\r\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"-1\"\r\n [disabled]=\"upBtnDisabled\"\r\n [attr.aria-label]=\"upBtnAriaLabel\"\r\n (click)=\"upBtnClicked()\"\r\n>\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n <!-- <editor-fold desc=\"SVG Arrow Up\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 451.847 451.846\"\r\n style=\"enable-background: new 0 0 451.847 451.846\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\n 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\r\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\r\n c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n</button>\r\n<label class=\"owl-dt-timer-content\">\r\n <input\r\n class=\"owl-dt-timer-input\"\r\n maxlength=\"2\"\r\n [value]=\"displayValue\"\r\n (keydown.arrowup)=\"!upBtnDisabled && upBtnClicked()\"\r\n (keydown.arrowdown)=\"!downBtnDisabled && downBtnClicked()\"\r\n (input)=\"handleInputChange(valueInput.value)\"\r\n (focusin)=\"focusIn()\"\r\n (focusout)=\"focusOut(valueInput.value)\"\r\n #valueInput\r\n />\r\n <span class=\"owl-hidden-accessible\">{{ inputLabel }}</span>\r\n</label>\r\n<button\r\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\r\n type=\"button\"\r\n tabindex=\"-1\"\r\n [disabled]=\"downBtnDisabled\"\r\n [attr.aria-label]=\"downBtnAriaLabel\"\r\n (click)=\"downBtnClicked()\"\r\n>\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n <!-- <editor-fold desc=\"SVG Arrow Down\"> -->\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n version=\"1.1\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 451.847 451.846\"\r\n style=\"enable-background: new 0 0 451.847 451.846\"\r\n xml:space=\"preserve\"\r\n width=\"100%\"\r\n height=\"100%\"\r\n >\r\n <path\r\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\r\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\r\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\"\r\n />\r\n </svg>\r\n <!-- </editor-fold> -->\r\n </span>\r\n</button>\r\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2279
2277
|
}
|
|
2280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlTimerBoxComponent, decorators: [{
|
|
2281
2279
|
type: Component,
|
|
2282
2280
|
args: [{ exportAs: 'owlDateTimeTimerBox', selector: 'owl-date-time-timer-box', standalone: false, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2283
2281
|
'[class.owl-dt-timer-box]': 'owlDTTimerBoxClass'
|
|
@@ -2317,12 +2315,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2317
2315
|
* timer.component
|
|
2318
2316
|
*/
|
|
2319
2317
|
class OwlTimerComponent {
|
|
2320
|
-
get
|
|
2321
|
-
return this.
|
|
2318
|
+
get pickerDateTime() {
|
|
2319
|
+
return this._pickerDateTime;
|
|
2322
2320
|
}
|
|
2323
|
-
set
|
|
2321
|
+
set pickerDateTime(value) {
|
|
2324
2322
|
value = this.dateTimeAdapter.deserialize(value);
|
|
2325
|
-
this.
|
|
2323
|
+
this._pickerDateTime =
|
|
2326
2324
|
this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
2327
2325
|
}
|
|
2328
2326
|
get minDateTime() {
|
|
@@ -2340,7 +2338,7 @@ class OwlTimerComponent {
|
|
|
2340
2338
|
this._maxDateTime = this.getValidDate(value);
|
|
2341
2339
|
}
|
|
2342
2340
|
get hourValue() {
|
|
2343
|
-
return this.dateTimeAdapter.getHours(this.
|
|
2341
|
+
return this.dateTimeAdapter.getHours(this.pickerDateTime);
|
|
2344
2342
|
}
|
|
2345
2343
|
/**
|
|
2346
2344
|
* The value would be displayed in hourBox.
|
|
@@ -2371,10 +2369,10 @@ class OwlTimerComponent {
|
|
|
2371
2369
|
}
|
|
2372
2370
|
}
|
|
2373
2371
|
get minuteValue() {
|
|
2374
|
-
return this.dateTimeAdapter.getMinutes(this.
|
|
2372
|
+
return this.dateTimeAdapter.getMinutes(this.pickerDateTime);
|
|
2375
2373
|
}
|
|
2376
2374
|
get secondValue() {
|
|
2377
|
-
return this.dateTimeAdapter.getSeconds(this.
|
|
2375
|
+
return this.dateTimeAdapter.getSeconds(this.pickerDateTime);
|
|
2378
2376
|
}
|
|
2379
2377
|
get upHourButtonLabel() {
|
|
2380
2378
|
return this.pickerIntl.upHourLabel;
|
|
@@ -2411,7 +2409,7 @@ class OwlTimerComponent {
|
|
|
2411
2409
|
this.pickerIntl = pickerIntl;
|
|
2412
2410
|
this.cdRef = cdRef;
|
|
2413
2411
|
this.dateTimeAdapter = dateTimeAdapter;
|
|
2414
|
-
this.isPM = false; //
|
|
2412
|
+
this.isPM = false; // Whether the current time is PM in 12-hour mode.
|
|
2415
2413
|
/**
|
|
2416
2414
|
* Hours to change per step
|
|
2417
2415
|
*/
|
|
@@ -2454,17 +2452,17 @@ class OwlTimerComponent {
|
|
|
2454
2452
|
this.setHourValue(hours);
|
|
2455
2453
|
}
|
|
2456
2454
|
setHourValue(hours) {
|
|
2457
|
-
const m = this.dateTimeAdapter.setHours(this.
|
|
2455
|
+
const m = this.dateTimeAdapter.setHours(this.pickerDateTime, hours);
|
|
2458
2456
|
this.selectedChange.emit(m);
|
|
2459
2457
|
this.cdRef.markForCheck();
|
|
2460
2458
|
}
|
|
2461
2459
|
setMinuteValue(minutes) {
|
|
2462
|
-
const m = this.dateTimeAdapter.setMinutes(this.
|
|
2460
|
+
const m = this.dateTimeAdapter.setMinutes(this.pickerDateTime, minutes);
|
|
2463
2461
|
this.selectedChange.emit(m);
|
|
2464
2462
|
this.cdRef.markForCheck();
|
|
2465
2463
|
}
|
|
2466
2464
|
setSecondValue(seconds) {
|
|
2467
|
-
const m = this.dateTimeAdapter.setSeconds(this.
|
|
2465
|
+
const m = this.dateTimeAdapter.setSeconds(this.pickerDateTime, seconds);
|
|
2468
2466
|
this.selectedChange.emit(m);
|
|
2469
2467
|
this.cdRef.markForCheck();
|
|
2470
2468
|
}
|
|
@@ -2526,36 +2524,36 @@ class OwlTimerComponent {
|
|
|
2526
2524
|
this.compareSeconds(-this.stepSecond, this.minDateTime) > -1);
|
|
2527
2525
|
}
|
|
2528
2526
|
/**
|
|
2529
|
-
*
|
|
2527
|
+
* Adjust the displayed hour and compare it to the given date.
|
|
2530
2528
|
* 1 is after the comparedDate
|
|
2531
2529
|
* -1 is before the comparedDate
|
|
2532
2530
|
* 0 is equal the comparedDate
|
|
2533
2531
|
* */
|
|
2534
2532
|
compareHours(amount, comparedDate) {
|
|
2535
|
-
const hours = this.dateTimeAdapter.getHours(this.
|
|
2536
|
-
const result = this.dateTimeAdapter.setHours(this.
|
|
2533
|
+
const hours = this.dateTimeAdapter.getHours(this.pickerDateTime) + amount;
|
|
2534
|
+
const result = this.dateTimeAdapter.setHours(this.pickerDateTime, hours);
|
|
2537
2535
|
return this.dateTimeAdapter.compare(result, comparedDate);
|
|
2538
2536
|
}
|
|
2539
2537
|
/**
|
|
2540
|
-
*
|
|
2538
|
+
* Adjust the displayed minute and compare it to the given date.
|
|
2541
2539
|
* 1 is after the comparedDate
|
|
2542
2540
|
* -1 is before the comparedDate
|
|
2543
2541
|
* 0 is equal the comparedDate
|
|
2544
2542
|
* */
|
|
2545
2543
|
compareMinutes(amount, comparedDate) {
|
|
2546
|
-
const minutes = this.dateTimeAdapter.getMinutes(this.
|
|
2547
|
-
const result = this.dateTimeAdapter.setMinutes(this.
|
|
2544
|
+
const minutes = this.dateTimeAdapter.getMinutes(this.pickerDateTime) + amount;
|
|
2545
|
+
const result = this.dateTimeAdapter.setMinutes(this.pickerDateTime, minutes);
|
|
2548
2546
|
return this.dateTimeAdapter.compare(result, comparedDate);
|
|
2549
2547
|
}
|
|
2550
2548
|
/**
|
|
2551
|
-
*
|
|
2549
|
+
* Adjust the displayed second and compare it to the given date.
|
|
2552
2550
|
* 1 is after the comparedDate
|
|
2553
2551
|
* -1 is before the comparedDate
|
|
2554
2552
|
* 0 is equal the comparedDate
|
|
2555
2553
|
* */
|
|
2556
2554
|
compareSeconds(amount, comparedDate) {
|
|
2557
|
-
const seconds = this.dateTimeAdapter.getSeconds(this.
|
|
2558
|
-
const result = this.dateTimeAdapter.setSeconds(this.
|
|
2555
|
+
const seconds = this.dateTimeAdapter.getSeconds(this.pickerDateTime) + amount;
|
|
2556
|
+
const result = this.dateTimeAdapter.setSeconds(this.pickerDateTime, seconds);
|
|
2559
2557
|
return this.dateTimeAdapter.compare(result, comparedDate);
|
|
2560
2558
|
}
|
|
2561
2559
|
/**
|
|
@@ -2567,10 +2565,10 @@ class OwlTimerComponent {
|
|
|
2567
2565
|
? obj
|
|
2568
2566
|
: null;
|
|
2569
2567
|
}
|
|
2570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2571
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2568
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlTimerComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2569
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlTimerComponent, isStandalone: false, selector: "owl-date-time-timer", inputs: { pickerDateTime: "pickerDateTime", minDateTime: "minDateTime", maxDateTime: "maxDateTime", showSecondsTimer: "showSecondsTimer", hour12Timer: "hour12Timer", stepHour: "stepHour", stepMinute: "stepMinute", stepSecond: "stepSecond" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class.owl-dt-timer": "owlDTTimerClass", "attr.tabindex": "owlDTTimeTabIndex" } }, exportAs: ["owlDateTimeTimer"], ngImport: i0, template: "<owl-date-time-timer-box\r\n [upBtnAriaLabel]=\"upHourButtonLabel\"\r\n [downBtnAriaLabel]=\"downHourButtonLabel\"\r\n [upBtnDisabled]=\"!upHourEnabled()\"\r\n [downBtnDisabled]=\"!downHourEnabled()\"\r\n [boxValue]=\"hourBoxValue\"\r\n [value]=\"hourValue\"\r\n [min]=\"0\"\r\n [max]=\"23\"\r\n [step]=\"stepHour\"\r\n [inputLabel]=\"'Hour'\"\r\n (inputChange)=\"setHourValueViaInput($event)\"\r\n (valueChange)=\"setHourValue($event)\"\r\n></owl-date-time-timer-box>\r\n<owl-date-time-timer-box\r\n [showDivider]=\"true\"\r\n [upBtnAriaLabel]=\"upMinuteButtonLabel\"\r\n [downBtnAriaLabel]=\"downMinuteButtonLabel\"\r\n [upBtnDisabled]=\"!upMinuteEnabled()\"\r\n [downBtnDisabled]=\"!downMinuteEnabled()\"\r\n [value]=\"minuteValue\"\r\n [min]=\"0\"\r\n [max]=\"59\"\r\n [step]=\"stepMinute\"\r\n [inputLabel]=\"'Minute'\"\r\n (inputChange)=\"setMinuteValue($event)\"\r\n (valueChange)=\"setMinuteValue($event)\"\r\n></owl-date-time-timer-box>\r\n@if (showSecondsTimer) {\r\n <owl-date-time-timer-box\r\n [showDivider]=\"true\"\r\n [upBtnAriaLabel]=\"upSecondButtonLabel\"\r\n [downBtnAriaLabel]=\"downSecondButtonLabel\"\r\n [upBtnDisabled]=\"!upSecondEnabled()\"\r\n [downBtnDisabled]=\"!downSecondEnabled()\"\r\n [value]=\"secondValue\"\r\n [min]=\"0\"\r\n [max]=\"59\"\r\n [step]=\"stepSecond\"\r\n [inputLabel]=\"'Second'\"\r\n (inputChange)=\"setSecondValue($event)\"\r\n (valueChange)=\"setSecondValue($event)\"\r\n ></owl-date-time-timer-box>\r\n}\r\n@if (hour12Timer) {\r\n <div class=\"owl-dt-timer-hour12\">\r\n <button\r\n class=\"owl-dt-control-button owl-dt-timer-hour12-box\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"setMeridiem($event)\"\r\n >\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n {{ hour12ButtonLabel }}\r\n </span>\r\n </button>\r\n </div>\r\n}\r\n", styles: [""], dependencies: [{ kind: "component", type: OwlTimerBoxComponent, selector: "owl-date-time-timer-box", inputs: ["showDivider", "upBtnAriaLabel", "upBtnDisabled", "downBtnAriaLabel", "downBtnDisabled", "boxValue", "value", "min", "max", "step", "inputLabel"], outputs: ["valueChange", "inputChange"], exportAs: ["owlDateTimeTimerBox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2572
2570
|
}
|
|
2573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlTimerComponent, decorators: [{
|
|
2574
2572
|
type: Component,
|
|
2575
2573
|
args: [{ exportAs: 'owlDateTimeTimer', selector: 'owl-date-time-timer', preserveWhitespaces: false, standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2576
2574
|
'[class.owl-dt-timer]': 'owlDTTimerClass',
|
|
@@ -2578,7 +2576,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2578
2576
|
}, template: "<owl-date-time-timer-box\r\n [upBtnAriaLabel]=\"upHourButtonLabel\"\r\n [downBtnAriaLabel]=\"downHourButtonLabel\"\r\n [upBtnDisabled]=\"!upHourEnabled()\"\r\n [downBtnDisabled]=\"!downHourEnabled()\"\r\n [boxValue]=\"hourBoxValue\"\r\n [value]=\"hourValue\"\r\n [min]=\"0\"\r\n [max]=\"23\"\r\n [step]=\"stepHour\"\r\n [inputLabel]=\"'Hour'\"\r\n (inputChange)=\"setHourValueViaInput($event)\"\r\n (valueChange)=\"setHourValue($event)\"\r\n></owl-date-time-timer-box>\r\n<owl-date-time-timer-box\r\n [showDivider]=\"true\"\r\n [upBtnAriaLabel]=\"upMinuteButtonLabel\"\r\n [downBtnAriaLabel]=\"downMinuteButtonLabel\"\r\n [upBtnDisabled]=\"!upMinuteEnabled()\"\r\n [downBtnDisabled]=\"!downMinuteEnabled()\"\r\n [value]=\"minuteValue\"\r\n [min]=\"0\"\r\n [max]=\"59\"\r\n [step]=\"stepMinute\"\r\n [inputLabel]=\"'Minute'\"\r\n (inputChange)=\"setMinuteValue($event)\"\r\n (valueChange)=\"setMinuteValue($event)\"\r\n></owl-date-time-timer-box>\r\n@if (showSecondsTimer) {\r\n <owl-date-time-timer-box\r\n [showDivider]=\"true\"\r\n [upBtnAriaLabel]=\"upSecondButtonLabel\"\r\n [downBtnAriaLabel]=\"downSecondButtonLabel\"\r\n [upBtnDisabled]=\"!upSecondEnabled()\"\r\n [downBtnDisabled]=\"!downSecondEnabled()\"\r\n [value]=\"secondValue\"\r\n [min]=\"0\"\r\n [max]=\"59\"\r\n [step]=\"stepSecond\"\r\n [inputLabel]=\"'Second'\"\r\n (inputChange)=\"setSecondValue($event)\"\r\n (valueChange)=\"setSecondValue($event)\"\r\n ></owl-date-time-timer-box>\r\n}\r\n@if (hour12Timer) {\r\n <div class=\"owl-dt-timer-hour12\">\r\n <button\r\n class=\"owl-dt-control-button owl-dt-timer-hour12-box\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"setMeridiem($event)\"\r\n >\r\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\r\n {{ hour12ButtonLabel }}\r\n </span>\r\n </button>\r\n </div>\r\n}\r\n" }]
|
|
2579
2577
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
2580
2578
|
type: Optional
|
|
2581
|
-
}] }], propDecorators: {
|
|
2579
|
+
}] }], propDecorators: { pickerDateTime: [{
|
|
2582
2580
|
type: Input
|
|
2583
2581
|
}], minDateTime: [{
|
|
2584
2582
|
type: Input
|
|
@@ -2614,12 +2612,12 @@ class OwlDateTimeContainerComponent {
|
|
|
2614
2612
|
get pickerOpenedStream() {
|
|
2615
2613
|
return this.pickerOpened$.asObservable();
|
|
2616
2614
|
}
|
|
2617
|
-
get
|
|
2618
|
-
return this.
|
|
2615
|
+
get pickerDateTime() {
|
|
2616
|
+
return this._clampedPickerDateTime;
|
|
2619
2617
|
}
|
|
2620
|
-
set
|
|
2618
|
+
set pickerDateTime(value) {
|
|
2621
2619
|
if (value) {
|
|
2622
|
-
this.
|
|
2620
|
+
this._clampedPickerDateTime = this.dateTimeAdapter.clampDate(value, this.picker.minDateTime, this.picker.maxDateTime);
|
|
2623
2621
|
}
|
|
2624
2622
|
this.cdRef.markForCheck();
|
|
2625
2623
|
}
|
|
@@ -2754,7 +2752,7 @@ class OwlDateTimeContainerComponent {
|
|
|
2754
2752
|
if (this.picker.isInSingleMode) {
|
|
2755
2753
|
result = this.dateSelectedInSingleMode(date);
|
|
2756
2754
|
if (result) {
|
|
2757
|
-
this.
|
|
2755
|
+
this.pickerDateTime = result;
|
|
2758
2756
|
this.picker.select(result);
|
|
2759
2757
|
}
|
|
2760
2758
|
else {
|
|
@@ -2768,18 +2766,18 @@ class OwlDateTimeContainerComponent {
|
|
|
2768
2766
|
if (this.picker.isInRangeMode) {
|
|
2769
2767
|
result = this.dateSelectedInRangeMode(date);
|
|
2770
2768
|
if (result) {
|
|
2771
|
-
this.
|
|
2769
|
+
this.pickerDateTime = result[this.activeSelectedIndex];
|
|
2772
2770
|
this.picker.select(result);
|
|
2773
2771
|
}
|
|
2774
2772
|
}
|
|
2775
2773
|
}
|
|
2776
2774
|
timeSelected(time) {
|
|
2777
|
-
this.
|
|
2778
|
-
if (!this.picker.dateTimeChecker(this.
|
|
2775
|
+
this.pickerDateTime = this.dateTimeAdapter.clone(time);
|
|
2776
|
+
if (!this.picker.dateTimeChecker(this.pickerDateTime)) {
|
|
2779
2777
|
return;
|
|
2780
2778
|
}
|
|
2781
2779
|
if (this.picker.isInSingleMode) {
|
|
2782
|
-
this.picker.select(this.
|
|
2780
|
+
this.picker.select(this.pickerDateTime);
|
|
2783
2781
|
return;
|
|
2784
2782
|
}
|
|
2785
2783
|
if (this.picker.isInRangeMode) {
|
|
@@ -2788,15 +2786,15 @@ class OwlDateTimeContainerComponent {
|
|
|
2788
2786
|
// In this case, we set both the 'from' and 'to' the same value
|
|
2789
2787
|
if ((this.activeSelectedIndex === 0 &&
|
|
2790
2788
|
selecteds[1] &&
|
|
2791
|
-
this.dateTimeAdapter.compare(this.
|
|
2789
|
+
this.dateTimeAdapter.compare(this.pickerDateTime, selecteds[1]) === 1) ||
|
|
2792
2790
|
(this.activeSelectedIndex === 1 &&
|
|
2793
2791
|
selecteds[0] &&
|
|
2794
|
-
this.dateTimeAdapter.compare(this.
|
|
2795
|
-
selecteds[0] = this.
|
|
2796
|
-
selecteds[1] = this.
|
|
2792
|
+
this.dateTimeAdapter.compare(this.pickerDateTime, selecteds[0]) === -1)) {
|
|
2793
|
+
selecteds[0] = this.pickerDateTime;
|
|
2794
|
+
selecteds[1] = this.pickerDateTime;
|
|
2797
2795
|
}
|
|
2798
2796
|
else {
|
|
2799
|
-
selecteds[this.activeSelectedIndex] = this.
|
|
2797
|
+
selecteds[this.activeSelectedIndex] = this.pickerDateTime;
|
|
2800
2798
|
}
|
|
2801
2799
|
if (selecteds[0]) {
|
|
2802
2800
|
this.retainStartTime = this.dateTimeAdapter.clone(selecteds[0]);
|
|
@@ -2819,7 +2817,7 @@ class OwlDateTimeContainerComponent {
|
|
|
2819
2817
|
* Handle click on set button
|
|
2820
2818
|
*/
|
|
2821
2819
|
onSetClicked(event) {
|
|
2822
|
-
if (!this.picker.dateTimeChecker(this.
|
|
2820
|
+
if (!this.picker.dateTimeChecker(this.pickerDateTime)) {
|
|
2823
2821
|
this.hidePicker$.next(null);
|
|
2824
2822
|
event.preventDefault();
|
|
2825
2823
|
return;
|
|
@@ -2911,13 +2909,13 @@ class OwlDateTimeContainerComponent {
|
|
|
2911
2909
|
this.activeSelectedIndex = index;
|
|
2912
2910
|
const selected = this.picker.selecteds[this.activeSelectedIndex];
|
|
2913
2911
|
if (this.picker.selecteds && selected) {
|
|
2914
|
-
this.
|
|
2912
|
+
this.pickerDateTime = this.dateTimeAdapter.clone(selected);
|
|
2915
2913
|
}
|
|
2916
2914
|
}
|
|
2917
2915
|
return;
|
|
2918
2916
|
}
|
|
2919
2917
|
initPicker() {
|
|
2920
|
-
this.
|
|
2918
|
+
this.pickerDateTime = this.picker.startAt || this.dateTimeAdapter.now();
|
|
2921
2919
|
this.activeSelectedIndex = this.picker.selectMode === 'rangeTo' ? 1 : 0;
|
|
2922
2920
|
}
|
|
2923
2921
|
/**
|
|
@@ -3001,7 +2999,7 @@ class OwlDateTimeContainerComponent {
|
|
|
3001
2999
|
let result;
|
|
3002
3000
|
// if the picker is 'both', update the calendar date's time value
|
|
3003
3001
|
if (this.picker.pickerType === 'both') {
|
|
3004
|
-
result = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(date), this.dateTimeAdapter.getMonth(date), this.dateTimeAdapter.getDate(date), this.dateTimeAdapter.getHours(this.
|
|
3002
|
+
result = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(date), this.dateTimeAdapter.getMonth(date), this.dateTimeAdapter.getDate(date), this.dateTimeAdapter.getHours(this.pickerDateTime), this.dateTimeAdapter.getMinutes(this.pickerDateTime), this.dateTimeAdapter.getSeconds(this.pickerDateTime));
|
|
3005
3003
|
result = this.dateTimeAdapter.clampDate(result, this.picker.minDateTime, this.picker.maxDateTime);
|
|
3006
3004
|
}
|
|
3007
3005
|
else {
|
|
@@ -3042,10 +3040,10 @@ class OwlDateTimeContainerComponent {
|
|
|
3042
3040
|
}
|
|
3043
3041
|
return duration;
|
|
3044
3042
|
}
|
|
3045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3046
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3043
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeContainerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3044
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: OwlDateTimeContainerComponent, isStandalone: false, selector: "owl-date-time-container", host: { listeners: { "animate.enter": "onAnimateEnter($event)", "animate.leave": "onAnimateLeave($event)" }, properties: { "class.owl-dt-container": "owlDTContainerClass", "class.owl-dt-popup-container": "owlDTPopupContainerClass", "class.owl-dt-dialog-container": "owlDTDialogContainerClass", "class.owl-dt-inline-container": "owlDTInlineContainerClass", "class.owl-dt-container-disabled": "owlDTContainerDisabledClass", "attr.id": "owlDTContainerId" } }, viewQueries: [{ propertyName: "calendar", first: true, predicate: OwlCalendarComponent, descendants: true }, { propertyName: "timer", first: true, predicate: OwlTimerComponent, descendants: true }], exportAs: ["owlDateTimeContainer"], ngImport: i0, template: "<div\r\n [cdkTrapFocus]=\"picker.pickerMode !== 'inline'\"\r\n class=\"owl-dt-container-inner\"\r\n>\r\n @if (pickerType === 'both' || pickerType === 'calendar') {\r\n <owl-date-time-calendar\r\n class=\"owl-dt-container-row\"\r\n [firstDayOfWeek]=\"picker.firstDayOfWeek\"\r\n [(pickerDateTime)]=\"pickerDateTime\"\r\n [selected]=\"picker.selected\"\r\n [selecteds]=\"picker.selecteds\"\r\n [selectMode]=\"picker.selectMode\"\r\n [minDate]=\"picker.minDateTime\"\r\n [maxDate]=\"picker.maxDateTime\"\r\n [dateFilter]=\"picker.dateTimeFilter\"\r\n [startView]=\"picker.startView\"\r\n [yearOnly]=\"picker.yearOnly\"\r\n [showCalendarWeeks]=\"picker.showCalendarWeeks\"\r\n [multiyearOnly]=\"picker.multiyearOnly\"\r\n [hideOtherMonths]=\"picker.hideOtherMonths\"\r\n (yearSelected)=\"picker.selectYear($event)\"\r\n (monthSelected)=\"picker.selectMonth($event)\"\r\n (dateClicked)=\"picker.selectDate($event)\"\r\n (selectedChange)=\"dateSelected($event)\"\r\n ></owl-date-time-calendar>\r\n }\r\n @if (pickerType === 'both' || pickerType === 'timer') {\r\n <owl-date-time-timer\r\n class=\"owl-dt-container-row\"\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [minDateTime]=\"picker.minDateTime\"\r\n [maxDateTime]=\"picker.maxDateTime\"\r\n [showSecondsTimer]=\"picker.showSecondsTimer\"\r\n [hour12Timer]=\"picker.hour12Timer\"\r\n [stepHour]=\"picker.stepHour\"\r\n [stepMinute]=\"picker.stepMinute\"\r\n [stepSecond]=\"picker.stepSecond\"\r\n (selectedChange)=\"timeSelected($event)\"\r\n ></owl-date-time-timer>\r\n }\r\n @if (picker.isInRangeMode) {\r\n <div\r\n role=\"radiogroup\"\r\n class=\"owl-dt-container-info owl-dt-container-row\"\r\n >\r\n <div\r\n role=\"radio\"\r\n [tabindex]=\"activeSelectedIndex === 0 ? 0 : -1\"\r\n [attr.aria-checked]=\"activeSelectedIndex === 0\"\r\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-from\"\r\n [ngClass]=\"{\r\n 'owl-dt-container-info-active': activeSelectedIndex === 0,\r\n }\"\r\n (click)=\"handleClickOnInfoGroup($event, 0)\"\r\n (keydown)=\"handleKeydownOnInfoGroup($event, to, 0)\"\r\n #from\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-container-range-content\"\r\n tabindex=\"-1\"\r\n >\r\n <span class=\"owl-dt-container-info-label\"\r\n >{{ fromLabel }}:</span\r\n >\r\n <span class=\"owl-dt-container-info-value\">{{\r\n fromFormattedValue\r\n }}</span>\r\n </span>\r\n </div>\r\n <div\r\n role=\"radio\"\r\n [tabindex]=\"activeSelectedIndex === 1 ? 0 : -1\"\r\n [attr.aria-checked]=\"activeSelectedIndex === 1\"\r\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-to\"\r\n [ngClass]=\"{\r\n 'owl-dt-container-info-active': activeSelectedIndex === 1,\r\n }\"\r\n (click)=\"handleClickOnInfoGroup($event, 1)\"\r\n (keydown)=\"handleKeydownOnInfoGroup($event, from, 1)\"\r\n #to\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-container-range-content\"\r\n tabindex=\"-1\"\r\n >\r\n <span class=\"owl-dt-container-info-label\"\r\n >{{ toLabel }}:</span\r\n >\r\n <span class=\"owl-dt-container-info-value\">{{\r\n toFormattedValue\r\n }}</span>\r\n </span>\r\n </div>\r\n </div>\r\n }\r\n @if (showControlButtons) {\r\n <div class=\"owl-dt-container-buttons owl-dt-container-row\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"onCancelClicked($event)\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ cancelLabel }}\r\n </span>\r\n </button>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"onSetClicked($event)\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ setLabel }}\r\n </span>\r\n </button>\r\n </div>\r\n }\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: OwlTimerComponent, selector: "owl-date-time-timer", inputs: ["pickerDateTime", "minDateTime", "maxDateTime", "showSecondsTimer", "hour12Timer", "stepHour", "stepMinute", "stepSecond"], outputs: ["selectedChange"], exportAs: ["owlDateTimeTimer"] }, { kind: "component", type: OwlCalendarComponent, selector: "owl-date-time-calendar", inputs: ["minDate", "maxDate", "pickerDateTime", "selected", "selecteds", "dateFilter", "firstDayOfWeek", "selectMode", "startView", "yearOnly", "showCalendarWeeks", "multiyearOnly", "hideOtherMonths"], outputs: ["pickerDateTimeChange", "dateClicked", "selectedChange", "userSelection", "yearSelected", "monthSelected"], exportAs: ["owlDateTimeCalendar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3047
3045
|
}
|
|
3048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeContainerComponent, decorators: [{
|
|
3049
3047
|
type: Component,
|
|
3050
3048
|
args: [{ exportAs: 'owlDateTimeContainer', selector: 'owl-date-time-container', changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, standalone: false, host: {
|
|
3051
3049
|
'(animate.enter)': 'onAnimateEnter($event)',
|
|
@@ -3056,7 +3054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3056
3054
|
'[class.owl-dt-inline-container]': 'owlDTInlineContainerClass',
|
|
3057
3055
|
'[class.owl-dt-container-disabled]': 'owlDTContainerDisabledClass',
|
|
3058
3056
|
'[attr.id]': 'owlDTContainerId',
|
|
3059
|
-
}, template: "<div\r\n [cdkTrapFocus]=\"picker.pickerMode !== 'inline'\"\r\n class=\"owl-dt-container-inner\"\r\n>\r\n @if (pickerType === 'both' || pickerType === 'calendar') {\r\n <owl-date-time-calendar\r\n class=\"owl-dt-container-row\"\r\n [firstDayOfWeek]=\"picker.firstDayOfWeek\"\r\n [(
|
|
3057
|
+
}, template: "<div\r\n [cdkTrapFocus]=\"picker.pickerMode !== 'inline'\"\r\n class=\"owl-dt-container-inner\"\r\n>\r\n @if (pickerType === 'both' || pickerType === 'calendar') {\r\n <owl-date-time-calendar\r\n class=\"owl-dt-container-row\"\r\n [firstDayOfWeek]=\"picker.firstDayOfWeek\"\r\n [(pickerDateTime)]=\"pickerDateTime\"\r\n [selected]=\"picker.selected\"\r\n [selecteds]=\"picker.selecteds\"\r\n [selectMode]=\"picker.selectMode\"\r\n [minDate]=\"picker.minDateTime\"\r\n [maxDate]=\"picker.maxDateTime\"\r\n [dateFilter]=\"picker.dateTimeFilter\"\r\n [startView]=\"picker.startView\"\r\n [yearOnly]=\"picker.yearOnly\"\r\n [showCalendarWeeks]=\"picker.showCalendarWeeks\"\r\n [multiyearOnly]=\"picker.multiyearOnly\"\r\n [hideOtherMonths]=\"picker.hideOtherMonths\"\r\n (yearSelected)=\"picker.selectYear($event)\"\r\n (monthSelected)=\"picker.selectMonth($event)\"\r\n (dateClicked)=\"picker.selectDate($event)\"\r\n (selectedChange)=\"dateSelected($event)\"\r\n ></owl-date-time-calendar>\r\n }\r\n @if (pickerType === 'both' || pickerType === 'timer') {\r\n <owl-date-time-timer\r\n class=\"owl-dt-container-row\"\r\n [pickerDateTime]=\"pickerDateTime\"\r\n [minDateTime]=\"picker.minDateTime\"\r\n [maxDateTime]=\"picker.maxDateTime\"\r\n [showSecondsTimer]=\"picker.showSecondsTimer\"\r\n [hour12Timer]=\"picker.hour12Timer\"\r\n [stepHour]=\"picker.stepHour\"\r\n [stepMinute]=\"picker.stepMinute\"\r\n [stepSecond]=\"picker.stepSecond\"\r\n (selectedChange)=\"timeSelected($event)\"\r\n ></owl-date-time-timer>\r\n }\r\n @if (picker.isInRangeMode) {\r\n <div\r\n role=\"radiogroup\"\r\n class=\"owl-dt-container-info owl-dt-container-row\"\r\n >\r\n <div\r\n role=\"radio\"\r\n [tabindex]=\"activeSelectedIndex === 0 ? 0 : -1\"\r\n [attr.aria-checked]=\"activeSelectedIndex === 0\"\r\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-from\"\r\n [ngClass]=\"{\r\n 'owl-dt-container-info-active': activeSelectedIndex === 0,\r\n }\"\r\n (click)=\"handleClickOnInfoGroup($event, 0)\"\r\n (keydown)=\"handleKeydownOnInfoGroup($event, to, 0)\"\r\n #from\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-container-range-content\"\r\n tabindex=\"-1\"\r\n >\r\n <span class=\"owl-dt-container-info-label\"\r\n >{{ fromLabel }}:</span\r\n >\r\n <span class=\"owl-dt-container-info-value\">{{\r\n fromFormattedValue\r\n }}</span>\r\n </span>\r\n </div>\r\n <div\r\n role=\"radio\"\r\n [tabindex]=\"activeSelectedIndex === 1 ? 0 : -1\"\r\n [attr.aria-checked]=\"activeSelectedIndex === 1\"\r\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-to\"\r\n [ngClass]=\"{\r\n 'owl-dt-container-info-active': activeSelectedIndex === 1,\r\n }\"\r\n (click)=\"handleClickOnInfoGroup($event, 1)\"\r\n (keydown)=\"handleKeydownOnInfoGroup($event, from, 1)\"\r\n #to\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-container-range-content\"\r\n tabindex=\"-1\"\r\n >\r\n <span class=\"owl-dt-container-info-label\"\r\n >{{ toLabel }}:</span\r\n >\r\n <span class=\"owl-dt-container-info-value\">{{\r\n toFormattedValue\r\n }}</span>\r\n </span>\r\n </div>\r\n </div>\r\n }\r\n @if (showControlButtons) {\r\n <div class=\"owl-dt-container-buttons owl-dt-container-row\">\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"onCancelClicked($event)\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ cancelLabel }}\r\n </span>\r\n </button>\r\n <button\r\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n (click)=\"onSetClicked($event)\"\r\n >\r\n <span\r\n class=\"owl-dt-control-content owl-dt-control-button-content\"\r\n tabindex=\"-1\"\r\n >\r\n {{ setLabel }}\r\n </span>\r\n </button>\r\n </div>\r\n }\r\n</div>\r\n" }]
|
|
3060
3058
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: DateTimeAdapter, decorators: [{
|
|
3061
3059
|
type: Optional
|
|
3062
3060
|
}] }], propDecorators: { calendar: [{
|
|
@@ -3139,7 +3137,8 @@ class OwlDialogRef {
|
|
|
3139
3137
|
/**
|
|
3140
3138
|
* The instance of component opened into modal
|
|
3141
3139
|
* */
|
|
3142
|
-
this.componentInstance = signal(undefined,
|
|
3140
|
+
this.componentInstance = signal(undefined, /* @ts-ignore */
|
|
3141
|
+
...(ngDevMode ? [{ debugName: "componentInstance" }] : /* istanbul ignore next */ []));
|
|
3143
3142
|
/** Whether the user is allowed to close the dialog. */
|
|
3144
3143
|
this.disableClose = true;
|
|
3145
3144
|
this.disableClose = this.container.config.disableClose;
|
|
@@ -3285,7 +3284,8 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
3285
3284
|
this.ariaLabelledBy = null;
|
|
3286
3285
|
/** Emits when an animation state changes. */
|
|
3287
3286
|
this.animationStateChanged = new EventEmitter();
|
|
3288
|
-
this.isAnimating = signal(false,
|
|
3287
|
+
this.isAnimating = signal(false, /* @ts-ignore */
|
|
3288
|
+
...(ngDevMode ? [{ debugName: "isAnimating" }] : /* istanbul ignore next */ []));
|
|
3289
3289
|
// for animation purpose
|
|
3290
3290
|
this.params = {
|
|
3291
3291
|
x: '0px',
|
|
@@ -3390,10 +3390,10 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
3390
3390
|
this.focusTrap.destroy();
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3394
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogContainerComponent, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: OwlDialogContainerComponent, isStandalone: false, selector: "owl-dialog-container", host: { properties: { "class.owl-dialog-container": "owlDialogContainerClass", "attr.tabindex": "owlDialogContainerTabIndex", "attr.id": "owlDialogContainerId", "attr.role": "owlDialogContainerRole", "attr.aria-labelledby": "owlDialogContainerAriaLabelledby", "attr.aria-describedby": "owlDialogContainerAriaDescribedby" } }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template [cdkPortalOutlet]></ng-template>\r\n", dependencies: [{ kind: "directive", type: i2$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] }); }
|
|
3395
3395
|
}
|
|
3396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogContainerComponent, decorators: [{
|
|
3397
3397
|
type: Component,
|
|
3398
3398
|
args: [{ selector: 'owl-dialog-container', standalone: false, host: {
|
|
3399
3399
|
'[class.owl-dialog-container]': 'owlDialogContainerClass',
|
|
@@ -3648,10 +3648,10 @@ class OwlDialogService {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3652
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i2.Location, optional: true }, { token: OWL_DIALOG_SCROLL_STRATEGY }, { token: OWL_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: OwlDialogService, optional: true, skipSelf: true }, { token: i1$1.OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3652
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogService }); }
|
|
3653
3653
|
}
|
|
3654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogService, decorators: [{
|
|
3655
3655
|
type: Injectable
|
|
3656
3656
|
}], ctorParameters: () => [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{
|
|
3657
3657
|
type: Optional
|
|
@@ -4190,10 +4190,10 @@ class OwlDateTimeComponent extends OwlDateTime {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
]);
|
|
4192
4192
|
}
|
|
4193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4194
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4193
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeComponent, deps: [{ token: i1$1.Overlay }, { token: i0.ViewContainerRef }, { token: OwlDialogService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DTPICKER_SCROLL_STRATEGY }, { token: OWL_DATE_TIME_FORMATS, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4194
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: OwlDateTimeComponent, isStandalone: false, selector: "owl-date-time", inputs: { backdropClass: "backdropClass", panelClass: "panelClass", startAt: "startAt", endAt: "endAt", pickerType: "pickerType", pickerMode: "pickerMode", disabled: "disabled", opened: "opened", scrollStrategy: "scrollStrategy" }, outputs: { afterPickerClosed: "afterPickerClosed", beforePickerOpen: "beforePickerOpen", afterPickerOpen: "afterPickerOpen", yearSelected: "yearSelected", monthSelected: "monthSelected", dateSelected: "dateSelected" }, exportAs: ["owlDateTime"], usesInheritance: true, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4195
4195
|
}
|
|
4196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeComponent, decorators: [{
|
|
4197
4197
|
type: Component,
|
|
4198
4198
|
args: [{ selector: 'owl-date-time', exportAs: 'owlDateTime', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "" }]
|
|
4199
4199
|
}], ctorParameters: () => [{ type: i1$1.Overlay }, { type: i0.ViewContainerRef }, { type: OwlDialogService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -4529,14 +4529,12 @@ class OwlDateTimeInputDirective {
|
|
|
4529
4529
|
/** Emits when the disabled state has changed */
|
|
4530
4530
|
this.disabledChange = new EventEmitter();
|
|
4531
4531
|
if (!this.dateTimeAdapter) {
|
|
4532
|
-
throw Error(`OwlDateTimePicker: No provider found for
|
|
4533
|
-
`
|
|
4534
|
-
`custom implementation.`);
|
|
4532
|
+
throw Error(`OwlDateTimePicker: No provider found for DateTimeAdapter. You must import ` +
|
|
4533
|
+
`OwlLuxonDateTimeModule at your application root or provide a custom implementation.`);
|
|
4535
4534
|
}
|
|
4536
4535
|
if (!this.dateTimeFormats) {
|
|
4537
|
-
throw Error(`OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import
|
|
4538
|
-
`
|
|
4539
|
-
`custom implementation.`);
|
|
4536
|
+
throw Error(`OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import ` +
|
|
4537
|
+
`OwlLuxonDateTimeModule at your application root or provide custom formats.`);
|
|
4540
4538
|
}
|
|
4541
4539
|
this.localeSub = this.dateTimeAdapter.localeChanges.subscribe(() => {
|
|
4542
4540
|
this.value = this.value;
|
|
@@ -4813,13 +4811,13 @@ class OwlDateTimeInputDirective {
|
|
|
4813
4811
|
}
|
|
4814
4812
|
return first === second;
|
|
4815
4813
|
}
|
|
4816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4817
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4814
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4815
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: OwlDateTimeInputDirective, isStandalone: false, selector: "input[owlDateTime]", inputs: { required: "required", owlDateTime: "owlDateTime", owlDateTimeFilter: "owlDateTimeFilter", _disabled: "_disabled", min: "min", max: "max", selectMode: "selectMode", rangeSeparator: "rangeSeparator", value: "value", values: "values" }, outputs: { dateTimeChange: "dateTimeChange", dateTimeInput: "dateTimeInput" }, host: { listeners: { "keydown": "handleKeydownOnHost($event)", "blur": "handleBlurOnHost($event)", "input": "handleInputOnHost($event)", "change": "handleChangeOnHost($event)" }, properties: { "attr.aria-haspopup": "owlDateTimeInputAriaHaspopup", "attr.aria-owns": "owlDateTimeInputAriaOwns", "attr.min": "minIso8601", "attr.max": "maxIso8601", "disabled": "owlDateTimeInputDisabled" } }, providers: [
|
|
4818
4816
|
OWL_DATETIME_VALUE_ACCESSOR$1,
|
|
4819
4817
|
OWL_DATETIME_VALIDATORS,
|
|
4820
4818
|
], exportAs: ["owlDateTimeInput"], ngImport: i0 }); }
|
|
4821
4819
|
}
|
|
4822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeInputDirective, decorators: [{
|
|
4823
4821
|
type: Directive,
|
|
4824
4822
|
args: [{
|
|
4825
4823
|
selector: 'input[owlDateTime]',
|
|
@@ -4890,10 +4888,10 @@ class NumberFixedLenPipe {
|
|
|
4890
4888
|
}
|
|
4891
4889
|
return numString;
|
|
4892
4890
|
}
|
|
4893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4894
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NumberFixedLenPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4892
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: NumberFixedLenPipe, isStandalone: false, name: "numberFixedLen" }); }
|
|
4895
4893
|
}
|
|
4896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NumberFixedLenPipe, decorators: [{
|
|
4897
4895
|
type: Pipe,
|
|
4898
4896
|
args: [{
|
|
4899
4897
|
name: 'numberFixedLen',
|
|
@@ -5092,11 +5090,11 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
5092
5090
|
writeValue(value) {
|
|
5093
5091
|
if (this.isInSingleMode) {
|
|
5094
5092
|
this.value = value;
|
|
5095
|
-
this.container.
|
|
5093
|
+
this.container.pickerDateTime = value;
|
|
5096
5094
|
}
|
|
5097
5095
|
else {
|
|
5098
5096
|
this.values = value;
|
|
5099
|
-
this.container.
|
|
5097
|
+
this.container.pickerDateTime = this._values[this.container.activeSelectedIndex];
|
|
5100
5098
|
}
|
|
5101
5099
|
}
|
|
5102
5100
|
registerOnChange(fn) {
|
|
@@ -5139,10 +5137,10 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
5139
5137
|
selectDate(normalizedDate) {
|
|
5140
5138
|
this.dateSelected.emit(normalizedDate);
|
|
5141
5139
|
}
|
|
5142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5143
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeInlineComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: OwlDateTimeInlineComponent, isStandalone: false, selector: "owl-date-time-inline", inputs: { pickerType: "pickerType", disabled: "disabled", selectMode: "selectMode", startAt: "startAt", endAt: "endAt", dateTimeFilter: ["owlDateTimeFilter", "dateTimeFilter"], minDateTime: ["min", "minDateTime"], maxDateTime: ["max", "maxDateTime"], value: "value", values: "values" }, outputs: { yearSelected: "yearSelected", monthSelected: "monthSelected", dateSelected: "dateSelected" }, host: { properties: { "class.owl-dt-inline": "owlDTInlineClass" } }, providers: [OWL_DATETIME_VALUE_ACCESSOR], viewQueries: [{ propertyName: "container", first: true, predicate: OwlDateTimeContainerComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<owl-date-time-container></owl-date-time-container>", styles: [":host{--container-enter-animation-duration: 0;--container-leave-animation-duration: 0}\n"], dependencies: [{ kind: "component", type: OwlDateTimeContainerComponent, selector: "owl-date-time-container", exportAs: ["owlDateTimeContainer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5144
5142
|
}
|
|
5145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeInlineComponent, decorators: [{
|
|
5146
5144
|
type: Component,
|
|
5147
5145
|
args: [{ selector: 'owl-date-time-inline', host: {
|
|
5148
5146
|
'[class.owl-dt-inline]': 'owlDTInlineClass'
|
|
@@ -5192,14 +5190,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
5192
5190
|
* dialog.module
|
|
5193
5191
|
*/
|
|
5194
5192
|
class OwlDialogModule {
|
|
5195
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5196
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5197
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5193
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5194
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogModule, declarations: [OwlDialogContainerComponent], imports: [CommonModule, A11yModule, OverlayModule, PortalModule] }); }
|
|
5195
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogModule, providers: [
|
|
5198
5196
|
OWL_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
5199
5197
|
OwlDialogService,
|
|
5200
5198
|
], imports: [CommonModule, A11yModule, OverlayModule, PortalModule] }); }
|
|
5201
5199
|
}
|
|
5202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDialogModule, decorators: [{
|
|
5203
5201
|
type: NgModule,
|
|
5204
5202
|
args: [{
|
|
5205
5203
|
imports: [CommonModule, A11yModule, OverlayModule, PortalModule],
|
|
@@ -5218,8 +5216,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
5218
5216
|
* date-time.module
|
|
5219
5217
|
*/
|
|
5220
5218
|
class OwlDateTimeModule {
|
|
5221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5222
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5220
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeModule, declarations: [OwlDateTimeTriggerDirective,
|
|
5223
5221
|
OwlDateTimeInputDirective,
|
|
5224
5222
|
OwlDateTimeComponent,
|
|
5225
5223
|
OwlDateTimeContainerComponent,
|
|
@@ -5240,13 +5238,13 @@ class OwlDateTimeModule {
|
|
|
5240
5238
|
OwlMultiYearViewComponent,
|
|
5241
5239
|
OwlYearViewComponent,
|
|
5242
5240
|
OwlMonthViewComponent] }); }
|
|
5243
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5241
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeModule, providers: [
|
|
5244
5242
|
OwlDateTimeIntl,
|
|
5245
5243
|
OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER,
|
|
5246
5244
|
...optionsProviders,
|
|
5247
5245
|
], imports: [CommonModule, OverlayModule, OwlDialogModule, A11yModule] }); }
|
|
5248
5246
|
}
|
|
5249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlDateTimeModule, decorators: [{
|
|
5250
5248
|
type: NgModule,
|
|
5251
5249
|
args: [{
|
|
5252
5250
|
imports: [CommonModule, OverlayModule, OwlDialogModule, A11yModule],
|
|
@@ -5494,10 +5492,10 @@ class LuxonDateTimeAdapter extends DateTimeAdapter {
|
|
|
5494
5492
|
setLocale(locale) {
|
|
5495
5493
|
super.setLocale(locale || 'ru');
|
|
5496
5494
|
}
|
|
5497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5498
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeAdapter, deps: [{ token: OWL_DATE_TIME_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5496
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeAdapter }); }
|
|
5499
5497
|
}
|
|
5500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeAdapter, decorators: [{
|
|
5501
5499
|
type: Injectable
|
|
5502
5500
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5503
5501
|
type: Optional
|
|
@@ -5520,16 +5518,16 @@ const OWL_LUXON_DATE_TIME_FORMATS = {
|
|
|
5520
5518
|
* luxon-date-time.module
|
|
5521
5519
|
*/
|
|
5522
5520
|
class LuxonDateTimeModule {
|
|
5523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5524
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5525
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5521
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5522
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeModule }); }
|
|
5523
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeModule, providers: [
|
|
5526
5524
|
{
|
|
5527
5525
|
provide: DateTimeAdapter,
|
|
5528
5526
|
useClass: LuxonDateTimeAdapter,
|
|
5529
5527
|
},
|
|
5530
5528
|
] }); }
|
|
5531
5529
|
}
|
|
5532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LuxonDateTimeModule, decorators: [{
|
|
5533
5531
|
type: NgModule,
|
|
5534
5532
|
args: [{
|
|
5535
5533
|
providers: [
|
|
@@ -5541,16 +5539,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
5541
5539
|
}]
|
|
5542
5540
|
}] });
|
|
5543
5541
|
class OwlLuxonDateTimeModule {
|
|
5544
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5545
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5546
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlLuxonDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5543
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: OwlLuxonDateTimeModule, imports: [LuxonDateTimeModule] }); }
|
|
5544
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlLuxonDateTimeModule, providers: [
|
|
5547
5545
|
{
|
|
5548
5546
|
provide: OWL_DATE_TIME_FORMATS,
|
|
5549
5547
|
useValue: OWL_LUXON_DATE_TIME_FORMATS,
|
|
5550
5548
|
},
|
|
5551
5549
|
], imports: [LuxonDateTimeModule] }); }
|
|
5552
5550
|
}
|
|
5553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: OwlLuxonDateTimeModule, decorators: [{
|
|
5554
5552
|
type: NgModule,
|
|
5555
5553
|
args: [{
|
|
5556
5554
|
imports: [LuxonDateTimeModule],
|
|
@@ -5811,10 +5809,10 @@ class UnixTimestampDateTimeAdapter extends DateTimeAdapter {
|
|
|
5811
5809
|
stripDirectionalityCharacters(value) {
|
|
5812
5810
|
return value.replace(/[\u200e\u200f]/g, '');
|
|
5813
5811
|
}
|
|
5814
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5815
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5812
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UnixTimestampDateTimeAdapter, deps: [{ token: OWL_DATE_TIME_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5813
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UnixTimestampDateTimeAdapter }); }
|
|
5816
5814
|
}
|
|
5817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UnixTimestampDateTimeAdapter, decorators: [{
|
|
5818
5816
|
type: Injectable
|
|
5819
5817
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5820
5818
|
type: Optional
|