@progress/kendo-angular-dateinputs 13.0.0-develop.6 → 13.0.0-develop.8

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.
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  name: '@progress/kendo-angular-dateinputs',
37
37
  productName: 'Kendo UI for Angular',
38
38
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
39
- publishDate: 1685095143,
40
- version: '13.0.0-develop.6',
39
+ publishDate: 1685107115,
40
+ version: '13.0.0-develop.8',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -1978,13 +1978,16 @@ class HorizontalViewListComponent {
1978
1978
  return this.activeView === CalendarViewEnum.century;
1979
1979
  }
1980
1980
  get role() {
1981
- return this.views === 2 ? 'grid' : null;
1981
+ return this.views >= 2 ? 'grid' : null;
1982
+ }
1983
+ get tabindex() {
1984
+ return this.views >= 2 ? '0' : null;
1982
1985
  }
1983
1986
  get getActiveDescendant() {
1984
1987
  return this.views === 1 ? this.activeDescendant : null;
1985
1988
  }
1986
1989
  get getTabIndex() {
1987
- return this.disabled || this.views === 2 ? null : this.tabIndex;
1990
+ return this.disabled || this.views >= 2 ? null : this.tabIndex;
1988
1991
  }
1989
1992
  ngOnChanges(changes) {
1990
1993
  this.initService();
@@ -2009,7 +2012,7 @@ class HorizontalViewListComponent {
2009
2012
  }
2010
2013
  this.setAriaActivedescendant();
2011
2014
  //set tabindex for MultiViewCalendar
2012
- if (this.views === 2) {
2015
+ if (this.views >= 2) {
2013
2016
  this.renderer.setAttribute(this.element.nativeElement, 'tabindex', this.tabIndex.toString());
2014
2017
  }
2015
2018
  }
@@ -2156,16 +2159,16 @@ class HorizontalViewListComponent {
2156
2159
  return Math.min(this.total - skip, this.views);
2157
2160
  }
2158
2161
  setAriaActivedescendant() {
2159
- if (this.views === 2) {
2162
+ if (this.views >= 2) {
2160
2163
  this.renderer.setAttribute(this.element.nativeElement, attributeNames.ariaActiveDescendant, this.activeDescendant);
2161
2164
  }
2162
2165
  }
2163
2166
  }
2164
2167
  HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HorizontalViewListComponent, deps: [{ token: BusViewService }, { token: i1.IntlService }, { token: WeekNamesService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2165
- HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", 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", 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" } }, usesOnChanges: true, ngImport: i0, template: `
2168
+ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", 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", 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: `
2166
2169
  <ng-template #tableTemplate let-date="date" let-class="className">
2167
2170
  <table
2168
- [attr.role]="views === 2 ? 'none' : 'grid'"
2171
+ [attr.role]="views >= 2 ? 'none' : 'grid'"
2169
2172
  class="k-content k-calendar-table"
2170
2173
  [ngClass]="class"
2171
2174
  [attr.aria-labelledby]="id"
@@ -2252,7 +2255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2252
2255
  template: `
2253
2256
  <ng-template #tableTemplate let-date="date" let-class="className">
2254
2257
  <table
2255
- [attr.role]="views === 2 ? 'none' : 'grid'"
2258
+ [attr.role]="views >= 2 ? 'none' : 'grid'"
2256
2259
  class="k-content k-calendar-table"
2257
2260
  [ngClass]="class"
2258
2261
  [attr.aria-labelledby]="id"
@@ -2424,6 +2427,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2424
2427
  }], role: [{
2425
2428
  type: HostBinding,
2426
2429
  args: ['attr.role']
2430
+ }], tabindex: [{
2431
+ type: HostBinding,
2432
+ args: ['attr.tabindex']
2427
2433
  }] } });
2428
2434
 
2429
2435
  /**
@@ -3356,6 +3362,18 @@ class MultiViewCalendarComponent {
3356
3362
  * @hidden
3357
3363
  */
3358
3364
  this.focusCalendar = new EventEmitter();
3365
+ /**
3366
+ * @hidden
3367
+ */
3368
+ this.onClosePopup = new EventEmitter();
3369
+ /**
3370
+ * @hidden
3371
+ */
3372
+ this.onTabPress = new EventEmitter();
3373
+ /**
3374
+ * @hidden
3375
+ */
3376
+ this.onShiftTabPress = new EventEmitter();
3359
3377
  this.cellUID = guid();
