@progress/kendo-angular-dateinputs 19.3.0-develop.2 → 19.3.0-develop.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,7 +150,6 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
150
150
  * Specifies the hint the DateInput displays when its value is `null`.
151
151
  * For more information, refer to the article on
152
152
  * [placeholders]({% slug placeholders_dateinput %}).
153
- * @default null
154
153
  */
155
154
  placeholder: string;
156
155
  /**
@@ -346,7 +346,6 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
346
346
  /**
347
347
  * Specifies the hint the DatePicker displays when its value is `null`.
348
348
  * ([more information and exaples]({% slug placeholders_datepicker %})).
349
- * @default null
350
349
  */
351
350
  placeholder: string;
352
351
  /**
@@ -207,9 +207,8 @@ export class DateInputComponent {
207
207
  * Specifies the hint the DateInput displays when its value is `null`.
208
208
  * For more information, refer to the article on
209
209
  * [placeholders]({% slug placeholders_dateinput %}).
210
- * @default null
211
210
  */
212
- placeholder = null;
211
+ placeholder;
213
212
  /**
214
213
  * Configures the incremental steps of the DateInput.
215
214
  * For more information, refer to the article on
@@ -919,7 +918,7 @@ export class DateInputComponent {
919
918
  [tabindex]="tabindex"
920
919
  [disabled]="disabled"
921
920
  [readonly]="readonly"
922
- [placeholder]="placeholder"
921
+ [attr.placeholder]="placeholder"
923
922
  [attr.aria-expanded]="isPopupOpen"
924
923
  [attr.aria-haspopup]="hasPopup"
925
924
  [kendoEventsOutsideAngular]="{
@@ -1022,7 +1021,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1022
1021
  [tabindex]="tabindex"
1023
1022
  [disabled]="disabled"
1024
1023
  [readonly]="readonly"
1025
- [placeholder]="placeholder"
1024
+ [attr.placeholder]="placeholder"
1026
1025
  [attr.aria-expanded]="isPopupOpen"
1027
1026
  [attr.aria-haspopup]="hasPopup"
1028
1027
  [kendoEventsOutsideAngular]="{
@@ -399,9 +399,8 @@ export class DatePickerComponent extends MultiTabStop {
399
399
  /**
400
400
  * Specifies the hint the DatePicker displays when its value is `null`.
401
401
  * ([more information and exaples]({% slug placeholders_datepicker %})).
402
- * @default null
403
402
  */
