@progress/kendo-angular-dateinputs 22.1.0-develop.9 → 23.0.0-develop.1
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 +25 -25
- package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
- package/calendar/multiview-calendar.component.d.ts +18 -18
- package/calendar/templates/cell-template.directive.d.ts +2 -2
- 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.directive.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/common/models/fillmode.d.ts +1 -2
- package/common/models/size.d.ts +1 -2
- package/dateinput/dateinput.component.d.ts +18 -18
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
- package/dateinput/models/format-settings.model.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +33 -32
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +24 -24
- package/daterange/date-range-selection.directive.d.ts +4 -4
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +1 -1
- package/daterange/localization/daterange-popup-custom-messages.component.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +30 -29
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
- package/datetimepicker/models/active-tab.type.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +340 -393
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +22 -22
- package/util.d.ts +0 -12
|
@@ -37,7 +37,7 @@ const packageMetadata = {
|
|
|
37
37
|
productCode: 'KENDOUIANGULAR',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR'],
|
|
39
39
|
publishDate: 0,
|
|
40
|
-
version: '
|
|
40
|
+
version: '23.0.0-develop.1',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -522,7 +522,8 @@ const getRoundedClass = (rounded) => {
|
|
|
522
522
|
'small': 'k-rounded-sm',
|
|
523
523
|
'medium': 'k-rounded-md',
|
|
524
524
|
'large': 'k-rounded-lg',
|
|
525
|
-
'full': 'k-rounded-full'
|
|
525
|
+
'full': 'k-rounded-full',
|
|
526
|
+
'none': 'k-rounded-none'
|
|
526
527
|
};
|
|
527
528
|
return ROUNDED_CLASSES[rounded];
|
|
528
529
|
};
|
|
@@ -538,18 +539,6 @@ const getFillModeClass = (component, fillMode) => {
|
|
|
538
539
|
};
|
|
539
540
|
return FILLMODE_CLASSES[fillMode];
|
|
540
541
|
};
|
|
541
|
-
/**
|
|
542
|
-
* @hidden
|
|
543
|
-
*/
|
|
544
|
-
const DEFAULT_ROUNDED = 'medium';
|
|
545
|
-
/**
|
|
546
|
-
* @hidden
|
|
547
|
-
*/
|
|
548
|
-
const DEFAULT_SIZE = 'medium';
|
|
549
|
-
/**
|
|
550
|
-
* @hidden
|
|
551
|
-
*/
|
|
552
|
-
const DEFAULT_FILL_MODE = 'solid';
|
|
553
542
|
|
|
554
543
|
const EMPTY_DATA$3 = [[]];
|
|
555
544
|
const CELLS_LENGTH$3 = 4;
|
|
@@ -1567,7 +1556,7 @@ function getTypeNameForDebugging(type) {
|
|
|
1567
1556
|
}
|
|
1568
1557
|
|
|
1569
1558
|
const noop$1 = () => false;
|
|
1570
|
-
const DISABLED_DATES_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates
|
|
1559
|
+
const DISABLED_DATES_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates';
|
|
1571
1560
|
/**
|
|
1572
1561
|
* @hidden
|
|
1573
1562
|
*/
|
|
@@ -3027,10 +3016,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3027
3016
|
* - `date` - The Date object representing the current cell's date
|
|
3028
3017
|
* - `cellContext` - Additional context information about the current cell
|
|
3029
3018
|
*
|
|
3030
|
-
* For more examples, refer to the article on [templates](
|
|
3019
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3031
3020
|
*
|
|
3032
3021
|
* `kendoCalendarCellTemplate` is equivalent to
|
|
3033
|
-
* [`kendoCalendarMonthCellTemplate`](
|
|
3022
|
+
* [`kendoCalendarMonthCellTemplate`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/monthcelltemplatedirective).
|
|
3034
3023
|
*
|
|
3035
3024
|
* @example
|
|
3036
3025
|
* ```html
|
|
@@ -3068,7 +3057,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3068
3057
|
* - `date` - The Date object representing the current cell's date
|
|
3069
3058
|
* - `cellContext` - Additional context information about the current month cell
|
|
3070
3059
|
*
|
|
3071
|
-
* For more examples, refer to the article on [templates](
|
|
3060
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3072
3061
|
*
|
|
3073
3062
|
* @example
|
|
3074
3063
|
* ```html
|
|
@@ -3106,7 +3095,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3106
3095
|
* - `date` - The Date object representing the current cell's date
|
|
3107
3096
|
* - `cellContext` - Additional context information about the current year cell
|
|
3108
3097
|
*
|
|
3109
|
-
* For more examples, refer to the article on [templates](
|
|
3098
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3110
3099
|
*
|
|
3111
3100
|
* @example
|
|
3112
3101
|
* ```html
|
|
@@ -3144,7 +3133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3144
3133
|
* - `date` - The Date object representing the current cell's date
|
|
3145
3134
|
* - `cellContext` - Additional context information about the current decade cell
|
|
3146
3135
|
*
|
|
3147
|
-
* For more examples, refer to the article on [templates](
|
|
3136
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3148
3137
|
*
|
|
3149
3138
|
* @example
|
|
3150
3139
|
* ```html
|
|
@@ -3182,7 +3171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3182
3171
|
* - `date` - The Date object representing the current cell's date
|
|
3183
3172
|
* - `cellContext` - Additional context information about the current century cell
|
|
3184
3173
|
*
|
|
3185
|
-
* For more examples, refer to the article on [templates](
|
|
3174
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3186
3175
|
*
|
|
3187
3176
|
* @example
|
|
3188
3177
|
* ```html
|
|
@@ -3220,7 +3209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3220
3209
|
* - `date` - The Date object representing the current week's date
|
|
3221
3210
|
* - `cellContext` - Additional context information about the current week number cell
|
|
3222
3211
|
*
|
|
3223
|
-
* For more examples, refer to the article on [templates](
|
|
3212
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3224
3213
|
*
|
|
3225
3214
|
* @example
|
|
3226
3215
|
* ```html
|
|
@@ -3258,7 +3247,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3258
3247
|
* - `date` - The Date object representing the current header context
|
|
3259
3248
|
* - `activeView` - The current active view of the Calendar
|
|
3260
3249
|
*
|
|
3261
|
-
* For more examples, refer to the article on [templates](
|
|
3250
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3262
3251
|
*
|
|
3263
3252
|
* @example
|
|
3264
3253
|
* ```html
|
|
@@ -3452,7 +3441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3452
3441
|
* - `date` - The Date object representing the current header context
|
|
3453
3442
|
* - `activeView` - The current active view of the Calendar
|
|
3454
3443
|
*
|
|
3455
|
-
* For more examples, refer to the article on [templates](
|
|
3444
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3456
3445
|
*
|
|
3457
3446
|
* @example
|
|
3458
3447
|
* ```html
|
|
@@ -3492,7 +3481,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3492
3481
|
* - `date` - The Date object representing the current calendar context
|
|
3493
3482
|
* - `activeView` - The current active view of the Calendar
|
|
3494
3483
|
*
|
|
3495
|
-
* For more examples, refer to the article on [templates](
|
|
3484
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
3496
3485
|
*
|
|
3497
3486
|
* @example
|
|
3498
3487
|
* ```html
|
|
@@ -3658,11 +3647,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3658
3647
|
}]
|
|
3659
3648
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
3660
3649
|
|
|
3661
|
-
const BOTTOM_VIEW_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
3662
|
-
const TOP_VIEW_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
3663
|
-
const MIN_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
3664
|
-
const MAX_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
3665
|
-
const VALUE_DOC_LINK$5 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar
|
|
3650
|
+
const BOTTOM_VIEW_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#bottomview';
|
|
3651
|
+
const TOP_VIEW_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#topview';
|
|
3652
|
+
const MIN_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#min';
|
|
3653
|
+
const MAX_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#max';
|
|
3654
|
+
const VALUE_DOC_LINK$5 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar#using-with-json';
|
|
3666
3655
|
/**
|
|
3667
3656
|
* @hidden
|
|
3668
3657
|
*/
|
|
@@ -3699,7 +3688,7 @@ class MultiViewCalendarComponent {
|
|
|
3699
3688
|
disabledDatesService;
|
|
3700
3689
|
selectionService;
|
|
3701
3690
|
/**
|
|
3702
|
-
* Shows days that fall outside the current month ([see example](
|
|
3691
|
+
* Shows days that fall outside the current month ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-options#displaying-other-month-days)).
|
|
3703
3692
|
*
|
|
3704
3693
|
* @default true
|
|
3705
3694
|
*/
|
|
@@ -3718,30 +3707,29 @@ class MultiViewCalendarComponent {
|
|
|
3718
3707
|
*
|
|
3719
3708
|
* The possible values are:
|
|
3720
3709
|
* * `small`
|
|
3721
|
-
* * `medium`
|
|
3710
|
+
* * `medium`
|
|
3722
3711
|
* * `large`
|
|
3723
|
-
* * `none`
|
|
3724
3712
|
*
|
|
3713
|
+
* @default undefined
|
|
3725
3714
|
*/
|
|
3726
3715
|
set size(size) {
|
|
3727
|
-
const newSize = size ? size : DEFAULT_SIZE;
|
|
3728
3716
|
this.renderer.removeClass(this.element.nativeElement, getSizeClass('calendar', this.size));
|
|
3729
|
-
if (
|
|
3730
|
-
this.renderer.addClass(this.element.nativeElement, getSizeClass('calendar',
|
|
3717
|
+
if (size) {
|
|
3718
|
+
this.renderer.addClass(this.element.nativeElement, getSizeClass('calendar', size));
|
|
3731
3719
|
}
|
|
3732
|
-
this._size =
|
|
3720
|
+
this._size = size;
|
|
3733
3721
|
}
|
|
3734
3722
|
get size() {
|
|
3735
3723
|
return this._size;
|
|
3736
3724
|
}
|
|
3737
|
-
_size =
|
|
3725
|
+
_size = undefined;
|
|
3738
3726
|
/**
|
|
3739
3727
|
* @hidden
|
|
3740
3728
|
*/
|
|
3741
3729
|
id;
|
|
3742
3730
|
/**
|
|
3743
3731
|
* Specifies the focused date of the Calendar
|
|
3744
|
-
* ([see example](
|
|
3732
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/dates#focused-dates)).
|
|
3745
3733
|
*
|
|
3746
3734
|
* If the Calendar is outside the `min` or `max` range, the component normalizes the defined `focusedDate`.
|
|
3747
3735
|
*/
|
|
@@ -3806,14 +3794,14 @@ class MultiViewCalendarComponent {
|
|
|
3806
3794
|
/**
|
|
3807
3795
|
* Determines whether the built-in validator for disabled
|
|
3808
3796
|
* date ranges is enforced when validating a form
|
|
3809
|
-
* ([see example](
|
|
3797
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/disabled-dates)).
|
|
3810
3798
|
*
|
|
3811
3799
|
* @default false
|
|
3812
3800
|
*/
|
|
3813
3801
|
disabledDatesRangeValidation = false;
|
|
3814
3802
|
/**
|
|
3815
3803
|
* Sets the Calendar selection mode
|
|
3816
|
-
* ([see example](
|
|
3804
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/selection-modes)).
|
|
3817
3805
|
* @default 'single'
|
|
3818
3806
|
*/
|
|
3819
3807
|
set selection(_selection) {
|
|
@@ -3847,8 +3835,8 @@ class MultiViewCalendarComponent {
|
|
|
3847
3835
|
}
|
|
3848
3836
|
/**
|
|
3849
3837
|
* Specifies whether the component is disabled
|
|
3850
|
-
* ([see example](
|
|
3851
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
3838
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/disabled-state)).
|
|
3839
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/forms#managing-the-multiviewcalendar-disabled-state-in-reactive-forms).
|
|
3852
3840
|
*
|
|
3853
3841
|
* @default false
|
|
3854
3842
|
*/
|
|
@@ -3882,7 +3870,7 @@ class MultiViewCalendarComponent {
|
|
|
3882
3870
|
isActive = false;
|
|
3883
3871
|
/**
|
|
3884
3872
|
* Specifies the dates of the MultiViewCalendar that will be disabled
|
|
3885
|
-
* ([see example](
|
|
3873
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/disabled-dates)).
|
|
3886
3874
|
*/
|
|
3887
3875
|
set disabledDates(value) {
|
|
3888
3876
|
this.disabledDatesService.initialize(value);
|
|
@@ -3924,7 +3912,7 @@ class MultiViewCalendarComponent {
|
|
|
3924
3912
|
animateNavigation = false;
|
|
3925
3913
|
/**
|
|
3926
3914
|
* Specifies whether to display a week number column in the `month` view
|
|
3927
|
-
* ([see example](
|
|
3915
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/week-num-column)).
|
|
3928
3916
|
*
|
|
3929
3917
|
* @default false
|
|
3930
3918
|
*/
|
|
@@ -3944,7 +3932,7 @@ class MultiViewCalendarComponent {
|
|
|
3944
3932
|
/**
|
|
3945
3933
|
* Specifies the `selectionRange` property and
|
|
3946
3934
|
* defines the selection range of the component
|
|
3947
|
-
* ([see example](
|
|
3935
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/selection-modes#range-selection)).
|
|
3948
3936
|
* > We recommend using the `value` property as it now supports `range` selection.
|
|
3949
3937
|
*/
|
|
3950
3938
|
set selectionRange(range) {
|
|
@@ -3973,27 +3961,27 @@ class MultiViewCalendarComponent {
|
|
|
3973
3961
|
orientation = 'horizontal';
|
|
3974
3962
|
/**
|
|
3975
3963
|
* Fires when the active view is changed
|
|
3976
|
-
* ([see example](
|
|
3964
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
3977
3965
|
*/
|
|
3978
3966
|
activeViewChange = new EventEmitter();
|
|
3979
3967
|
/**
|
|
3980
3968
|
* Fires when navigating in the currently active view
|
|
3981
|
-
* ([see example](
|
|
3969
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
3982
3970
|
*/
|
|
3983
3971
|
navigate = new EventEmitter();
|
|
3984
3972
|
/**
|
|
3985
3973
|
* Fires when a view cell is entered
|
|
3986
|
-
* ([see example](
|
|
3974
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
3987
3975
|
*/
|
|
3988
3976
|
cellEnter = new EventEmitter();
|
|
3989
3977
|
/**
|
|
3990
3978
|
* Fires when a view cell is leaved
|
|
3991
|
-
* ([see example](
|
|
3979
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
3992
3980
|
*/
|
|
3993
3981
|
cellLeave = new EventEmitter();
|
|
3994
3982
|
/**
|
|
3995
3983
|
* Fires when the value is changed
|
|
3996
|
-
* ([see example](
|
|
3984
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
3997
3985
|
*/
|
|
3998
3986
|
valueChange = new EventEmitter();
|
|
3999
3987
|
/**
|
|
@@ -4003,12 +3991,12 @@ class MultiViewCalendarComponent {
|
|
|
4003
3991
|
rangeSelectionChange = new EventEmitter();
|
|
4004
3992
|
/**
|
|
4005
3993
|
* Fires each time the MultiViewCalendar gets blurred
|
|
4006
|
-
* ([see example](
|
|
3994
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
4007
3995
|
*/
|
|
4008
3996
|
blurEvent = new EventEmitter();
|
|
4009
3997
|
/**
|
|
4010
3998
|
* Fires each time the MultiViewCalendar gets focused
|
|
4011
|
-
* ([see example](
|
|
3999
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events)).
|
|
4012
4000
|
*/
|
|
4013
4001
|
focusEvent = new EventEmitter();
|
|
4014
4002
|
/**
|
|
@@ -4684,7 +4672,9 @@ class MultiViewCalendarComponent {
|
|
|
4684
4672
|
}
|
|
4685
4673
|
setClasses(element) {
|
|
4686
4674
|
this.renderer.addClass(element, 'k-calendar');
|
|
4687
|
-
|
|
4675
|
+
if (this.size) {
|
|
4676
|
+
this.renderer.addClass(element, getSizeClass('calendar', this.size));
|
|
4677
|
+
}
|
|
4688
4678
|
if (this.views >= 2) {
|
|
4689
4679
|
this.renderer.addClass(element, 'k-calendar-range');
|
|
4690
4680
|
}
|
|
@@ -4837,13 +4827,13 @@ class MultiViewCalendarComponent {
|
|
|
4837
4827
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
4838
4828
|
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
4839
4829
|
today="Today"
|
|
4840
|
-
|
|
4830
|
+
|
|
4841
4831
|
i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
|
|
4842
4832
|
prevButtonTitle="Navigate to previous view"
|
|
4843
|
-
|
|
4833
|
+
|
|
4844
4834
|
i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
|
|
4845
4835
|
nextButtonTitle="Navigate to next view"
|
|
4846
|
-
|
|
4836
|
+
|
|
4847
4837
|
i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
|
|
4848
4838
|
parentViewButtonTitle="Navigate to parent view"
|
|
4849
4839
|
>
|
|
@@ -4935,13 +4925,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4935
4925
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
4936
4926
|
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
4937
4927
|
today="Today"
|
|
4938
|
-
|
|
4928
|
+
|
|
4939
4929
|
i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
|
|
4940
4930
|
prevButtonTitle="Navigate to previous view"
|
|
4941
|
-
|
|
4931
|
+
|
|
4942
4932
|
i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
|
|
4943
4933
|
nextButtonTitle="Navigate to next view"
|
|
4944
|
-
|
|
4934
|
+
|
|
4945
4935
|
i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
|
|
4946
4936
|
parentViewButtonTitle="Navigate to parent view"
|
|
4947
4937
|
>
|
|
@@ -5192,10 +5182,10 @@ const tbody = domContainerFactory('tbody');
|
|
|
5192
5182
|
const thead = domContainerFactory('thead');
|
|
5193
5183
|
const table = domContainerFactory('table');
|
|
5194
5184
|
const monthHeader = () => (div$1(`
|
|
5195
|
-
<span class="k-button k-button-
|
|
5185
|
+
<span class="k-button k-button-flat k-calendar-title">March 2017</span>
|
|
5196
5186
|
<span class="k-spacer"></span>
|
|
5197
5187
|
<span class="k-calendar-nav">
|
|
5198
|
-
<button class="k-calendar-nav-today k-button k-button-
|
|
5188
|
+
<button class="k-calendar-nav-today k-button k-button-flat k-button-flat-base">TODAY</button>
|
|
5199
5189
|
</span>
|
|
5200
5190
|
`, 'k-calendar-header'));
|
|
5201
5191
|
const monthWeekHeader = () => (table([
|
|
@@ -5205,7 +5195,7 @@ const monthWeekHeader = () => (table([
|
|
|
5205
5195
|
], 'k-calendar-weekdays k-calendar-table'));
|
|
5206
5196
|
const repeat = (count, mapper) => new Array(count).fill('1').map(mapper);
|
|
5207
5197
|
const content = (rows, cells = 1) => (table([
|
|
5208
|
-
tbody([tr([th('1', 'k-calendar-th')], 'k-calendar-tr')].concat(repeat(rows, () => tr(repeat(cells, c => td(`<span class="k-link">${c}</span>`, 'k-calendar-td')), 'k-calendar-tr'))), 'k-calendar-tbody')
|
|
5198
|
+
tbody([tr([th('1', 'k-calendar-th k-calendar-caption')], 'k-calendar-tr')].concat(repeat(rows, () => tr(repeat(cells, c => td(`<span class="k-link">${c}</span>`, 'k-calendar-td')), 'k-calendar-tr'))), 'k-calendar-tbody')
|
|
5209
5199
|
], 'k-calendar-table'));
|
|
5210
5200
|
const scrollable$1 = (children) => div$1(children, 'k-flex k-content k-scrollable');
|
|
5211
5201
|
const view = (contentElement, className, renderWeekHeader) => (div$1([
|
|
@@ -6643,7 +6633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6643
6633
|
* - `date` - The Date object representing the current navigation context
|
|
6644
6634
|
* - `activeView` - The current active view of the Calendar
|
|
6645
6635
|
*
|
|
6646
|
-
* For more examples, refer to the article on [templates](
|
|
6636
|
+
* For more examples, refer to the article on [templates](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/templates).
|
|
6647
6637
|
*
|
|
6648
6638
|
* @example
|
|
6649
6639
|
* ```html
|
|
@@ -6692,7 +6682,7 @@ class PickerService {
|
|
|
6692
6682
|
* </kendo-multiviewcalendar-messages>
|
|
6693
6683
|
* ```
|
|
6694
6684
|
*
|
|
6695
|
-
* For more information, see the [globalization documentation](
|
|
6685
|
+
* For more information, see the [globalization documentation](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages).
|
|
6696
6686
|
*/
|
|
6697
6687
|
class MultiViewCalendarCustomMessagesComponent extends Messages {
|
|
6698
6688
|
service;
|
|
@@ -6796,11 +6786,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6796
6786
|
}]
|
|
6797
6787
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
6798
6788
|
|
|
6799
|
-
const BOTTOM_VIEW_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
6800
|
-
const TOP_VIEW_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
6801
|
-
const MIN_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
6802
|
-
const MAX_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent
|
|
6803
|
-
const VALUE_DOC_LINK$4 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar
|
|
6789
|
+
const BOTTOM_VIEW_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#bottomview';
|
|
6790
|
+
const TOP_VIEW_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#topview';
|
|
6791
|
+
const MIN_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#min';
|
|
6792
|
+
const MAX_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent#max';
|
|
6793
|
+
const VALUE_DOC_LINK$4 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar#using-with-json';
|
|
6804
6794
|
const virtualizationProp = x => x ? x.virtualization : null;
|
|
6805
6795
|
/**
|
|
6806
6796
|
* @hidden
|
|
@@ -6826,7 +6816,7 @@ const KENDO_INPUT_PROVIDER = {
|
|
|
6826
6816
|
useExisting: forwardRef(() => CalendarComponent)
|
|
6827
6817
|
};
|
|
6828
6818
|
/**
|
|
6829
|
-
* Represents the [Kendo UI Calendar component for Angular](
|
|
6819
|
+
* Represents the [Kendo UI Calendar component for Angular](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar).
|
|
6830
6820
|
* @example
|
|
6831
6821
|
* ```html
|
|
6832
6822
|
* <kendo-calendar></kendo-calendar>
|
|
@@ -6850,7 +6840,7 @@ class CalendarComponent {
|
|
|
6850
6840
|
selectionService;
|
|
6851
6841
|
pickerService;
|
|
6852
6842
|
/**
|
|
6853
|
-
* Shows days that fall outside the current month and the default values per Calendar type are false for infinite and true for classic ([see example](
|
|
6843
|
+
* Shows days that fall outside the current month and the default values per Calendar type are false for infinite and true for classic ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-options#displaying-other-month-days)).
|
|
6854
6844
|
*/
|
|
6855
6845
|
set showOtherMonthDays(_showOtherMonthDays) {
|
|
6856
6846
|
this._showOtherMonthDays = _showOtherMonthDays;
|
|
@@ -6874,7 +6864,7 @@ class CalendarComponent {
|
|
|
6874
6864
|
}
|
|
6875
6865
|
/**
|
|
6876
6866
|
* Specifies the focused date of the Calendar
|
|
6877
|
-
* ([see example](
|
|
6867
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/dates#focused-dates)).
|
|
6878
6868
|
*
|
|
6879
6869
|
* If the Calendar is outside the `min` or `max` range, the component normalizes the defined `focusedDate`.
|
|
6880
6870
|
*/
|
|
@@ -6907,7 +6897,7 @@ class CalendarComponent {
|
|
|
6907
6897
|
}
|
|
6908
6898
|
/**
|
|
6909
6899
|
* Specifies the minimum allowed date value
|
|
6910
|
-
* ([see example](
|
|
6900
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/date-ranges)).
|
|
6911
6901
|
*
|
|
6912
6902
|
* @default 1900-1-1
|
|
6913
6903
|
*/
|
|
@@ -6919,7 +6909,7 @@ class CalendarComponent {
|
|
|
6919
6909
|
}
|
|
6920
6910
|
/**
|
|
6921
6911
|
* Specifies the maximum allowed date value
|
|
6922
|
-
* ([see example](
|
|
6912
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/date-ranges)).
|
|
6923
6913
|
*
|
|
6924
6914
|
* @default 2099-12-31
|
|
6925
6915
|
*/
|
|
@@ -6949,7 +6939,7 @@ class CalendarComponent {
|
|
|
6949
6939
|
footer = false;
|
|
6950
6940
|
/**
|
|
6951
6941
|
* Sets the Calendar selection mode
|
|
6952
|
-
* ([see example](
|
|
6942
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/selection-modes)).
|
|
6953
6943
|
* @default 'single'
|
|
6954
6944
|
*/
|
|
6955
6945
|
set selection(_selection) {
|
|
@@ -6982,8 +6972,8 @@ class CalendarComponent {
|
|
|
6982
6972
|
/**
|
|
6983
6973
|
* Sets or gets the `disabled` property of the Calendar and
|
|
6984
6974
|
* determines whether the component is active
|
|
6985
|
-
* ([see example](
|
|
6986
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
6975
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-state)).
|
|
6976
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/forms#managing-the-calendar-disabled-state-in-reactive-forms).
|
|
6987
6977
|
*/
|
|
6988
6978
|
disabled = false;
|
|
6989
6979
|
/**
|
|
@@ -7005,7 +6995,7 @@ class CalendarComponent {
|
|
|
7005
6995
|
}
|
|
7006
6996
|
/**
|
|
7007
6997
|
* Specifies the dates of the Calendar that will be disabled
|
|
7008
|
-
* ([see example](
|
|
6998
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates)).
|
|
7009
6999
|
*/
|
|
7010
7000
|
set disabledDates(value) {
|
|
7011
7001
|
this.disabledDatesService.initialize(value);
|
|
@@ -7016,15 +7006,15 @@ class CalendarComponent {
|
|
|
7016
7006
|
}
|
|
7017
7007
|
/**
|
|
7018
7008
|
* Determines whether the navigation side-bar will be displayed
|
|
7019
|
-
* ([see example](
|
|
7020
|
-
* Applies to the [`infinite`](
|
|
7009
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/sidebar)).
|
|
7010
|
+
* Applies to the [`infinite`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/calendarcomponent#type) Calendar only.
|
|
7021
7011
|
*
|
|
7022
7012
|
* @default true
|
|
7023
7013
|
*/
|
|
7024
7014
|
navigation = true;
|
|
7025
7015
|
/**
|
|
7026
7016
|
* Defines the active view that the Calendar initially renders
|
|
7027
|
-
* ([see example](
|
|
7017
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-options)).
|
|
7028
7018
|
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
7029
7019
|
*
|
|
7030
7020
|
* @default 'month'
|
|
@@ -7032,14 +7022,14 @@ class CalendarComponent {
|
|
|
7032
7022
|
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
7033
7023
|
/**
|
|
7034
7024
|
* Defines the bottommost view to which the user can navigate
|
|
7035
|
-
* ([see example](
|
|
7025
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-depth)).
|
|
7036
7026
|
*
|
|
7037
7027
|
* @default 'month'
|
|
7038
7028
|
*/
|
|
7039
7029
|
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
7040
7030
|
/**
|
|
7041
7031
|
* Defines the topmost view to which the user can navigate
|
|
7042
|
-
* ([see example](
|
|
7032
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-depth)).
|
|
7043
7033
|
*
|
|
7044
7034
|
* @default 'century'
|
|
7045
7035
|
*/
|
|
@@ -7061,7 +7051,7 @@ class CalendarComponent {
|
|
|
7061
7051
|
}
|
|
7062
7052
|
/**
|
|
7063
7053
|
* Determines whether to enable animation when navigating to previous/next view.
|
|
7064
|
-
* Applies to the [`classic`](
|
|
7054
|
+
* Applies to the [`classic`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/calendarcomponent#type) Calendar only.
|
|
7065
7055
|
*
|
|
7066
7056
|
* This feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
|
|
7067
7057
|
*
|
|
@@ -7070,7 +7060,7 @@ class CalendarComponent {
|
|
|
7070
7060
|
animateNavigation = false;
|
|
7071
7061
|
/**
|
|
7072
7062
|
* Determines whether to display a week number column in the `month` view
|
|
7073
|
-
* ([see example](
|
|
7063
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/week-num-column)).
|
|
7074
7064
|
*
|
|
7075
7065
|
* @default false
|
|
7076
7066
|
*/
|
|
@@ -7081,33 +7071,33 @@ class CalendarComponent {
|
|
|
7081
7071
|
closePopup = new EventEmitter();
|
|
7082
7072
|
/**
|
|
7083
7073
|
* Fires when the active view is changed
|
|
7084
|
-
* ([see example](
|
|
7074
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7085
7075
|
*/
|
|
7086
7076
|
activeViewChange = new EventEmitter();
|
|
7087
7077
|
/**
|
|
7088
7078
|
* Fires when navigating in the currently active view
|
|
7089
|
-
* ([see example](
|
|
7079
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7090
7080
|
*/
|
|
7091
7081
|
navigate = new EventEmitter();
|
|
7092
7082
|
/**
|
|
7093
7083
|
* Fires when the active view date is changed
|
|
7094
|
-
* ([see example](
|
|
7095
|
-
* Applies to the [`infinite`](
|
|
7084
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7085
|
+
* Applies to the [`infinite`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/calendarcomponent#type) Calendar only.
|
|
7096
7086
|
*/
|
|
7097
7087
|
activeViewDateChange = new EventEmitter();
|
|
7098
7088
|
/**
|
|
7099
7089
|
* Fires each time the Calendar gets blurred
|
|
7100
|
-
* ([see example](
|
|
7090
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7101
7091
|
*/
|
|
7102
7092
|
onBlur = new EventEmitter();
|
|
7103
7093
|
/**
|
|
7104
7094
|
* Fires each time the Calendar gets focused
|
|
7105
|
-
* ([see example](
|
|
7095
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7106
7096
|
*/
|
|
7107
7097
|
onFocus = new EventEmitter();
|
|
7108
7098
|
/**
|
|
7109
7099
|
* Fires when the value is changed
|
|
7110
|
-
* ([see example](
|
|
7100
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/events)).
|
|
7111
7101
|
*/
|
|
7112
7102
|
valueChange = new EventEmitter();
|
|
7113
7103
|
/**
|
|
@@ -7307,10 +7297,10 @@ class CalendarComponent {
|
|
|
7307
7297
|
*
|
|
7308
7298
|
* The possible values are:
|
|
7309
7299
|
* * `small`
|
|
7310
|
-
* * `medium`
|
|
7300
|
+
* * `medium`
|
|
7311
7301
|
* * `large`
|
|
7312
|
-
* * `none`
|
|
7313
7302
|
*
|
|
7303
|
+
* @default undefined
|
|
7314
7304
|
*/
|
|
7315
7305
|
set size(size) {
|
|
7316
7306
|
this._size = size;
|
|
@@ -7318,7 +7308,7 @@ class CalendarComponent {
|
|
|
7318
7308
|
get size() {
|
|
7319
7309
|
return this._size;
|
|
7320
7310
|
}
|
|
7321
|
-
_size =
|
|
7311
|
+
_size = undefined;
|
|
7322
7312
|
/**
|
|
7323
7313
|
* Specifies which end of the defined selection range should be marked as active.
|
|
7324
7314
|
* Value will be ignored if the selection range is undefined. If range selection is used then the default value is 'start'.
|
|
@@ -7461,7 +7451,7 @@ class CalendarComponent {
|
|
|
7461
7451
|
}
|
|
7462
7452
|
ngAfterViewInit() {
|
|
7463
7453
|
this.setAriaActivedescendant();
|
|
7464
|
-
if (this.size
|
|
7454
|
+
if (this.size) {
|
|
7465
7455
|
const element = this.type === 'infinite' ? this.element : this.multiViewCalendar.element;
|
|
7466
7456
|
this.renderer.removeClass(element.nativeElement, getSizeClass('calendar', this.size));
|
|
7467
7457
|
this.renderer.addClass(element.nativeElement, getSizeClass('calendar', this.size));
|
|
@@ -8045,13 +8035,13 @@ class CalendarComponent {
|
|
|
8045
8035
|
<ng-container kendoCalendarLocalizedMessages
|
|
8046
8036
|
i18n-today="kendo.calendar.today|The label for the today button in the calendar header"
|
|
8047
8037
|
today="Today"
|
|
8048
|
-
|
|
8038
|
+
|
|
8049
8039
|
i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"
|
|
8050
8040
|
prevButtonTitle="Navigate to previous view"
|
|
8051
|
-
|
|
8041
|
+
|
|
8052
8042
|
i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"
|
|
8053
8043
|
nextButtonTitle="Navigate to next view"
|
|
8054
|
-
|
|
8044
|
+
|
|
8055
8045
|
i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
8056
8046
|
parentViewButtonTitle="Navigate to parent view"
|
|
8057
8047
|
>
|
|
@@ -8188,13 +8178,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
8188
8178
|
<ng-container kendoCalendarLocalizedMessages
|
|
8189
8179
|
i18n-today="kendo.calendar.today|The label for the today button in the calendar header"
|
|
8190
8180
|
today="Today"
|
|
8191
|
-
|
|
8181
|
+
|
|
8192
8182
|
i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"
|
|
8193
8183
|
prevButtonTitle="Navigate to previous view"
|
|
8194
|
-
|
|
8184
|
+
|
|
8195
8185
|
i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"
|
|
8196
8186
|
nextButtonTitle="Navigate to next view"
|
|
8197
|
-
|
|
8187
|
+
|
|
8198
8188
|
i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
8199
8189
|
parentViewButtonTitle="Navigate to parent view"
|
|
8200
8190
|
>
|
|
@@ -8546,9 +8536,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
8546
8536
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
8547
8537
|
|
|
8548
8538
|
let nextId = 0;
|
|
8549
|
-
const MIN_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent
|
|
8550
|
-
const MAX_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent
|
|
8551
|
-
const VALUE_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput
|
|
8539
|
+
const MIN_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent#min';
|
|
8540
|
+
const MAX_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent#max';
|
|
8541
|
+
const VALUE_DOC_LINK$3 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput#using-with-json';
|
|
8552
8542
|
const TWO_DIGIT_YEAR_MAX$2 = 68;
|
|
8553
8543
|
const DEFAULT_FORMAT$1 = 'd';
|
|
8554
8544
|
const DEFAULT_FORMAT_PLACEHOLDER = 'wide';
|
|
@@ -8597,7 +8587,7 @@ class DateInputIntl {
|
|
|
8597
8587
|
}
|
|
8598
8588
|
}
|
|
8599
8589
|
/**
|
|
8600
|
-
* Represents the [Kendo UI DateInput component for Angular](
|
|
8590
|
+
* Represents the [Kendo UI DateInput component for Angular](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput).
|
|
8601
8591
|
*
|
|
8602
8592
|
* ```html
|
|
8603
8593
|
* <kendo-dateinput/>
|
|
@@ -8654,15 +8644,15 @@ class DateInputComponent {
|
|
|
8654
8644
|
clearButton = false;
|
|
8655
8645
|
/**
|
|
8656
8646
|
* Specifies whether the component is disabled
|
|
8657
|
-
* ([see example](
|
|
8658
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
8647
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/disabled-state)).
|
|
8648
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/forms#managing-the-dateinput-disabled-state-in-reactive-forms).
|
|
8659
8649
|
*
|
|
8660
8650
|
* @default false
|
|
8661
8651
|
*/
|
|
8662
8652
|
disabled = false;
|
|
8663
8653
|
/**
|
|
8664
8654
|
* Specifies the read-only state of the DateInput
|
|
8665
|
-
* ([see example](
|
|
8655
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/readonly-state)).
|
|
8666
8656
|
*
|
|
8667
8657
|
* @default false
|
|
8668
8658
|
*/
|
|
@@ -8702,7 +8692,7 @@ class DateInputComponent {
|
|
|
8702
8692
|
isRequired = false;
|
|
8703
8693
|
/**
|
|
8704
8694
|
* Specifies the date format that is used to display the input value
|
|
8705
|
-
* ([see example](
|
|
8695
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/formats)).
|
|
8706
8696
|
*
|
|
8707
8697
|
* You can provide a string if a single format is going to be used regardless whether the input is focused or blurred.
|
|
8708
8698
|
* Alternatively, you can provide a FormatSettings object to display different formats when the component is focused or blurred by specifying inputFormat and displayFormat values.
|
|
@@ -8711,7 +8701,7 @@ class DateInputComponent {
|
|
|
8711
8701
|
/**
|
|
8712
8702
|
* Defines the descriptions of the format sections in the input field.
|
|
8713
8703
|
* For more information, refer to the article on
|
|
8714
|
-
* [placeholders](
|
|
8704
|
+
* [placeholders](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/placeholders).
|
|
8715
8705
|
*/
|
|
8716
8706
|
set formatPlaceholder(format) {
|
|
8717
8707
|
this._formatPlaceholder = format || DEFAULT_FORMAT_PLACEHOLDER;
|
|
@@ -8722,25 +8712,25 @@ class DateInputComponent {
|
|
|
8722
8712
|
/**
|
|
8723
8713
|
* Specifies the hint the DateInput displays when its value is `null`.
|
|
8724
8714
|
* For more information, refer to the article on
|
|
8725
|
-
* [placeholders](
|
|
8715
|
+
* [placeholders](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/placeholders).
|
|
8726
8716
|
*/
|
|
8727
8717
|
placeholder;
|
|
8728
8718
|
/**
|
|
8729
8719
|
* Configures the incremental steps of the DateInput.
|
|
8730
8720
|
* For more information, refer to the article on
|
|
8731
|
-
* [incremental steps](
|
|
8721
|
+
* [incremental steps](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/incremental-steps).
|
|
8732
8722
|
*/
|
|
8733
8723
|
steps = {};
|
|
8734
8724
|
/**
|
|
8735
8725
|
* Specifies the biggest date that is valid
|
|
8736
|
-
* ([see example](
|
|
8726
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/date-ranges)).
|
|
8737
8727
|
*
|
|
8738
8728
|
* @default 2099-12-31
|
|
8739
8729
|
*/
|
|
8740
8730
|
max = cloneDate(MAX_DATE);
|
|
8741
8731
|
/**
|
|
8742
8732
|
* Specifies the smallest date that is valid
|
|
8743
|
-
* ([see example](
|
|
8733
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/date-ranges)).
|
|
8744
8734
|
*
|
|
8745
8735
|
* @default 1900-1-1
|
|
8746
8736
|
*/
|
|
@@ -8792,7 +8782,7 @@ class DateInputComponent {
|
|
|
8792
8782
|
incompleteDateValidation = false;
|
|
8793
8783
|
/**
|
|
8794
8784
|
* The maximum year to assume to be from the current century when typing two-digit year value
|
|
8795
|
-
* ([see example](
|
|
8785
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/formats#two-digit-year-format)).
|
|
8796
8786
|
*
|
|
8797
8787
|
* The default value is 68, indicating that typing any value less than 69
|
|
8798
8788
|
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
@@ -8822,7 +8812,7 @@ class DateInputComponent {
|
|
|
8822
8812
|
/**
|
|
8823
8813
|
* Specifies whether the **Up** and **Down** spin buttons will be rendered.
|
|
8824
8814
|
* For more information, refer to the article on
|
|
8825
|
-
* [spinner buttons](
|
|
8815
|
+
* [spinner buttons](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/spin-buttons).
|
|
8826
8816
|
*
|
|
8827
8817
|
* @default false
|
|
8828
8818
|
*/
|
|
@@ -8838,16 +8828,15 @@ class DateInputComponent {
|
|
|
8838
8828
|
/**
|
|
8839
8829
|
* Specifies the size of the component.
|
|
8840
8830
|
*
|
|
8841
|
-
* @default
|
|
8831
|
+
* @default undefined
|
|
8842
8832
|
*
|
|
8843
8833
|
*/
|
|
8844
8834
|
set size(size) {
|
|
8845
8835
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
8836
|
+
if (size) {
|
|
8837
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
8849
8838
|
}
|
|
8850
|
-
this._size =
|
|
8839
|
+
this._size = size;
|
|
8851
8840
|
}
|
|
8852
8841
|
get size() {
|
|
8853
8842
|
return this._size;
|
|
@@ -8858,30 +8847,28 @@ class DateInputComponent {
|
|
|
8858
8847
|
*/
|
|
8859
8848
|
set rounded(rounded) {
|
|
8860
8849
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
8850
|
+
if (rounded) {
|
|
8851
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
8864
8852
|
}
|
|
8865
|
-
this._rounded =
|
|
8853
|
+
this._rounded = rounded;
|
|
8866
8854
|
}
|
|
8867
8855
|
get rounded() {
|
|
8868
8856
|
return this._rounded;
|
|
8869
8857
|
}
|
|
8870
8858
|
/**
|
|
8871
8859
|
* Specifies the fillMode of the component.
|
|
8872
|
-
* @default
|
|
8860
|
+
* @default undefined
|
|
8873
8861
|
*/
|
|
8874
8862
|
set fillMode(fillMode) {
|
|
8875
8863
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
8864
|
+
if (fillMode) {
|
|
8865
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
8879
8866
|
if (this.spinners && this.spinup && this.spindown) {
|
|
8880
|
-
this.setSpinnerFill(this.spinup.nativeElement,
|
|
8881
|
-
this.setSpinnerFill(this.spindown.nativeElement,
|
|
8867
|
+
this.setSpinnerFill(this.spinup.nativeElement, fillMode, this.fillMode);
|
|
8868
|
+
this.setSpinnerFill(this.spindown.nativeElement, fillMode, this.fillMode);
|
|
8882
8869
|
}
|
|
8883
8870
|
}
|
|
8884
|
-
this._fillMode =
|
|
8871
|
+
this._fillMode = fillMode;
|
|
8885
8872
|
}
|
|
8886
8873
|
get fillMode() {
|
|
8887
8874
|
return this._fillMode;
|
|
@@ -8904,23 +8891,23 @@ class DateInputComponent {
|
|
|
8904
8891
|
}
|
|
8905
8892
|
/**
|
|
8906
8893
|
* Fires each time the user selects a new value
|
|
8907
|
-
* ([see example](
|
|
8894
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/events)).
|
|
8908
8895
|
*/
|
|
8909
8896
|
valueChange = new EventEmitter();
|
|
8910
8897
|
/**
|
|
8911
8898
|
* @hidden
|
|
8912
8899
|
* Fires each time the user selects a new value
|
|
8913
|
-
* ([see example](
|
|
8900
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/events)).
|
|
8914
8901
|
*/
|
|
8915
8902
|
valueUpdate = new EventEmitter();
|
|
8916
8903
|
/**
|
|
8917
8904
|
* Fires each time the user focuses the input element
|
|
8918
|
-
* ([see example](
|
|
8905
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/events)).
|
|
8919
8906
|
*/
|
|
8920
8907
|
onFocus = new EventEmitter();
|
|
8921
8908
|
/**
|
|
8922
8909
|
* Fires each time the input element gets blurred
|
|
8923
|
-
* ([see example](
|
|
8910
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/events)).
|
|
8924
8911
|
*/
|
|
8925
8912
|
onBlur = new EventEmitter();
|
|
8926
8913
|
/**
|
|
@@ -9011,9 +8998,9 @@ class DateInputComponent {
|
|
|
9011
8998
|
onControlChange = noop$2;
|
|
9012
8999
|
onControlTouched = noop$2;
|
|
9013
9000
|
onValidatorChange = noop$2;
|
|
9014
|
-
_size
|
|
9015
|
-
_rounded
|
|
9016
|
-
_fillMode
|
|
9001
|
+
_size;
|
|
9002
|
+
_rounded;
|
|
9003
|
+
_fillMode;
|
|
9017
9004
|
control;
|
|
9018
9005
|
subs = new Subscription();
|
|
9019
9006
|
_inputAttributes;
|
|
@@ -9375,24 +9362,24 @@ class DateInputComponent {
|
|
|
9375
9362
|
}
|
|
9376
9363
|
}
|
|
9377
9364
|
setSpinnerFill(spinner, fill, oldFill) {
|
|
9378
|
-
if (oldFill
|
|
9365
|
+
if (oldFill) {
|
|
9379
9366
|
this.renderer.removeClass(spinner, `k-button-${oldFill}`);
|
|
9380
|
-
this.renderer.removeClass(spinner, `k-button-${oldFill}-base`);
|
|
9381
9367
|
}
|
|
9382
|
-
|
|
9383
|
-
|
|
9368
|
+
if (fill) {
|
|
9369
|
+
this.renderer.addClass(spinner, `k-button-${fill}`);
|
|
9370
|
+
}
|
|
9384
9371
|
}
|
|
9385
9372
|
setComponentClasses() {
|
|
9386
|
-
if (this.size
|
|
9373
|
+
if (this.size) {
|
|
9387
9374
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
9388
9375
|
}
|
|
9389
|
-
if (this.rounded
|
|
9376
|
+
if (this.rounded) {
|
|
9390
9377
|
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
9391
9378
|
}
|
|
9392
|
-
if (this.fillMode
|
|
9379
|
+
if (this.fillMode) {
|
|
9393
9380
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
9394
9381
|
}
|
|
9395
|
-
if (this.spinners && this.fillMode
|
|
9382
|
+
if (this.spinners && this.fillMode) {
|
|
9396
9383
|
this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
|
|
9397
9384
|
this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
|
|
9398
9385
|
}
|
|
@@ -9412,10 +9399,10 @@ class DateInputComponent {
|
|
|
9412
9399
|
<ng-container kendoDateInputLocalizedMessages
|
|
9413
9400
|
i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
|
|
9414
9401
|
increment="Increase value"
|
|
9415
|
-
|
|
9402
|
+
|
|
9416
9403
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
9417
9404
|
decrement="Decrease value"
|
|
9418
|
-
|
|
9405
|
+
|
|
9419
9406
|
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
9420
9407
|
clearTitle="clear"
|
|
9421
9408
|
>
|
|
@@ -9518,10 +9505,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
9518
9505
|
<ng-container kendoDateInputLocalizedMessages
|
|
9519
9506
|
i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
|
|
9520
9507
|
increment="Increase value"
|
|
9521
|
-
|
|
9508
|
+
|
|
9522
9509
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
9523
9510
|
decrement="Decrease value"
|
|
9524
|
-
|
|
9511
|
+
|
|
9525
9512
|
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
9526
9513
|
clearTitle="clear"
|
|
9527
9514
|
>
|
|
@@ -9760,7 +9747,7 @@ const disabledDatesValidator = (isDateDisabled) => {
|
|
|
9760
9747
|
* </kendo-calendar-messages>
|
|
9761
9748
|
* ```
|
|
9762
9749
|
*
|
|
9763
|
-
* For more information, see the [globalization documentation](
|
|
9750
|
+
* For more information, see the [globalization documentation](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages).
|
|
9764
9751
|
*/
|
|
9765
9752
|
class CalendarCustomMessagesComponent extends CalendarMessages {
|
|
9766
9753
|
service;
|
|
@@ -9796,7 +9783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
9796
9783
|
|
|
9797
9784
|
/**
|
|
9798
9785
|
* Represents the Kendo UI DateInput custom messages component.
|
|
9799
|
-
* Overrides the default component messages with custom messages ([see example](
|
|
9786
|
+
* Overrides the default component messages with custom messages ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages)).
|
|
9800
9787
|
*
|
|
9801
9788
|
* @example
|
|
9802
9789
|
* ```ts
|
|
@@ -9934,14 +9921,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
9934
9921
|
}]
|
|
9935
9922
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
9936
9923
|
|
|
9937
|
-
const MIN_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent
|
|
9938
|
-
const MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent
|
|
9939
|
-
const VALUE_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker
|
|
9924
|
+
const MIN_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent#min';
|
|
9925
|
+
const MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent#max';
|
|
9926
|
+
const VALUE_DOC_LINK$2 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker#using-with-json';
|
|
9940
9927
|
const DEFAULT_FORMAT = 'd';
|
|
9941
9928
|
const TWO_DIGIT_YEAR_MAX$1 = 68;
|
|
9942
9929
|
/**
|
|
9943
9930
|
* Represents the Kendo UI DatePicker component for Angular.
|
|
9944
|
-
* Provides a user-friendly way to select dates with a calendar popup ([see example](
|
|
9931
|
+
* Provides a user-friendly way to select dates with a calendar popup ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker)).
|
|
9945
9932
|
*
|
|
9946
9933
|
* @example
|
|
9947
9934
|
* ```ts
|
|
@@ -10106,24 +10093,24 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10106
10093
|
*/
|
|
10107
10094
|
weekDaysFormat = "short";
|
|
10108
10095
|
/**
|
|
10109
|
-
* Shows the days that fall outside the current month in the Calendar ([see example](
|
|
10096
|
+
* Shows the days that fall outside the current month in the Calendar ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-options#displaying-other-month-days)).
|
|
10110
10097
|
* The default value is `false` for infinite Calendar type and `true` for classic Calendar type.
|
|
10111
10098
|
*/
|
|
10112
10099
|
showOtherMonthDays;
|
|
10113
10100
|
/**
|
|
10114
|
-
* Specifies the active view that the Calendar initially renders ([see example](
|
|
10101
|
+
* Specifies the active view that the Calendar initially renders ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/view-options#active-view)).
|
|
10115
10102
|
*
|
|
10116
10103
|
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
10117
10104
|
* @default 'month'
|
|
10118
10105
|
*/
|
|
10119
10106
|
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
10120
10107
|
/**
|
|
10121
|
-
* Specifies the bottommost Calendar view to which you can navigate ([see example](
|
|
10108
|
+
* Specifies the bottommost Calendar view to which you can navigate ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/calendar-options#view-selection-depth)).
|
|
10122
10109
|
* @default 'month'
|
|
10123
10110
|
*/
|
|
10124
10111
|
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
10125
10112
|
/**
|
|
10126
|
-
* Specifies the topmost Calendar view to which you can navigate ([see example](
|
|
10113
|
+
* Specifies the topmost Calendar view to which you can navigate ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/calendar-options#view-selection-depth)).
|
|
10127
10114
|
* @default 'century'
|
|
10128
10115
|
*/
|
|
10129
10116
|
topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
@@ -10134,7 +10121,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10134
10121
|
calendarType = 'infinite';
|
|
10135
10122
|
/**
|
|
10136
10123
|
* Determines whether to enable animation when navigating to previous/next Calendar view.
|
|
10137
|
-
* Applies to the [`classic`](
|
|
10124
|
+
* Applies to the [`classic`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/datepickercomponent#calendartype) Calendar only.
|
|
10138
10125
|
*
|
|
10139
10126
|
* This feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
|
|
10140
10127
|
*
|
|
@@ -10142,21 +10129,21 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10142
10129
|
*/
|
|
10143
10130
|
animateCalendarNavigation = false;
|
|
10144
10131
|
/**
|
|
10145
|
-
* Specifies or gets the `disabled` property of the DatePicker and determines whether the component is active ([see example](
|
|
10146
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
10132
|
+
* Specifies or gets the `disabled` property of the DatePicker and determines whether the component is active ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/disabled-state)).
|
|
10133
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/forms#managing-the-datepicker-disabled-state-in-reactive-forms).
|
|
10147
10134
|
*/
|
|
10148
10135
|
disabled = false;
|
|
10149
10136
|
/**
|
|
10150
|
-
* Specifies the read-only state of the DatePicker ([see example](
|
|
10137
|
+
* Specifies the read-only state of the DatePicker ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/readonly-state#read-only-datepicker)).
|
|
10151
10138
|
*
|
|
10152
10139
|
* @default false
|
|
10153
10140
|
*/
|
|
10154
10141
|
readonly = false;
|
|
10155
10142
|
/**
|
|
10156
10143
|
* Sets the read-only state of the DatePicker input field
|
|
10157
|
-
* ([see example](
|
|
10144
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/readonly-state#read-only-input)).
|
|
10158
10145
|
*
|
|
10159
|
-
* If you set the [`readonly`](
|
|
10146
|
+
* If you set the [`readonly`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/datepickercomponent#readonly) property value to `true`,
|
|
10160
10147
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
10161
10148
|
*/
|
|
10162
10149
|
readOnlyInput = false;
|
|
@@ -10176,7 +10163,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10176
10163
|
/**
|
|
10177
10164
|
* Sets or gets the `navigation` property of the Calendar
|
|
10178
10165
|
* and determines whether the navigation side-bar is displayed.
|
|
10179
|
-
* ([see example](
|
|
10166
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/sidebar)).
|
|
10180
10167
|
*/
|
|
10181
10168
|
set navigation(state) {
|
|
10182
10169
|
this._navigation = state;
|
|
@@ -10190,13 +10177,13 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10190
10177
|
_navigation = true;
|
|
10191
10178
|
/**
|
|
10192
10179
|
* Specifies the smallest valid date
|
|
10193
|
-
* ([see example](
|
|
10180
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/date-ranges)).
|
|
10194
10181
|
* @default 1900-1-1
|
|
10195
10182
|
*/
|
|
10196
10183
|
min = cloneDate(MIN_DATE);
|
|
10197
10184
|
/**
|
|
10198
10185
|
* Specifies the biggest valid date
|
|
10199
|
-
* ([see example](
|
|
10186
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/date-ranges)).
|
|
10200
10187
|
* @default 2099-12-31
|
|
10201
10188
|
*/
|
|
10202
10189
|
max = cloneDate(MAX_DATE);
|
|
@@ -10241,7 +10228,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10241
10228
|
autoFill = false;
|
|
10242
10229
|
/**
|
|
10243
10230
|
* Specifies the focused date of the Calendar component
|
|
10244
|
-
* ([see example](
|
|
10231
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/calendar-options#focused-dates)).
|
|
10245
10232
|
* @default null
|
|
10246
10233
|
*/
|
|
10247
10234
|
focusedDate = null;
|
|
@@ -10259,7 +10246,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10259
10246
|
}
|
|
10260
10247
|
/**
|
|
10261
10248
|
* Specifies the date format that is used to display the input value
|
|
10262
|
-
* ([see example](
|
|
10249
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/formats)).
|
|
10263
10250
|
*
|
|
10264
10251
|
* Format value options include string to provide a single format that is used regardless whether the input is focused or blurred.
|
|
10265
10252
|
* FormatSettings can be used to display different formats when the component is focused or blurred by providing a settings object with specified inputFormat and displayFormat values.
|
|
@@ -10267,7 +10254,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10267
10254
|
format = DEFAULT_FORMAT;
|
|
10268
10255
|
/**
|
|
10269
10256
|
* The maximum year to assume to be from the current century when typing two-digit year value
|
|
10270
|
-
* ([see example](
|
|
10257
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/formats#two-digit-year-format)).
|
|
10271
10258
|
*
|
|
10272
10259
|
* The default value is 68, indicating that typing any value less than 69
|
|
10273
10260
|
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
@@ -10276,13 +10263,13 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10276
10263
|
twoDigitYearMax = TWO_DIGIT_YEAR_MAX$1;
|
|
10277
10264
|
/**
|
|
10278
10265
|
* Defines the descriptions of the format sections in the input field.
|
|
10279
|
-
* ([more information and examples](
|
|
10266
|
+
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/placeholders)).
|
|
10280
10267
|
*
|
|
10281
10268
|
*/
|
|
10282
10269
|
formatPlaceholder;
|
|
10283
10270
|
/**
|
|
10284
10271
|
* Specifies the hint the DatePicker displays when its value is `null`.
|
|
10285
|
-
* ([more information and exaples](
|
|
10272
|
+
* ([more information and exaples](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/placeholders)).
|
|
10286
10273
|
*/
|
|
10287
10274
|
placeholder;
|
|
10288
10275
|
/**
|
|
@@ -10302,7 +10289,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10302
10289
|
}
|
|
10303
10290
|
/**
|
|
10304
10291
|
* Sets the dates of the DatePicker that will be disabled
|
|
10305
|
-
* ([see example](
|
|
10292
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/disabled-dates)).
|
|
10306
10293
|
*/
|
|
10307
10294
|
set disabledDates(value) {
|
|
10308
10295
|
this._disabledDates = value;
|
|
@@ -10313,13 +10300,13 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10313
10300
|
}
|
|
10314
10301
|
/**
|
|
10315
10302
|
* Sets the title of the input element of the DatePicker and the title text rendered
|
|
10316
|
-
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
10303
|
+
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
10317
10304
|
* @default ""
|
|
10318
10305
|
*/
|
|
10319
10306
|
adaptiveTitle = "";
|
|
10320
10307
|
/**
|
|
10321
10308
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
10322
|
-
* Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
10309
|
+
* Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
10323
10310
|
* @default ""
|
|
10324
10311
|
*/
|
|
10325
10312
|
adaptiveSubtitle = "";
|
|
@@ -10332,63 +10319,59 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10332
10319
|
/**
|
|
10333
10320
|
* Determines whether the built-in validator for disabled
|
|
10334
10321
|
* date ranges is enforced when validating a form
|
|
10335
|
-
* ([see example](
|
|
10322
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/disabled-dates#using-a-function)).
|
|
10336
10323
|
* @default true
|
|
10337
10324
|
*/
|
|
10338
10325
|
disabledDatesValidation = true;
|
|
10339
10326
|
/**
|
|
10340
10327
|
* Determines whether to display a week number column in the `month` view of the Calendar
|
|
10341
|
-
* ([see example](
|
|
10328
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/calendar-options#week-number-column)).
|
|
10342
10329
|
* @default false
|
|
10343
10330
|
*/
|
|
10344
10331
|
weekNumber = false;
|
|
10345
10332
|
/**
|
|
10346
10333
|
* Sets the size of the component.
|
|
10347
|
-
* @default
|
|
10334
|
+
* @default undefined
|
|
10348
10335
|
*/
|
|
10349
10336
|
set size(size) {
|
|
10350
10337
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
10351
10338
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
this.renderer.addClass(this.
|
|
10355
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', newSize));
|
|
10339
|
+
if (size) {
|
|
10340
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
10341
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', size));
|
|
10356
10342
|
}
|
|
10357
|
-
this._size =
|
|
10343
|
+
this._size = size;
|
|
10358
10344
|
}
|
|
10359
10345
|
get size() {
|
|
10360
10346
|
return this._size;
|
|
10361
10347
|
}
|
|
10362
10348
|
/**
|
|
10363
10349
|
* Specifies the border radius of the component.
|
|
10364
|
-
* @default
|
|
10350
|
+
* @default undefined
|
|
10365
10351
|
*/
|
|
10366
10352
|
set rounded(rounded) {
|
|
10367
10353
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
10354
|
+
if (rounded) {
|
|
10355
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
10371
10356
|
}
|
|
10372
|
-
this._rounded =
|
|
10357
|
+
this._rounded = rounded;
|
|
10373
10358
|
}
|
|
10374
10359
|
get rounded() {
|
|
10375
10360
|
return this._rounded;
|
|
10376
10361
|
}
|
|
10377
10362
|
/**
|
|
10378
10363
|
* Specifies the fillMode of the component.
|
|
10379
|
-
*
|
|
10364
|
+
*
|
|
10365
|
+
* @default undefined
|
|
10380
10366
|
*/
|
|
10381
10367
|
set fillMode(fillMode) {
|
|
10382
10368
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
10383
10369
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
10388
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
10389
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
10370
|
+
if (fillMode) {
|
|
10371
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
10372
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
10390
10373
|
}
|
|
10391
|
-
this._fillMode =
|
|
10374
|
+
this._fillMode = fillMode;
|
|
10392
10375
|
}
|
|
10393
10376
|
get fillMode() {
|
|
10394
10377
|
return this._fillMode;
|
|
@@ -10401,28 +10384,28 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10401
10384
|
adaptiveMode = 'none';
|
|
10402
10385
|
/**
|
|
10403
10386
|
* Fires each time the user selects a new value
|
|
10404
|
-
* ([see example](
|
|
10387
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/events)).
|
|
10405
10388
|
*/
|
|
10406
10389
|
valueChange = new EventEmitter();
|
|
10407
10390
|
/**
|
|
10408
10391
|
* Fires each time the user focuses the input element
|
|
10409
|
-
* ([see example](
|
|
10392
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/events)).
|
|
10410
10393
|
*/
|
|
10411
10394
|
onFocus = new EventEmitter();
|
|
10412
10395
|
/**
|
|
10413
10396
|
* Fires each time the input element gets blurred
|
|
10414
|
-
* ([see example](
|
|
10397
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/events)).
|
|
10415
10398
|
*/
|
|
10416
10399
|
onBlur = new EventEmitter();
|
|
10417
10400
|
/**
|
|
10418
10401
|
* Fires each time the popup is about to open
|
|
10419
|
-
* ([see example](
|
|
10402
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/events)).
|
|
10420
10403
|
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
10421
10404
|
*/
|
|
10422
10405
|
open = new EventEmitter();
|
|
10423
10406
|
/**
|
|
10424
10407
|
* Fires each time the popup is about to close
|
|
10425
|
-
* ([see example](
|
|
10408
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/events)).
|
|
10426
10409
|
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
10427
10410
|
*/
|
|
10428
10411
|
close = new EventEmitter();
|
|
@@ -10521,9 +10504,9 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10521
10504
|
ariaActiveDescendantSubscription;
|
|
10522
10505
|
control;
|
|
10523
10506
|
domEvents = [];
|
|
10524
|
-
_size
|
|
10525
|
-
_rounded
|
|
10526
|
-
_fillMode
|
|
10507
|
+
_size;
|
|
10508
|
+
_rounded;
|
|
10509
|
+
_fillMode;
|
|
10527
10510
|
constructor(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, disabledDatesService, adaptiveService) {
|
|
10528
10511
|
super();
|
|
10529
10512
|
this.zone = zone;
|
|
@@ -11030,7 +11013,6 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11030
11013
|
if (this.fillMode) {
|
|
11031
11014
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
11032
11015
|
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
11033
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
11034
11016
|
}
|
|
11035
11017
|
}
|
|
11036
11018
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: DisabledDatesService }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -11097,9 +11079,6 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11097
11079
|
[enableMouseWheel]="enableMouseWheel"
|
|
11098
11080
|
[allowCaretMode]="allowCaretMode"
|
|
11099
11081
|
[autoFill]="autoFill"
|
|
11100
|
-
fillMode="none"
|
|
11101
|
-
rounded="none"
|
|
11102
|
-
size="none"
|
|
11103
11082
|
[inputAttributes]="inputAttributes"
|
|
11104
11083
|
[value]="value"
|
|
11105
11084
|
(valueChange)="handleInputChange($event)"
|
|
@@ -11310,9 +11289,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
11310
11289
|
[enableMouseWheel]="enableMouseWheel"
|
|
11311
11290
|
[allowCaretMode]="allowCaretMode"
|
|
11312
11291
|
[autoFill]="autoFill"
|
|
11313
|
-
fillMode="none"
|
|
11314
|
-
rounded="none"
|
|
11315
|
-
size="none"
|
|
11316
11292
|
[inputAttributes]="inputAttributes"
|
|
11317
11293
|
[value]="value"
|
|
11318
11294
|
(valueChange)="handleInputChange($event)"
|
|
@@ -13354,11 +13330,11 @@ class TimeSelectorComponent {
|
|
|
13354
13330
|
</span>
|
|
13355
13331
|
@if (showNowButton) {
|
|
13356
13332
|
<button
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13333
|
+
#now
|
|
13334
|
+
type="button"
|
|
13335
|
+
class="k-button k-button-flat k-button-primary k-time-now"
|
|
13336
|
+
[attr.title]="localization.get('nowLabel')"
|
|
13337
|
+
[attr.aria-label]="localization.get('nowLabel')"
|
|
13362
13338
|
[kendoEventsOutsideAngular]="{
|
|
13363
13339
|
click: handleNow,
|
|
13364
13340
|
focus: handleFocus,
|
|
@@ -13413,7 +13389,7 @@ class TimeSelectorComponent {
|
|
|
13413
13389
|
<button
|
|
13414
13390
|
#accept
|
|
13415
13391
|
type="button"
|
|
13416
|
-
class="k-button k-time-accept k-button-
|
|
13392
|
+
class="k-button k-time-accept k-button-primary"
|
|
13417
13393
|
[attr.title]="localization.get('acceptLabel')"
|
|
13418
13394
|
[attr.aria-label]="localization.get('acceptLabel')"
|
|
13419
13395
|
[kendoEventsOutsideAngular]="{
|
|
@@ -13429,7 +13405,7 @@ class TimeSelectorComponent {
|
|
|
13429
13405
|
@if (cancelButton) {
|
|
13430
13406
|
<button
|
|
13431
13407
|
#cancel
|
|
13432
|
-
class="k-button k-time-cancel
|
|
13408
|
+
class="k-button k-time-cancel"
|
|
13433
13409
|
type="button"
|
|
13434
13410
|
[attr.title]="localization.get('cancelLabel')"
|
|
13435
13411
|
[attr.aria-label]="localization.get('cancelLabel')"
|
|
@@ -13487,11 +13463,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
13487
13463
|
</span>
|
|
13488
13464
|
@if (showNowButton) {
|
|
13489
13465
|
<button
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13466
|
+
#now
|
|
13467
|
+
type="button"
|
|
13468
|
+
class="k-button k-button-flat k-button-primary k-time-now"
|
|
13469
|
+
[attr.title]="localization.get('nowLabel')"
|
|
13470
|
+
[attr.aria-label]="localization.get('nowLabel')"
|
|
13495
13471
|
[kendoEventsOutsideAngular]="{
|
|
13496
13472
|
click: handleNow,
|
|
13497
13473
|
focus: handleFocus,
|
|
@@ -13546,7 +13522,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
13546
13522
|
<button
|
|
13547
13523
|
#accept
|
|
13548
13524
|
type="button"
|
|
13549
|
-
class="k-button k-time-accept k-button-
|
|
13525
|
+
class="k-button k-time-accept k-button-primary"
|
|
13550
13526
|
[attr.title]="localization.get('acceptLabel')"
|
|
13551
13527
|
[attr.aria-label]="localization.get('acceptLabel')"
|
|
13552
13528
|
[kendoEventsOutsideAngular]="{
|
|
@@ -13562,7 +13538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
13562
13538
|
@if (cancelButton) {
|
|
13563
13539
|
<button
|
|
13564
13540
|
#cancel
|
|
13565
|
-
class="k-button k-time-cancel
|
|
13541
|
+
class="k-button k-time-cancel"
|
|
13566
13542
|
type="button"
|
|
13567
13543
|
[attr.title]="localization.get('cancelLabel')"
|
|
13568
13544
|
[attr.aria-label]="localization.get('cancelLabel')"
|
|
@@ -13723,13 +13699,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
13723
13699
|
}]
|
|
13724
13700
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
13725
13701
|
|
|
13726
|
-
const VALUE_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker
|
|
13702
|
+
const VALUE_DOC_LINK$1 = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker#integration-with-json';
|
|
13727
13703
|
const INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
|
|
13728
13704
|
const formatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.millisecond}|${TIME_PART.dayperiod}|literal`);
|
|
13729
13705
|
const ACCEPT_BUTTON_SELECTOR$1 = '.k-button.k-time-accept';
|
|
13730
13706
|
const CANCEL_BUTTON_SELECTOR = '.k-button.k-time-cancel';
|
|
13731
13707
|
/**
|
|
13732
|
-
* Represents the [Kendo UI TimePicker component for Angular](
|
|
13708
|
+
* Represents the [Kendo UI TimePicker component for Angular](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker).
|
|
13733
13709
|
*
|
|
13734
13710
|
* @example
|
|
13735
13711
|
* ```typescript
|
|
@@ -13773,24 +13749,24 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13773
13749
|
focusableId;
|
|
13774
13750
|
/**
|
|
13775
13751
|
* Determines whether the TimePicker is disabled
|
|
13776
|
-
* ([see example](
|
|
13777
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
13752
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/disabled-state)).
|
|
13753
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/forms#managing-the-timepicker-disabled-state-in-reactive-forms).
|
|
13778
13754
|
*
|
|
13779
13755
|
* @default false
|
|
13780
13756
|
*/
|
|
13781
13757
|
disabled = false;
|
|
13782
13758
|
/**
|
|
13783
13759
|
* Determines the read-only state of the TimePicker
|
|
13784
|
-
* ([see example](
|
|
13760
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/readonly-state#read-only-timepicker)).
|
|
13785
13761
|
*
|
|
13786
13762
|
* @default false
|
|
13787
13763
|
*/
|
|
13788
13764
|
readonly = false;
|
|
13789
13765
|
/**
|
|
13790
13766
|
* Sets the read-only state of the TimePicker input field
|
|
13791
|
-
* ([see example](
|
|
13767
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/readonly-state#read-only-input)).
|
|
13792
13768
|
*
|
|
13793
|
-
* If you set the [`readonly`](
|
|
13769
|
+
* If you set the [`readonly`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/timepickercomponent#readonly) property value to `true`,
|
|
13794
13770
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
13795
13771
|
* @default false
|
|
13796
13772
|
*/
|
|
@@ -13803,26 +13779,26 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13803
13779
|
clearButton = false;
|
|
13804
13780
|
/**
|
|
13805
13781
|
* Specifies the time format that is used to display the input value
|
|
13806
|
-
* ([see example](
|
|
13782
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/formats)).
|
|
13807
13783
|
* @default 't'
|
|
13808
13784
|
*/
|
|
13809
13785
|
format = 't';
|
|
13810
13786
|
/**
|
|
13811
13787
|
* Defines the descriptions of the format sections in the input field.
|
|
13812
13788
|
* For more information, refer to the article on
|
|
13813
|
-
* [placeholders](
|
|
13789
|
+
* [placeholders](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/placeholders).
|
|
13814
13790
|
*/
|
|
13815
13791
|
formatPlaceholder;
|
|
13816
13792
|
/**
|
|
13817
13793
|
* Specifies the hint the TimePicker displays when its value is `null`.
|
|
13818
13794
|
* For more information, refer to the article on
|
|
13819
|
-
* [placeholders](
|
|
13795
|
+
* [placeholders](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/placeholders).
|
|
13820
13796
|
* @default null
|
|
13821
13797
|
*/
|
|
13822
13798
|
placeholder;
|
|
13823
13799
|
/**
|
|
13824
13800
|
* Specifies the smallest valid time value
|
|
13825
|
-
* ([see example](
|
|
13801
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/time-ranges)).
|
|
13826
13802
|
* @default `00:00:00`
|
|
13827
13803
|
*/
|
|
13828
13804
|
set min(min) {
|
|
@@ -13833,7 +13809,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13833
13809
|
}
|
|
13834
13810
|
/**
|
|
13835
13811
|
* Specifies the biggest valid time value
|
|
13836
|
-
* ([see example](
|
|
13812
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/time-ranges)).
|
|
13837
13813
|
* @default `23:59:59`
|
|
13838
13814
|
*/
|
|
13839
13815
|
set max(max) {
|
|
@@ -13887,7 +13863,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13887
13863
|
/**
|
|
13888
13864
|
* Configures the incremental steps of the TimePicker.
|
|
13889
13865
|
* For more information, refer to the article on
|
|
13890
|
-
* [incremental steps](
|
|
13866
|
+
* [incremental steps](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/incremental-steps).
|
|
13891
13867
|
*
|
|
13892
13868
|
* If the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
13893
13869
|
*/
|
|
@@ -13926,12 +13902,12 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13926
13902
|
}
|
|
13927
13903
|
/**
|
|
13928
13904
|
* Sets the title of the input element of the TimePicker and the title text rendered
|
|
13929
|
-
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
13905
|
+
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
13930
13906
|
*/
|
|
13931
13907
|
adaptiveTitle = '';
|
|
13932
13908
|
/**
|
|
13933
13909
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
13934
|
-
* Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
13910
|
+
* Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
13935
13911
|
* By default, subtitle is not rendered.
|
|
13936
13912
|
*/
|
|
13937
13913
|
adaptiveSubtitle;
|
|
@@ -13960,52 +13936,47 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13960
13936
|
}
|
|
13961
13937
|
/**
|
|
13962
13938
|
* Sets the size of the component.
|
|
13963
|
-
* @default
|
|
13939
|
+
* @default undefined
|
|
13964
13940
|
*/
|
|
13965
13941
|
set size(size) {
|
|
13966
13942
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
13967
13943
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
this.renderer.addClass(this.
|
|
13971
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', newSize));
|
|
13944
|
+
if (size) {
|
|
13945
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
13946
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', size));
|
|
13972
13947
|
}
|
|
13973
|
-
this._size =
|
|
13948
|
+
this._size = size;
|
|
13974
13949
|
}
|
|
13975
13950
|
get size() {
|
|
13976
13951
|
return this._size;
|
|
13977
13952
|
}
|
|
13978
13953
|
/**
|
|
13979
13954
|
* Sets the rounded styling of the component.
|
|
13980
|
-
* @default
|
|
13955
|
+
* @default undefined
|
|
13981
13956
|
*
|
|
13982
13957
|
*/
|
|
13983
13958
|
set rounded(rounded) {
|
|
13984
13959
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
13960
|
+
if (rounded) {
|
|
13961
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
13988
13962
|
}
|
|
13989
|
-
this._rounded =
|
|
13963
|
+
this._rounded = rounded;
|
|
13990
13964
|
}
|
|
13991
13965
|
get rounded() {
|
|
13992
13966
|
return this._rounded;
|
|
13993
13967
|
}
|
|
13994
13968
|
/**
|
|
13995
13969
|
* Sets the fillMode of the component.
|
|
13996
|
-
* @default
|
|
13970
|
+
* @default undefined
|
|
13997
13971
|
*/
|
|
13998
13972
|
set fillMode(fillMode) {
|
|
13999
13973
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
14000
13974
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
14005
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
14006
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
13975
|
+
if (fillMode) {
|
|
13976
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
13977
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
14007
13978
|
}
|
|
14008
|
-
this._fillMode =
|
|
13979
|
+
this._fillMode = fillMode;
|
|
14009
13980
|
}
|
|
14010
13981
|
get fillMode() {
|
|
14011
13982
|
return this._fillMode;
|
|
@@ -14016,28 +13987,28 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14016
13987
|
inputAttributes;
|
|
14017
13988
|
/**
|
|
14018
13989
|
* Fires each time the user selects a new value
|
|
14019
|
-
* ([see example](
|
|
13990
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/events)).
|
|
14020
13991
|
*/
|
|
14021
13992
|
valueChange = new EventEmitter();
|
|
14022
13993
|
/**
|
|
14023
13994
|
* Fires each time the user focuses the input element
|
|
14024
|
-
* ([see example](
|
|
13995
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/events)).
|
|
14025
13996
|
*/
|
|
14026
13997
|
onFocus = new EventEmitter();
|
|
14027
13998
|
/**
|
|
14028
13999
|
* Fires each time the input element gets blurred
|
|
14029
|
-
* ([see example](
|
|
14000
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/events)).
|
|
14030
14001
|
*/
|
|
14031
14002
|
onBlur = new EventEmitter();
|
|
14032
14003
|
/**
|
|
14033
14004
|
* Fires each time the popup is about to open
|
|
14034
|
-
* ([see example](
|
|
14005
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/events)).
|
|
14035
14006
|
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
14036
14007
|
*/
|
|
14037
14008
|
open = new EventEmitter();
|
|
14038
14009
|
/**
|
|
14039
14010
|
* Fires each time the popup is about to close
|
|
14040
|
-
* ([see example](
|
|
14011
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/events)).
|
|
14041
14012
|
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
14042
14013
|
*/
|
|
14043
14014
|
close = new EventEmitter();
|
|
@@ -14149,9 +14120,9 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14149
14120
|
windowBlurSubscription;
|
|
14150
14121
|
control;
|
|
14151
14122
|
domEvents = [];
|
|
14152
|
-
_size
|
|
14153
|
-
_rounded
|
|
14154
|
-
_fillMode
|
|
14123
|
+
_size;
|
|
14124
|
+
_rounded;
|
|
14125
|
+
_fillMode;
|
|
14155
14126
|
constructor(bus, zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, intl, adaptiveService) {
|
|
14156
14127
|
super();
|
|
14157
14128
|
this.bus = bus;
|
|
@@ -14695,7 +14666,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14695
14666
|
if (this.fillMode) {
|
|
14696
14667
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
14697
14668
|
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
14698
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
14699
14669
|
}
|
|
14700
14670
|
}
|
|
14701
14671
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TimePickerComponent, deps: [{ token: BusViewService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: i1.IntlService }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -14777,9 +14747,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14777
14747
|
[autoSwitchKeys]="autoSwitchKeys"
|
|
14778
14748
|
[enableMouseWheel]="enableMouseWheel"
|
|
14779
14749
|
[allowCaretMode]="allowCaretMode"
|
|
14780
|
-
fillMode="none"
|
|
14781
|
-
rounded="none"
|
|
14782
|
-
size="none"
|
|
14783
14750
|
[steps]="steps"
|
|
14784
14751
|
[tabindex]="!show ? tabindex : -1"
|
|
14785
14752
|
[isRequired]="isControlRequired"
|
|
@@ -15020,9 +14987,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15020
14987
|
[autoSwitchKeys]="autoSwitchKeys"
|
|
15021
14988
|
[enableMouseWheel]="enableMouseWheel"
|
|
15022
14989
|
[allowCaretMode]="allowCaretMode"
|
|
15023
|
-
fillMode="none"
|
|
15024
|
-
rounded="none"
|
|
15025
|
-
size="none"
|
|
15026
14990
|
[steps]="steps"
|
|
15027
14991
|
[tabindex]="!show ? tabindex : -1"
|
|
15028
14992
|
[isRequired]="isControlRequired"
|
|
@@ -15459,8 +15423,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15459
15423
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
15460
15424
|
|
|
15461
15425
|
const timeFormatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.dayperiod}|literal`);
|
|
15462
|
-
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json
|
|
15463
|
-
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits
|
|
15426
|
+
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json';
|
|
15427
|
+
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits';
|
|
15464
15428
|
const DEFAULT_ACTIVE_TAB = 'date';
|
|
15465
15429
|
const DEFAULT_DATEINPUT_FORMAT = 'g';
|
|
15466
15430
|
const DEFAULT_TIMESELECTOR_FORMAT = 't';
|
|
@@ -15559,7 +15523,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15559
15523
|
*/
|
|
15560
15524
|
weekDaysFormat = "short";
|
|
15561
15525
|
/**
|
|
15562
|
-
* Displays the days that fall out of the current month in the Calendar ([see example](
|
|
15526
|
+
* Displays the days that fall out of the current month in the Calendar ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/calendar-options#displaying-other-month-days)).
|
|
15563
15527
|
* You can set this to show or hide days from other months.
|
|
15564
15528
|
*
|
|
15565
15529
|
* For infinite Calendar the default value is `false`, while for classic Calendar it is `true`.
|
|
@@ -15582,7 +15546,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15582
15546
|
}
|
|
15583
15547
|
/**
|
|
15584
15548
|
* Specifies the date format for displaying the input value
|
|
15585
|
-
* ([see example](
|
|
15549
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/formats)).
|
|
15586
15550
|
*
|
|
15587
15551
|
* When using a string format, the same format is applied regardless of whether the input is focused or blurred.
|
|
15588
15552
|
* When using a FormatSettings object, you can specify different inputFormat and displayFormat values for focused and blurred states.
|
|
@@ -15599,7 +15563,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15599
15563
|
}
|
|
15600
15564
|
/**
|
|
15601
15565
|
* The maximum year to assume to be from the current century when typing two-digit year value
|
|
15602
|
-
* ([see example](
|
|
15566
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/formats#two-digit-year-format)).
|
|
15603
15567
|
*
|
|
15604
15568
|
* The default value is 68, indicating that typing any value less than 69
|
|
15605
15569
|
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
@@ -15619,7 +15583,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15619
15583
|
}
|
|
15620
15584
|
/**
|
|
15621
15585
|
* Sets the dates of the DateTimePicker that will be disabled
|
|
15622
|
-
* ([see example](
|
|
15586
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/disabled-dates)).
|
|
15623
15587
|
*/
|
|
15624
15588
|
set disabledDates(value) {
|
|
15625
15589
|
this._disabledDates = value;
|
|
@@ -15630,7 +15594,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15630
15594
|
}
|
|
15631
15595
|
/**
|
|
15632
15596
|
* Configures the popup settings of the DateTimePicker
|
|
15633
|
-
* ([see example](
|
|
15597
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/popup-options#customizing-the-popup)).
|
|
15634
15598
|
*
|
|
15635
15599
|
* The available options are animate which controls the popup animation and by default, the open and close animations are enabled.
|
|
15636
15600
|
* The `appendTo` option controls the popup container and by default, the popup will be appended to the root component.
|
|
@@ -15644,26 +15608,26 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15644
15608
|
}
|
|
15645
15609
|
/**
|
|
15646
15610
|
* Specifies the title of the input element of the DateTimePicker and the title text rendered
|
|
15647
|
-
* in the header of the popup (action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
15611
|
+
* in the header of the popup (action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
15648
15612
|
* @default ''
|
|
15649
15613
|
*/
|
|
15650
15614
|
adaptiveTitle = '';
|
|
15651
15615
|
/**
|
|
15652
15616
|
* Specifies the subtitle text rendered in the header of the popup (action sheet).
|
|
15653
|
-
* Applicable only when [`AdaptiveMode` is set to `auto`](
|
|
15617
|
+
* Applicable only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
15654
15618
|
* @default ''
|
|
15655
15619
|
*/
|
|
15656
15620
|
adaptiveSubtitle = '';
|
|
15657
15621
|
/**
|
|
15658
15622
|
* Specifies the `disabled` property of the DateTimePicker and determines whether the component is active
|
|
15659
|
-
* ([see example](
|
|
15660
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
15623
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/disabled-state)).
|
|
15624
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/forms#managing-the-datetimepicker-disabled-state-in-reactive-forms).
|
|
15661
15625
|
* @default false
|
|
15662
15626
|
*/
|
|
15663
15627
|
disabled = false;
|
|
15664
15628
|
/**
|
|
15665
15629
|
* Specifies the read-only state of the DateTimePicker
|
|
15666
|
-
* ([see example](
|
|
15630
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/readonly-state#read-only-datetimepicker)).
|
|
15667
15631
|
* @default false
|
|
15668
15632
|
*
|
|
15669
15633
|
* @default false
|
|
@@ -15671,9 +15635,9 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15671
15635
|
readonly = false;
|
|
15672
15636
|
/**
|
|
15673
15637
|
* Determines whether the input field of the DateTimePicker is read-only
|
|
15674
|
-
* ([see example](
|
|
15638
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/readonly-state#read-only-input)).
|
|
15675
15639
|
*
|
|
15676
|
-
* If you set the [`readonly`](
|
|
15640
|
+
* If you set the [`readonly`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/datetimepickercomponent#readonly) property value to `true`,
|
|
15677
15641
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
15678
15642
|
*
|
|
15679
15643
|
* @default false
|
|
@@ -15681,28 +15645,28 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15681
15645
|
readOnlyInput = false;
|
|
15682
15646
|
/**
|
|
15683
15647
|
* Determines whether to display the **Cancel** button in the popup
|
|
15684
|
-
* ([see example](
|
|
15648
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/popup-options#toggling-the-cancel-button)).
|
|
15685
15649
|
* @default true
|
|
15686
15650
|
*/
|
|
15687
15651
|
cancelButton = true;
|
|
15688
15652
|
/**
|
|
15689
15653
|
* Defines the descriptions of the format sections in the input field
|
|
15690
|
-
* ([see example](
|
|
15654
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/placeholders#format-sections-description)).
|
|
15691
15655
|
*/
|
|
15692
15656
|
formatPlaceholder;
|
|
15693
15657
|
/**
|
|
15694
15658
|
* Specifies the hint which is displayed by the DateTimePicker when its value is `null`
|
|
15695
|
-
* ([see example](
|
|
15659
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/placeholders#text-hints)).
|
|
15696
15660
|
*/
|
|
15697
15661
|
placeholder;
|
|
15698
15662
|
/**
|
|
15699
15663
|
* Configures the incremental steps of the DateInput and the popup component of the TimePicker
|
|
15700
|
-
* ([see example](
|
|
15664
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/incremental-steps)).
|
|
15701
15665
|
*/
|
|
15702
15666
|
steps = {};
|
|
15703
15667
|
/**
|
|
15704
15668
|
* Specifies the focused date of the popup Calendar
|
|
15705
|
-
* ([see example](
|
|
15669
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/calendar-options#focused-dates)).
|
|
15706
15670
|
*/
|
|
15707
15671
|
focusedDate;
|
|
15708
15672
|
/**
|
|
@@ -15713,7 +15677,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15713
15677
|
calendarType = 'infinite';
|
|
15714
15678
|
/**
|
|
15715
15679
|
* Determines whether to enable animation when navigating to previous/next Calendar view.
|
|
15716
|
-
* Applies to the [`classic`](
|
|
15680
|
+
* Applies to the [`classic`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/datetimepickercomponent#calendartype) Calendar only.
|
|
15717
15681
|
*
|
|
15718
15682
|
* The feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
|
|
15719
15683
|
*
|
|
@@ -15722,7 +15686,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15722
15686
|
animateCalendarNavigation = false;
|
|
15723
15687
|
/**
|
|
15724
15688
|
* Determines whether to display a week number column in the `month` view of the popup Calendar
|
|
15725
|
-
* ([see example](
|
|
15689
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/calendar-options#week-number-column)).
|
|
15726
15690
|
* @default false
|
|
15727
15691
|
*/
|
|
15728
15692
|
weekNumber = false;
|
|
@@ -15731,7 +15695,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15731
15695
|
* The Calendar will not display dates before this value.
|
|
15732
15696
|
* If the `min` value of the Calendar is selected, the TimePicker will not display
|
|
15733
15697
|
* time entries before the specified time portion of this value
|
|
15734
|
-
* ([see example](
|
|
15698
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits)).
|
|
15735
15699
|
*/
|
|
15736
15700
|
set min(value) {
|
|
15737
15701
|
this._min = cloneDate(value);
|
|
@@ -15745,7 +15709,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15745
15709
|
* The Calendar will not display dates after this value.
|
|
15746
15710
|
* If the `max` value of the Calendar is selected, the TimePicker will not display
|
|
15747
15711
|
* time entries after the specified time portion of this value
|
|
15748
|
-
* ([see example](
|
|
15712
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits)).
|
|
15749
15713
|
*/
|
|
15750
15714
|
set max(value) {
|
|
15751
15715
|
this._max = cloneDate(value);
|
|
@@ -15756,14 +15720,14 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15756
15720
|
}
|
|
15757
15721
|
/**
|
|
15758
15722
|
* Determines whether the built-in `min` or `max` validators are enforced when validating a form
|
|
15759
|
-
* ([see example](
|
|
15723
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits)).
|
|
15760
15724
|
*
|
|
15761
15725
|
* @default true
|
|
15762
15726
|
*/
|
|
15763
15727
|
rangeValidation = true;
|
|
15764
15728
|
/**
|
|
15765
15729
|
* Determines whether the built-in validator for disabled date ranges is enforced when validating a form
|
|
15766
|
-
* ([see example](
|
|
15730
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/disabled-dates)).
|
|
15767
15731
|
* @default true
|
|
15768
15732
|
*/
|
|
15769
15733
|
disabledDatesValidation = true;
|
|
@@ -15823,29 +15787,29 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15823
15787
|
inputAttributes;
|
|
15824
15788
|
/**
|
|
15825
15789
|
* Fires each time the user selects a new value
|
|
15826
|
-
* ([see example](
|
|
15790
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events)).
|
|
15827
15791
|
*/
|
|
15828
15792
|
valueChange = new EventEmitter();
|
|
15829
15793
|
/**
|
|
15830
15794
|
* Fires each time the popup is about to open
|
|
15831
|
-
* ([see example](
|
|
15795
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events)).
|
|
15832
15796
|
* This event is preventable. If you cancel the event by setting `event.preventDefault()`, the popup will remain closed.
|
|
15833
15797
|
*/
|
|
15834
15798
|
open = new EventEmitter();
|
|
15835
15799
|
/**
|
|
15836
15800
|
* Fires each time the popup is about to close
|
|
15837
|
-
* ([see example](
|
|
15801
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events)).
|
|
15838
15802
|
* This event is preventable. If you cancel the event by setting `event.preventDefault()`, the popup will remain open.
|
|
15839
15803
|
*/
|
|
15840
15804
|
close = new EventEmitter();
|
|
15841
15805
|
/**
|
|
15842
15806
|
* Fires each time the user focuses the component
|
|
15843
|
-
* ([see example](
|
|
15807
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events)).
|
|
15844
15808
|
*/
|
|
15845
15809
|
onFocus = new EventEmitter();
|
|
15846
15810
|
/**
|
|
15847
15811
|
* Fires each time the user blurs the component
|
|
15848
|
-
* ([see example](
|
|
15812
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events)).
|
|
15849
15813
|
*/
|
|
15850
15814
|
onBlur = new EventEmitter();
|
|
15851
15815
|
/**
|
|
@@ -15875,7 +15839,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15875
15839
|
}
|
|
15876
15840
|
/**
|
|
15877
15841
|
* Specifies the active tab when opening the popup
|
|
15878
|
-
* ([see example](
|
|
15842
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/popup-options#setting-the-default-tab)).
|
|
15879
15843
|
*/
|
|
15880
15844
|
set defaultTab(tab) {
|
|
15881
15845
|
this._defaultTab = tab || DEFAULT_ACTIVE_TAB;
|
|
@@ -15887,16 +15851,16 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15887
15851
|
/**
|
|
15888
15852
|
* Specifies the size of the component.
|
|
15889
15853
|
*
|
|
15854
|
+
* @default undefined
|
|
15890
15855
|
*/
|
|
15891
15856
|
set size(size) {
|
|
15892
15857
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
15893
15858
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
|
|
15894
|
-
|
|
15895
|
-
|
|
15896
|
-
this.renderer.addClass(this.
|
|
15897
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', newSize));
|
|
15859
|
+
if (size) {
|
|
15860
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
15861
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', size));
|
|
15898
15862
|
}
|
|
15899
|
-
this._size =
|
|
15863
|
+
this._size = size;
|
|
15900
15864
|
}
|
|
15901
15865
|
get size() {
|
|
15902
15866
|
return this._size;
|
|
@@ -15907,11 +15871,10 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15907
15871
|
*/
|
|
15908
15872
|
set rounded(rounded) {
|
|
15909
15873
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
15874
|
+
if (rounded) {
|
|
15875
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
15913
15876
|
}
|
|
15914
|
-
this._rounded =
|
|
15877
|
+
this._rounded = rounded;
|
|
15915
15878
|
}
|
|
15916
15879
|
get rounded() {
|
|
15917
15880
|
return this._rounded;
|
|
@@ -15923,14 +15886,11 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15923
15886
|
set fillMode(fillMode) {
|
|
15924
15887
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
15925
15888
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
15930
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
15931
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
15889
|
+
if (fillMode) {
|
|
15890
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
15891
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
15932
15892
|
}
|
|
15933
|
-
this._fillMode =
|
|
15893
|
+
this._fillMode = fillMode;
|
|
15934
15894
|
}
|
|
15935
15895
|
get fillMode() {
|
|
15936
15896
|
return this._fillMode;
|
|
@@ -16192,9 +16152,9 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16192
16152
|
incompleteValidator = noop$2;
|
|
16193
16153
|
subscriptions = new Subscription();
|
|
16194
16154
|
ariaActiveDescendantSubscription;
|
|
16195
|
-
_size
|
|
16196
|
-
_rounded
|
|
16197
|
-
_fillMode
|
|
16155
|
+
_size;
|
|
16156
|
+
_rounded;
|
|
16157
|
+
_fillMode;
|
|
16198
16158
|
constructor(popupService, intl, cdr, pickerService, ngZone, wrapper, localization, disabledDatesService, renderer, injector, adaptiveService) {
|
|
16199
16159
|
super();
|
|
16200
16160
|
this.popupService = popupService;
|
|
@@ -16894,7 +16854,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16894
16854
|
if (this.fillMode) {
|
|
16895
16855
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
16896
16856
|
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
16897
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
16898
16857
|
}
|
|
16899
16858
|
}
|
|
16900
16859
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1$2.PopupService }, { token: i1.IntlService }, { token: i0.ChangeDetectorRef }, { token: PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i1$1.LocalizationService }, { token: DisabledDatesService }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -17013,9 +16972,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17013
16972
|
keydown: handleKeyDown
|
|
17014
16973
|
}"
|
|
17015
16974
|
[scope]="this"
|
|
17016
|
-
fillMode="none"
|
|
17017
|
-
rounded="none"
|
|
17018
|
-
size="none"
|
|
17019
16975
|
(click)="handleDateInputClick()"
|
|
17020
16976
|
>
|
|
17021
16977
|
<kendo-dateinput-messages
|
|
@@ -17143,10 +17099,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17143
17099
|
<ng-template #dateTimeTemplate>
|
|
17144
17100
|
<div
|
|
17145
17101
|
class="k-datetime-wrap k-{{activeTab}}-tab"
|
|
17146
|
-
[
|
|
17147
|
-
'k-datetime-wrap-md': !isAdaptive,
|
|
17148
|
-
'k-datetime-wrap-lg': isAdaptive
|
|
17149
|
-
}"
|
|
17102
|
+
[class.k-datetime-wrap-lg]="isAdaptive"
|
|
17150
17103
|
[kendoEventsOutsideAngular]="{
|
|
17151
17104
|
mousedown: preventMouseDown,
|
|
17152
17105
|
keydown: handleKeyDown
|
|
@@ -17160,7 +17113,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17160
17113
|
}"
|
|
17161
17114
|
[scope]="this"
|
|
17162
17115
|
>
|
|
17163
|
-
<div class="k-button-group k-button-group-
|
|
17116
|
+
<div class="k-button-group k-button-group-stretched" role="group">
|
|
17164
17117
|
<button kendoButton
|
|
17165
17118
|
type="button"
|
|
17166
17119
|
class="k-group-start"
|
|
@@ -17443,9 +17396,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
17443
17396
|
keydown: handleKeyDown
|
|
17444
17397
|
}"
|
|
17445
17398
|
[scope]="this"
|
|
17446
|
-
fillMode="none"
|
|
17447
|
-
rounded="none"
|
|
17448
|
-
size="none"
|
|
17449
17399
|
(click)="handleDateInputClick()"
|
|
17450
17400
|
>
|
|
17451
17401
|
<kendo-dateinput-messages
|
|
@@ -17573,10 +17523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
17573
17523
|
<ng-template #dateTimeTemplate>
|
|
17574
17524
|
<div
|
|
17575
17525
|
class="k-datetime-wrap k-{{activeTab}}-tab"
|
|
17576
|
-
[
|
|
17577
|
-
'k-datetime-wrap-md': !isAdaptive,
|
|
17578
|
-
'k-datetime-wrap-lg': isAdaptive
|
|
17579
|
-
}"
|
|
17526
|
+
[class.k-datetime-wrap-lg]="isAdaptive"
|
|
17580
17527
|
[kendoEventsOutsideAngular]="{
|
|
17581
17528
|
mousedown: preventMouseDown,
|
|
17582
17529
|
keydown: handleKeyDown
|
|
@@ -17590,7 +17537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
17590
17537
|
}"
|
|
17591
17538
|
[scope]="this"
|
|
17592
17539
|
>
|
|
17593
|
-
<div class="k-button-group k-button-group-
|
|
17540
|
+
<div class="k-button-group k-button-group-stretched" role="group">
|
|
17594
17541
|
<button kendoButton
|
|
17595
17542
|
type="button"
|
|
17596
17543
|
class="k-group-start"
|
|
@@ -18183,7 +18130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
18183
18130
|
/**
|
|
18184
18131
|
* Manages the MultiViewCalendar range selection.
|
|
18185
18132
|
* This directive will be `deprecated` in a future version.
|
|
18186
|
-
* Use the MultiViewCalendar [range selection](
|
|
18133
|
+
* Use the MultiViewCalendar [range selection](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/selection-modes#range-selection) instead.
|
|
18187
18134
|
*/
|
|
18188
18135
|
class DateRangeSelectionDirective {
|
|
18189
18136
|
calendar;
|
|
@@ -18193,7 +18140,7 @@ class DateRangeSelectionDirective {
|
|
|
18193
18140
|
/**
|
|
18194
18141
|
* Specifies the auto-correction behavior. If the start date is greater than the end date,
|
|
18195
18142
|
* the directive corrects the date range to a single date either on input change or on blur
|
|
18196
|
-
* ([see example](
|
|
18143
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/autocorrect#calendar-selection-directive)).
|
|
18197
18144
|
*
|
|
18198
18145
|
* By default, the auto-correction triggers on change.
|
|
18199
18146
|
* To disable this behavior, set the `autoCorrectOn` property to `none`.
|
|
@@ -18244,12 +18191,12 @@ class DateRangeSelectionDirective {
|
|
|
18244
18191
|
shouldSetRange = true;
|
|
18245
18192
|
/**
|
|
18246
18193
|
* Fires when the active range end changes. For more information, refer to
|
|
18247
|
-
* the section on [events](
|
|
18194
|
+
* the section on [events](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events).
|
|
18248
18195
|
*/
|
|
18249
18196
|
activeRangeEndChange = new EventEmitter();
|
|
18250
18197
|
/**
|
|
18251
18198
|
* Fires when the selection range changes. For more information, refer to
|
|
18252
|
-
* the section on [events](
|
|
18199
|
+
* the section on [events](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/events).
|
|
18253
18200
|
*/
|
|
18254
18201
|
selectionRangeChange = new EventEmitter();
|
|
18255
18202
|
get calendarRange() {
|
|
@@ -18509,17 +18456,17 @@ class DateRangePopupComponent {
|
|
|
18509
18456
|
showCalendarHeader = true;
|
|
18510
18457
|
/**
|
|
18511
18458
|
* Specifies the focused date of the MultiViewCalendar component.
|
|
18512
|
-
* Defines which date receives focus when the component loads ([see example](
|
|
18459
|
+
* Defines which date receives focus when the component loads ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/dates#focused-dates)).
|
|
18513
18460
|
*
|
|
18514
18461
|
* If the MultiViewCalendar is out of the min or max range, it normalizes the defined `focusedDate`.
|
|
18515
18462
|
*/
|
|
18516
18463
|
focusedDate;
|
|
18517
18464
|
/**
|
|
18518
|
-
* Specifies the dates in the MultiViewCalendar that you want to disable ([see example](
|
|
18465
|
+
* Specifies the dates in the MultiViewCalendar that you want to disable ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/disabled-dates)).
|
|
18519
18466
|
*/
|
|
18520
18467
|
disabledDates;
|
|
18521
18468
|
/**
|
|
18522
|
-
* Specifies the initial view that the MultiViewCalendar displays when it loads ([see example](
|
|
18469
|
+
* Specifies the initial view that the MultiViewCalendar displays when it loads ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-options)).
|
|
18523
18470
|
* By default, the active view is `month`.
|
|
18524
18471
|
*
|
|
18525
18472
|
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
@@ -18528,25 +18475,25 @@ class DateRangePopupComponent {
|
|
|
18528
18475
|
*/
|
|
18529
18476
|
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
18530
18477
|
/**
|
|
18531
|
-
* Specifies the lowest view level that users can navigate to ([see example](
|
|
18478
|
+
* Specifies the lowest view level that users can navigate to ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-depth)).
|
|
18532
18479
|
*
|
|
18533
18480
|
* @default 'month'
|
|
18534
18481
|
*/
|
|
18535
18482
|
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
18536
18483
|
/**
|
|
18537
|
-
* Specifies the highest view level that users can navigate to ([see example](
|
|
18484
|
+
* Specifies the highest view level that users can navigate to ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-depth)).
|
|
18538
18485
|
*
|
|
18539
18486
|
* @default 'century'
|
|
18540
18487
|
*/
|
|
18541
18488
|
topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
18542
18489
|
/**
|
|
18543
|
-
* Specifies the minimum date that users can select ([see example](
|
|
18490
|
+
* Specifies the minimum date that users can select ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/dates#focused-dates)).
|
|
18544
18491
|
*
|
|
18545
18492
|
* @default '1900-01-01'
|
|
18546
18493
|
*/
|
|
18547
18494
|
min;
|
|
18548
18495
|
/**
|
|
18549
|
-
* Specifies the maximum date that users can select ([see example](
|
|
18496
|
+
* Specifies the maximum date that users can select ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/dates#focused-dates)).
|
|
18550
18497
|
*
|
|
18551
18498
|
* @default '2099-12-31'
|
|
18552
18499
|
*/
|
|
@@ -18565,7 +18512,7 @@ class DateRangePopupComponent {
|
|
|
18565
18512
|
*/
|
|
18566
18513
|
animateNavigation = false;
|
|
18567
18514
|
/**
|
|
18568
|
-
* Determines whether the MultiViewCalendar is interactive ([see example](
|
|
18515
|
+
* Determines whether the MultiViewCalendar is interactive ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/disabled-state)).
|
|
18569
18516
|
* When you set `disabled` to `true`, users cannot interact with the component.
|
|
18570
18517
|
*
|
|
18571
18518
|
* @default false
|
|
@@ -18578,7 +18525,7 @@ class DateRangePopupComponent {
|
|
|
18578
18525
|
*/
|
|
18579
18526
|
views = 2;
|
|
18580
18527
|
/**
|
|
18581
|
-
* Determines whether to display week numbers in the `month` view ([see example](
|
|
18528
|
+
* Determines whether to display week numbers in the `month` view ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/week-num-column)).
|
|
18582
18529
|
*
|
|
18583
18530
|
* @default false
|
|
18584
18531
|
*/
|
|
@@ -18587,7 +18534,7 @@ class DateRangePopupComponent {
|
|
|
18587
18534
|
* Controls the popup animations.
|
|
18588
18535
|
* When you set `animate` to `true`, the popup displays opening and closing animations.
|
|
18589
18536
|
* For more information about controlling the popup animations,
|
|
18590
|
-
* refer to the article on [animations](
|
|
18537
|
+
* refer to the article on [animations](https://www.telerik.com/kendo-angular-ui/components/popup/animations).
|
|
18591
18538
|
*
|
|
18592
18539
|
* @default true
|
|
18593
18540
|
*/
|
|
@@ -18596,24 +18543,24 @@ class DateRangePopupComponent {
|
|
|
18596
18543
|
* Specifies the element that serves as an anchor for the popup.
|
|
18597
18544
|
* The popup opens next to this element.
|
|
18598
18545
|
* For more information, refer to the section on
|
|
18599
|
-
* [aligning to specific components](
|
|
18546
|
+
* [aligning to specific components](https://www.telerik.com/kendo-angular-ui/components/popup/aligning-positioning#aligning-to-components).
|
|
18600
18547
|
*/
|
|
18601
18548
|
anchor;
|
|
18602
18549
|
/**
|
|
18603
18550
|
* Specifies the alignment point for the anchor element.
|
|
18604
18551
|
* For more information, refer to the section on
|
|
18605
|
-
* [positioning](
|
|
18552
|
+
* [positioning](https://www.telerik.com/kendo-angular-ui/components/popup/aligning-positioning#positioning).
|
|
18606
18553
|
*/
|
|
18607
18554
|
anchorAlign;
|
|
18608
18555
|
/**
|
|
18609
|
-
* Determines whether to display a header for each view ([see example](
|
|
18556
|
+
* Determines whether to display a header for each view ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-header)).
|
|
18610
18557
|
* For example, displays the month name in the month view.
|
|
18611
18558
|
*
|
|
18612
18559
|
* @default false
|
|
18613
18560
|
*/
|
|
18614
18561
|
showViewHeader = false;
|
|
18615
18562
|
/**
|
|
18616
|
-
* Determines whether to display days from adjacent months in the current month view ([see example](
|
|
18563
|
+
* Determines whether to display days from adjacent months in the current month view ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/multiviewcalendar/view-options#displaying-other-month-days)).
|
|
18617
18564
|
*
|
|
18618
18565
|
* @default false
|
|
18619
18566
|
*/
|
|
@@ -18628,7 +18575,7 @@ class DateRangePopupComponent {
|
|
|
18628
18575
|
/**
|
|
18629
18576
|
* Configures how the popup behaves when it encounters viewport boundaries.
|
|
18630
18577
|
* For more information, refer to the article on
|
|
18631
|
-
* [viewport boundary detection](
|
|
18578
|
+
* [viewport boundary detection](https://www.telerik.com/kendo-angular-ui/components/popup/viewport-boundary-detection).
|
|
18632
18579
|
*
|
|
18633
18580
|
* @default { horizontal: 'fit', vertical: 'flip' }
|
|
18634
18581
|
*/
|
|
@@ -18636,7 +18583,7 @@ class DateRangePopupComponent {
|
|
|
18636
18583
|
/**
|
|
18637
18584
|
* Specifies the alignment point for the popup element.
|
|
18638
18585
|
* For more information, refer to the section on
|
|
18639
|
-
* [positioning](
|
|
18586
|
+
* [positioning](https://www.telerik.com/kendo-angular-ui/components/popup/aligning-positioning#positioning).
|
|
18640
18587
|
*/
|
|
18641
18588
|
popupAlign;
|
|
18642
18589
|
/**
|
|
@@ -18653,14 +18600,14 @@ class DateRangePopupComponent {
|
|
|
18653
18600
|
adaptiveMode = 'none';
|
|
18654
18601
|
/**
|
|
18655
18602
|
* Specifies the title text for the input element and the header of the action sheet.
|
|
18656
|
-
* Applies only when [`AdaptiveMode` is set to `auto`](
|
|
18603
|
+
* Applies only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
18657
18604
|
*
|
|
18658
18605
|
* @default ""
|
|
18659
18606
|
*/
|
|
18660
18607
|
adaptiveTitle = "";
|
|
18661
18608
|
/**
|
|
18662
18609
|
* Specifies the subtitle text displayed in the header of the action sheet.
|
|
18663
|
-
* Applies only when [`AdaptiveMode` is set to `auto`](
|
|
18610
|
+
* Applies only when [`AdaptiveMode` is set to `auto`](https://www.telerik.com/kendo-angular-ui/components/dateinputs/api/adaptivemode).
|
|
18664
18611
|
*
|
|
18665
18612
|
* @default ""
|
|
18666
18613
|
*/
|
|
@@ -18670,29 +18617,29 @@ class DateRangePopupComponent {
|
|
|
18670
18617
|
*
|
|
18671
18618
|
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
18672
18619
|
* Sets the size of the component.
|
|
18673
|
-
* @default
|
|
18620
|
+
* @default undefined
|
|
18674
18621
|
*/
|
|
18675
18622
|
size;
|
|
18676
18623
|
/**
|
|
18677
|
-
* Fires when the popup is about to open ([see example](
|
|
18624
|
+
* Fires when the popup is about to open ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup#events)).
|
|
18678
18625
|
* You can prevent this event to keep the popup closed.
|
|
18679
18626
|
*/
|
|
18680
18627
|
open = new EventEmitter();
|
|
18681
18628
|
/**
|
|
18682
|
-
* Fires when the popup is about to close ([see example](
|
|
18629
|
+
* Fires when the popup is about to close ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup#events)).
|
|
18683
18630
|
* You can prevent this event to keep the popup open.
|
|
18684
18631
|
*/
|
|
18685
18632
|
close = new EventEmitter();
|
|
18686
18633
|
/**
|
|
18687
|
-
* Fires when the calendar element loses focus ([see example](
|
|
18634
|
+
* Fires when the calendar element loses focus ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup#events)).
|
|
18688
18635
|
*/
|
|
18689
18636
|
onBlur = new EventEmitter();
|
|
18690
18637
|
/**
|
|
18691
|
-
* Fires when the calendar element receives focus ([see example](
|
|
18638
|
+
* Fires when the calendar element receives focus ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup#events)).
|
|
18692
18639
|
*/
|
|
18693
18640
|
onFocus = new EventEmitter();
|
|
18694
18641
|
/**
|
|
18695
|
-
* Fires when the popup closes due to an `ESC` keypress or when it leaves the viewport ([see example](
|
|
18642
|
+
* Fires when the popup closes due to an `ESC` keypress or when it leaves the viewport ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup#events)).
|
|
18696
18643
|
*/
|
|
18697
18644
|
cancel = new EventEmitter();
|
|
18698
18645
|
/**
|
|
@@ -19088,16 +19035,16 @@ class DateRangePopupComponent {
|
|
|
19088
19035
|
<ng-container kendoDateRangePopupLocalizedMessages
|
|
19089
19036
|
i18n-accept="kendo.daterangepopup.accept|The Accept button text in the timepicker component"
|
|
19090
19037
|
accept="Set"
|
|
19091
|
-
|
|
19038
|
+
|
|
19092
19039
|
i18n-acceptLabel="kendo.daterangepopup.acceptLabel|The label for the Accept button in the timepicker component"
|
|
19093
19040
|
acceptLabel="Set time"
|
|
19094
|
-
|
|
19041
|
+
|
|
19095
19042
|
i18n-cancel="kendo.daterangepopup.cancel|The Cancel button text in the timepicker component"
|
|
19096
19043
|
cancel="Cancel"
|
|
19097
|
-
|
|
19044
|
+
|
|
19098
19045
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
19099
19046
|
cancelLabel="Cancel changes"
|
|
19100
|
-
|
|
19047
|
+
|
|
19101
19048
|
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"
|
|
19102
19049
|
adaptiveCloseButtonTitle="Close"
|
|
19103
19050
|
>
|
|
@@ -19130,7 +19077,7 @@ class DateRangePopupComponent {
|
|
|
19130
19077
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
19131
19078
|
></kendo-multiviewcalendar>
|
|
19132
19079
|
</ng-template>
|
|
19133
|
-
|
|
19080
|
+
|
|
19134
19081
|
<kendo-actionsheet
|
|
19135
19082
|
#actionSheet
|
|
19136
19083
|
(overlayClick)="show=false"
|
|
@@ -19217,7 +19164,7 @@ class DateRangePopupComponent {
|
|
|
19217
19164
|
>
|
|
19218
19165
|
{{localization.get('cancel')}}
|
|
19219
19166
|
</button>
|
|
19220
|
-
|
|
19167
|
+
|
|
19221
19168
|
<button kendoButton
|
|
19222
19169
|
class="k-time-accept"
|
|
19223
19170
|
type="button"
|
|
@@ -19250,16 +19197,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19250
19197
|
<ng-container kendoDateRangePopupLocalizedMessages
|
|
19251
19198
|
i18n-accept="kendo.daterangepopup.accept|The Accept button text in the timepicker component"
|
|
19252
19199
|
accept="Set"
|
|
19253
|
-
|
|
19200
|
+
|
|
19254
19201
|
i18n-acceptLabel="kendo.daterangepopup.acceptLabel|The label for the Accept button in the timepicker component"
|
|
19255
19202
|
acceptLabel="Set time"
|
|
19256
|
-
|
|
19203
|
+
|
|
19257
19204
|
i18n-cancel="kendo.daterangepopup.cancel|The Cancel button text in the timepicker component"
|
|
19258
19205
|
cancel="Cancel"
|
|
19259
|
-
|
|
19206
|
+
|
|
19260
19207
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
19261
19208
|
cancelLabel="Cancel changes"
|
|
19262
|
-
|
|
19209
|
+
|
|
19263
19210
|
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"
|
|
19264
19211
|
adaptiveCloseButtonTitle="Close"
|
|
19265
19212
|
>
|
|
@@ -19292,7 +19239,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19292
19239
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
19293
19240
|
></kendo-multiviewcalendar>
|
|
19294
19241
|
</ng-template>
|
|
19295
|
-
|
|
19242
|
+
|
|
19296
19243
|
<kendo-actionsheet
|
|
19297
19244
|
#actionSheet
|
|
19298
19245
|
(overlayClick)="show=false"
|
|
@@ -19379,7 +19326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19379
19326
|
>
|
|
19380
19327
|
{{localization.get('cancel')}}
|
|
19381
19328
|
</button>
|
|
19382
|
-
|
|
19329
|
+
|
|
19383
19330
|
<button kendoButton
|
|
19384
19331
|
class="k-time-accept"
|
|
19385
19332
|
type="button"
|
|
@@ -19520,7 +19467,7 @@ class DateRangeComponent {
|
|
|
19520
19467
|
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
19521
19468
|
* Sets the size of the component.
|
|
19522
19469
|
*
|
|
19523
|
-
* @default
|
|
19470
|
+
* @default undefined
|
|
19524
19471
|
*/
|
|
19525
19472
|
size;
|
|
19526
19473
|
/**
|
|
@@ -19749,7 +19696,7 @@ class DateRangeEndInputDirective extends DateRangeInput {
|
|
|
19749
19696
|
rangeService;
|
|
19750
19697
|
dateInput;
|
|
19751
19698
|
/**
|
|
19752
|
-
* Specifies the auto-correction behavior. If the start date is greater than the end date, the directive fixes the date range to a single date either on input change or on blur ([see example](
|
|
19699
|
+
* Specifies the auto-correction behavior. If the start date is greater than the end date, the directive fixes the date range to a single date either on input change or on blur ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/autocorrect#input-directives)).
|
|
19753
19700
|
*
|
|
19754
19701
|
* By default, the component does not perform any auto-correction.
|
|
19755
19702
|
*
|
|
@@ -19842,7 +19789,7 @@ class DateRangeStartInputDirective extends DateRangeInput {
|
|
|
19842
19789
|
renderer;
|
|
19843
19790
|
/**
|
|
19844
19791
|
* Specifies when the component automatically corrects invalid date ranges.
|
|
19845
|
-
* When the start date is greater than the end date, the component fixes the range to a single date either on input change or on blur ([see example](
|
|
19792
|
+
* When the start date is greater than the end date, the component fixes the range to a single date either on input change or on blur ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/autocorrect#input-directives)).
|
|
19846
19793
|
*
|
|
19847
19794
|
* By default, the component does not perform any auto-correction.
|
|
19848
19795
|
*
|
|
@@ -19907,7 +19854,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19907
19854
|
}] } });
|
|
19908
19855
|
|
|
19909
19856
|
/**
|
|
19910
|
-
* Allows you to override the default localization messages of the DatePicker component ([see example](
|
|
19857
|
+
* Allows you to override the default localization messages of the DatePicker component ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages)).
|
|
19911
19858
|
*
|
|
19912
19859
|
* @example
|
|
19913
19860
|
* ```html
|
|
@@ -19952,7 +19899,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19952
19899
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
19953
19900
|
|
|
19954
19901
|
/**
|
|
19955
|
-
* Custom component messages override default component messages ([see example](
|
|
19902
|
+
* Custom component messages override default component messages ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages)).
|
|
19956
19903
|
*/
|
|
19957
19904
|
class DateRangePopupCustomMessagesComponent extends DateRangePopupMessages {
|
|
19958
19905
|
service;
|
|
@@ -19987,7 +19934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19987
19934
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
19988
19935
|
|
|
19989
19936
|
/**
|
|
19990
|
-
* Allows you to override the default messages of the DateTimePicker component ([see example](
|
|
19937
|
+
* Allows you to override the default messages of the DateTimePicker component ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages)).
|
|
19991
19938
|
*
|
|
19992
19939
|
* @example
|
|
19993
19940
|
* ```html
|
|
@@ -20031,7 +19978,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
20031
19978
|
}], ctorParameters: () => [{ type: i1$1.LocalizationService }] });
|
|
20032
19979
|
|
|
20033
19980
|
/**
|
|
20034
|
-
* Represents the Kendo UI TimePicker custom messages component for Angular. Allows you to override default component messages ([see example](
|
|
19981
|
+
* Represents the Kendo UI TimePicker custom messages component for Angular. Allows you to override default component messages ([see example](https://www.telerik.com/kendo-angular-ui/components/dateinputs/globalization#custom-messages)).
|
|
20035
19982
|
*
|
|
20036
19983
|
* @example
|
|
20037
19984
|
* ```html
|