@progress/kendo-angular-dateinputs 18.1.0-develop.3 → 18.1.0-develop.31

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.
@@ -531,6 +531,7 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
531
531
  private onWidgetInputEnd;
532
532
  private onWidgetFocus;
533
533
  private onWidgetBlur;
534
+ private handleKeyDown;
534
535
  private verifyRange;
535
536
  private verifyValue;
536
537
  private intlChange;
@@ -698,6 +698,7 @@ export class DateInputComponent {
698
698
  this.control = formControl;
699
699
  this.subs.add(this.formControl?.statusChanges.subscribe(() => this.setAriaInvalid()));
700
700
  this.setAriaInvalid();
701
+ this.subs.add(this.dateInput?.nativeElement.addEventListener('keydown', this.handleKeyDown, true));
701
702
  }
702
703
  ngOnDestroy() {
703
704
  this.subs.unsubscribe();
@@ -757,6 +758,7 @@ export class DateInputComponent {
757
758
  this.kendoDate?.refreshElementValue();
758
759
  }
759
760
  resetInput() {
761
+ this.isDateIncomplete = false;
760
762
  this.writeValue(null);
761
763
  // Notify datepicker that a change has happened and emit `valueChange`
762
764
  this.notify();
@@ -883,6 +885,12 @@ export class DateInputComponent {
883
885
  this.emitBlur(args.event);
884
886
  }
885
887
  }
888
+ handleKeyDown(event) {
889
+ // an event without keyCode is triggered when using Edge's autofill -> ignore it in the common package
890
+ if (!isPresent(event.keyCode)) {
891
+ event.stopImmediatePropagation();
892
+ }
893
+ }
886
894
  verifyRange() {
887
895
  if (!isDevMode()) {
888
896
  return;
@@ -1421,6 +1421,9 @@ export class DateTimePickerComponent extends MultiTabStop {
1421
1421
  }
1422
1422
  handleValueChange(value) {
1423
1423
  if (isEqual(this.value, value)) {
1424
+ if (this.incompleteDateValidation) {
1425
+ this.onControlChange(cloneDate(value));
1426
+ }
1424
1427
  return;
1425
1428
  }
1426
1429
  this.value = cloneDate(value);
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1738245832,
14
- version: '18.1.0-develop.3',
13
+ publishDate: 1739264278,
14
+ version: '18.1.0-develop.31',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -736,6 +736,9 @@ export class TimePickerComponent extends MultiTabStop {
736
736
  this.focusInput();
737
737
  this.show = false;
738
738
  }
739
+ if (this.incompleteDateValidation) {
740
+ this.onControlChange(cloneDate(value));
741
+ }
739
742
  return;
740
743
  }
741
744
  this.value = cloneDate(value);
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCode: 'KENDOUIANGULAR',
38
38
  productCodes: ['KENDOUIANGULAR'],
39
- publishDate: 1738245832,
40
- version: '18.1.0-develop.3',
39
+ publishDate: 1739264278,
40
+ version: '18.1.0-develop.31',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -9128,6 +9128,7 @@ class DateInputComponent {
9128
9128
  this.control = formControl;
9129
9129
  this.subs.add(this.formControl?.statusChanges.subscribe(() => this.setAriaInvalid()));
9130
9130
  this.setAriaInvalid();
9131
+ this.subs.add(this.dateInput?.nativeElement.addEventListener('keydown', this.handleKeyDown, true));
9131
9132
  }
9132
9133
  ngOnDestroy() {
9133
9134
  this.subs.unsubscribe();
@@ -9187,6 +9188,7 @@ class DateInputComponent {
9187
9188
  this.kendoDate?.refreshElementValue();
9188
9189
  }
9189
9190
  resetInput() {
9191
+ this.isDateIncomplete = false;
9190
9192
  this.writeValue(null);
9191
9193
  // Notify datepicker that a change has happened and emit `valueChange`
9192
9194
  this.notify();
@@ -9313,6 +9315,12 @@ class DateInputComponent {
9313
9315
  this.emitBlur(args.event);
9314
9316
  }
9315
9317
  }
9318
+ handleKeyDown(event) {
9319
+ // an event without keyCode is triggered when using Edge's autofill -> ignore it in the common package
9320
+ if (!isPresent(event.keyCode)) {
9321
+ event.stopImmediatePropagation();
9322
+ }
9323
+ }
9316
9324
  verifyRange() {
9317
9325
  if (!isDevMode()) {
9318
9326
  return;
@@ -14348,6 +14356,9 @@ class TimePickerComponent extends MultiTabStop {
14348
14356
  this.focusInput();
14349
14357
  this.show = false;
14350
14358
  }
14359
+ if (this.incompleteDateValidation) {
14360
+ this.onControlChange(cloneDate(value));
14361
+ }
14351
14362
  return;
14352
14363
  }
14353
14364
  this.value = cloneDate(value);
@@ -16791,6 +16802,9 @@ class DateTimePickerComponent extends MultiTabStop {
16791
16802
  }
16792
16803
  handleValueChange(value) {
16793
16804
  if (isEqual(this.value, value)) {
16805
+ if (this.incompleteDateValidation) {
16806
+ this.onControlChange(cloneDate(value));
16807
+ }
16794
16808
  return;
16795
16809
  }
16796
16810
  this.value = cloneDate(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "18.1.0-develop.3",
3
+ "version": "18.1.0-develop.31",
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",
@@ -29,7 +29,7 @@
29
29
  "package": {
30
30
  "productName": "Kendo UI for Angular",
31
31
  "productCode": "KENDOUIANGULAR",
32
- "publishDate": 1738245832,
32
+ "publishDate": 1739264278,
33
33
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
34
34
  }
35
35
  },
@@ -39,20 +39,20 @@
39
39
  "@angular/core": "16 - 19",
40
40
  "@angular/forms": "16 - 19",
41
41
  "@angular/platform-browser": "16 - 19",
42
- "@progress/kendo-licensing": "^1.0.2",
43
- "@progress/kendo-angular-buttons": "18.1.0-develop.3",
44
- "@progress/kendo-angular-common": "18.1.0-develop.3",
45
- "@progress/kendo-angular-utils": "18.1.0-develop.3",
46
- "@progress/kendo-angular-intl": "18.1.0-develop.3",
47
- "@progress/kendo-angular-l10n": "18.1.0-develop.3",
48
- "@progress/kendo-angular-icons": "18.1.0-develop.3",
49
- "@progress/kendo-angular-popup": "18.1.0-develop.3",
50
- "@progress/kendo-angular-navigation": "18.1.0-develop.3",
42
+ "@progress/kendo-licensing": "^1.4.0",
43
+ "@progress/kendo-angular-buttons": "18.1.0-develop.31",
44
+ "@progress/kendo-angular-common": "18.1.0-develop.31",
45
+ "@progress/kendo-angular-utils": "18.1.0-develop.31",
46
+ "@progress/kendo-angular-intl": "18.1.0-develop.31",
47
+ "@progress/kendo-angular-l10n": "18.1.0-develop.31",
48
+ "@progress/kendo-angular-icons": "18.1.0-develop.31",
49
+ "@progress/kendo-angular-popup": "18.1.0-develop.31",
50
+ "@progress/kendo-angular-navigation": "18.1.0-develop.31",
51
51
  "rxjs": "^6.5.3 || ^7.0.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "tslib": "^2.3.1",
55
- "@progress/kendo-angular-schematics": "18.1.0-develop.3",
55
+ "@progress/kendo-angular-schematics": "18.1.0-develop.31",
56
56
  "@progress/kendo-common": "^1.0.1",
57
57
  "@progress/kendo-date-math": "^1.1.0",
58
58
  "@progress/kendo-dateinputs-common": "^0.4.1"