404
- placeholder = null;
403
+ placeholder;
405
404
  /**
406
405
  * Sets the `tabindex` of the DatePicker.
407
406
  * This property is used to set the order in which the DatePicker will receive focus when navigating through the page using the Tab key.
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1751964637,
14
- version: '19.3.0-develop.2',
13
+ publishDate: 1754395732,
14
+ version: '19.3.0-develop.21',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -16,13 +16,18 @@ const listTitle = () => span('hour', 'k-title k-timeselector-title');
16
16
  const listItem = () => li('<span>02</span>', 'k-item');
17
17
  const list = () => ul([listItem()], 'k-reset');
18
18
  const scrollable = () => (div([list()], 'k-time-container k-flex k-content k-scrollable'));
19
- const actionSheetContent = (isDateTimePicker) => ([
19
+ const actionSheetContent = (isDateTimePicker) => [
20
20
  isDateTimePicker ? div([div('button', 'k-button k-button-lg')], 'k-datetime-buttongroup') : null,
21
21
  div([
22
- div([span('title', 'k-title')], 'k-time-header'),
23
- div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper')
24
- ], 'k-timeselector k-timeselector-lg')
25
- ]);
22
+ div([span('04:08:48:49 AM', 'k-title k-timeselector-title'),
23
+ div('now', 'k-button k-button-md')
24
+ ], 'k-time-header'),
25
+ div([
26
+ span('', 'k-time-highlight'),
27
+ div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper'),
28
+ ], 'k-time-list-container'),
29
+ ], 'k-timeselector k-timeselector-lg'),
30
+ ];
26
31
  const timeListWrapper = (isAdaptiveEnabled = false, windowSize, isDateTimePicker) => {
27
32
  if (!isDocumentAvailable()) {
28
33
  return null;
@@ -30,13 +35,24 @@ const timeListWrapper = (isAdaptiveEnabled = false, windowSize, isDateTimePicker
30
35
  if (!isAdaptiveEnabled) {
31
36
  return div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper', { left: '-10000px', position: 'absolute' });
32
37
  }
33
- return div([div([div([div([div([], 'k-i-x k-button-icon k-icon')], 'k-icon-wrapper-host')], 'k-button k-icon-button k-button-lg')], 'k-actionsheet-titlebar'),
34
- div([
35
- isDateTimePicker ? div([...actionSheetContent(isDateTimePicker)], 'k-datetime-wrap k-time-tab') : actionSheetContent(isDateTimePicker)[1]
36
- ], 'k-actionsheet-content'),
38
+ return div([
37
39
  div([
38
- div('button', 'k-button k-button-lg')
39
- ], 'k-adaptive-actionsheet k-actionsheet-footer')], `k-actionsheet k-adaptive-actionsheet ${windowSize === 'small' ? 'k-actionsheet-fullscreen' : ''}`, { height: windowSize === 'small' ? '100%' : '60vh', left: '-10000px', position: 'absolute', top: 0 });
40
+ div([div([
41
+ div([], 'k-actionsheet-title'),
42
+ div([
43
+ div([
44
+ div([div('', 'k-i-check k-button-icon k-icon k-font-icon')], 'k-icon-wrapper-host'),
45
+ ], 'k-button k-icon-button k-button-lg'),
46
+ ], 'k-actionsheet-actions'),
47
+ ], 'k-actionsheet-titlebar-group')], 'k-actionsheet-titlebar'),
48
+ div([
49
+ isDateTimePicker
50
+ ? div([...actionSheetContent(isDateTimePicker)], 'k-datetime-wrap k-time-tab')
51
+ : actionSheetContent(isDateTimePicker)[1],
52
+ ], 'k-actionsheet-content'),
53
+ div([div('button', 'k-button k-button-lg')], 'k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer'),
54
+ ], 'k-actionsheet-view'),
55
+ ], `k-actionsheet k-adaptive-actionsheet ${windowSize === 'small' ? 'k-actionsheet-fullscreen' : ''}`, { height: windowSize === 'small' ? '100%' : '60vh', left: '-10000px', position: 'absolute', top: 0 });
40
56
  };
41
57
  /**
42
58
  * @hidden
@@ -59,6 +75,9 @@ export class TimePickerDOMService {
59
75
  }
60
76
  this.calculateHeights();
61
77
  }
78
+ sumCSSProperties(style, ...properties) {
79
+ return properties.reduce((sum, property) => sum + parseFloat(style.getPropertyValue(property)), 0) || 0;
80
+ }
62
81
  calculateHeights(container) {
63
82
  if (!isDocumentAvailable()) {
64
83
  return;
@@ -74,8 +93,15 @@ export class TimePickerDOMService {
74
93
  hostContainer = document.body;
75
94
  wrapper = hostContainer.appendChild(timeListWrapper(true, this.windowSize, this.isDateTimePicker));
76
95
  }
77
- this.timeListHeight = wrapper.querySelector('.k-scrollable').offsetHeight;
78
- this.itemHeight = wrapper.querySelector('li').offsetHeight;
96
+ const itemStyle = getComputedStyle(wrapper.querySelector('li'));
97
+ const listStyle = getComputedStyle(wrapper.querySelector('.k-scrollable'));
98
+ if (this.isAdaptiveEnabled && this.windowSize !== 'large') {
99
+ this.itemHeight = parseFloat(itemStyle.getPropertyValue('height'));
100
+ }
101
+ else {
102
+ this.itemHeight = this.sumCSSProperties(itemStyle, 'height', 'padding-top', 'padding-bottom');
103
+ }
104
+ this.timeListHeight = parseFloat(listStyle.getPropertyValue('height'));
79
105
  hostContainer.removeChild(wrapper);
80
106
  }
81
107
  isActive(element) {
@@ -136,7 +136,7 @@ export class TimePickerComponent extends MultiTabStop {
136
136
  * [placeholders]({% slug placeholders_timepicker %}).
137
137
  * @default null
138
138
  */
