@progress/kendo-angular-dateinputs 19.0.0-develop.7 → 19.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.
- package/datepicker/datepicker.component.d.ts +8 -8
- package/datepicker/localization/messages.d.ts +5 -1
- package/daterange/date-range-popup.component.d.ts +12 -12
- package/daterange/localization/messages.d.ts +5 -1
- package/datetimepicker/datetimepicker.component.d.ts +12 -13
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2022/datepicker/datepicker.component.mjs +46 -49
- package/esm2022/datepicker/localization/messages.mjs +7 -1
- package/esm2022/daterange/date-range-input.mjs +3 -2
- package/esm2022/daterange/date-range-popup.component.mjs +55 -59
- package/esm2022/daterange/date-range.component.mjs +1 -1
- package/esm2022/daterange/localization/messages.mjs +7 -1
- package/esm2022/datetimepicker/datetimepicker.component.mjs +86 -97
- package/esm2022/datetimepicker/localization/messages.mjs +7 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/timepicker/localization/messages.mjs +7 -1
- package/esm2022/timepicker/timepicker.component.mjs +43 -47
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +259 -256
- package/package.json +11 -11
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/timepicker.component.d.ts +9 -8
|
@@ -199,18 +199,12 @@ export class DateRangePopupComponent {
|
|
|
199
199
|
* Sets the title of the input element of the DateRangePopup and the title text rendered
|
|
200
200
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
201
201
|
*/
|
|
202
|
-
|
|
202
|
+
adaptiveTitle = "";
|
|
203
203
|
/**
|
|
204
204
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
205
205
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
206
206
|
*/
|
|
207
|
-
|
|
208
|
-
this._subtitle = subtitle;
|
|
209
|
-
}
|
|
210
|
-
get subtitle() {
|
|
211
|
-
return this._subtitle;
|
|
212
|
-
}
|
|
213
|
-
_subtitle;
|
|
207
|
+
adaptiveSubtitle = "";
|
|
214
208
|
/**
|
|
215
209
|
* @hidden
|
|
216
210
|
*
|
|
@@ -299,6 +293,10 @@ export class DateRangePopupComponent {
|
|
|
299
293
|
* @hidden
|
|
300
294
|
*/
|
|
301
295
|
checkIcon = checkIcon;
|
|
296
|
+
/**
|
|
297
|
+
* @hidden
|
|
298
|
+
*/
|
|
299
|
+
windowSize;
|
|
302
300
|
/**
|
|
303
301
|
* Gets or sets the visibility state of the component.
|
|
304
302
|
*/
|
|
@@ -321,6 +319,13 @@ export class DateRangePopupComponent {
|
|
|
321
319
|
get show() {
|
|
322
320
|
return this._show;
|
|
323
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* @hidden
|
|
324
|
+
*/
|
|
325
|
+
handleAccept() {
|
|
326
|
+
this.dateRangeService.setRange(this._rangeSelection);
|
|
327
|
+
this.show = false;
|
|
328
|
+
}
|
|
324
329
|
activateSubscription;
|
|
325
330
|
blurSubscription;
|
|
326
331
|
focusSubscription;
|
|
@@ -332,7 +337,6 @@ export class DateRangePopupComponent {
|
|
|
332
337
|
_calendar;
|
|
333
338
|
_show;
|
|
334
339
|
_rangeSelection;
|
|
335
|
-
windowSize;
|
|
336
340
|
constructor(popupService, dateRangeService, zone, renderer, localization, cdr, rtl, adaptiveService) {
|
|
337
341
|
this.popupService = popupService;
|
|
338
342
|
this.dateRangeService = dateRangeService;
|
|
@@ -375,11 +379,6 @@ export class DateRangePopupComponent {
|
|
|
375
379
|
if (isWindowAvailable()) {
|
|
376
380
|
this.zone.runOutsideAngular(() => this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this)));
|
|
377
381
|
}
|
|
378
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
379
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
380
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
381
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
382
|
-
}
|
|
383
382
|
}
|
|
384
383
|
ngOnDestroy() {
|
|
385
384
|
this.destroyPopup();
|
|
@@ -467,13 +466,6 @@ export class DateRangePopupComponent {
|
|
|
467
466
|
this.show = false;
|
|
468
467
|
this.cancel.emit();
|
|
469
468
|
}
|
|
470
|
-
/**
|
|
471
|
-
* @hidden
|
|
472
|
-
*/
|
|
473
|
-
handleAccept() {
|
|
474
|
-
this.dateRangeService.setRange(this._rangeSelection);
|
|
475
|
-
this.show = false;
|
|
476
|
-
}
|
|
477
469
|
/**
|
|
478
470
|
* @hidden
|
|
479
471
|
*/
|
|
@@ -623,7 +615,6 @@ export class DateRangePopupComponent {
|
|
|
623
615
|
}
|
|
624
616
|
if (show && !this.actionSheet.expanded) {
|
|
625
617
|
this.actionSheet.toggle();
|
|
626
|
-
this.updateActionSheetAdaptiveAppearance();
|
|
627
618
|
this.renderer.setAttribute(this.actionSheet.element.nativeElement, 'id', this.popupUID);
|
|
628
619
|
}
|
|
629
620
|
else if (!show && this.actionSheet.expanded) {
|
|
@@ -631,32 +622,13 @@ export class DateRangePopupComponent {
|
|
|
631
622
|
}
|
|
632
623
|
this._show = show;
|
|
633
624
|
}
|
|
634
|
-
updateActionSheetAdaptiveAppearance() {
|
|
635
|
-
let element;
|
|
636
|
-
let animationContainer;
|
|
637
|
-
if (this.actionSheet) {
|
|
638
|
-
element = this.actionSheet['element'].nativeElement.querySelector('.k-actionsheet');
|
|
639
|
-
animationContainer = this.actionSheet['element'].nativeElement.querySelector('.k-child-animation-container');
|
|
640
|
-
if (this.windowSize === 'medium') {
|
|
641
|
-
this.renderer.removeClass(element, 'k-actionsheet-fullscreen');
|
|
642
|
-
this.renderer.removeStyle(animationContainer, 'height');
|
|
643
|
-
}
|
|
644
|
-
else if (this.windowSize === 'small') {
|
|
645
|
-
this.renderer.addClass(element, 'k-actionsheet-fullscreen');
|
|
646
|
-
this.renderer.setStyle(animationContainer, 'height', '100%');
|
|
647
|
-
}
|
|
648
|
-
this.renderer.addClass(element, 'k-adaptive-actionsheet');
|
|
649
|
-
this.renderer.addClass(element, 'k-actionsheet-bottom');
|
|
650
|
-
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
625
|
addCalendarSubscription = (calendar) => {
|
|
654
626
|
this.calendarSubscriptions.add(calendar.viewList.focusedCellChange.subscribe((id) => {
|
|
655
627
|
this.dateRangeService.setActiveDescendent(id);
|
|
656
628
|
}));
|
|
657
629
|
};
|
|
658
630
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, deps: [{ token: i1.PopupService }, { token: i2.DateRangeService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: RTL, optional: true }, { token: i4.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
659
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupComponent, isStandalone: true, selector: "kendo-daterange-popup", inputs: { showCalendarHeader: "showCalendarHeader", focusedDate: "focusedDate", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", min: "min", max: "max", allowReverse: "allowReverse", animateNavigation: "animateNavigation", disabled: "disabled", views: "views", weekNumber: "weekNumber", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", showViewHeader: "showViewHeader", showOtherMonthDays: "showOtherMonthDays", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode",
|
|
631
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupComponent, isStandalone: true, selector: "kendo-daterange-popup", inputs: { showCalendarHeader: "showCalendarHeader", focusedDate: "focusedDate", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", min: "min", max: "max", allowReverse: "allowReverse", animateNavigation: "animateNavigation", disabled: "disabled", views: "views", weekNumber: "weekNumber", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", showViewHeader: "showViewHeader", showOtherMonthDays: "showOtherMonthDays", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", size: "size" }, outputs: { open: "open", close: "close", onBlur: "blur", onFocus: "focus", cancel: "cancel" }, providers: [
|
|
660
632
|
LocalizationService,
|
|
661
633
|
{
|
|
662
634
|
provide: L10N_PREFIX,
|
|
@@ -675,6 +647,9 @@ export class DateRangePopupComponent {
|
|
|
675
647
|
|
|
676
648
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
677
649
|
cancelLabel="Cancel changes"
|
|
650
|
+
|
|
651
|
+
i18n-adaptiveCloseButtonTitle="kendo.daterangepopup.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
652
|
+
adaptiveCloseButtonTitle="Close"
|
|
678
653
|
>
|
|
679
654
|
</ng-container>
|
|
680
655
|
<ng-container #container></ng-container>
|
|
@@ -708,8 +683,16 @@ export class DateRangePopupComponent {
|
|
|
708
683
|
|
|
709
684
|
<kendo-actionsheet
|
|
710
685
|
#actionSheet
|
|
711
|
-
(overlayClick)="
|
|
686
|
+
(overlayClick)="handleAccept()"
|
|
712
687
|
(collapse)="onBlur.emit()"
|
|
688
|
+
[cssClass]="{
|
|
689
|
+
'k-adaptive-actionsheet': true,
|
|
690
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
691
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
692
|
+
}"
|
|
693
|
+
[cssStyle]="{
|
|
694
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
695
|
+
}"
|
|
713
696
|
>
|
|
714
697
|
<ng-template kendoActionSheetTemplate>
|
|
715
698
|
<!-- Resize sensor needs to be inside the template because the date-range-popup
|
|
@@ -719,22 +702,23 @@ export class DateRangePopupComponent {
|
|
|
719
702
|
<div class="k-actionsheet-titlebar">
|
|
720
703
|
<div class="k-actionsheet-titlebar-group">
|
|
721
704
|
<div class="k-actionsheet-title">
|
|
722
|
-
<div
|
|
723
|
-
<div
|
|
705
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
706
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
724
707
|
</div>
|
|
725
708
|
<div class="k-actionsheet-actions">
|
|
726
709
|
<button
|
|
727
710
|
kendoButton
|
|
728
711
|
type="button"
|
|
729
712
|
icon="check"
|
|
730
|
-
[attr.title]="localization.get('
|
|
713
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
731
714
|
[svgIcon]="checkIcon"
|
|
732
715
|
fillMode="flat"
|
|
716
|
+
themeColor="primary"
|
|
733
717
|
[tabIndex]="-1"
|
|
734
718
|
aria-hidden="true"
|
|
735
|
-
themeColor="primary"
|
|
736
719
|
size="large"
|
|
737
|
-
|
|
720
|
+
innerCssClass="k-button-icon"
|
|
721
|
+
(click)="handleAccept()">
|
|
738
722
|
</button>
|
|
739
723
|
</div>
|
|
740
724
|
</div>
|
|
@@ -763,7 +747,7 @@ export class DateRangePopupComponent {
|
|
|
763
747
|
[value]="dateRangeService.selectionRange"
|
|
764
748
|
selection="range"
|
|
765
749
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
766
|
-
|
|
750
|
+
>
|
|
767
751
|
</kendo-multiviewcalendar>
|
|
768
752
|
</div>
|
|
769
753
|
</div>
|
|
@@ -791,7 +775,7 @@ export class DateRangePopupComponent {
|
|
|
791
775
|
</div>
|
|
792
776
|
</ng-template>
|
|
793
777
|
</kendo-actionsheet>
|
|
794
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
778
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
795
779
|
}
|
|
796
780
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
797
781
|
type: Component,
|
|
@@ -818,6 +802,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
818
802
|
|
|
819
803
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
820
804
|
cancelLabel="Cancel changes"
|
|
805
|
+
|
|
806
|
+
i18n-adaptiveCloseButtonTitle="kendo.daterangepopup.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
807
|
+
adaptiveCloseButtonTitle="Close"
|
|
821
808
|
>
|
|
822
809
|
</ng-container>
|
|
823
810
|
<ng-container #container></ng-container>
|
|
@@ -851,8 +838,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
851
838
|
|
|
852
839
|
<kendo-actionsheet
|
|
853
840
|
#actionSheet
|
|
854
|
-
(overlayClick)="
|
|
841
|
+
(overlayClick)="handleAccept()"
|
|
855
842
|
(collapse)="onBlur.emit()"
|
|
843
|
+
[cssClass]="{
|
|
844
|
+
'k-adaptive-actionsheet': true,
|
|
845
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
846
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
847
|
+
}"
|
|
848
|
+
[cssStyle]="{
|
|
849
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
850
|
+
}"
|
|
856
851
|
>
|
|
857
852
|
<ng-template kendoActionSheetTemplate>
|
|
858
853
|
<!-- Resize sensor needs to be inside the template because the date-range-popup
|
|
@@ -862,22 +857,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
862
857
|
<div class="k-actionsheet-titlebar">
|
|
863
858
|
<div class="k-actionsheet-titlebar-group">
|
|
864
859
|
<div class="k-actionsheet-title">
|
|
865
|
-
<div
|
|
866
|
-
<div
|
|
860
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
861
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
867
862
|
</div>
|
|
868
863
|
<div class="k-actionsheet-actions">
|
|
869
864
|
<button
|
|
870
865
|
kendoButton
|
|
871
866
|
type="button"
|
|
872
867
|
icon="check"
|
|
873
|
-
[attr.title]="localization.get('
|
|
868
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
874
869
|
[svgIcon]="checkIcon"
|
|
875
870
|
fillMode="flat"
|
|
871
|
+
themeColor="primary"
|
|
876
872
|
[tabIndex]="-1"
|
|
877
873
|
aria-hidden="true"
|
|
878
|
-
themeColor="primary"
|
|
879
874
|
size="large"
|
|
880
|
-
|
|
875
|
+
innerCssClass="k-button-icon"
|
|
876
|
+
(click)="handleAccept()">
|
|
881
877
|
</button>
|
|
882
878
|
</div>
|
|
883
879
|
</div>
|
|
@@ -906,7 +902,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
906
902
|
[value]="dateRangeService.selectionRange"
|
|
907
903
|
selection="range"
|
|
908
904
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
909
|
-
|
|
905
|
+
>
|
|
910
906
|
</kendo-multiviewcalendar>
|
|
911
907
|
</div>
|
|
912
908
|
</div>
|
|
@@ -1010,9 +1006,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1010
1006
|
type: Input
|
|
1011
1007
|
}], adaptiveMode: [{
|
|
1012
1008
|
type: Input
|
|
1013
|
-
}],
|
|
1009
|
+
}], adaptiveTitle: [{
|
|
1014
1010
|
type: Input
|
|
1015
|
-
}],
|
|
1011
|
+
}], adaptiveSubtitle: [{
|
|
1016
1012
|
type: Input
|
|
1017
1013
|
}], size: [{
|
|
1018
1014
|
type: Input
|
|
@@ -86,7 +86,7 @@ export class DateRangeComponent {
|
|
|
86
86
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangeComponent, isStandalone: true, selector: "kendo-daterange", inputs: { size: "size" }, host: { listeners: { "keydown": "keydown($event)" }, properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
|
|
87
87
|
<ng-content></ng-content>
|
|
88
88
|
<kendo-daterange-popup *ngIf="showDefault" [size]="size"></kendo-daterange-popup>
|
|
89
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["showCalendarHeader", "focusedDate", "disabledDates", "activeView", "bottomView", "topView", "min", "max", "allowReverse", "animateNavigation", "disabled", "views", "weekNumber", "animate", "anchor", "anchorAlign", "showViewHeader", "showOtherMonthDays", "appendTo", "collision", "popupAlign", "margin", "adaptiveMode", "
|
|
89
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["showCalendarHeader", "focusedDate", "disabledDates", "activeView", "bottomView", "topView", "min", "max", "allowReverse", "animateNavigation", "disabled", "views", "weekNumber", "animate", "anchor", "anchorAlign", "showViewHeader", "showOtherMonthDays", "appendTo", "collision", "popupAlign", "margin", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "size"], outputs: ["open", "close", "blur", "focus", "cancel"], exportAs: ["kendo-daterange-popup"] }] });
|
|
90
90
|
}
|
|
91
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeComponent, decorators: [{
|
|
92
92
|
type: Component,
|
|
@@ -25,8 +25,12 @@ export class DateRangePopupMessages extends ComponentMessages {
|
|
|
25
25
|
* The label of the **Cancel** button in the popup footer of the DateRange Popup.
|
|
26
26
|
*/
|
|
27
27
|
cancelLabel;
|
|
28
|
+
/**
|
|
29
|
+
* The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode.
|
|
30
|
+
*/
|
|
31
|
+
adaptiveCloseButtonTitle;
|
|
28
32
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupMessages, selector: "kendo-daterangepopup-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel" }, usesInheritance: true, ngImport: i0 });
|
|
33
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupMessages, selector: "kendo-daterangepopup-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
30
34
|
}
|
|
31
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupMessages, decorators: [{
|
|
32
36
|
type: Directive,
|
|
@@ -42,4 +46,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
42
46
|
type: Input
|
|
43
47
|
}], cancelLabel: [{
|
|
44
48
|
type: Input
|
|
49
|
+
}], adaptiveCloseButtonTitle: [{
|
|
50
|
+
type: Input
|
|
45
51
|
}] } });
|