@progress/kendo-angular-dateinputs 21.1.1-develop.1 → 21.2.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.
@@ -22,7 +22,6 @@ import { Subscription } from 'rxjs';
22
22
  import { caretAltDownIcon, caretAltUpIcon, xIcon } from '@progress/kendo-svg-icons';
23
23
  import { DateInput } from '@progress/kendo-dateinputs-common';
24
24
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
25
- import { NgIf } from '@angular/common';
26
25
  import { DateInputLocalizedMessagesDirective } from './localization/dateinput-localized-messages.directive';
27
26
  import { MAX_DATE, MIN_DATE } from '../defaults';
28
27
  import * as i0 from "@angular/core";
@@ -886,7 +885,7 @@ export class DateInputComponent {
886
885
  setHTMLAttributes(attributesToRender, this.renderer, this.dateInput.nativeElement, this.ngZone);
887
886
  }
888
887
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.LocalizationService }, { token: i3.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
889
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DateInputComponent, isStandalone: true, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
888
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DateInputComponent, isStandalone: true, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
890
889
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
891
890
  { provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
892
891
  { provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
@@ -894,93 +893,96 @@ export class DateInputComponent {
894
893
  LocalizationService
895
894
  ], viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true, static: true }, { propertyName: "spinup", first: true, predicate: ["spinup"], descendants: true }, { propertyName: "spindown", first: true, predicate: ["spindown"], descendants: true }], exportAs: ["kendo-dateinput"], usesOnChanges: true, ngImport: i0, template: `
896
895
  <ng-container kendoDateInputLocalizedMessages
897
- i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
898
- increment="Increase value"
899
-
900
- i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
901
- decrement="Decrease value"
902
-
903
- i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
904
- clearTitle="clear"
905
- >
896
+ i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
897
+ increment="Increase value"
898
+
899
+ i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
900
+ decrement="Decrease value"
901
+
902
+ i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
903
+ clearTitle="clear"
904
+ >
906
905
  </ng-container>
907
906
  <input #dateInput
908
- class="k-input-inner"
909
- [attr.required]="isControlRequired ? '' : null"
910
- autocomplete="off"
911
- autocorrect="off"
912
- autocapitalize="off"
913
- spellcheck="false"
914
- [attr.role]="role"
915
- [attr.aria-readonly]="ariaReadOnly"
916
- [id]="focusableId"
917
- [title]="title"
918
- [tabindex]="tabindex"
919
- [disabled]="disabled"
920
- [readonly]="readonly"
921
- [attr.placeholder]="placeholder"
922
- [attr.aria-expanded]="isPopupOpen"
923
- [attr.aria-haspopup]="hasPopup"
907
+ class="k-input-inner"
908
+ [attr.required]="isControlRequired ? '' : null"
909
+ autocomplete="off"
910
+ autocorrect="off"
911
+ autocapitalize="off"
912
+ spellcheck="false"
913
+ [attr.role]="role"
914
+ [attr.aria-readonly]="ariaReadOnly"
915
+ [id]="focusableId"
916
+ [title]="title"
917
+ [tabindex]="tabindex"
918
+ [disabled]="disabled"
919
+ [readonly]="readonly"
920
+ [attr.placeholder]="placeholder"
921
+ [attr.aria-expanded]="isPopupOpen"
922
+ [attr.aria-haspopup]="hasPopup"
924
923
  [kendoEventsOutsideAngular]="{
925
924
  dragstart: handleDragAndDrop,
926
925
  drop: handleDragAndDrop
927
926
  }"
928
- [scope]="this"
929
- />
930
- <span
931
- *ngIf="clearButton && showClearButton"
927
+ [scope]="this"
928
+ />
929
+ @if (clearButton && showClearButton) {
930
+ <span
932
931
  class="k-clear-value"
933
932
  [attr.title]="localization.get('clearTitle')"
934
933
  role="button"
935
934
  tabindex="-1"
936
935
  (click)="resetInput()"
937
936
  (mousedown)="$event.preventDefault()"
938
- >
939
- <kendo-icon-wrapper
940
- name="x"
941
- [svgIcon]="xIcon"
942
937
  >
938
+ <kendo-icon-wrapper
939
+ name="x"
940
+ [svgIcon]="xIcon"
941
+ >
943
942
  </kendo-icon-wrapper>
944
- </span>
945
- <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
943
+ </span>
944
+ }
945
+ @if (spinners) {
946
+ <span class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
946
947
  <button
947
- #spinup
948
- tabindex="-1"
949
- class="k-spinner-increase k-button k-icon-button"
950
- [class.k-active]="arrowDirection === arrow.Up"
951
- (mousedown)="arrowDirection = arrow.Up"
952
- (mouseleave)="arrowDirection = arrow.None"
953
- (click)="handleButtonClick(1)"
954
- [title]="localization.get('increment')"
955
- [attr.aria-label]="localization.get('increment')"
948
+ #spinup
949
+ tabindex="-1"
950
+ class="k-spinner-increase k-button k-icon-button"
951
+ [class.k-active]="arrowDirection === arrow.Up"
952
+ (mousedown)="arrowDirection = arrow.Up"
953
+ (mouseleave)="arrowDirection = arrow.None"
954
+ (click)="handleButtonClick(1)"
955
+ [title]="localization.get('increment')"
956
+ [attr.aria-label]="localization.get('increment')"
957
+ >
958
+ <kendo-icon-wrapper
959
+ name="caret-alt-up"
960
+ [svgIcon]="caretAltUpIcon"
961
+ innerCssClass="k-button-icon"
956
962
  >
957
- <kendo-icon-wrapper
958
- name="caret-alt-up"
959
- [svgIcon]="caretAltUpIcon"
960
- innerCssClass="k-button-icon"
961
- >
962
- </kendo-icon-wrapper>
963
+ </kendo-icon-wrapper>
963
964
  </button>
964
965
  <button
965
- #spindown
966
- tabindex="-1"
967
- class="k-spinner-decrease k-button k-icon-button"
968
- (click)="handleButtonClick(-1)"
969
- [class.k-active]="arrowDirection === arrow.Down"
970
- (mousedown)="arrowDirection = arrow.Down"
971
- (mouseleave)="arrowDirection = arrow.None"
972
- [title]="localization.get('decrement')"
973
- [attr.aria-label]="localization.get('decrement')"
966
+ #spindown
967
+ tabindex="-1"
968
+ class="k-spinner-decrease k-button k-icon-button"
969
+ (click)="handleButtonClick(-1)"
970
+ [class.k-active]="arrowDirection === arrow.Down"
971
+ (mousedown)="arrowDirection = arrow.Down"
972
+ (mouseleave)="arrowDirection = arrow.None"
973
+ [title]="localization.get('decrement')"
974
+ [attr.aria-label]="localization.get('decrement')"
975
+ >
976
+ <kendo-icon-wrapper
977
+ name="caret-alt-down"
978
+ [svgIcon]="caretAltDownIcon"
979
+ innerCssClass="k-button-icon"
974
980
  >
975
- <kendo-icon-wrapper
976
- name="caret-alt-down"
977
- [svgIcon]="caretAltDownIcon"
978
- innerCssClass="k-button-icon"
979
- >
980
- </kendo-icon-wrapper>
981
+ </kendo-icon-wrapper>
981
982
  </button>
982
- </span>
983
- `, isInline: true, dependencies: [{ kind: "directive", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
983
+ </span>
984
+ }
985
+ `, isInline: true, dependencies: [{ kind: "directive", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
984
986
  }
985
987
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DateInputComponent, decorators: [{
986
988
  type: Component,
@@ -997,95 +999,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
997
999
  selector: 'kendo-dateinput',
998
1000
  template: `
999
1001
  <ng-container kendoDateInputLocalizedMessages
1000
- i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
1001
- increment="Increase value"
1002
-
1003
- i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
1004
- decrement="Decrease value"
1005
-
1006
- i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
1007
- clearTitle="clear"
1008
- >
1002
+ i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
1003
+ increment="Increase value"
1004
+
1005
+ i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
1006
+ decrement="Decrease value"
1007
+
1008
+ i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
1009
+ clearTitle="clear"
1010
+ >
1009
1011
  </ng-container>
1010
1012
  <input #dateInput
1011
- class="k-input-inner"
1012
- [attr.required]="isControlRequired ? '' : null"
1013
- autocomplete="off"
1014
- autocorrect="off"
1015
- autocapitalize="off"
1016
- spellcheck="false"
1017
- [attr.role]="role"
1018
- [attr.aria-readonly]="ariaReadOnly"
1019
- [id]="focusableId"
1020
- [title]="title"
1021
- [tabindex]="tabindex"
1022
- [disabled]="disabled"
1023
- [readonly]="readonly"
1024
- [attr.placeholder]="placeholder"
1025
- [attr.aria-expanded]="isPopupOpen"
1026
- [attr.aria-haspopup]="hasPopup"
1013
+ class="k-input-inner"
1014
+ [attr.required]="isControlRequired ? '' : null"
1015
+ autocomplete="off"
1016
+ autocorrect="off"
1017
+ autocapitalize="off"
1018
+ spellcheck="false"
1019
+ [attr.role]="role"
1020
+ [attr.aria-readonly]="ariaReadOnly"
1021
+ [id]="focusableId"
1022
+ [title]="title"
1023
+ [tabindex]="tabindex"
1024
+ [disabled]="disabled"
1025
+ [readonly]="readonly"
1026
+ [attr.placeholder]="placeholder"
1027
+ [attr.aria-expanded]="isPopupOpen"
1028
+ [attr.aria-haspopup]="hasPopup"
1027
1029
  [kendoEventsOutsideAngular]="{
1028
1030
  dragstart: handleDragAndDrop,
1029
1031
  drop: handleDragAndDrop
1030
1032
  }"
1031
- [scope]="this"
1032
- />
1033
- <span
1034
- *ngIf="clearButton && showClearButton"
1033
+ [scope]="this"
1034
+ />
1035
+ @if (clearButton && showClearButton) {
1036
+ <span
1035
1037
  class="k-clear-value"
1036
1038
  [attr.title]="localization.get('clearTitle')"
1037
1039
  role="button"
1038
1040
  tabindex="-1"
1039
1041
  (click)="resetInput()"
1040
1042
  (mousedown)="$event.preventDefault()"
1041
- >
1042
- <kendo-icon-wrapper
1043
- name="x"
1044
- [svgIcon]="xIcon"
1045
1043
  >
1044
+ <kendo-icon-wrapper
1045
+ name="x"
1046
+ [svgIcon]="xIcon"
1047
+ >
1046
1048
  </kendo-icon-wrapper>
1047
- </span>
1048
- <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
1049
+ </span>
1050
+ }
1051
+ @if (spinners) {
1052
+ <span class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
1049
1053
  <button
1050
- #spinup
1051
- tabindex="-1"
1052
- class="k-spinner-increase k-button k-icon-button"
1053
- [class.k-active]="arrowDirection === arrow.Up"
1054
- (mousedown)="arrowDirection = arrow.Up"
1055
- (mouseleave)="arrowDirection = arrow.None"
1056
- (click)="handleButtonClick(1)"
1057
- [title]="localization.get('increment')"
1058
- [attr.aria-label]="localization.get('increment')"
1054
+ #spinup
1055
+ tabindex="-1"
1056
+ class="k-spinner-increase k-button k-icon-button"
1057
+ [class.k-active]="arrowDirection === arrow.Up"
1058
+ (mousedown)="arrowDirection = arrow.Up"
1059
+ (mouseleave)="arrowDirection = arrow.None"
1060
+ (click)="handleButtonClick(1)"
1061
+ [title]="localization.get('increment')"
1062
+ [attr.aria-label]="localization.get('increment')"
1063
+ >
1064
+ <kendo-icon-wrapper
1065
+ name="caret-alt-up"
1066
+ [svgIcon]="caretAltUpIcon"
1067
+ innerCssClass="k-button-icon"
1059
1068
  >
1060
- <kendo-icon-wrapper
1061
- name="caret-alt-up"
1062
- [svgIcon]="caretAltUpIcon"
1063
- innerCssClass="k-button-icon"
1064
- >
1065
- </kendo-icon-wrapper>
1069
+ </kendo-icon-wrapper>
1066
1070
  </button>
1067
1071
  <button
1068
- #spindown
1069
- tabindex="-1"
1070
- class="k-spinner-decrease k-button k-icon-button"
1071
- (click)="handleButtonClick(-1)"
1072
- [class.k-active]="arrowDirection === arrow.Down"
1073
- (mousedown)="arrowDirection = arrow.Down"
1074
- (mouseleave)="arrowDirection = arrow.None"
1075
- [title]="localization.get('decrement')"
1076
- [attr.aria-label]="localization.get('decrement')"
1072
+ #spindown
1073
+ tabindex="-1"
1074
+ class="k-spinner-decrease k-button k-icon-button"
1075
+ (click)="handleButtonClick(-1)"
1076
+ [class.k-active]="arrowDirection === arrow.Down"
1077
+ (mousedown)="arrowDirection = arrow.Down"
1078
+ (mouseleave)="arrowDirection = arrow.None"
1079
+ [title]="localization.get('decrement')"
1080
+ [attr.aria-label]="localization.get('decrement')"
1081
+ >
1082
+ <kendo-icon-wrapper
1083
+ name="caret-alt-down"
1084
+ [svgIcon]="caretAltDownIcon"
1085
+ innerCssClass="k-button-icon"
1077
1086
  >
1078
- <kendo-icon-wrapper
1079
- name="caret-alt-down"
1080
- [svgIcon]="caretAltDownIcon"
1081
- innerCssClass="k-button-icon"
1082
- >
1083
- </kendo-icon-wrapper>
1087
+ </kendo-icon-wrapper>
1084
1088
  </button>
1085
- </span>
1086
- `,
1089
+ </span>
1090
+ }
1091
+ `,
1087
1092
  standalone: true,
1088
- imports: [DateInputLocalizedMessagesDirective, EventsOutsideAngularDirective, NgIf, IconWrapperComponent]
1093
+ imports: [DateInputLocalizedMessagesDirective, EventsOutsideAngularDirective, IconWrapperComponent]
1089
1094
  }]
1090
1095
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.IntlService }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }, { type: i2.LocalizationService }, { type: i3.PickerService, decorators: [{
1091
1096
  type: Optional