@progress/kendo-angular-dateinputs 16.0.0-develop.2 → 16.0.0-develop.21
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/calendar/calendar.component.d.ts +42 -8
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +3 -2
- package/calendar/horizontal-view-list.component.d.ts +4 -3
- package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/multiview-calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/calendar/models/cell-context.interface.d.ts +4 -0
- package/calendar/models/selection-range.interface.d.ts +2 -2
- package/calendar/models/selection.d.ts +11 -1
- package/calendar/multiview-calendar.component.d.ts +57 -8
- package/calendar/navigation.component.d.ts +1 -1
- package/calendar/templates/cell-template.directive.d.ts +1 -1
- package/calendar/templates/century-cell-template.directive.d.ts +1 -1
- package/calendar/templates/decade-cell-template.directive.d.ts +1 -1
- package/calendar/templates/footer-template.directiv/320/265.d.ts +1 -1
- package/calendar/templates/header-template.directive.d.ts +1 -1
- package/calendar/templates/header-title-template.directive.d.ts +1 -1
- package/calendar/templates/month-cell-template.directive.d.ts +1 -1
- package/calendar/templates/navigation-item-template.directive.d.ts +1 -1
- package/calendar/templates/weeknumber-cell-template.directive.d.ts +1 -1
- package/calendar/templates/year-cell-template.directive.d.ts +1 -1
- package/calendar/view-list.component.d.ts +9 -1
- package/calendar/view.component.d.ts +2 -1
- package/common/utils.d.ts +4 -0
- package/dateinput/dateinput.component.d.ts +13 -1
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
- package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
- package/dateinput/localization/messages.d.ts +5 -1
- package/datepicker/datepicker.component.d.ts +7 -2
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
- package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +5 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-input.d.ts +1 -1
- package/daterange/date-range-popup-template.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +30 -2
- package/daterange/date-range-selection.directive.d.ts +1 -1
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +16 -1
- package/daterange/localization/daterange-popup-custom-messages.component.d.ts +1 -1
- package/daterange/localization/daterange-popup-localized-messages.directive.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +12 -1
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
- package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2020/calendar/calendar-common.module.mjs +4 -4
- package/esm2020/calendar/calendar.component.mjs +256 -66
- package/esm2020/calendar/calendar.module.mjs +12 -14
- package/esm2020/calendar/calendars.module.mjs +5 -7
- package/esm2020/calendar/footer.component.mjs +6 -6
- package/esm2020/calendar/for.directive.mjs +3 -3
- package/esm2020/calendar/header.component.mjs +44 -26
- package/esm2020/calendar/horizontal-view-list.component.mjs +16 -12
- package/esm2020/calendar/localization/calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/calendar-messages.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-messages.mjs +3 -3
- package/esm2020/calendar/models/selection.mjs +34 -1
- package/esm2020/calendar/multiview-calendar.component.mjs +268 -56
- package/esm2020/calendar/multiview-calendar.module.mjs +10 -12
- package/esm2020/calendar/navigation.component.mjs +8 -8
- package/esm2020/calendar/services/bus-view.service.mjs +3 -3
- package/esm2020/calendar/services/century-view.service.mjs +29 -8
- package/esm2020/calendar/services/decade-view.service.mjs +29 -8
- package/esm2020/calendar/services/disabled-dates.service.mjs +3 -3
- package/esm2020/calendar/services/dom.service.mjs +5 -5
- package/esm2020/calendar/services/month-view.service.mjs +29 -8
- package/esm2020/calendar/services/navigation.service.mjs +3 -3
- package/esm2020/calendar/services/scroll-sync.service.mjs +3 -3
- package/esm2020/calendar/services/selection.service.mjs +3 -3
- package/esm2020/calendar/services/weeknames.service.mjs +3 -3
- package/esm2020/calendar/services/year-view.service.mjs +29 -8
- package/esm2020/calendar/templates/cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/century-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/decade-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/footer-template.directiv/320/265.mjs +3 -3
- package/esm2020/calendar/templates/header-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/header-title-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/month-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/navigation-item-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/weeknumber-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/year-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates.module.mjs +4 -4
- package/esm2020/calendar/view-list.component.mjs +31 -10
- package/esm2020/calendar/view.component.mjs +9 -6
- package/esm2020/common/adaptive.module.mjs +4 -4
- package/esm2020/common/utils.mjs +5 -1
- package/esm2020/dateinput/dateinput.component.mjs +70 -13
- package/esm2020/dateinput/dateinput.module.mjs +4 -4
- package/esm2020/dateinput/localization/dateinput-custom-messages.component.mjs +3 -3
- package/esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs +3 -3
- package/esm2020/dateinput/localization/messages.mjs +5 -3
- package/esm2020/dateinputs.module.mjs +4 -4
- package/esm2020/datepicker/datepicker.component.mjs +45 -23
- package/esm2020/datepicker/datepicker.module.mjs +12 -14
- package/esm2020/datepicker/localization/datepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/datepicker/localization/messages.mjs +5 -3
- package/esm2020/daterange/date-range-end-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range-input.mjs +3 -3
- package/esm2020/daterange/date-range-popup-template.directive.mjs +3 -3
- package/esm2020/daterange/date-range-popup.component.mjs +75 -21
- package/esm2020/daterange/date-range-selection.directive.mjs +3 -3
- package/esm2020/daterange/date-range-start-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range.component.mjs +12 -10
- package/esm2020/daterange/date-range.module.mjs +4 -4
- package/esm2020/daterange/date-range.service.mjs +3 -4
- package/esm2020/daterange/localization/daterange-popup-custom-messages.component.mjs +3 -3
- package/esm2020/daterange/localization/daterange-popup-localized-messages.directive.mjs +3 -3
- package/esm2020/daterange/localization/messages.mjs +3 -3
- package/esm2020/datetimepicker/datetimepicker.component.mjs +56 -23
- package/esm2020/datetimepicker/datetimepicker.module.mjs +14 -16
- package/esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datetimepicker/localization/localized-messages.directive.mjs +3 -3
- package/esm2020/datetimepicker/localization/messages.mjs +5 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/messages.mjs +5 -3
- package/esm2020/timepicker/localization/timepicker-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/services/dayperiod.service.mjs +3 -3
- package/esm2020/timepicker/services/dom.service.mjs +3 -3
- package/esm2020/timepicker/services/hours.service.mjs +3 -3
- package/esm2020/timepicker/services/milliseconds.service.mjs +3 -3
- package/esm2020/timepicker/services/minutes.service.mjs +3 -3
- package/esm2020/timepicker/services/seconds.service.mjs +3 -3
- package/esm2020/timepicker/timelist.component.mjs +6 -6
- package/esm2020/timepicker/timepicker.component.mjs +42 -17
- package/esm2020/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/timepicker/timeselector.component.mjs +29 -14
- package/esm2020/virtualization/virtualization.component.mjs +4 -4
- package/esm2020/virtualization/virtualization.module.mjs +4 -4
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +1547 -763
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +1538 -766
- package/package.json +17 -20
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timepicker-localized-messages.directive.d.ts +1 -1
- package/timepicker/localization/timeselector-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timeselector-localized-messages.directive.d.ts +1 -1
- package/timepicker/timelist.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +7 -1
- package/timepicker/timeselector.component.d.ts +2 -1
- package/virtualization/virtualization.component.d.ts +1 -1
- package/progress-kendo-angular-dateinputs.d.ts +0 -9
|
@@ -42,16 +42,14 @@ import * as i0 from "@angular/core";
|
|
|
42
42
|
*/
|
|
43
43
|
export class CalendarsModule {
|
|
44
44
|
}
|
|
45
|
-
CalendarsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
CalendarsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
45
|
+
CalendarsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
+
CalendarsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, imports: [CalendarModule,
|
|
47
47
|
MultiViewCalendarModule], exports: [CalendarModule,
|
|
48
48
|
MultiViewCalendarModule] });
|
|
49
|
-
CalendarsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
50
|
-
|
|
51
|
-
MultiViewCalendarModule
|
|
52
|
-
], CalendarModule,
|
|
49
|
+
CalendarsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, imports: [CalendarModule,
|
|
50
|
+
MultiViewCalendarModule, CalendarModule,
|
|
53
51
|
MultiViewCalendarModule] });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, decorators: [{
|
|
55
53
|
type: NgModule,
|
|
56
54
|
args: [{
|
|
57
55
|
exports: [
|
|
@@ -7,8 +7,8 @@ import { getToday } from '../util';
|
|
|
7
7
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-intl";
|
|
10
|
-
import * as i2 from "@
|
|
11
|
-
import * as i3 from "@angular
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
11
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
@@ -19,8 +19,8 @@ export class FooterComponent {
|
|
|
19
19
|
this.getToday = getToday;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
22
|
+
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FooterComponent, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FooterComponent, selector: "kendo-calendar-footer", inputs: { footerTemplateRef: "footerTemplateRef", activeViewValue: "activeViewValue", currentDate: "currentDate" }, host: { properties: { "class.k-calendar-footer": "this.showFooter" } }, ngImport: i0, template: `
|
|
24
24
|
<ng-template *ngIf="footerTemplateRef; else defaultRendering"
|
|
25
25
|
[ngTemplateOutlet]="footerTemplateRef"
|
|
26
26
|
[ngTemplateOutletContext]="{ activeView: activeViewValue, date: currentDate }">
|
|
@@ -35,8 +35,8 @@ FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
35
35
|
{{intl.formatDate(getToday(), 'D')}}
|
|
36
36
|
</button>
|
|
37
37
|
</ng-template>
|
|
38
|
-
`, isInline: true,
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FooterComponent, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: 'kendo-calendar-footer',
|
|
@@ -84,9 +84,9 @@ export class KForOf {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
KForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
88
|
-
KForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
87
|
+
KForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
88
|
+
KForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: KForOf, selector: "[kFor][kForOf]", inputs: { kForOf: "kForOf", kForTrackBy: "kForTrackBy", kForTemplate: "kForTemplate" }, usesOnChanges: true, ngImport: i0 });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KForOf, decorators: [{
|
|
90
90
|
type: Directive,
|
|
91
91
|
args: [{ selector: '[kFor][kForOf]' }]
|
|
92
92
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }]; }, propDecorators: { kForOf: [{
|
|
@@ -18,9 +18,9 @@ import * as i1 from "./services/bus-view.service";
|
|
|
18
18
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
19
19
|
import * as i3 from "@progress/kendo-angular-intl";
|
|
20
20
|
import * as i4 from "./services/disabled-dates.service";
|
|
21
|
-
import * as i5 from "@
|
|
22
|
-
import * as i6 from "@angular
|
|
23
|
-
import * as i7 from "@progress/kendo-angular-
|
|
21
|
+
import * as i5 from "@angular/common";
|
|
22
|
+
import * as i6 from "@progress/kendo-angular-common";
|
|
23
|
+
import * as i7 from "@progress/kendo-angular-buttons";
|
|
24
24
|
/**
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
@@ -54,9 +54,6 @@ export class HeaderComponent {
|
|
|
54
54
|
this.getComponentClass = true;
|
|
55
55
|
this.subscriptions = new Subscription();
|
|
56
56
|
}
|
|
57
|
-
get horizontalHostClass() {
|
|
58
|
-
return this.orientation === 'horizontal';
|
|
59
|
-
}
|
|
60
57
|
get verticalHostClass() {
|
|
61
58
|
return this.orientation === 'vertical';
|
|
62
59
|
}
|
|
@@ -130,19 +127,24 @@ export class HeaderComponent {
|
|
|
130
127
|
this.cdr.markForCheck();
|
|
131
128
|
}
|
|
132
129
|
}
|
|
133
|
-
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
130
|
+
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i3.IntlService }, { token: i4.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HeaderComponent, selector: "kendo-calendar-header", inputs: { activeView: "activeView", currentDate: "currentDate", min: "min", max: "max", rangeLength: "rangeLength", titleTemplateRef: "titleTemplateRef", headerTemplateRef: "headerTemplateRef", isPrevDisabled: "isPrevDisabled", isNextDisabled: "isNextDisabled", showNavigationButtons: "showNavigationButtons", orientation: "orientation", id: "id", size: "size" }, outputs: { todayButtonClick: "todayButtonClick", prevButtonClick: "prevButtonClick", nextButtonClick: "nextButtonClick" }, host: { properties: { "class.k-calendar-header": "this.getComponentClass", "class.k-vstack": "this.verticalHostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
135
132
|
<ng-template *ngIf="headerTemplateRef; else defaultRendering"
|
|
136
133
|
[ngTemplateOutlet]="headerTemplateRef"
|
|
137
134
|
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
138
135
|
</ng-template>
|
|
139
136
|
<ng-template #defaultRendering>
|
|
140
|
-
<
|
|
137
|
+
<button
|
|
138
|
+
kendoButton
|
|
139
|
+
class="k-calendar-title"
|
|
141
140
|
role="button"
|
|
142
141
|
[id]="id"
|
|
142
|
+
type="button"
|
|
143
|
+
fillMode="flat"
|
|
144
|
+
[size]="size"
|
|
145
|
+
themeColor="primary"
|
|
143
146
|
tabindex="-1"
|
|
144
|
-
[
|
|
145
|
-
[attr.aria-disabled]="isDisabled()"
|
|
147
|
+
[disabled]="!navigate"
|
|
146
148
|
[kendoEventsOutsideAngular]="{
|
|
147
149
|
click: handleNavigation
|
|
148
150
|
}"
|
|
@@ -154,13 +156,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
154
156
|
[ngTemplateOutlet]="titleTemplateRef"
|
|
155
157
|
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
156
158
|
></ng-template>
|
|
157
|
-
</
|
|
159
|
+
</button>
|
|
158
160
|
<span class="k-spacer"></span>
|
|
159
161
|
<span class="k-calendar-nav k-hstack">
|
|
160
162
|
<button
|
|
161
163
|
*ngIf="showNavigationButtons"
|
|
162
164
|
kendoButton
|
|
163
165
|
fillMode="flat"
|
|
166
|
+
[size]="size"
|
|
164
167
|
[svgIcon]="chevronLeftIcon"
|
|
165
168
|
icon="chevron-left"
|
|
166
169
|
tabindex="-1"
|
|
@@ -173,9 +176,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
173
176
|
>
|
|
174
177
|
</button>
|
|
175
178
|
<button
|
|
176
|
-
|
|
179
|
+
kendoButton
|
|
180
|
+
class="k-calendar-nav-today"
|
|
177
181
|
tabindex="-1"
|
|
178
|
-
|
|
182
|
+
themeColor="primary"
|
|
183
|
+
fillMode="flat"
|
|
184
|
+
role="link"
|
|
185
|
+
[size]="size"
|
|
186
|
+
[disabled]="!todayAvailable"
|
|
179
187
|
[kendoEventsOutsideAngular]="{
|
|
180
188
|
click: handleTodayClick
|
|
181
189
|
}"
|
|
@@ -201,8 +209,8 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
201
209
|
</button>
|
|
202
210
|
</span>
|
|
203
211
|
</ng-template>
|
|
204
|
-
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
212
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i7.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
206
214
|
type: Component,
|
|
207
215
|
args: [{
|
|
208
216
|
selector: 'kendo-calendar-header',
|
|
@@ -212,12 +220,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
212
220
|
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
213
221
|
</ng-template>
|
|
214
222
|
<ng-template #defaultRendering>
|
|
215
|
-
<
|
|
223
|
+
<button
|
|
224
|
+
kendoButton
|
|
225
|
+
class="k-calendar-title"
|
|
216
226
|
role="button"
|
|
217
227
|
[id]="id"
|
|
228
|
+
type="button"
|
|
229
|
+
fillMode="flat"
|
|
230
|
+
[size]="size"
|
|
231
|
+
themeColor="primary"
|
|
218
232
|
tabindex="-1"
|
|
219
|
-
[
|
|
220
|
-
[attr.aria-disabled]="isDisabled()"
|
|
233
|
+
[disabled]="!navigate"
|
|
221
234
|
[kendoEventsOutsideAngular]="{
|
|
222
235
|
click: handleNavigation
|
|
223
236
|
}"
|
|
@@ -229,13 +242,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
229
242
|
[ngTemplateOutlet]="titleTemplateRef"
|
|
230
243
|
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
231
244
|
></ng-template>
|
|
232
|
-
</
|
|
245
|
+
</button>
|
|
233
246
|
<span class="k-spacer"></span>
|
|
234
247
|
<span class="k-calendar-nav k-hstack">
|
|
235
248
|
<button
|
|
236
249
|
*ngIf="showNavigationButtons"
|
|
237
250
|
kendoButton
|
|
238
251
|
fillMode="flat"
|
|
252
|
+
[size]="size"
|
|
239
253
|
[svgIcon]="chevronLeftIcon"
|
|
240
254
|
icon="chevron-left"
|
|
241
255
|
tabindex="-1"
|
|
@@ -248,9 +262,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
248
262
|
>
|
|
249
263
|
</button>
|
|
250
264
|
<button
|
|
251
|
-
|
|
265
|
+
kendoButton
|
|
266
|
+
class="k-calendar-nav-today"
|
|
252
267
|
tabindex="-1"
|
|
253
|
-
|
|
268
|
+
themeColor="primary"
|
|
269
|
+
fillMode="flat"
|
|
270
|
+
role="link"
|
|
271
|
+
[size]="size"
|
|
272
|
+
[disabled]="!todayAvailable"
|
|
254
273
|
[kendoEventsOutsideAngular]="{
|
|
255
274
|
click: handleTodayClick
|
|
256
275
|
}"
|
|
@@ -276,7 +295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
276
295
|
</button>
|
|
277
296
|
</span>
|
|
278
297
|
</ng-template>
|
|
279
|
-
|
|
298
|
+
`
|
|
280
299
|
}]
|
|
281
300
|
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i3.IntlService }, { type: i4.DisabledDatesService }]; }, propDecorators: { activeView: [{
|
|
282
301
|
type: Input
|
|
@@ -302,6 +321,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
302
321
|
type: Input
|
|
303
322
|
}], id: [{
|
|
304
323
|
type: Input
|
|
324
|
+
}], size: [{
|
|
325
|
+
type: Input
|
|
305
326
|
}], todayButtonClick: [{
|
|
306
327
|
type: Output
|
|
307
328
|
}], prevButtonClick: [{
|
|
@@ -311,9 +332,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
311
332
|
}], getComponentClass: [{
|
|
312
333
|
type: HostBinding,
|
|
313
334
|
args: ["class.k-calendar-header"]
|
|
314
|
-
}], horizontalHostClass: [{
|
|
315
|
-
type: HostBinding,
|
|
316
|
-
args: ["class.k-hstack"]
|
|
317
335
|
}], verticalHostClass: [{
|
|
318
336
|
type: HostBinding,
|
|
319
337
|
args: ["class.k-vstack"]
|
|
@@ -18,9 +18,9 @@ import * as i0 from "@angular/core";
|
|
|
18
18
|
import * as i1 from "./services/bus-view.service";
|
|
19
19
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
20
20
|
import * as i3 from "./services/weeknames.service";
|
|
21
|
-
import * as i4 from "
|
|
22
|
-
import * as i5 from "
|
|
23
|
-
import * as i6 from "./
|
|
21
|
+
import * as i4 from "@angular/common";
|
|
22
|
+
import * as i5 from "./for.directive";
|
|
23
|
+
import * as i6 from "./view.component";
|
|
24
24
|
const DEFAULT_VIEWS_LENGTH = 2;
|
|
25
25
|
/**
|
|
26
26
|
* @hidden
|
|
@@ -280,12 +280,12 @@ export class HorizontalViewListComponent {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
284
|
-
HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
283
|
+
HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalViewListComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i3.WeekNamesService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
284
|
+
HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { showOtherMonthDays: "showOtherMonthDays", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", allowReverse: "allowReverse", activeRangeEnd: "activeRangeEnd", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectionRange: "selectionRange", selectedDates: "selectedDates", views: "views", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", orientation: "orientation", activeDescendant: "activeDescendant", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekDaysFormat: "weekDaysFormat", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", activeDateChange: "activeDateChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { listeners: { "focus": "handleMultiViewCalendarFocus()", "blur": "handleMultiViewCalendarBlur($event)" }, properties: { "class.k-calendar-view": "this.getComponentClass", "class.k-align-items-start": "this.getComponentClass", "class.k-justify-content-center": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass", "attr.role": "this.role", "attr.tabindex": "this.tabindex" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
285
285
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
286
286
|
<table
|
|
287
287
|
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
288
|
-
class="k-
|
|
288
|
+
class="k-calendar-table"
|
|
289
289
|
[ngClass]="class"
|
|
290
290
|
[attr.aria-labelledby]="id"
|
|
291
291
|
[attr.aria-activedescendant]="getActiveDescendant"
|
|
@@ -307,6 +307,7 @@ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
307
307
|
<tbody
|
|
308
308
|
class="k-calendar-tbody"
|
|
309
309
|
kendoCalendarView
|
|
310
|
+
[allowReverse]="allowReverse"
|
|
310
311
|
[showOtherMonthDays]="showOtherMonthDays"
|
|
311
312
|
role="rowgroup"
|
|
312
313
|
direction="horizontal"
|
|
@@ -363,8 +364,8 @@ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
363
364
|
}"
|
|
364
365
|
>
|
|
365
366
|
</ng-template>
|
|
366
|
-
`, isInline: true,
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
367
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: i6.ViewComponent, selector: "[kendoCalendarView]", inputs: ["allowReverse", "showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalViewListComponent, decorators: [{
|
|
368
369
|
type: Component,
|
|
369
370
|
args: [{
|
|
370
371
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -373,7 +374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
373
374
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
374
375
|
<table
|
|
375
376
|
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
376
|
-
class="k-
|
|
377
|
+
class="k-calendar-table"
|
|
377
378
|
[ngClass]="class"
|
|
378
379
|
[attr.aria-labelledby]="id"
|
|
379
380
|
[attr.aria-activedescendant]="getActiveDescendant"
|
|
@@ -395,6 +396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
395
396
|
<tbody
|
|
396
397
|
class="k-calendar-tbody"
|
|
397
398
|
kendoCalendarView
|
|
399
|
+
[allowReverse]="allowReverse"
|
|
398
400
|
[showOtherMonthDays]="showOtherMonthDays"
|
|
399
401
|
role="rowgroup"
|
|
400
402
|
direction="horizontal"
|
|
@@ -453,18 +455,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
453
455
|
</ng-template>
|
|
454
456
|
`
|
|
455
457
|
}]
|
|
456
|
-
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i3.WeekNamesService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: {
|
|
457
|
-
type: Input
|
|
458
|
-
}], handleMultiViewCalendarFocus: [{
|
|
458
|
+
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i3.WeekNamesService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { handleMultiViewCalendarFocus: [{
|
|
459
459
|
type: HostListener,
|
|
460
460
|
args: ["focus"]
|
|
461
461
|
}], handleMultiViewCalendarBlur: [{
|
|
462
462
|
type: HostListener,
|
|
463
463
|
args: ["blur", ['$event']]
|
|
464
|
+
}], showOtherMonthDays: [{
|
|
465
|
+
type: Input
|
|
464
466
|
}], cellTemplateRef: [{
|
|
465
467
|
type: Input
|
|
466
468
|
}], weekNumberTemplateRef: [{
|
|
467
469
|
type: Input
|
|
470
|
+
}], allowReverse: [{
|
|
471
|
+
type: Input
|
|
468
472
|
}], activeRangeEnd: [{
|
|
469
473
|
type: Input
|
|
470
474
|
}], activeView: [{
|
|
@@ -19,14 +19,14 @@ export class CalendarCustomMessagesComponent extends CalendarMessages {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
CalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
CalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
22
|
+
CalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
CalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: CalendarMessages,
|
|
26
26
|
useExisting: forwardRef(() => CalendarCustomMessagesComponent)
|
|
27
27
|
}
|
|
28
28
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarCustomMessagesComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{
|
|
32
32
|
providers: [
|
|
@@ -16,14 +16,14 @@ export class CalendarLocalizedMessagesDirective extends CalendarMessages {
|
|
|
16
16
|
this.service = service;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
CalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
CalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
19
|
+
CalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
CalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: CalendarMessages,
|
|
23
23
|
useExisting: forwardRef(() => CalendarLocalizedMessagesDirective)
|
|
24
24
|
}
|
|
25
25
|
], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarLocalizedMessagesDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
providers: [
|
|
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class CalendarMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
|
-
CalendarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
CalendarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
CalendarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
CalendarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CalendarMessages, selector: "kendo-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
18
|
// eslint-disable-next-line
|
|
@@ -19,14 +19,14 @@ export class MultiViewCalendarCustomMessagesComponent extends Messages {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
MultiViewCalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
MultiViewCalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
22
|
+
MultiViewCalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
MultiViewCalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: Messages,
|
|
26
26
|
useExisting: forwardRef(() => MultiViewCalendarCustomMessagesComponent)
|
|
27
27
|
}
|
|
28
28
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{
|
|
32
32
|
providers: [
|
|
@@ -16,14 +16,14 @@ export class MultiViewCalendarLocalizedMessagesDirective extends Messages {
|
|
|
16
16
|
this.service = service;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
MultiViewCalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
MultiViewCalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
19
|
+
MultiViewCalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
MultiViewCalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: Messages,
|
|
23
23
|
useExisting: forwardRef(() => MultiViewCalendarLocalizedMessagesDirective)
|
|
24
24
|
}
|
|
25
25
|
], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
providers: [
|
|
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class Messages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
|
-
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, selector: "kendo-multiview-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
18
|
// eslint-disable-next-line
|
|
@@ -2,4 +2,37 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export function handleRangeSelection(date, selectionRange, activeRangeEnd, allowReverse = false) {
|
|
9
|
+
if ((activeRangeEnd === 'start' && selectionRange.start?.getTime() === date?.getTime() && ((allowReverse && !selectionRange.end) || !allowReverse)) ||
|
|
10
|
+
(activeRangeEnd === 'end' && selectionRange.end?.getTime() === date?.getTime())) {
|
|
11
|
+
return { activeRangeEnd: activeRangeEnd, selectionRange: selectionRange };
|
|
12
|
+
}
|
|
13
|
+
if (allowReverse) {
|
|
14
|
+
if (activeRangeEnd === 'start') {
|
|
15
|
+
selectionRange.start = date;
|
|
16
|
+
activeRangeEnd = 'end';
|
|
17
|
+
}
|
|
18
|
+
else if (activeRangeEnd === 'end') {
|
|
19
|
+
selectionRange.end = date;
|
|
20
|
+
activeRangeEnd = 'start';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (!allowReverse) {
|
|
24
|
+
if (activeRangeEnd === 'start' && date > selectionRange.end ||
|
|
25
|
+
activeRangeEnd === 'end' && date < selectionRange.start) {
|
|
26
|
+
selectionRange = { start: date, end: null };
|
|
27
|
+
}
|
|
28
|
+
else if (activeRangeEnd === 'start' && date <= selectionRange.end) {
|
|
29
|
+
selectionRange.start = date;
|
|
30
|
+
activeRangeEnd = 'end';
|
|
31
|
+
}
|
|
32
|
+
else if (activeRangeEnd === 'end' && date >= selectionRange.start) {
|
|
33
|
+
selectionRange.end = date;
|
|
34
|
+
activeRangeEnd = 'start';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return { activeRangeEnd: activeRangeEnd, selectionRange: selectionRange };
|
|
38
|
+
}
|