139
- placeholder = null;
139
+ placeholder;
140
140
  /**
141
141
  * Specifies the smallest valid time value
142
142
  * ([see example]({% slug timeranges_timepicker %})).
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCode: 'KENDOUIANGULAR',
38
38
  productCodes: ['KENDOUIANGULAR'],
39
- publishDate: 1751964637,
40
- version: '19.3.0-develop.2',
39
+ publishDate: 1754395732,
40
+ version: '19.3.0-develop.21',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -8640,9 +8640,8 @@ class DateInputComponent {
8640
8640
  * Specifies the hint the DateInput displays when its value is `null`.
8641
8641
  * For more information, refer to the article on
8642
8642
  * [placeholders]({% slug placeholders_dateinput %}).
8643
- * @default null
8644
8643
  */
8645
- placeholder = null;
8644
+ placeholder;
8646
8645
  /**
8647
8646
  * Configures the incremental steps of the DateInput.
8648
8647
  * For more information, refer to the article on
@@ -9352,7 +9351,7 @@ class DateInputComponent {
9352
9351
  [tabindex]="tabindex"
9353
9352
  [disabled]="disabled"
9354
9353
  [readonly]="readonly"
9355
- [placeholder]="placeholder"
9354
+ [attr.placeholder]="placeholder"
9356
9355
  [attr.aria-expanded]="isPopupOpen"
9357
9356
  [attr.aria-haspopup]="hasPopup"
9358
9357
  [kendoEventsOutsideAngular]="{
@@ -9455,7 +9454,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
9455
9454
  [tabindex]="tabindex"
9456
9455
  [disabled]="disabled"
9457
9456
  [readonly]="readonly"
9458
- [placeholder]="placeholder"
9457
+ [attr.placeholder]="placeholder"
9459
9458
  [attr.aria-expanded]="isPopupOpen"
9460
9459
  [attr.aria-haspopup]="hasPopup"
9461
9460
  [kendoEventsOutsideAngular]="{
@@ -10195,9 +10194,8 @@ class DatePickerComponent extends MultiTabStop {
10195
10194
  /**
10196
10195
  * Specifies the hint the DatePicker displays when its value is `null`.
10197
10196
  * ([more information and exaples]({% slug placeholders_datepicker %})).
10198
- * @default null
10199
10197
  */
