@progress/kendo-angular-dateinputs 13.5.0-develop.1 → 13.5.0-develop.3
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.
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dateinputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '13.5.0-develop.
|
|
12
|
+
publishDate: 1694429594,
|
|
13
|
+
version: '13.5.0-develop.3',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
package/esm2020/util.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { addDays, cloneDate, getDate, isEqual } from '@progress/kendo-date-math';
|
|
5
|
+
import { MS_PER_HOUR, MS_PER_MINUTE, addDays, cloneDate, getDate, isEqual } from '@progress/kendo-date-math';
|
|
6
6
|
import { MIDNIGHT_DATE } from './defaults';
|
|
7
7
|
import { EMPTY_SELECTIONRANGE } from './calendar/models/selection-range.interface';
|
|
8
8
|
import { isPresent } from './common/utils';
|
|
@@ -21,12 +21,22 @@ export const setTime = (origin, candidate) => {
|
|
|
21
21
|
date.setHours(candidate.getHours(), candidate.getMinutes(), candidate.getSeconds(), candidate.getMilliseconds());
|
|
22
22
|
return date;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
const getTimeInMilliseconds = (candidate) => {
|
|
28
|
+
const hoursInMilliseconds = candidate.getHours() * MS_PER_HOUR;
|
|
29
|
+
const minutesInMilliseconds = candidate.getMinutes() * MS_PER_MINUTE;
|
|
30
|
+
const secondsInMilliseconds = candidate.getSeconds() * 1000;
|
|
31
|
+
return hoursInMilliseconds + minutesInMilliseconds + secondsInMilliseconds + candidate.getMilliseconds();
|
|
32
|
+
};
|
|
33
|
+
const normalizeTimes = (candidate, min, max) => {
|
|
34
|
+
return {
|
|
35
|
+
candidateValue: setTime(MIDNIGHT_DATE, candidate),
|
|
36
|
+
maxValue: addDays(setTime(MIDNIGHT_DATE, max), getTimeInMilliseconds(min) < getTimeInMilliseconds(max) ? 0 : 1),
|
|
37
|
+
minValue: setTime(MIDNIGHT_DATE, min)
|
|
38
|
+
};
|
|
39
|
+
};
|
|
30
40
|
/**
|
|
31
41
|
* @hidden
|
|
32
42
|
*/
|
|
@@ -7,7 +7,7 @@ import { Injectable, EventEmitter, isDevMode, Directive, Input, Component, Outpu
|
|
|
7
7
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
8
8
|
import * as i1$1 from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { cloneDate, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
10
|
+
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
11
11
|
import * as i8 from '@progress/kendo-angular-common';
|
|
12
12
|
import { isDocumentAvailable, guid, Keys as Keys$1, hasObservers, KendoInput, EventsModule, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
13
13
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
name: '@progress/kendo-angular-dateinputs',
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '13.5.0-develop.
|
|
39
|
+
publishDate: 1694429594,
|
|
40
|
+
version: '13.5.0-develop.3',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -181,12 +181,22 @@ const setTime = (origin, candidate) => {
|
|
|
181
181
|
date.setHours(candidate.getHours(), candidate.getMinutes(), candidate.getSeconds(), candidate.getMilliseconds());
|
|
182
182
|
return date;
|
|
183
183
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
*/
|
|
187
|
+
const getTimeInMilliseconds = (candidate) => {
|
|
188
|
+
const hoursInMilliseconds = candidate.getHours() * MS_PER_HOUR;
|
|
189
|
+
const minutesInMilliseconds = candidate.getMinutes() * MS_PER_MINUTE;
|
|
190
|
+
const secondsInMilliseconds = candidate.getSeconds() * 1000;
|
|
191
|
+
return hoursInMilliseconds + minutesInMilliseconds + secondsInMilliseconds + candidate.getMilliseconds();
|
|
192
|
+
};
|
|
193
|
+
const normalizeTimes = (candidate, min, max) => {
|
|
194
|
+
return {
|
|
195
|
+
candidateValue: setTime(MIDNIGHT_DATE, candidate),
|
|
196
|
+
maxValue: addDays(setTime(MIDNIGHT_DATE, max), getTimeInMilliseconds(min) < getTimeInMilliseconds(max) ? 0 : 1),
|
|
197
|
+
minValue: setTime(MIDNIGHT_DATE, min)
|
|
198
|
+
};
|
|
199
|
+
};
|
|
190
200
|
/**
|
|
191
201
|
* @hidden
|
|
192
202
|
*/
|
|
@@ -7,7 +7,7 @@ import { Injectable, EventEmitter, isDevMode, Directive, Input, Component, Outpu
|
|
|
7
7
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
8
8
|
import * as i1$1 from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { cloneDate, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
10
|
+
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
11
11
|
import * as i8 from '@progress/kendo-angular-common';
|
|
12
12
|
import { isDocumentAvailable, guid, Keys as Keys$1, hasObservers, KendoInput, EventsModule, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
13
13
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
name: '@progress/kendo-angular-dateinputs',
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '13.5.0-develop.
|
|
39
|
+
publishDate: 1694429594,
|
|
40
|
+
version: '13.5.0-develop.3',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -168,12 +168,22 @@ const setTime = (origin, candidate) => {
|
|
|
168
168
|
date.setHours(candidate.getHours(), candidate.getMinutes(), candidate.getSeconds(), candidate.getMilliseconds());
|
|
169
169
|
return date;
|
|
170
170
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
/**
|
|
172
|
+
* @hidden
|
|
173
|
+
*/
|
|
174
|
+
const getTimeInMilliseconds = (candidate) => {
|
|
175
|
+
const hoursInMilliseconds = candidate.getHours() * MS_PER_HOUR;
|
|
176
|
+
const minutesInMilliseconds = candidate.getMinutes() * MS_PER_MINUTE;
|
|
177
|
+
const secondsInMilliseconds = candidate.getSeconds() * 1000;
|
|
178
|
+
return hoursInMilliseconds + minutesInMilliseconds + secondsInMilliseconds + candidate.getMilliseconds();
|
|
179
|
+
};
|
|
180
|
+
const normalizeTimes = (candidate, min, max) => {
|
|
181
|
+
return {
|
|
182
|
+
candidateValue: setTime(MIDNIGHT_DATE, candidate),
|
|
183
|
+
maxValue: addDays(setTime(MIDNIGHT_DATE, max), getTimeInMilliseconds(min) < getTimeInMilliseconds(max) ? 0 : 1),
|
|
184
|
+
minValue: setTime(MIDNIGHT_DATE, min)
|
|
185
|
+
};
|
|
186
|
+
};
|
|
177
187
|
/**
|
|
178
188
|
* @hidden
|
|
179
189
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dateinputs",
|
|
3
|
-
"version": "13.5.0-develop.
|
|
3
|
+
"version": "13.5.0-develop.3",
|
|
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",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"@angular/core": "13 - 16",
|
|
34
34
|
"@angular/platform-browser": "13 - 16",
|
|
35
35
|
"@progress/kendo-licensing": "^1.0.2",
|
|
36
|
-
"@progress/kendo-angular-common": "13.5.0-develop.
|
|
37
|
-
"@progress/kendo-angular-intl": "13.5.0-develop.
|
|
38
|
-
"@progress/kendo-angular-l10n": "13.5.0-develop.
|
|
39
|
-
"@progress/kendo-angular-icons": "13.5.0-develop.
|
|
40
|
-
"@progress/kendo-angular-popup": "13.5.0-develop.
|
|
41
|
-
"@progress/kendo-angular-navigation": "13.5.0-develop.
|
|
36
|
+
"@progress/kendo-angular-common": "13.5.0-develop.3",
|
|
37
|
+
"@progress/kendo-angular-intl": "13.5.0-develop.3",
|
|
38
|
+
"@progress/kendo-angular-l10n": "13.5.0-develop.3",
|
|
39
|
+
"@progress/kendo-angular-icons": "13.5.0-develop.3",
|
|
40
|
+
"@progress/kendo-angular-popup": "13.5.0-develop.3",
|
|
41
|
+
"@progress/kendo-angular-navigation": "13.5.0-develop.3",
|
|
42
42
|
"rxjs": "^6.5.3 || ^7.0.0",
|
|
43
|
-
"@progress/kendo-angular-buttons": "13.5.0-develop.
|
|
44
|
-
"@progress/kendo-angular-inputs": "13.5.0-develop.
|
|
45
|
-
"@progress/kendo-angular-label": "13.5.0-develop.
|
|
43
|
+
"@progress/kendo-angular-buttons": "13.5.0-develop.3",
|
|
44
|
+
"@progress/kendo-angular-inputs": "13.5.0-develop.3",
|
|
45
|
+
"@progress/kendo-angular-label": "13.5.0-develop.3"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"tslib": "^2.3.1",
|
|
49
|
-
"@progress/kendo-angular-schematics": "13.5.0-develop.
|
|
49
|
+
"@progress/kendo-angular-schematics": "13.5.0-develop.3",
|
|
50
50
|
"@progress/kendo-common": "^0.2.0",
|
|
51
51
|
"@progress/kendo-date-math": "^1.1.0"
|
|
52
52
|
},
|