carriera-intern 1.1.104 → 1.1.105
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.
|
@@ -5969,15 +5969,19 @@ class CalendarStrategy {
|
|
|
5969
5969
|
startedHeight;
|
|
5970
5970
|
FULL_SIZE;
|
|
5971
5971
|
SCROLL_TYPE;
|
|
5972
|
-
|
|
5972
|
+
zone;
|
|
5973
|
+
constructor(calendarService, startedHeight, FULL_SIZE, SCROLL_TYPE, zone) {
|
|
5973
5974
|
this.calendarService = calendarService;
|
|
5974
5975
|
this.startedHeight = startedHeight;
|
|
5975
5976
|
this.FULL_SIZE = FULL_SIZE;
|
|
5976
5977
|
this.SCROLL_TYPE = SCROLL_TYPE;
|
|
5978
|
+
this.zone = zone;
|
|
5977
5979
|
}
|
|
5978
5980
|
index$ = new Subject();
|
|
5979
5981
|
scrolledIndexChange = this.index$.pipe(distinctUntilChanged());
|
|
5980
5982
|
viewport;
|
|
5983
|
+
rafId = null;
|
|
5984
|
+
lastEmittedIndex = null;
|
|
5981
5985
|
attach(viewport) {
|
|
5982
5986
|
this.viewport = viewport;
|
|
5983
5987
|
this.viewport.setTotalContentSize(this.startedHeight);
|
|
@@ -5988,20 +5992,53 @@ class CalendarStrategy {
|
|
|
5988
5992
|
this.updateRenderedRange(this.viewport);
|
|
5989
5993
|
}
|
|
5990
5994
|
detach() {
|
|
5995
|
+
if (this.rafId !== null) {
|
|
5996
|
+
cancelAnimationFrame(this.rafId);
|
|
5997
|
+
this.rafId = null;
|
|
5998
|
+
}
|
|
5991
5999
|
this.index$.complete();
|
|
5992
6000
|
this.viewport = undefined;
|
|
5993
6001
|
}
|
|
5994
6002
|
onContentScrolled() {
|
|
5995
|
-
if (this.viewport)
|
|
5996
|
-
|
|
6003
|
+
if (!this.viewport || this.rafId !== null)
|
|
6004
|
+
return;
|
|
6005
|
+
const schedule = () => {
|
|
6006
|
+
this.rafId = requestAnimationFrame(() => {
|
|
6007
|
+
this.rafId = null;
|
|
6008
|
+
this.updateRenderedRange(this.viewport);
|
|
6009
|
+
});
|
|
6010
|
+
};
|
|
6011
|
+
if (this.zone)
|
|
6012
|
+
this.zone.runOutsideAngular(schedule);
|
|
6013
|
+
else
|
|
6014
|
+
schedule();
|
|
5997
6015
|
}
|
|
5998
6016
|
/** These do not matter for this case */
|
|
5999
6017
|
onDataLengthChanged() { }
|
|
6000
6018
|
onContentRendered() { }
|
|
6001
6019
|
onRenderedOffsetChanged() { }
|
|
6002
|
-
scrollToIndex(index, behavior) {
|
|
6003
|
-
|
|
6004
|
-
|
|
6020
|
+
scrollToIndex(index, behavior, onSettled) {
|
|
6021
|
+
this.reliableScrollToOffset(this.getOffsetForIndex(index), behavior, 0, onSettled);
|
|
6022
|
+
}
|
|
6023
|
+
reliableScrollToOffset(targetOffset, behavior, attempt, onSettled) {
|
|
6024
|
+
const viewport = this.viewport;
|
|
6025
|
+
if (!viewport)
|
|
6026
|
+
return;
|
|
6027
|
+
viewport.scrollToOffset(targetOffset, behavior);
|
|
6028
|
+
const landed = Math.abs(viewport.measureScrollOffset() - targetOffset) <= 2;
|
|
6029
|
+
if (targetOffset > 0 && behavior !== 'smooth' && !landed && attempt < 10) {
|
|
6030
|
+
const retry = () => this.reliableScrollToOffset(targetOffset, behavior, attempt + 1, onSettled);
|
|
6031
|
+
if (this.zone)
|
|
6032
|
+
this.zone.runOutsideAngular(() => requestAnimationFrame(retry));
|
|
6033
|
+
else
|
|
6034
|
+
requestAnimationFrame(retry);
|
|
6035
|
+
}
|
|
6036
|
+
else if (onSettled) {
|
|
6037
|
+
if (this.zone)
|
|
6038
|
+
this.zone.run(onSettled);
|
|
6039
|
+
else
|
|
6040
|
+
onSettled();
|
|
6041
|
+
}
|
|
6005
6042
|
}
|
|
6006
6043
|
scrollToOffset(offset, behavior) {
|
|
6007
6044
|
if (this.viewport)
|
|
@@ -6018,7 +6055,7 @@ class CalendarStrategy {
|
|
|
6018
6055
|
return;
|
|
6019
6056
|
const offset = viewport.measureScrollOffset();
|
|
6020
6057
|
const { start, end } = viewport.getRenderedRange();
|
|
6021
|
-
const viewportSize =
|
|
6058
|
+
const viewportSize = viewport.getViewportSize();
|
|
6022
6059
|
const dataLength = viewport.getDataLength();
|
|
6023
6060
|
const newRange = { start, end };
|
|
6024
6061
|
const firstVisibleIndex = this.getIndexForOffset(offset);
|
|
@@ -6035,18 +6072,26 @@ class CalendarStrategy {
|
|
|
6035
6072
|
newRange.end = Math.min(dataLength, this.getIndexForOffset(offset + viewportSize + BUFFER * 2));
|
|
6036
6073
|
}
|
|
6037
6074
|
}
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6075
|
+
if (newRange.start !== start || newRange.end !== end) {
|
|
6076
|
+
viewport.setRenderedRange(newRange);
|
|
6077
|
+
viewport.setRenderedContentOffset(this.getOffsetForIndex(newRange.start));
|
|
6078
|
+
}
|
|
6079
|
+
if (this.calendarService.selectedScroll === this.SCROLL_TYPE) {
|
|
6080
|
+
const monthChanged = firstVisibleIndex !== this.lastEmittedIndex;
|
|
6081
|
+
this.lastEmittedIndex = firstVisibleIndex;
|
|
6082
|
+
const emit = () => this.index$.next({
|
|
6043
6083
|
indx: firstVisibleIndex,
|
|
6044
6084
|
scrollOffset: offset,
|
|
6045
6085
|
cycleSize: this.FULL_SIZE,
|
|
6046
6086
|
type: this.SCROLL_TYPE,
|
|
6047
6087
|
});
|
|
6088
|
+
if (monthChanged && this.zone)
|
|
6089
|
+
this.zone.run(emit);
|
|
6090
|
+
else
|
|
6091
|
+
emit();
|
|
6092
|
+
}
|
|
6048
6093
|
}
|
|
6049
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CalendarStrategy, deps: [{ token: CalendarDateTimePickerService }, { token: String }, { token: String }, { token: String }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6094
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CalendarStrategy, deps: [{ token: CalendarDateTimePickerService }, { token: String }, { token: String }, { token: String }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6050
6095
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CalendarStrategy });
|
|
6051
6096
|
}
|
|
6052
6097
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CalendarStrategy, decorators: [{
|
|
@@ -6060,7 +6105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6060
6105
|
}] }, { type: undefined, decorators: [{
|
|
6061
6106
|
type: Inject,
|
|
6062
6107
|
args: [String]
|
|
6063
|
-
}] }] });
|
|
6108
|
+
}] }, { type: i0.NgZone }] });
|
|
6064
6109
|
|
|
6065
6110
|
class CustomDatetimePickersConstants {
|
|
6066
6111
|
static timeMinutes = ['00', '15', '30', '45'];
|
|
@@ -6133,9 +6178,12 @@ class CaCustomDateTimePickersCalendarDaysComponent {
|
|
|
6133
6178
|
const fillerCount = month.getDay();
|
|
6134
6179
|
const lastDay = new Date(month.getFullYear(), month.getMonth() + 1, 0);
|
|
6135
6180
|
const daysCount = lastDay.getDate();
|
|
6181
|
+
const TOTAL_CELLS = 42;
|
|
6182
|
+
const trailingCount = TOTAL_CELLS - fillerCount - daysCount;
|
|
6136
6183
|
this.days = [
|
|
6137
6184
|
...Array.from({ length: fillerCount }).map(() => ''),
|
|
6138
6185
|
...Array.from({ length: daysCount }).map((_, i) => i + 1),
|
|
6186
|
+
...Array.from({ length: trailingCount }).map(() => ''),
|
|
6139
6187
|
];
|
|
6140
6188
|
}
|
|
6141
6189
|
constructor() { }
|
|
@@ -6199,6 +6247,7 @@ function factory$1(dir) {
|
|
|
6199
6247
|
}
|
|
6200
6248
|
class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
6201
6249
|
calendarService;
|
|
6250
|
+
zone;
|
|
6202
6251
|
months;
|
|
6203
6252
|
dateTime;
|
|
6204
6253
|
currentIndex;
|
|
@@ -6223,9 +6272,11 @@ class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
|
6223
6272
|
selMonth;
|
|
6224
6273
|
selectedMonth;
|
|
6225
6274
|
activeMonth = 0;
|
|
6226
|
-
|
|
6275
|
+
contentReady = false;
|
|
6276
|
+
constructor(calendarService, zone) {
|
|
6227
6277
|
this.calendarService = calendarService;
|
|
6228
|
-
this.
|
|
6278
|
+
this.zone = zone;
|
|
6279
|
+
this.scrollStrategy = new CalendarStrategy(this.calendarService, CalendarMainStringEnum.CYCLE_HEIGHT, CalendarMainStringEnum.FULL_SIZE, CalendarStringEnum.MAIN, this.zone);
|
|
6229
6280
|
}
|
|
6230
6281
|
ngOnInit() {
|
|
6231
6282
|
this.initScrollListeners();
|
|
@@ -6233,7 +6284,6 @@ class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
|
6233
6284
|
initScrollListeners() {
|
|
6234
6285
|
this.selMonth = this.dateTime.getMonth();
|
|
6235
6286
|
this.selectedYearFromInput = this.dateTime.getFullYear();
|
|
6236
|
-
//this.selectedYearFromInput = this.months.getFullYear();
|
|
6237
6287
|
this.calendarService.scrollToAutoIndex
|
|
6238
6288
|
.pipe(takeUntil(this.destroy$))
|
|
6239
6289
|
.subscribe((indx) => {
|
|
@@ -6255,14 +6305,9 @@ class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
|
6255
6305
|
.pipe(takeUntil(this.destroy$))
|
|
6256
6306
|
.subscribe((res) => {
|
|
6257
6307
|
setTimeout(() => {
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
}
|
|
6262
|
-
else {
|
|
6263
|
-
this.scrollStrategy.scrollToIndex(this.currentIndex, CalendarStringEnum.AUTO);
|
|
6264
|
-
}
|
|
6265
|
-
}, 200);
|
|
6308
|
+
const indx = res ? this.findIndexInMonth(res) : this.currentIndex;
|
|
6309
|
+
this.scrollStrategy.scrollToIndex(indx, CalendarStringEnum.AUTO, () => (this.contentReady = true));
|
|
6310
|
+
});
|
|
6266
6311
|
});
|
|
6267
6312
|
if (this.isMonthAndYearOnly) {
|
|
6268
6313
|
setTimeout(() => {
|
|
@@ -6315,7 +6360,7 @@ class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
|
6315
6360
|
this.destroy$.next();
|
|
6316
6361
|
this.destroy$.complete();
|
|
6317
6362
|
}
|
|
6318
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickerCalendarDatesMainComponent, deps: [{ token: CalendarDateTimePickerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickerCalendarDatesMainComponent, deps: [{ token: CalendarDateTimePickerService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
6319
6364
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: CaCustomDateTimePickerCalendarDatesMainComponent, isStandalone: true, selector: "cai-custom-datetime-pickers--calendar-dates-main", inputs: { months: "months", dateTime: "dateTime", currentIndex: "currentIndex", currentYearIndex: "currentYearIndex", activeIndex: "activeIndex", monthYearsIndx: "monthYearsIndx", listPreview: "listPreview", isMonthAndYearOnly: "isMonthAndYearOnly" }, outputs: { setListPreviewToFull: "setListPreviewToFull", setAutoIndex: "setAutoIndex" }, providers: [
|
|
6320
6365
|
{
|
|
6321
6366
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
@@ -6324,7 +6369,7 @@ class CaCustomDateTimePickerCalendarDatesMainComponent {
|
|
|
6324
6369
|
forwardRef(() => CaCustomDateTimePickerCalendarDatesMainComponent),
|
|
6325
6370
|
],
|
|
6326
6371
|
},
|
|
6327
|
-
], ngImport: i0, template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #monthsScrollRef\n [tabindex]=\"-1\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n style=\"height: 200px; width: 100%; margin: 0\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n class=\"calendar_indicator ta-font-bold\"\n [class.full_calendar]=\"_listPreview === 'full_list'\"\n [class.current_year]=\"\n isMonthAndYearOnly\n ? selectedYearFromInput === month.getFullYear()\n : selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n [tabindex]=\"-1\"\n >\n @if (_listPreview === \"full_list\") {\n <span>{{ getMonth(month.getMonth()) }} </span>\n }\n {{ month.getFullYear() }}\n </div>\n @if (_listPreview === \"full_list\") {\n <div>\n <cai-custom-datetime-picker-calendar-days\n (selectDay)=\"selectDay($event)\"\n [index]=\"indx\"\n [month]=\"month\"\n [selectedMonth]=\"month.getMonth().toString()\"\n [year]=\"selectedYear\"\n [dateTime]=\"dateTime\"\n [activeMonth]=\"\n selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n ></cai-custom-datetime-picker-calendar-days>\n </div>\n }\n @if (_listPreview === \"month_list\") {\n <div>\n <div\n class=\"month_list\"\n [class.current_year]=\"selectedYearFromInput === month.getFullYear()\"\n >\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(0, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 0 === selMonth,\n }\"\n >\n JAN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(1, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 1 === selMonth,\n }\"\n >\n FEB\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(2, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 2 === selMonth,\n }\"\n >\n MAR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(3, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 3 === selMonth,\n }\"\n >\n APR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(4, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 4 === selMonth,\n }\"\n >\n MAY\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(5, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 5 === selMonth,\n }\"\n >\n JUN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(6, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 6 === selMonth,\n }\"\n >\n JUL\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(7, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 7 === selMonth,\n }\"\n >\n AUG\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(8, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 8 === selMonth,\n }\"\n >\n SEP\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(9, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 9 === selMonth,\n }\"\n >\n OCT\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(10, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 10 === selMonth,\n }\"\n >\n NOV\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(11, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 11 === selMonth,\n }\"\n >\n DEC\n </div>\n </div>\n </div>\n }\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: CaCustomDateTimePickersCalendarDaysComponent, selector: "cai-custom-datetime-picker-calendar-days", inputs: ["dateTime", "year", "selectedMonth", "index", "activeMonth", "month"], outputs: ["selectDay"] }] });
|
|
6372
|
+
], ngImport: i0, template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #monthsScrollRef\n [tabindex]=\"-1\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n style=\"height: 200px; width: 100%; margin: 0\"\n [style.visibility]=\"contentReady ? 'visible' : 'hidden'\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n class=\"calendar_month_block\"\n [class.month_block_full]=\"_listPreview === 'full_list'\"\n >\n <div\n class=\"calendar_indicator ta-font-bold\"\n [class.full_calendar]=\"_listPreview === 'full_list'\"\n [class.current_year]=\"\n isMonthAndYearOnly\n ? selectedYearFromInput === month.getFullYear()\n : selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n [tabindex]=\"-1\"\n >\n @if (_listPreview === \"full_list\") {\n <span>{{ getMonth(month.getMonth()) }} </span>\n }\n {{ month.getFullYear() }}\n </div>\n @if (_listPreview === \"full_list\") {\n <div>\n <cai-custom-datetime-picker-calendar-days\n (selectDay)=\"selectDay($event)\"\n [index]=\"indx\"\n [month]=\"month\"\n [selectedMonth]=\"month.getMonth().toString()\"\n [year]=\"selectedYear\"\n [dateTime]=\"dateTime\"\n [activeMonth]=\"\n selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n ></cai-custom-datetime-picker-calendar-days>\n </div>\n }\n @if (_listPreview === \"month_list\") {\n <div>\n <div\n class=\"month_list\"\n [class.current_year]=\"selectedYearFromInput === month.getFullYear()\"\n >\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(0, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 0 === selMonth,\n }\"\n >\n JAN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(1, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 1 === selMonth,\n }\"\n >\n FEB\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(2, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 2 === selMonth,\n }\"\n >\n MAR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(3, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 3 === selMonth,\n }\"\n >\n APR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(4, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 4 === selMonth,\n }\"\n >\n MAY\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(5, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 5 === selMonth,\n }\"\n >\n JUN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(6, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 6 === selMonth,\n }\"\n >\n JUL\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(7, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 7 === selMonth,\n }\"\n >\n AUG\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(8, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 8 === selMonth,\n }\"\n >\n SEP\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(9, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 9 === selMonth,\n }\"\n >\n OCT\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(10, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 10 === selMonth,\n }\"\n >\n NOV\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(11, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 11 === selMonth,\n }\"\n >\n DEC\n </div>\n </div>\n </div>\n }\n </div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n", styles: [".calendar_month_block.month_block_full{height:182px;box-sizing:border-box;overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: CaCustomDateTimePickersCalendarDaysComponent, selector: "cai-custom-datetime-picker-calendar-days", inputs: ["dateTime", "year", "selectedMonth", "index", "activeMonth", "month"], outputs: ["selectDay"] }] });
|
|
6328
6373
|
}
|
|
6329
6374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickerCalendarDatesMainComponent, decorators: [{
|
|
6330
6375
|
type: Component,
|
|
@@ -6341,8 +6386,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6341
6386
|
forwardRef(() => CaCustomDateTimePickerCalendarDatesMainComponent),
|
|
6342
6387
|
],
|
|
6343
6388
|
},
|
|
6344
|
-
], template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #monthsScrollRef\n [tabindex]=\"-1\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n style=\"height: 200px; width: 100%; margin: 0\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n class=\"calendar_indicator ta-font-bold\"\n [class.full_calendar]=\"_listPreview === 'full_list'\"\n [class.current_year]=\"\n isMonthAndYearOnly\n ? selectedYearFromInput === month.getFullYear()\n : selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n [tabindex]=\"-1\"\n >\n @if (_listPreview === \"full_list\") {\n <span>{{ getMonth(month.getMonth()) }} </span>\n }\n {{ month.getFullYear() }}\n </div>\n @if (_listPreview === \"full_list\") {\n <div>\n <cai-custom-datetime-picker-calendar-days\n (selectDay)=\"selectDay($event)\"\n [index]=\"indx\"\n [month]=\"month\"\n [selectedMonth]=\"month.getMonth().toString()\"\n [year]=\"selectedYear\"\n [dateTime]=\"dateTime\"\n [activeMonth]=\"\n selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n ></cai-custom-datetime-picker-calendar-days>\n </div>\n }\n @if (_listPreview === \"month_list\") {\n <div>\n <div\n class=\"month_list\"\n [class.current_year]=\"selectedYearFromInput === month.getFullYear()\"\n >\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(0, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 0 === selMonth,\n }\"\n >\n JAN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(1, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 1 === selMonth,\n }\"\n >\n FEB\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(2, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 2 === selMonth,\n }\"\n >\n MAR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(3, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 3 === selMonth,\n }\"\n >\n APR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(4, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 4 === selMonth,\n }\"\n >\n MAY\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(5, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 5 === selMonth,\n }\"\n >\n JUN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(6, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 6 === selMonth,\n }\"\n >\n JUL\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(7, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 7 === selMonth,\n }\"\n >\n AUG\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(8, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 8 === selMonth,\n }\"\n >\n SEP\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(9, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 9 === selMonth,\n }\"\n >\n OCT\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(10, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 10 === selMonth,\n }\"\n >\n NOV\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(11, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 11 === selMonth,\n }\"\n >\n DEC\n </div>\n </div>\n </div>\n }\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n" }]
|
|
6345
|
-
}], ctorParameters: () => [{ type: CalendarDateTimePickerService }], propDecorators: { months: [{
|
|
6389
|
+
], template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #monthsScrollRef\n [tabindex]=\"-1\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n style=\"height: 200px; width: 100%; margin: 0\"\n [style.visibility]=\"contentReady ? 'visible' : 'hidden'\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n class=\"calendar_month_block\"\n [class.month_block_full]=\"_listPreview === 'full_list'\"\n >\n <div\n class=\"calendar_indicator ta-font-bold\"\n [class.full_calendar]=\"_listPreview === 'full_list'\"\n [class.current_year]=\"\n isMonthAndYearOnly\n ? selectedYearFromInput === month.getFullYear()\n : selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n [tabindex]=\"-1\"\n >\n @if (_listPreview === \"full_list\") {\n <span>{{ getMonth(month.getMonth()) }} </span>\n }\n {{ month.getFullYear() }}\n </div>\n @if (_listPreview === \"full_list\") {\n <div>\n <cai-custom-datetime-picker-calendar-days\n (selectDay)=\"selectDay($event)\"\n [index]=\"indx\"\n [month]=\"month\"\n [selectedMonth]=\"month.getMonth().toString()\"\n [year]=\"selectedYear\"\n [dateTime]=\"dateTime\"\n [activeMonth]=\"\n selectedYearFromInput === month.getFullYear() &&\n selMonth === month.getMonth()\n \"\n ></cai-custom-datetime-picker-calendar-days>\n </div>\n }\n @if (_listPreview === \"month_list\") {\n <div>\n <div\n class=\"month_list\"\n [class.current_year]=\"selectedYearFromInput === month.getFullYear()\"\n >\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(0, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 0 === selMonth,\n }\"\n >\n JAN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(1, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 1 === selMonth,\n }\"\n >\n FEB\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(2, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 2 === selMonth,\n }\"\n >\n MAR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(3, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 3 === selMonth,\n }\"\n >\n APR\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(4, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 4 === selMonth,\n }\"\n >\n MAY\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(5, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 5 === selMonth,\n }\"\n >\n JUN\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(6, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 6 === selMonth,\n }\"\n >\n JUL\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(7, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 7 === selMonth,\n }\"\n >\n AUG\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(8, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 8 === selMonth,\n }\"\n >\n SEP\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(9, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 9 === selMonth,\n }\"\n >\n OCT\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(10, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 10 === selMonth,\n }\"\n >\n NOV\n </div>\n <div\n class=\"month_list_item ta-font-medium\"\n (click)=\"setCalendarListPreview(11, indx, $event)\"\n [ngClass]=\"{\n 'current_month ta-font-bold':\n selectedYearFromInput === month.getFullYear() &&\n 11 === selMonth,\n }\"\n >\n DEC\n </div>\n </div>\n </div>\n }\n </div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n", styles: [".calendar_month_block.month_block_full{height:182px;box-sizing:border-box;overflow:hidden}\n"] }]
|
|
6390
|
+
}], ctorParameters: () => [{ type: CalendarDateTimePickerService }, { type: i0.NgZone }], propDecorators: { months: [{
|
|
6346
6391
|
type: Input
|
|
6347
6392
|
}], dateTime: [{
|
|
6348
6393
|
type: Input
|
|
@@ -6396,6 +6441,7 @@ function factory(dir) {
|
|
|
6396
6441
|
}
|
|
6397
6442
|
class CaCustomDateTimePickersCalendarLeftComponent {
|
|
6398
6443
|
calendarService;
|
|
6444
|
+
zone;
|
|
6399
6445
|
months;
|
|
6400
6446
|
currentIndex;
|
|
6401
6447
|
isMonthAndYearOnly = false;
|
|
@@ -6417,17 +6463,15 @@ class CaCustomDateTimePickersCalendarLeftComponent {
|
|
|
6417
6463
|
_activeIndex = 0;
|
|
6418
6464
|
set activeIndex(value) {
|
|
6419
6465
|
this._activeIndex = value;
|
|
6420
|
-
if (!this.isMonthAndYearOnly && this._activeIndex)
|
|
6421
|
-
setTimeout(() => {
|
|
6422
|
-
this.scrollStrategy.scrollToIndex(this._activeIndex, CalendarStringEnum.AUTO);
|
|
6423
|
-
}, 200);
|
|
6424
6466
|
}
|
|
6425
6467
|
isHovered;
|
|
6426
6468
|
isFirstCall = true;
|
|
6469
|
+
contentReady = false;
|
|
6427
6470
|
destroy$ = new Subject();
|
|
6428
|
-
constructor(calendarService) {
|
|
6471
|
+
constructor(calendarService, zone) {
|
|
6429
6472
|
this.calendarService = calendarService;
|
|
6430
|
-
this.
|
|
6473
|
+
this.zone = zone;
|
|
6474
|
+
this.scrollStrategy = new CalendarStrategy(this.calendarService, CalendarLeftStringEnum.CYCLE_HEIGHT, CalendarLeftStringEnum.FULL_SIZE, CalendarStringEnum.LEFT, this.zone);
|
|
6431
6475
|
}
|
|
6432
6476
|
scrollStrategy;
|
|
6433
6477
|
ngOnInit() {
|
|
@@ -6453,12 +6497,12 @@ class CaCustomDateTimePickersCalendarLeftComponent {
|
|
|
6453
6497
|
.pipe(takeUntil(this.destroy$))
|
|
6454
6498
|
.subscribe((res) => {
|
|
6455
6499
|
setTimeout(() => {
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6500
|
+
const indx = this.isMonthAndYearOnly
|
|
6501
|
+
? this._currentYearIndex
|
|
6502
|
+
: res
|
|
6503
|
+
? this.findIndexInMonth(res)
|
|
6504
|
+
: this.currentIndex;
|
|
6505
|
+
this.scrollStrategy.scrollToIndex(indx, CalendarStringEnum.AUTO, () => (this.contentReady = true));
|
|
6462
6506
|
});
|
|
6463
6507
|
});
|
|
6464
6508
|
if (this.isMonthAndYearOnly) {
|
|
@@ -6491,14 +6535,14 @@ class CaCustomDateTimePickersCalendarLeftComponent {
|
|
|
6491
6535
|
this.destroy$.next();
|
|
6492
6536
|
this.destroy$.complete();
|
|
6493
6537
|
}
|
|
6494
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickersCalendarLeftComponent, deps: [{ token: CalendarDateTimePickerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6538
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickersCalendarLeftComponent, deps: [{ token: CalendarDateTimePickerService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
6495
6539
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: CaCustomDateTimePickersCalendarLeftComponent, isStandalone: true, selector: "cai-custom-datetime-pickers-calendar-left", inputs: { months: "months", currentIndex: "currentIndex", isMonthAndYearOnly: "isMonthAndYearOnly", listPreview: "listPreview", currentYearIndex: "currentYearIndex", activeIndex: "activeIndex" }, providers: [
|
|
6496
6540
|
{
|
|
6497
6541
|
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
6498
6542
|
useFactory: factory,
|
|
6499
6543
|
deps: [forwardRef(() => CaCustomDateTimePickersCalendarLeftComponent)],
|
|
6500
6544
|
},
|
|
6501
|
-
], ngImport: i0, template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #leftSideRef\n (scrolledIndexChange)=\"onScrollChanged($event)\"\n style=\"height: 290px; width: 100%; margin: 0\"\n [tabindex]=\"-1\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n (click)=\"selectMonth(indx, $event)\"\n class=\"month-year-item ta-font-medium\"\n [ngClass]=\"{\n 'current_month_year ta-font-bold': isMonthAndYearOnly\n ? indx === _currentYearIndex\n : indx === _activeIndex,\n }\"\n [innerHTML]=\"month | calendarmonths: _listPreview\"\n ></div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "pipe", type: CalendarMonthsPipe, name: "calendarmonths" }] });
|
|
6545
|
+
], ngImport: i0, template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #leftSideRef\n (scrolledIndexChange)=\"onScrollChanged($event)\"\n style=\"height: 290px; width: 100%; margin: 0\"\n [tabindex]=\"-1\"\n [style.visibility]=\"contentReady ? 'visible' : 'hidden'\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n (click)=\"selectMonth(indx, $event)\"\n class=\"month-year-item ta-font-medium\"\n [ngClass]=\"{\n 'current_month_year ta-font-bold': isMonthAndYearOnly\n ? indx === _currentYearIndex\n : indx === _activeIndex,\n }\"\n [innerHTML]=\"month | calendarmonths: _listPreview\"\n ></div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "pipe", type: CalendarMonthsPipe, name: "calendarmonths" }] });
|
|
6502
6546
|
}
|
|
6503
6547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CaCustomDateTimePickersCalendarLeftComponent, decorators: [{
|
|
6504
6548
|
type: Component,
|
|
@@ -6508,8 +6552,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6508
6552
|
useFactory: factory,
|
|
6509
6553
|
deps: [forwardRef(() => CaCustomDateTimePickersCalendarLeftComponent)],
|
|
6510
6554
|
},
|
|
6511
|
-
], template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #leftSideRef\n (scrolledIndexChange)=\"onScrollChanged($event)\"\n style=\"height: 290px; width: 100%; margin: 0\"\n [tabindex]=\"-1\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n (click)=\"selectMonth(indx, $event)\"\n class=\"month-year-item ta-font-medium\"\n [ngClass]=\"{\n 'current_month_year ta-font-bold': isMonthAndYearOnly\n ? indx === _currentYearIndex\n : indx === _activeIndex,\n }\"\n [innerHTML]=\"month | calendarmonths: _listPreview\"\n ></div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n" }]
|
|
6512
|
-
}], ctorParameters: () => [{ type: CalendarDateTimePickerService }], propDecorators: { months: [{
|
|
6555
|
+
], template: "<div (mouseover)=\"mouseOverSetItem()\">\n <cdk-virtual-scroll-viewport\n #leftSideRef\n (scrolledIndexChange)=\"onScrollChanged($event)\"\n style=\"height: 290px; width: 100%; margin: 0\"\n [tabindex]=\"-1\"\n [style.visibility]=\"contentReady ? 'visible' : 'hidden'\"\n >\n <ng-container\n *cdkVirtualFor=\"\n let month of months;\n let indx = index;\n templateCacheSize: 10\n \"\n >\n <div\n (click)=\"selectMonth(indx, $event)\"\n class=\"month-year-item ta-font-medium\"\n [ngClass]=\"{\n 'current_month_year ta-font-bold': isMonthAndYearOnly\n ? indx === _currentYearIndex\n : indx === _activeIndex,\n }\"\n [innerHTML]=\"month | calendarmonths: _listPreview\"\n ></div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n</div>\n" }]
|
|
6556
|
+
}], ctorParameters: () => [{ type: CalendarDateTimePickerService }, { type: i0.NgZone }], propDecorators: { months: [{
|
|
6513
6557
|
type: Input
|
|
6514
6558
|
}], currentIndex: [{
|
|
6515
6559
|
type: Input
|