3360
3378
  this.isHovered = false;
3361
3379
  this.isPrevDisabled = true;
@@ -3400,7 +3418,7 @@ class MultiViewCalendarComponent {
3400
3418
  * @hidden
3401
3419
  */
3402
3420
  get multiViewCalendarHeaderIdLabel() {
3403
- return this.views === 2 ? this.id + 'header-' : null;
3421
+ return this.views >= 2 ? this.id + 'header-' : null;
3404
3422
  }
3405
3423
  /**
3406
3424
  * @hidden
@@ -3578,7 +3596,7 @@ class MultiViewCalendarComponent {
3578
3596
  return CalendarViewEnum[this.topView];
3579
3597
  }
3580
3598
  get widgetId() {
3581
- return this.views === 2 ? this.id : null;
3599
+ return this.views >= 2 ? this.id : null;
3582
3600
  }
3583
3601
  get ariaDisabled() {
3584
3602
  return this.disabled;
@@ -3648,6 +3666,11 @@ class MultiViewCalendarComponent {
3648
3666
  const onArrowLeftAndControl = event.keyCode === Keys$1.ArrowLeft && ctrlKey;
3649
3667
  const onTKeyPress = event.keyCode === Keys$1.KeyT;
3650
3668
  const onEnterKeyPress = event.keyCode === Keys$1.Enter;
3669
+ const onArrowUpPress = event.keyCode === Keys$1.ArrowUp;
3670
+ const altKey = event.altKey;
3671
+ const escKey = event.keyCode === Keys$1.Escape;
3672
+ const tabKeyPress = event.keyCode === Keys$1.Tab;
3673
+ const shiftKeyPress = event.shiftKey;
3651
3674
  if (onArrowRightAndControl) {
3652
3675
  event.preventDefault();
3653
3676
  this.navigateView(this.nextView);
@@ -3670,6 +3693,17 @@ class MultiViewCalendarComponent {
3670
3693
  this.selectionService.lastClicked = this.focusedDate;
3671
3694
  this.performSelection(this.focusedDate, event);
3672
3695
  }
3696
+ if (this.views >= 2) {
3697
+ if ((escKey || (altKey && onArrowUpPress))) {
3698
+ this.onClosePopup.emit(event);
3699
+ }
3700
+ else if ((tabKeyPress && shiftKeyPress)) {
3701
+ this.onShiftTabPress.emit(event);
3702
+ }
3703
+ else if ((tabKeyPress && !shiftKeyPress)) {
3704
+ this.onTabPress.emit(event);
3705
+ }
3706
+ }
3673
3707
  const candidate = dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
3674
3708
  if (isEqual(this.focusedDate, candidate)) {
3675
3709
  return;
@@ -3745,7 +3779,7 @@ class MultiViewCalendarComponent {
3745
3779
  if (!this.element) {
3746
3780
  return;
3747
3781
  }
3748
- const activeElement = this.views === 2 ? this.element.nativeElement.querySelector('.k-calendar-view') :
3782
+ const activeElement = this.views >= 2 ? this.element.nativeElement.querySelector('.k-calendar-view') :
3749
3783
  this.element.nativeElement.querySelector('.k-content.k-calendar-table');
3750
3784
  activeElement.blur();
3751
3785
  }
@@ -3955,7 +3989,7 @@ class MultiViewCalendarComponent {
3955
3989
  }
3956
3990
  }
3957
3991
  MultiViewCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: BusViewService }, { token: i0.ElementRef }, { token: NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: DisabledDatesService }, { token: SelectionService }], target: i0.ɵɵFactoryTarget.Component });
3958
- MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { id: "id", focusedDate: "focusedDate", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
3992
+ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { id: "id", focusedDate: "focusedDate", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
3959
3993
  BusViewService,
3960
3994
  RANGE_CALENDAR_VALUE_ACCESSOR,
3961
3995
  RANGE_CALENDAR_RANGE_VALIDATORS,
@@ -4179,6 +4213,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4179
4213
  args: ['focus']
4180
4214
  }], focusCalendar: [{
4181
4215
  type: Output
4216
+ }], onClosePopup: [{
4217
+ type: Output
4218
+ }], onTabPress: [{
4219
+ type: Output
4220
+ }], onShiftTabPress: [{
4221
+ type: Output
4182
4222
  }], cellTemplate: [{
4183
4223
  type: ContentChild,
4184
4224
  args: [CellTemplateDirective, { static: false }]
@@ -6659,7 +6699,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
6659
6699
  </kendo-multiviewcalendar-messages>
6660
6700
  </kendo-multiviewcalendar>
6661
6701
  </ng-container>
6662
- `, isInline: true, components: [{ type: NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar"], exportAs: ["kendo-multiviewcalendar"] }, { type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }], directives: [{ type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6702
+ `, isInline: true, components: [{ type: NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }], directives: [{ type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6663
6703
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarComponent, decorators: [{
6664
6704
  type: Component,
6665
6705
  args: [{
@@ -11813,22 +11853,7 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
11813
11853
  </div>
11814
11854
  </ng-template>
11815
11855
  </div>
11816
- <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">
11817
- <button
11818
- #cancel
11819
- *ngIf="cancelButton"
11820
- class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
11821
- type="button"
11822
- [attr.title]="localization.get('cancelLabel')"
11823
- [attr.aria-label]="localization.get('cancelLabel')"
11824
- [kendoEventsOutsideAngular]="{
11825
- click: handleReject,
11826
- focus: handleFocus,
11827
- blur: handleBlur
11828
- }"
11829
- [scope]="this"
11830
- [disabled]="disabled"
11831
- >{{localization.get('cancel')}}</button>
11856
+ <div class="k-time-footer k-actions k-actions-stretched k-actions-horizontal" *ngIf="setButton || cancelButton">
11832
11857
  <button
11833
11858
  #accept
11834
11859
  *ngIf="setButton"
@@ -11845,6 +11870,21 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
11845
11870
  [scope]="this"
11846
11871
  [disabled]="disabled"
11847
11872
  >{{localization.get('accept')}}</button>
11873
+ <button
11874
+ #cancel
11875
+ *ngIf="cancelButton"
11876
+ class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
11877
+ type="button"
11878
+ [attr.title]="localization.get('cancelLabel')"
11879
+ [attr.aria-label]="localization.get('cancelLabel')"
11880
+ [kendoEventsOutsideAngular]="{
11881
+ click: handleReject,
11882
+ focus: handleFocus,
11883
+ blur: handleBlur
11884
+ }"
11885
+ [scope]="this"
11886
+ [disabled]="disabled"
11887
+ >{{localization.get('cancel')}}</button>
11848
11888
  </div>
11849
11889
  `, isInline: true, components: [{ type: TimeListComponent, selector: "kendo-timelist", inputs: ["min", "max", "part", "step", "disabled", "value", "isLast"], outputs: ["valueChange", "tabOutLastPart"] }], directives: [{ type: TimeSelectorLocalizedMessagesDirective, selector: "[kendoTimeSelectorLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
11850
11890
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TimeSelectorComponent, decorators: [{
@@ -11933,22 +11973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
11933
11973
  </div>
11934
11974
  </ng-template>
11935
11975
  </div>
11936
- <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">
11937
- <button
11938
- #cancel
11939
- *ngIf="cancelButton"
11940
- class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
11941
- type="button"
11942
- [attr.title]="localization.get('cancelLabel')"
11943
- [attr.aria-label]="localization.get('cancelLabel')"
11944
- [kendoEventsOutsideAngular]="{
11945
- click: handleReject,
11946
- focus: handleFocus,
11947
- blur: handleBlur
11948
- }"
11949
- [scope]="this"
11950
- [disabled]="disabled"
11951
- >{{localization.get('cancel')}}</button>
11976
+ <div class="k-time-footer k-actions k-actions-stretched k-actions-horizontal" *ngIf="setButton || cancelButton">
11952
11977
  <button
11953
11978
  #accept
11954
11979
  *ngIf="setButton"
@@ -11965,6 +11990,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
11965
11990
  [scope]="this"
11966
11991
  [disabled]="disabled"
11967
11992
  >{{localization.get('accept')}}</button>
11993
+ <button
11994
+ #cancel
11995
+ *ngIf="cancelButton"
11996
+ class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
11997
+ type="button"
11998
+ [attr.title]="localization.get('cancelLabel')"
11999
+ [attr.aria-label]="localization.get('cancelLabel')"
12000
+ [kendoEventsOutsideAngular]="{
12001
+ click: handleReject,
12002
+ focus: handleFocus,
12003
+ blur: handleBlur
12004
+ }"
12005
+ [scope]="this"
12006
+ [disabled]="disabled"
12007
+ >{{localization.get('cancel')}}</button>
11968
12008
  </div>
11969
12009
  `
11970
12010
  }]
@@ -15038,7 +15078,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
15038
15078
  </div>
15039
15079
  <div
15040
15080
  *ngIf="!isAdaptive"
15041
- class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"
15081
+ class="k-datetime-footer k-actions k-actions-stretched k-actions-horizontal"
15042
15082
  [kendoEventsOutsideAngular]="{
15043
15083
  focusin: handleFocus,
15044
15084
  focusout: handleBlur
@@ -15046,34 +15086,34 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
15046
15086
  [scope]="this"
15047
15087
  >
15048
15088
  <button
15049
- *ngIf="cancelButton"
15050
15089
  type="button"
15051
- class="k-button k-time-cancel"
15052
- [ngClass]="popupButtonsClasses()"
15053
- [attr.title]="localization.get('cancelLabel')"
15054
- [attr.aria-label]="localization.get('cancelLabel')"
15090
+ class="k-button k-time-accept"
15091
+ [ngClass]="popupButtonsClasses('primary')"
15092
+ [attr.title]="localization.get('acceptLabel')"
15093
+ [attr.aria-label]="localization.get('acceptLabel')"
15094
+ [disabled]="!calendarValue"
15055
15095
  [kendoEventsOutsideAngular]="{
15056
- click: handleCancel,
15096
+ click: handleAccept,
15057
15097
  'keydown.tab': handleTab
15058
15098
  }"
15059
15099
  [scope]="this"
15060
15100
  >
15061
- {{localization.get('cancel')}}
15101
+ {{localization.get('accept')}}
15062
15102
  </button>
15063
15103
  <button
15104
+ *ngIf="cancelButton"
15064
15105
  type="button"
15065
- class="k-button k-time-accept"
15066
- [ngClass]="popupButtonsClasses('primary')"
15067
- [attr.title]="localization.get('acceptLabel')"
15068
- [attr.aria-label]="localization.get('acceptLabel')"
15069
- [disabled]="!calendarValue"
15106
+ class="k-button k-time-cancel"
15107
+ [ngClass]="popupButtonsClasses()"
15108
+ [attr.title]="localization.get('cancelLabel')"
15109
+ [attr.aria-label]="localization.get('cancelLabel')"
15070
15110
  [kendoEventsOutsideAngular]="{
15071
- click: handleAccept,
15111
+ click: handleCancel,
15072
15112
  'keydown.tab': handleTab
15073
15113
  }"
15074
15114
  [scope]="this"
15075
15115
  >
15076
- {{localization.get('accept')}}
15116
+ {{localization.get('cancel')}}
15077
15117
  </button>
15078
15118
  </div>
15079
15119
  </div>
@@ -15400,7 +15440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
15400
15440
  </div>
15401
15441
  <div
15402
15442
  *ngIf="!isAdaptive"
15403
- class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"
15443
+ class="k-datetime-footer k-actions k-actions-stretched k-actions-horizontal"
15404
15444
  [kendoEventsOutsideAngular]="{
15405
15445
  focusin: handleFocus,
15406
15446
  focusout: handleBlur
@@ -15408,34 +15448,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
15408
15448
  [scope]="this"
15409
15449
  >
15410
15450
  <button
15411
- *ngIf="cancelButton"
15412
15451
  type="button"
15413
- class="k-button k-time-cancel"
15414
- [ngClass]="popupButtonsClasses()"
15415
- [attr.title]="localization.get('cancelLabel')"
15416
- [attr.aria-label]="localization.get('cancelLabel')"
15452
+ class="k-button k-time-accept"
15453
+ [ngClass]="popupButtonsClasses('primary')"
15454
+ [attr.title]="localization.get('acceptLabel')"
15455
+ [attr.aria-label]="localization.get('acceptLabel')"
15456
+ [disabled]="!calendarValue"
15417
15457
  [kendoEventsOutsideAngular]="{
15418
- click: handleCancel,
15458
+ click: handleAccept,
15419
15459
  'keydown.tab': handleTab
15420
15460
  }"
15421
15461
  [scope]="this"
15422
15462
  >
15423
- {{localization.get('cancel')}}
15463
+ {{localization.get('accept')}}
15424
15464
  </button>
15425
15465
  <button
15466
+ *ngIf="cancelButton"
15426
15467
  type="button"
15427
- class="k-button k-time-accept"
15428
- [ngClass]="popupButtonsClasses('primary')"
15429
- [attr.title]="localization.get('acceptLabel')"
15430
- [attr.aria-label]="localization.get('acceptLabel')"
15431
- [disabled]="!calendarValue"
15468
+ class="k-button k-time-cancel"
15469
+ [ngClass]="popupButtonsClasses()"
15470
+ [attr.title]="localization.get('cancelLabel')"
15471
+ [attr.aria-label]="localization.get('cancelLabel')"
15432
15472
  [kendoEventsOutsideAngular]="{
15433
- click: handleAccept,
15473
+ click: handleCancel,
15434
15474
  'keydown.tab': handleTab
15435
15475
  }"
15436
15476
  [scope]="this"
15437
15477
  >
15438
- {{localization.get('accept')}}
15478
+ {{localization.get('cancel')}}
15439
15479
  </button>
15440
15480
  </div>
15441
15481
  </div>
@@ -16321,6 +16361,48 @@ class DateRangePopupComponent {
16321
16361
  }
16322
16362
  this.windowSize = windowSize();
16323
16363
  }
16364
+ /**
16365
+ * @hidden
16366
+ */
16367
+ closePopup(event) {
16368
+ event.preventDefault();
16369
+ event.stopPropagation();
16370
+ this.toggle(false);
16371
+ if (this.dateRangeService.activeRangeEnd === 'start' || !this.dateRangeService.activeRangeEnd) {
16372
+ this.dateRangeService.startInput$.value.focus();
16373
+ }
16374
+ else {
16375
+ this.dateRangeService.endInput$.value.focus();
16376
+ }
16377
+ ;
16378
+ }
16379
+ /**
16380
+ * @hidden
16381
+ */
16382
+ handleTab(event) {
16383
+ event.preventDefault();
16384
+ event.stopPropagation();
16385
+ if (this.dateRangeService.activeRangeEnd === 'start' || !this.dateRangeService.activeRangeEnd) {
16386
+ this.dateRangeService.setActiveRangeEnd('end');
16387
+ }
16388
+ else {
16389
+ this.dateRangeService.endInput$.value.focus();
16390
+ }
16391
+ }
16392
+ ;
16393
+ /**
16394
+ * @hidden
16395
+ */
16396
+ handleShiftTab(event) {
16397
+ event.preventDefault();
16398
+ event.stopPropagation();
16399
+ if (this.dateRangeService.activeRangeEnd === 'end') {
16400
+ this.dateRangeService.setActiveRangeEnd('start');
16401
+ }
16402
+ else {
16403
+ this.dateRangeService.startInput$.value.focus();
16404
+ }
16405
+ }
16324
16406
  handleWindowBlur() {
16325
16407
  if (!this.show || this.actionSheet.expanded) {
16326
16408
  return;
@@ -16465,7 +16547,7 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
16465
16547
  </ng-container>
16466
16548
  <ng-container #container></ng-container>
16467
16549
  <ng-template #defaultTemplate>
16468
- <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>
16550
+ <kendo-multiviewcalendar kendoDateRangeSelection (onClosePopup)="closePopup($event)" (onTabPress)="handleTab($event)" (onShiftTabPress)="handleShiftTab($event)"></kendo-multiviewcalendar>
16469
16551
  </ng-template>
16470
16552
 
16471
16553
  <kendo-actionsheet
@@ -16533,7 +16615,7 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
16533
16615
  </div>
16534
16616
  </ng-template>
16535
16617
  </kendo-actionsheet>
16536
- `, isInline: true, components: [{ type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar"], exportAs: ["kendo-multiviewcalendar"] }, { type: i9.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: i10.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { type: DateRangeSelectionDirective, selector: "[kendoDateRangeSelection]", inputs: ["autoCorrectOn", "selectionRange", "activeRangeEnd", "shouldSetRange"], outputs: ["activeRangeEndChange", "selectionRangeChange"] }, { type: i9.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
16618
+ `, isInline: true, components: [{ type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { type: i9.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: i10.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { type: DateRangeSelectionDirective, selector: "[kendoDateRangeSelection]", inputs: ["autoCorrectOn", "selectionRange", "activeRangeEnd", "shouldSetRange"], outputs: ["activeRangeEndChange", "selectionRangeChange"] }, { type: i9.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
16537
16619
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
16538
16620
  type: Component,
16539
16621
  args: [{
@@ -16563,7 +16645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
16563
16645
  </ng-container>
16564
16646
  <ng-container #container></ng-container>
16565
16647
  <ng-template #defaultTemplate>
16566
- <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>
16648
+ <kendo-multiviewcalendar kendoDateRangeSelection (onClosePopup)="closePopup($event)" (onTabPress)="handleTab($event)" (onShiftTabPress)="handleShiftTab($event)"></kendo-multiviewcalendar>
16567
16649
  </ng-template>
16568
16650
 
16569
16651
  <kendo-actionsheet
@@ -16804,7 +16886,6 @@ class DateRangeInput {
16804
16886
  }
16805
16887
  [
16806
16888
  this.input.onBlur.subscribe(() => this.deactivate()),
16807
- this.input.onFocus.pipe(filter(() => !this.popupCalendarActivated)).subscribe(() => this.activate()),
16808
16889
  this.input.valueUpdate.subscribe(value => this.updateRange(value, 'change')),
16809
16890
  this.dateRangeService.activeRangeEnd$.subscribe(() => {
16810
16891
  if (this.navigateCalendarOnFocus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "13.0.0-develop.6",
3
+ "version": "13.0.0-develop.8",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -33,20 +33,20 @@
33
33
  "@angular/core": "13 - 16",
34
34
  "@angular/platform-browser": "13 - 16",
35
35
  "@progress/kendo-licensing": "^1.0.2",
36
- "@progress/kendo-angular-common": "13.0.0-develop.6",
37
- "@progress/kendo-angular-intl": "13.0.0-develop.6",
38
- "@progress/kendo-angular-l10n": "13.0.0-develop.6",
39
- "@progress/kendo-angular-icons": "13.0.0-develop.6",
40
- "@progress/kendo-angular-popup": "13.0.0-develop.6",
41
- "@progress/kendo-angular-navigation": "13.0.0-develop.6",
36
+ "@progress/kendo-angular-common": "13.0.0-develop.8",
37
+ "@progress/kendo-angular-intl": "13.0.0-develop.8",
38
+ "@progress/kendo-angular-l10n": "13.0.0-develop.8",
39
+ "@progress/kendo-angular-icons": "13.0.0-develop.8",
40
+ "@progress/kendo-angular-popup": "13.0.0-develop.8",
41
+ "@progress/kendo-angular-navigation": "13.0.0-develop.8",
42
42
  "rxjs": "^6.5.3 || ^7.0.0",
43
- "@progress/kendo-angular-buttons": "13.0.0-develop.6",
44
- "@progress/kendo-angular-inputs": "13.0.0-develop.6",
45
- "@progress/kendo-angular-label": "13.0.0-develop.6"
43
+ "@progress/kendo-angular-buttons": "13.0.0-develop.8",
44
+ "@progress/kendo-angular-inputs": "13.0.0-develop.8",
45
+ "@progress/kendo-angular-label": "13.0.0-develop.8"
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "^2.3.1",
49
- "@progress/kendo-angular-schematics": "13.0.0-develop.6",
49
+ "@progress/kendo-angular-schematics": "13.0.0-develop.8",
50
50
  "@progress/kendo-common": "^0.2.0",
51
51
  "@progress/kendo-date-math": "^1.1.0"
52
52
  },