10200
- placeholder = null;
10198
+ placeholder;
10201
10199
  /**
10202
10200
  * Sets the `tabindex` of the DatePicker.
10203
10201
  * This property is used to set the order in which the DatePicker will receive focus when navigating through the page using the Tab key.
@@ -11554,13 +11552,18 @@ const listTitle = () => span('hour', 'k-title k-timeselector-title');
11554
11552
  const listItem = () => li('<span>02</span>', 'k-item');
11555
11553
  const list = () => ul([listItem()], 'k-reset');
11556
11554
  const scrollable = () => (div([list()], 'k-time-container k-flex k-content k-scrollable'));
11557
- const actionSheetContent = (isDateTimePicker) => ([
11555
+ const actionSheetContent = (isDateTimePicker) => [
11558
11556
  isDateTimePicker ? div([div('button', 'k-button k-button-lg')], 'k-datetime-buttongroup') : null,
11559
11557
  div([
11560
- div([span('title', 'k-title')], 'k-time-header'),
11561
- div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper')
11562
- ], 'k-timeselector k-timeselector-lg')
11563
- ]);
11558
+ div([span('04:08:48:49 AM', 'k-title k-timeselector-title'),
11559
+ div('now', 'k-button k-button-md')
11560
+ ], 'k-time-header'),
11561
+ div([
11562
+ span('', 'k-time-highlight'),
11563
+ div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper'),
11564
+ ], 'k-time-list-container'),
11565
+ ], 'k-timeselector k-timeselector-lg'),
11566
+ ];
11564
11567
  const timeListWrapper = (isAdaptiveEnabled = false, windowSize, isDateTimePicker) => {
11565
11568
  if (!isDocumentAvailable()) {
11566
11569
  return null;
@@ -11568,13 +11571,24 @@ const timeListWrapper = (isAdaptiveEnabled = false, windowSize, isDateTimePicker
11568
11571
  if (!isAdaptiveEnabled) {
11569
11572
  return div([listTitle(), div([scrollable()], 'k-time-list')], 'k-time-list-wrapper', { left: '-10000px', position: 'absolute' });
11570
11573
  }
11571
- return div([div([div([div([div([], 'k-i-x k-button-icon k-icon')], 'k-icon-wrapper-host')], 'k-button k-icon-button k-button-lg')], 'k-actionsheet-titlebar'),
11574
+ return div([
11572
11575
  div([
11573
- isDateTimePicker ? div([...actionSheetContent(isDateTimePicker)], 'k-datetime-wrap k-time-tab') : actionSheetContent(isDateTimePicker)[1]
11574
- ], 'k-actionsheet-content'),
11575
- div([
11576
- div('button', 'k-button k-button-lg')
11577
- ], 'k-adaptive-actionsheet k-actionsheet-footer')], `k-actionsheet k-adaptive-actionsheet ${windowSize === 'small' ? 'k-actionsheet-fullscreen' : ''}`, { height: windowSize === 'small' ? '100%' : '60vh', left: '-10000px', position: 'absolute', top: 0 });
11576
+ div([div([
11577
+ div([], 'k-actionsheet-title'),
11578
+ div([
11579
+ div([
11580
+ div([div('', 'k-i-check k-button-icon k-icon k-font-icon')], 'k-icon-wrapper-host'),
11581
+ ], 'k-button k-icon-button k-button-lg'),
11582
+ ], 'k-actionsheet-actions'),
11583
+ ], 'k-actionsheet-titlebar-group')], 'k-actionsheet-titlebar'),
11584
+ div([
11585
+ isDateTimePicker
11586
+ ? div([...actionSheetContent(isDateTimePicker)], 'k-datetime-wrap k-time-tab')
11587
+ : actionSheetContent(isDateTimePicker)[1],
11588
+ ], 'k-actionsheet-content'),
11589
+ div([div('button', 'k-button k-button-lg')], 'k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer'),
11590
+ ], 'k-actionsheet-view'),
11591
+ ], `k-actionsheet k-adaptive-actionsheet ${windowSize === 'small' ? 'k-actionsheet-fullscreen' : ''}`, { height: windowSize === 'small' ? '100%' : '60vh', left: '-10000px', position: 'absolute', top: 0 });
11578
11592
  };
11579
11593
  /**
11580
11594
  * @hidden
@@ -11597,6 +11611,9 @@ class TimePickerDOMService {
11597
11611
  }
11598
11612
  this.calculateHeights();
11599
11613
  }
11614
+ sumCSSProperties(style, ...properties) {
11615
+ return properties.reduce((sum, property) => sum + parseFloat(style.getPropertyValue(property)), 0) || 0;
11616
+ }
11600
11617
  calculateHeights(container) {
11601
11618
  if (!isDocumentAvailable()) {
11602
11619
  return;
@@ -11612,8 +11629,15 @@ class TimePickerDOMService {
11612
11629
  hostContainer = document.body;
11613
11630
  wrapper = hostContainer.appendChild(timeListWrapper(true, this.windowSize, this.isDateTimePicker));
11614
11631
  }
11615
- this.timeListHeight = wrapper.querySelector('.k-scrollable').offsetHeight;
11616
- this.itemHeight = wrapper.querySelector('li').offsetHeight;
11632
+ const itemStyle = getComputedStyle(wrapper.querySelector('li'));
11633
+ const listStyle = getComputedStyle(wrapper.querySelector('.k-scrollable'));
11634
+ if (this.isAdaptiveEnabled && this.windowSize !== 'large') {
11635
+ this.itemHeight = parseFloat(itemStyle.getPropertyValue('height'));
11636
+ }
11637
+ else {
11638
+ this.itemHeight = this.sumCSSProperties(itemStyle, 'height', 'padding-top', 'padding-bottom');
11639
+ }
11640
+ this.timeListHeight = parseFloat(listStyle.getPropertyValue('height'));
11617
11641
  hostContainer.removeChild(wrapper);
11618
11642
  }
11619
11643
  isActive(element) {
@@ -13660,7 +13684,7 @@ class TimePickerComponent extends MultiTabStop {
13660
13684
  * [placeholders]({% slug placeholders_timepicker %}).
13661
13685
  * @default null
13662
13686
  */
