@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.
- package/esm2022/calendar/calendar.component.mjs +222 -221
- package/esm2022/calendar/footer.component.mjs +31 -29
- package/esm2022/calendar/header.component.mjs +157 -145
- package/esm2022/calendar/horizontal-view-list.component.mjs +139 -123
- package/esm2022/calendar/multiview-calendar.component.mjs +116 -108
- package/esm2022/calendar/navigation.component.mjs +55 -49
- package/esm2022/calendar/view-list.component.mjs +148 -135
- package/esm2022/calendar/view.component.mjs +107 -89
- package/esm2022/dateinput/dateinput.component.mjs +142 -137
- package/esm2022/datepicker/datepicker.component.mjs +315 -303
- package/esm2022/daterange/date-range-popup.component.mjs +264 -253
- package/esm2022/daterange/date-range.component.mjs +10 -7
- package/esm2022/datetimepicker/datetimepicker.component.mjs +677 -657
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/timepicker/timelist.component.mjs +55 -51
- package/esm2022/timepicker/timepicker.component.mjs +379 -367
- package/esm2022/timepicker/timeselector.component.mjs +138 -123
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +2950 -2785
- package/package.json +11 -11
- package/schematics/ngAdd/index.js +4 -0
|
@@ -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: "
|
|
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
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
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
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
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
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
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
|
-
|
|
945
|
-
|
|
943
|
+
</span>
|
|
944
|
+
}
|
|
945
|
+
@if (spinners) {
|
|
946
|
+
<span class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
946
947
|
<button
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
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
|
-
|
|
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
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
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
|
-
|
|
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
|
-
|
|
983
|
-
|
|
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
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
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
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
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
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
1049
|
+
</span>
|
|
1050
|
+
}
|
|
1051
|
+
@if (spinners) {
|
|
1052
|
+
<span class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
1049
1053
|
<button
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1086
|
-
|
|
1089
|
+
</span>
|
|
1090
|
+
}
|
|
1091
|
+
`,
|
|
1087
1092
|
standalone: true,
|
|
1088
|
-
imports: [DateInputLocalizedMessagesDirective, EventsOutsideAngularDirective,
|
|
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
|