13663
- placeholder = null;
13687
+ placeholder;
13664
13688
  /**
13665
13689
  * Specifies the smallest valid time value
13666
13690
  * ([see example]({% slug timeranges_timepicker %})).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "19.3.0-develop.2",
3
+ "version": "19.3.0-develop.21",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -79,7 +79,7 @@
79
79
  "package": {
80
80
  "productName": "Kendo UI for Angular",
81
81
  "productCode": "KENDOUIANGULAR",
82
- "publishDate": 1751964637,
82
+ "publishDate": 1754395732,
83
83
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
84
84
  }
85
85
  },
@@ -89,20 +89,20 @@
89
89
  "@angular/core": "16 - 20",
90
90
  "@angular/forms": "16 - 20",
91
91
  "@angular/platform-browser": "16 - 20",
92
- "@progress/kendo-licensing": "^1.5.0",
93
- "@progress/kendo-angular-buttons": "19.3.0-develop.2",
94
- "@progress/kendo-angular-common": "19.3.0-develop.2",
95
- "@progress/kendo-angular-utils": "19.3.0-develop.2",
96
- "@progress/kendo-angular-intl": "19.3.0-develop.2",
97
- "@progress/kendo-angular-l10n": "19.3.0-develop.2",
98
- "@progress/kendo-angular-icons": "19.3.0-develop.2",
99
- "@progress/kendo-angular-popup": "19.3.0-develop.2",
100
- "@progress/kendo-angular-navigation": "19.3.0-develop.2",
92
+ "@progress/kendo-licensing": "^1.7.0",
93
+ "@progress/kendo-angular-buttons": "19.3.0-develop.21",
94
+ "@progress/kendo-angular-common": "19.3.0-develop.21",
95
+ "@progress/kendo-angular-utils": "19.3.0-develop.21",
96
+ "@progress/kendo-angular-intl": "19.3.0-develop.21",
97
+ "@progress/kendo-angular-l10n": "19.3.0-develop.21",
98
+ "@progress/kendo-angular-icons": "19.3.0-develop.21",
99
+ "@progress/kendo-angular-popup": "19.3.0-develop.21",
100
+ "@progress/kendo-angular-navigation": "19.3.0-develop.21",
101
101
  "rxjs": "^6.5.3 || ^7.0.0"
102
102
  },
103
103
  "dependencies": {
104
104
  "tslib": "^2.3.1",
105
- "@progress/kendo-angular-schematics": "19.3.0-develop.2",
105
+ "@progress/kendo-angular-schematics": "19.3.0-develop.21",
106
106
  "@progress/kendo-common": "^1.0.1",
107
107
  "@progress/kendo-date-math": "^1.1.0",
108
108
  "@progress/kendo-dateinputs-common": "^0.4.4",
@@ -17,6 +17,7 @@ export declare class TimePickerDOMService {
17
17
  isDateTimePicker: boolean;
18
18
  get windowSize(): AdaptiveSize;
19
19
  ensureHeights(): void;
20
+ private sumCSSProperties;
20
21
  calculateHeights(container?: HTMLElement): void;
21
22
  isActive(element: ElementRef): boolean;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerDOMService, never>;