@syncfusion/ej2-calendars 26.2.11 → 27.1.48
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/README.md +24 -24
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +154 -37
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +154 -37
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -11
- package/src/calendar/calendar.js +25 -9
- package/src/datepicker/datepicker.d.ts +1 -0
- package/src/datepicker/datepicker.js +15 -5
- package/src/daterangepicker/daterangepicker.js +2 -2
- package/src/datetimepicker/datetimepicker-model.d.ts +14 -0
- package/src/datetimepicker/datetimepicker.d.ts +13 -0
- package/src/datetimepicker/datetimepicker.js +111 -20
- package/src/timepicker/timepicker.js +1 -1
- package/styles/bootstrap-dark-lite.css +2245 -0
- package/styles/bootstrap-dark-lite.scss +19 -0
- package/styles/bootstrap-dark.css +2261 -1747
- package/styles/bootstrap-dark.scss +6 -2
- package/styles/bootstrap-lite.css +2252 -0
- package/styles/bootstrap-lite.scss +19 -0
- package/styles/bootstrap.css +2261 -1741
- package/styles/bootstrap.scss +6 -2
- package/styles/bootstrap4-lite.css +2273 -0
- package/styles/bootstrap4-lite.scss +19 -0
- package/styles/bootstrap4.css +2278 -1758
- package/styles/bootstrap4.scss +6 -2
- package/styles/bootstrap5-dark-lite.css +2382 -0
- package/styles/bootstrap5-dark-lite.scss +19 -0
- package/styles/bootstrap5-dark.css +2350 -1827
- package/styles/bootstrap5-dark.scss +6 -2
- package/styles/bootstrap5-lite.css +2382 -0
- package/styles/bootstrap5-lite.scss +19 -0
- package/styles/bootstrap5.3-lite.css +2363 -0
- package/styles/bootstrap5.3-lite.scss +19 -0
- package/styles/bootstrap5.3.css +3725 -0
- package/styles/bootstrap5.3.scss +24 -0
- package/styles/bootstrap5.css +2351 -1828
- package/styles/bootstrap5.scss +6 -2
- package/styles/calendar/_bigger.scss +1142 -0
- package/styles/calendar/_bootstrap5.3-definition.scss +7 -3
- package/styles/calendar/_fluent-definition.scss +4 -2
- package/styles/calendar/_fluent2-definition.scss +9 -5
- package/styles/calendar/_layout.scss +7 -251
- package/styles/calendar/_theme.scss +32 -8
- package/styles/calendar/bootstrap-dark.css +681 -369
- package/styles/calendar/bootstrap-dark.scss +1 -0
- package/styles/calendar/bootstrap.css +681 -369
- package/styles/calendar/bootstrap.scss +1 -0
- package/styles/calendar/bootstrap4.css +681 -369
- package/styles/calendar/bootstrap4.scss +1 -0
- package/styles/calendar/bootstrap5-dark.css +704 -390
- package/styles/calendar/bootstrap5-dark.scss +1 -0
- package/styles/calendar/bootstrap5.3.css +1238 -0
- package/styles/calendar/bootstrap5.3.scss +6 -0
- package/styles/calendar/bootstrap5.css +704 -390
- package/styles/calendar/bootstrap5.scss +1 -0
- package/styles/calendar/fabric-dark.css +689 -371
- package/styles/calendar/fabric-dark.scss +1 -0
- package/styles/calendar/fabric.css +693 -373
- package/styles/calendar/fabric.scss +1 -0
- package/styles/calendar/fluent-dark.css +806 -420
- package/styles/calendar/fluent-dark.scss +1 -0
- package/styles/calendar/fluent.css +806 -420
- package/styles/calendar/fluent.scss +1 -0
- package/styles/calendar/fluent2.css +841 -423
- package/styles/calendar/fluent2.scss +1 -0
- package/styles/calendar/highcontrast-light.css +683 -369
- package/styles/calendar/highcontrast-light.scss +1 -0
- package/styles/calendar/highcontrast.css +693 -373
- package/styles/calendar/highcontrast.scss +1 -0
- package/styles/calendar/material-dark.css +693 -373
- package/styles/calendar/material-dark.scss +1 -0
- package/styles/calendar/material.css +693 -373
- package/styles/calendar/material.scss +1 -0
- package/styles/calendar/material3-dark.css +700 -376
- package/styles/calendar/material3-dark.scss +1 -0
- package/styles/calendar/material3.css +700 -376
- package/styles/calendar/material3.scss +1 -0
- package/styles/calendar/tailwind-dark.css +748 -421
- package/styles/calendar/tailwind-dark.scss +1 -0
- package/styles/calendar/tailwind.css +748 -421
- package/styles/calendar/tailwind.scss +1 -0
- package/styles/datepicker/_bigger.scss +82 -0
- package/styles/datepicker/_bootstrap5.3-definition.scss +7 -6
- package/styles/datepicker/_fluent2-definition.scss +2 -2
- package/styles/datepicker/_layout.scss +43 -26
- package/styles/datepicker/_theme.scss +2 -7
- package/styles/datepicker/bootstrap-dark.css +33 -43
- package/styles/datepicker/bootstrap-dark.scss +1 -0
- package/styles/datepicker/bootstrap.css +33 -43
- package/styles/datepicker/bootstrap.scss +1 -0
- package/styles/datepicker/bootstrap4.css +35 -45
- package/styles/datepicker/bootstrap4.scss +1 -0
- package/styles/datepicker/bootstrap5-dark.css +35 -45
- package/styles/datepicker/bootstrap5-dark.scss +1 -0
- package/styles/datepicker/bootstrap5.3.css +453 -0
- package/styles/datepicker/bootstrap5.3.scss +8 -0
- package/styles/datepicker/bootstrap5.css +35 -45
- package/styles/datepicker/bootstrap5.scss +1 -0
- package/styles/datepicker/fabric-dark.css +33 -43
- package/styles/datepicker/fabric-dark.scss +1 -0
- package/styles/datepicker/fabric.css +33 -43
- package/styles/datepicker/fabric.scss +1 -0
- package/styles/datepicker/fluent-dark.css +35 -45
- package/styles/datepicker/fluent-dark.scss +1 -0
- package/styles/datepicker/fluent.css +35 -45
- package/styles/datepicker/fluent.scss +1 -0
- package/styles/datepicker/fluent2.css +40 -52
- package/styles/datepicker/fluent2.scss +1 -0
- package/styles/datepicker/highcontrast-light.css +33 -43
- package/styles/datepicker/highcontrast-light.scss +1 -0
- package/styles/datepicker/highcontrast.css +33 -43
- package/styles/datepicker/highcontrast.scss +1 -0
- package/styles/datepicker/icons/_bds.scss +0 -24
- package/styles/datepicker/icons/_bootstrap-dark.scss +0 -24
- package/styles/datepicker/icons/_bootstrap.scss +0 -22
- package/styles/datepicker/icons/_bootstrap4.scss +0 -24
- package/styles/datepicker/icons/_bootstrap5.3.scss +0 -24
- package/styles/datepicker/icons/_bootstrap5.scss +0 -24
- package/styles/datepicker/icons/_fabric-dark.scss +0 -22
- package/styles/datepicker/icons/_fabric.scss +0 -22
- package/styles/datepicker/icons/_fluent.scss +0 -24
- package/styles/datepicker/icons/_fluent2.scss +0 -31
- package/styles/datepicker/icons/_fusionnew.scss +0 -24
- package/styles/datepicker/icons/_highcontrast-light.scss +0 -22
- package/styles/datepicker/icons/_highcontrast.scss +0 -22
- package/styles/datepicker/icons/_material-dark.scss +0 -40
- package/styles/datepicker/icons/_material.scss +0 -40
- package/styles/datepicker/icons/_material3.scss +0 -29
- package/styles/datepicker/icons/_tailwind.scss +0 -24
- package/styles/datepicker/material-dark.css +50 -60
- package/styles/datepicker/material-dark.scss +1 -0
- package/styles/datepicker/material.css +50 -60
- package/styles/datepicker/material.scss +1 -0
- package/styles/datepicker/material3-dark.css +41 -50
- package/styles/datepicker/material3-dark.scss +1 -0
- package/styles/datepicker/material3.css +41 -50
- package/styles/datepicker/material3.scss +1 -0
- package/styles/datepicker/tailwind-dark.css +40 -50
- package/styles/datepicker/tailwind-dark.scss +1 -0
- package/styles/datepicker/tailwind.css +40 -50
- package/styles/datepicker/tailwind.scss +1 -0
- package/styles/daterangepicker/_bigger.scss +971 -0
- package/styles/daterangepicker/_bootstrap5.3-definition.scss +5 -3
- package/styles/daterangepicker/_fluent-definition.scss +0 -9
- package/styles/daterangepicker/_fluent2-definition.scss +3 -7
- package/styles/daterangepicker/_layout.scss +20 -252
- package/styles/daterangepicker/_theme.scss +20 -68
- package/styles/daterangepicker/bootstrap-dark.css +750 -540
- package/styles/daterangepicker/bootstrap-dark.scss +1 -0
- package/styles/daterangepicker/bootstrap.css +779 -563
- package/styles/daterangepicker/bootstrap.scss +1 -0
- package/styles/daterangepicker/bootstrap4.css +752 -536
- package/styles/daterangepicker/bootstrap4.scss +1 -0
- package/styles/daterangepicker/bootstrap5-dark.css +786 -570
- package/styles/daterangepicker/bootstrap5-dark.scss +1 -0
- package/styles/daterangepicker/bootstrap5.3.css +1500 -0
- package/styles/daterangepicker/bootstrap5.3.scss +8 -0
- package/styles/daterangepicker/bootstrap5.css +786 -570
- package/styles/daterangepicker/bootstrap5.scss +1 -0
- package/styles/daterangepicker/fabric-dark.css +752 -536
- package/styles/daterangepicker/fabric-dark.scss +1 -0
- package/styles/daterangepicker/fabric.css +752 -536
- package/styles/daterangepicker/fabric.scss +1 -0
- package/styles/daterangepicker/fluent-dark.css +817 -592
- package/styles/daterangepicker/fluent-dark.scss +1 -0
- package/styles/daterangepicker/fluent.css +817 -592
- package/styles/daterangepicker/fluent.scss +1 -0
- package/styles/daterangepicker/fluent2.css +791 -571
- package/styles/daterangepicker/fluent2.scss +1 -0
- package/styles/daterangepicker/highcontrast-light.css +752 -536
- package/styles/daterangepicker/highcontrast-light.scss +1 -0
- package/styles/daterangepicker/highcontrast.css +752 -536
- package/styles/daterangepicker/highcontrast.scss +1 -0
- package/styles/daterangepicker/icons/_bds.scss +0 -18
- package/styles/daterangepicker/icons/_bootstrap-dark.scss +0 -24
- package/styles/daterangepicker/icons/_bootstrap.scss +0 -16
- package/styles/daterangepicker/icons/_bootstrap4.scss +0 -19
- package/styles/daterangepicker/icons/_bootstrap5.3.scss +0 -18
- package/styles/daterangepicker/icons/_bootstrap5.scss +0 -18
- package/styles/daterangepicker/icons/_fabric-dark.scss +0 -16
- package/styles/daterangepicker/icons/_fabric.scss +0 -16
- package/styles/daterangepicker/icons/_fluent.scss +0 -18
- package/styles/daterangepicker/icons/_fluent2.scss +0 -41
- package/styles/daterangepicker/icons/_fusionnew.scss +0 -18
- package/styles/daterangepicker/icons/_highcontrast-light.scss +0 -16
- package/styles/daterangepicker/icons/_highcontrast.scss +0 -16
- package/styles/daterangepicker/icons/_material-dark.scss +0 -34
- package/styles/daterangepicker/icons/_material.scss +0 -34
- package/styles/daterangepicker/icons/_material3.scss +0 -39
- package/styles/daterangepicker/icons/_tailwind.scss +0 -18
- package/styles/daterangepicker/material-dark.css +781 -565
- package/styles/daterangepicker/material-dark.scss +1 -0
- package/styles/daterangepicker/material.css +784 -568
- package/styles/daterangepicker/material.scss +1 -0
- package/styles/daterangepicker/material3-dark.css +802 -572
- package/styles/daterangepicker/material3-dark.scss +1 -0
- package/styles/daterangepicker/material3.css +802 -572
- package/styles/daterangepicker/material3.scss +1 -0
- package/styles/daterangepicker/tailwind-dark.css +791 -559
- package/styles/daterangepicker/tailwind-dark.scss +1 -0
- package/styles/daterangepicker/tailwind.css +791 -559
- package/styles/daterangepicker/tailwind.scss +1 -0
- package/styles/datetimepicker/_bigger.scss +105 -0
- package/styles/datetimepicker/_layout.scss +0 -76
- package/styles/datetimepicker/bootstrap-dark.css +42 -42
- package/styles/datetimepicker/bootstrap-dark.scss +1 -0
- package/styles/datetimepicker/bootstrap.css +42 -42
- package/styles/datetimepicker/bootstrap.scss +1 -0
- package/styles/datetimepicker/bootstrap4.css +42 -42
- package/styles/datetimepicker/bootstrap4.scss +1 -0
- package/styles/datetimepicker/bootstrap5-dark.css +42 -42
- package/styles/datetimepicker/bootstrap5-dark.scss +1 -0
- package/styles/datetimepicker/bootstrap5.3.css +227 -0
- package/styles/datetimepicker/bootstrap5.3.scss +9 -0
- package/styles/datetimepicker/bootstrap5.css +42 -42
- package/styles/datetimepicker/bootstrap5.scss +1 -0
- package/styles/datetimepicker/fabric-dark.css +42 -42
- package/styles/datetimepicker/fabric-dark.scss +1 -0
- package/styles/datetimepicker/fabric.css +42 -42
- package/styles/datetimepicker/fabric.scss +1 -0
- package/styles/datetimepicker/fluent-dark.css +42 -42
- package/styles/datetimepicker/fluent-dark.scss +1 -0
- package/styles/datetimepicker/fluent.css +42 -42
- package/styles/datetimepicker/fluent.scss +1 -0
- package/styles/datetimepicker/fluent2.css +42 -42
- package/styles/datetimepicker/fluent2.scss +1 -0
- package/styles/datetimepicker/highcontrast-light.css +42 -42
- package/styles/datetimepicker/highcontrast-light.scss +1 -0
- package/styles/datetimepicker/highcontrast.css +42 -42
- package/styles/datetimepicker/highcontrast.scss +1 -0
- package/styles/datetimepicker/icons/_material-dark.scss +0 -22
- package/styles/datetimepicker/icons/_material.scss +0 -22
- package/styles/datetimepicker/material-dark.css +66 -66
- package/styles/datetimepicker/material-dark.scss +1 -0
- package/styles/datetimepicker/material.css +66 -66
- package/styles/datetimepicker/material.scss +1 -0
- package/styles/datetimepicker/material3-dark.css +53 -53
- package/styles/datetimepicker/material3-dark.scss +1 -0
- package/styles/datetimepicker/material3.css +53 -53
- package/styles/datetimepicker/material3.scss +1 -0
- package/styles/datetimepicker/tailwind-dark.css +42 -42
- package/styles/datetimepicker/tailwind-dark.scss +1 -0
- package/styles/datetimepicker/tailwind.css +42 -42
- package/styles/datetimepicker/tailwind.scss +1 -0
- package/styles/fabric-dark-lite.css +2251 -0
- package/styles/fabric-dark-lite.scss +19 -0
- package/styles/fabric-dark.css +2268 -1742
- package/styles/fabric-dark.scss +6 -2
- package/styles/fabric-lite.css +2255 -0
- package/styles/fabric-lite.scss +19 -0
- package/styles/fabric.css +2265 -1737
- package/styles/fabric.scss +6 -2
- package/styles/fluent-dark-lite.css +2509 -0
- package/styles/fluent-dark-lite.scss +19 -0
- package/styles/fluent-dark.css +2456 -1853
- package/styles/fluent-dark.scss +6 -2
- package/styles/fluent-lite.css +2509 -0
- package/styles/fluent-lite.scss +19 -0
- package/styles/fluent.css +2456 -1853
- package/styles/fluent.scss +6 -2
- package/styles/fluent2-lite.css +2606 -0
- package/styles/fluent2-lite.scss +19 -0
- package/styles/fluent2.css +2410 -1781
- package/styles/fluent2.scss +6 -2
- package/styles/highcontrast-light-lite.css +2259 -0
- package/styles/highcontrast-light-lite.scss +19 -0
- package/styles/highcontrast-light.css +2264 -1742
- package/styles/highcontrast-light.scss +6 -2
- package/styles/highcontrast-lite.css +2268 -0
- package/styles/highcontrast-lite.scss +19 -0
- package/styles/highcontrast.css +2273 -1745
- package/styles/highcontrast.scss +6 -2
- package/styles/material-dark-lite.css +2345 -0
- package/styles/material-dark-lite.scss +19 -0
- package/styles/material-dark.css +2371 -1843
- package/styles/material-dark.scss +6 -2
- package/styles/material-lite.css +2375 -0
- package/styles/material-lite.scss +19 -0
- package/styles/material.css +2363 -1835
- package/styles/material.scss +6 -2
- package/styles/material3-dark-lite.css +2400 -0
- package/styles/material3-dark-lite.scss +19 -0
- package/styles/material3-dark.css +2414 -1867
- package/styles/material3-dark.scss +6 -2
- package/styles/material3-lite.css +2402 -0
- package/styles/material3-lite.scss +19 -0
- package/styles/material3.css +2414 -1867
- package/styles/material3.scss +6 -2
- package/styles/tailwind-dark-lite.css +2327 -0
- package/styles/tailwind-dark-lite.scss +19 -0
- package/styles/tailwind-dark.css +2362 -1811
- package/styles/tailwind-dark.scss +6 -2
- package/styles/tailwind-lite.css +2327 -0
- package/styles/tailwind-lite.scss +19 -0
- package/styles/tailwind.css +2363 -1812
- package/styles/tailwind.scss +6 -2
- package/styles/timepicker/_bigger.scss +92 -0
- package/styles/timepicker/_layout.scss +0 -62
- package/styles/timepicker/_theme.scss +2 -4
- package/styles/timepicker/bootstrap-dark.css +44 -41
- package/styles/timepicker/bootstrap-dark.scss +1 -0
- package/styles/timepicker/bootstrap.css +44 -41
- package/styles/timepicker/bootstrap.scss +1 -0
- package/styles/timepicker/bootstrap4.css +44 -41
- package/styles/timepicker/bootstrap4.scss +1 -0
- package/styles/timepicker/bootstrap5-dark.css +44 -41
- package/styles/timepicker/bootstrap5-dark.scss +1 -0
- package/styles/timepicker/bootstrap5.3.css +327 -0
- package/styles/timepicker/bootstrap5.3.scss +7 -0
- package/styles/timepicker/bootstrap5.css +44 -41
- package/styles/timepicker/bootstrap5.scss +1 -0
- package/styles/timepicker/fabric-dark.css +44 -41
- package/styles/timepicker/fabric-dark.scss +1 -0
- package/styles/timepicker/fabric.css +44 -41
- package/styles/timepicker/fabric.scss +1 -0
- package/styles/timepicker/fluent-dark.css +44 -41
- package/styles/timepicker/fluent-dark.scss +1 -0
- package/styles/timepicker/fluent.css +44 -41
- package/styles/timepicker/fluent.scss +1 -0
- package/styles/timepicker/fluent2.css +44 -41
- package/styles/timepicker/fluent2.scss +1 -0
- package/styles/timepicker/highcontrast-light.css +44 -41
- package/styles/timepicker/highcontrast-light.scss +1 -0
- package/styles/timepicker/highcontrast.css +44 -41
- package/styles/timepicker/highcontrast.scss +1 -0
- package/styles/timepicker/icons/_material-dark.scss +0 -15
- package/styles/timepicker/icons/_material.scss +0 -15
- package/styles/timepicker/material-dark.css +61 -58
- package/styles/timepicker/material-dark.scss +1 -0
- package/styles/timepicker/material.css +61 -58
- package/styles/timepicker/material.scss +1 -0
- package/styles/timepicker/material3-dark.css +52 -49
- package/styles/timepicker/material3-dark.scss +1 -0
- package/styles/timepicker/material3.css +52 -49
- package/styles/timepicker/material3.scss +1 -0
- package/styles/timepicker/tailwind-dark.css +44 -41
- package/styles/timepicker/tailwind-dark.scss +1 -0
- package/styles/timepicker/tailwind.css +44 -41
- package/styles/timepicker/tailwind.scss +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 27.1.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@18.32.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-4Wah1EymU4154eL/oMegUwjMYRSgQlMjBK+yJSeGq0LApQAc/sNQlsU3ViuBZAzzQXtzQZGNI7NyX2/cIBoXJw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"/@syncfusion/ej2-schedule",
|
|
32
32
|
"/@syncfusion/ej2-vue-calendars"
|
|
33
33
|
],
|
|
34
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.32.5.tgz",
|
|
35
|
+
"_shasum": "0f89918ef767a73b5b8d1aab41c7e0fdf0e6de50",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
|
-
"_where": "/jenkins/workspace/elease-
|
|
37
|
+
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
39
39
|
"name": "Syncfusion Inc."
|
|
40
40
|
},
|
|
@@ -43,11 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~
|
|
47
|
-
"@syncfusion/ej2-buttons": "~
|
|
48
|
-
"@syncfusion/ej2-inputs": "~
|
|
49
|
-
"@syncfusion/ej2-lists": "~
|
|
50
|
-
"@syncfusion/ej2-popups": "~
|
|
46
|
+
"@syncfusion/ej2-base": "~27.1.48",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~27.1.48",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~27.1.48",
|
|
49
|
+
"@syncfusion/ej2-lists": "~27.1.48",
|
|
50
|
+
"@syncfusion/ej2-popups": "~27.1.48",
|
|
51
|
+
"markdown-spellcheck": "^1.3.1"
|
|
51
52
|
},
|
|
52
53
|
"deprecated": false,
|
|
53
54
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -80,6 +81,6 @@
|
|
|
80
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
82
|
},
|
|
82
83
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "
|
|
84
|
+
"version": "27.1.48",
|
|
84
85
|
"sideEffects": false
|
|
85
86
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -312,8 +312,8 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
312
312
|
CalendarBase.prototype.getCultureValues = function () {
|
|
313
313
|
var culShortNames = [];
|
|
314
314
|
var cldrObj;
|
|
315
|
-
var dayFormat = 'days.stand-alone.' + this.dayHeaderFormat.toLowerCase();
|
|
316
|
-
if (this.locale === 'en' || this.locale === 'en-US') {
|
|
315
|
+
var dayFormat = !isNullOrUndefined(this.dayHeaderFormat) ? 'days.stand-alone.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
316
|
+
if ((this.locale === 'en' || this.locale === 'en-US') && !isNullOrUndefined(dayFormat)) {
|
|
317
317
|
cldrObj = (getValue(dayFormat, getDefaultDateObject()));
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
@@ -551,7 +551,12 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
551
551
|
else if (e.target === this.todayElement && !e.target.className.includes(DISABLED)) {
|
|
552
552
|
this.todayButtonClick(e, value);
|
|
553
553
|
if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
|
|
554
|
-
this.
|
|
554
|
+
if (this.isAngular) {
|
|
555
|
+
this.inputElement.focus();
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
this.element.focus();
|
|
559
|
+
}
|
|
555
560
|
}
|
|
556
561
|
}
|
|
557
562
|
else {
|
|
@@ -562,7 +567,12 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
562
567
|
var d = new Date(parseInt('' + (element).id, 0));
|
|
563
568
|
this.selectDate(e, d, (element));
|
|
564
569
|
if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
|
|
565
|
-
this.
|
|
570
|
+
if (this.isAngular) {
|
|
571
|
+
this.inputElement.focus();
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
this.element.focus();
|
|
575
|
+
}
|
|
566
576
|
}
|
|
567
577
|
}
|
|
568
578
|
else {
|
|
@@ -654,7 +664,12 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
654
664
|
case 'shiftTab':
|
|
655
665
|
if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && e.target === this.headerTitleElement) {
|
|
656
666
|
e.preventDefault();
|
|
657
|
-
this.
|
|
667
|
+
if (this.isAngular) {
|
|
668
|
+
this.inputElement.focus();
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
this.element.focus();
|
|
672
|
+
}
|
|
658
673
|
this.hide();
|
|
659
674
|
}
|
|
660
675
|
break;
|
|
@@ -749,13 +764,13 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
749
764
|
tdEles = this.renderDays(this.currentDate, value, null, null, isCustomDate, e);
|
|
750
765
|
}
|
|
751
766
|
else {
|
|
752
|
-
tdEles = this.islamicModule.islamicRenderDays(this.currentDate, value);
|
|
767
|
+
tdEles = !isNullOrUndefined(this.islamicModule) ? this.islamicModule.islamicRenderDays(this.currentDate, value) : null;
|
|
753
768
|
}
|
|
754
769
|
this.createContentHeader();
|
|
755
770
|
if (this.calendarMode === 'Gregorian') {
|
|
756
771
|
this.renderTemplate(tdEles, numCells, MONTH, e, value);
|
|
757
772
|
}
|
|
758
|
-
else {
|
|
773
|
+
else if (!isNullOrUndefined(this.islamicModule)) {
|
|
759
774
|
this.islamicModule.islamicRenderTemplate(tdEles, numCells, MONTH, e, value);
|
|
760
775
|
}
|
|
761
776
|
};
|
|
@@ -1706,8 +1721,8 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
1706
1721
|
};
|
|
1707
1722
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1708
1723
|
CalendarBase.prototype.getCultureObjects = function (ld, c) {
|
|
1709
|
-
var gregorianFormat = '.dates.calendars.gregorian.days.format.' + this.dayHeaderFormat.toLowerCase();
|
|
1710
|
-
var islamicFormat = '.dates.calendars.islamic.days.format.' + this.dayHeaderFormat.toLowerCase();
|
|
1724
|
+
var gregorianFormat = !isNullOrUndefined(this.dayHeaderFormat) ? '.dates.calendars.gregorian.days.format.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
1725
|
+
var islamicFormat = !isNullOrUndefined(this.dayHeaderFormat) ? '.dates.calendars.islamic.days.format.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
1711
1726
|
var mainVal = 'main.';
|
|
1712
1727
|
if (this.calendarMode === 'Gregorian') {
|
|
1713
1728
|
return getValue(mainVal + '' + this.locale + gregorianFormat, ld);
|
|
@@ -2669,6 +2684,7 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
2669
2684
|
if (!isNullOrUndefined(this.value)) {
|
|
2670
2685
|
this.setProperties({ value: this.value }, true);
|
|
2671
2686
|
}
|
|
2687
|
+
// eslint-disable-next-line
|
|
2672
2688
|
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) &&
|
|
2673
2689
|
!isNullOrUndefined(this.previousDate) || this.previousDate === null
|
|
2674
2690
|
&& !isNaN(+this.value))) {
|
|
@@ -528,6 +528,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
528
528
|
private disabledDates;
|
|
529
529
|
private setAriaAttributes;
|
|
530
530
|
protected errorClass(): void;
|
|
531
|
+
protected isValidTime(value: Date): boolean;
|
|
531
532
|
/**
|
|
532
533
|
* Called internally if any of the property value changed.
|
|
533
534
|
*
|
|
@@ -175,7 +175,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
175
175
|
var ariaAttrs = {
|
|
176
176
|
'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
177
177
|
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
178
|
-
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
178
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
179
179
|
};
|
|
180
180
|
if (this.getModuleName() === 'datepicker') {
|
|
181
181
|
var l10nLocale = { placeholder: this.placeholder };
|
|
@@ -213,6 +213,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
213
213
|
this.inputElement.setAttribute('name', '' + this.element.id);
|
|
214
214
|
}
|
|
215
215
|
attributes(this.inputElement, ariaAttrs);
|
|
216
|
+
if (!this.inputElement.hasAttribute('aria-label')) {
|
|
217
|
+
this.inputElement.setAttribute('aria-label', this.getModuleName());
|
|
218
|
+
}
|
|
216
219
|
if (!this.enabled) {
|
|
217
220
|
this.inputElement.setAttribute('aria-disabled', 'true');
|
|
218
221
|
this.inputElement.tabIndex = -1;
|
|
@@ -1482,7 +1485,6 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1482
1485
|
if (this.showClearButton) {
|
|
1483
1486
|
this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
|
|
1484
1487
|
}
|
|
1485
|
-
this.hide(null);
|
|
1486
1488
|
_super.prototype.destroy.call(this);
|
|
1487
1489
|
Input.destroy({
|
|
1488
1490
|
element: this.inputElement,
|
|
@@ -1498,8 +1500,11 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1498
1500
|
var ariaAttrs = {
|
|
1499
1501
|
'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
1500
1502
|
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
1501
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
1503
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
1502
1504
|
};
|
|
1505
|
+
if (this.inputElement.hasAttribute('aria-label')) {
|
|
1506
|
+
this.inputElement.removeAttribute('aria-label');
|
|
1507
|
+
}
|
|
1503
1508
|
if (this.inputElement) {
|
|
1504
1509
|
Input.removeAttributes(ariaAttrs, this.inputElement);
|
|
1505
1510
|
if (!isNullOrUndefined(this.inputElementCopy.getAttribute('tabindex'))) {
|
|
@@ -1851,9 +1856,11 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1851
1856
|
this.calendarElement.querySelectorAll(dateIdString)[0] &&
|
|
1852
1857
|
this.calendarElement.querySelectorAll(dateIdString)[0].classList.contains('e-disabled');
|
|
1853
1858
|
if ((!isNullOrUndefined(this.value) && !isNullOrUndefined(this.min) &&
|
|
1854
|
-
!isNullOrUndefined(this.max) && !(new Date(this.value).setMilliseconds(0) >=
|
|
1859
|
+
!isNullOrUndefined(this.max) && !(new Date(this.value).setMilliseconds(0) >=
|
|
1860
|
+
new Date(this.min).setMilliseconds(0)
|
|
1855
1861
|
&& new Date(this.value).setMilliseconds(0) <= new Date(this.max).setMilliseconds(0)))
|
|
1856
|
-
|| (!this.strictMode && this.inputElement.value !== '' && this.inputElement.value !== this.maskedDateValue &&
|
|
1862
|
+
|| (!this.strictMode && this.inputElement.value !== '' && this.inputElement.value !== this.maskedDateValue &&
|
|
1863
|
+
isNullOrUndefined(this.value) || isDisabledDate) || !this.isValidTime(this.value)) {
|
|
1857
1864
|
addClass([this.inputWrapper.container], ERROR);
|
|
1858
1865
|
attributes(this.inputElement, { 'aria-invalid': 'true' });
|
|
1859
1866
|
}
|
|
@@ -1862,6 +1869,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1862
1869
|
attributes(this.inputElement, { 'aria-invalid': 'false' });
|
|
1863
1870
|
}
|
|
1864
1871
|
};
|
|
1872
|
+
DatePicker.prototype.isValidTime = function (value) {
|
|
1873
|
+
return true;
|
|
1874
|
+
};
|
|
1865
1875
|
/**
|
|
1866
1876
|
* Called internally if any of the property value changed.
|
|
1867
1877
|
*
|
|
@@ -474,7 +474,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
474
474
|
DateRangePicker.prototype.processPresets = function () {
|
|
475
475
|
this.presetsItem = [];
|
|
476
476
|
var i = 0;
|
|
477
|
-
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
477
|
+
if (!isNullOrUndefined(this.presets[0]) && !isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
478
478
|
for (var _i = 0, _a = this.presets; _i < _a.length; _i++) {
|
|
479
479
|
var range = _a[_i];
|
|
480
480
|
var id = range.label.replace(/\s+/g, '') + '_' + (++i);
|
|
@@ -1074,7 +1074,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
1074
1074
|
this.currentDate = null;
|
|
1075
1075
|
};
|
|
1076
1076
|
DateRangePicker.prototype.errorClass = function () {
|
|
1077
|
-
var inputStr = this.inputElement.value.trim();
|
|
1077
|
+
var inputStr = !isNullOrUndefined(this.inputElement.value) ? this.inputElement.value.trim() : null;
|
|
1078
1078
|
if (((isNullOrUndefined(this.endValue) && isNullOrUndefined(this.startValue) && inputStr !== '') ||
|
|
1079
1079
|
((!isNullOrUndefined(this.startValue) && +this.startValue < +this.min)
|
|
1080
1080
|
|| ((!isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.endValue)) && +this.startValue > +this.endValue)
|
|
@@ -284,6 +284,20 @@ export interface DateTimePickerModel extends DatePickerModel{
|
|
|
284
284
|
*/
|
|
285
285
|
max?: Date;
|
|
286
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Gets or sets the minimum time that can be selected in the time popup of the DateTimePicker.
|
|
289
|
+
*
|
|
290
|
+
* @default null
|
|
291
|
+
*/
|
|
292
|
+
minTime?: Date;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Gets or sets the maximum time that can be selected in the time popup of the DateTimePicker.
|
|
296
|
+
*
|
|
297
|
+
* @default null
|
|
298
|
+
*/
|
|
299
|
+
maxTime?: Date;
|
|
300
|
+
|
|
287
301
|
/**
|
|
288
302
|
* Gets or sets the Calendar's first day of the week. By default, the first day of the week will be based on the current culture.
|
|
289
303
|
*
|
|
@@ -321,6 +321,18 @@ export declare class DateTimePicker extends DatePicker {
|
|
|
321
321
|
* @default new Date(2099, 11, 31)
|
|
322
322
|
*/
|
|
323
323
|
max: Date;
|
|
324
|
+
/**
|
|
325
|
+
* Gets or sets the minimum time that can be selected in the time popup of the DateTimePicker.
|
|
326
|
+
*
|
|
327
|
+
* @default null
|
|
328
|
+
*/
|
|
329
|
+
minTime: Date;
|
|
330
|
+
/**
|
|
331
|
+
* Gets or sets the maximum time that can be selected in the time popup of the DateTimePicker.
|
|
332
|
+
*
|
|
333
|
+
* @default null
|
|
334
|
+
*/
|
|
335
|
+
maxTime: Date;
|
|
324
336
|
/**
|
|
325
337
|
* Gets or sets the Calendar's first day of the week. By default, the first day of the week will be based on the current culture.
|
|
326
338
|
*
|
|
@@ -521,6 +533,7 @@ export declare class DateTimePicker extends DatePicker {
|
|
|
521
533
|
private validateMinMaxRange;
|
|
522
534
|
private checkValidState;
|
|
523
535
|
private checkErrorState;
|
|
536
|
+
protected isValidTime(value: Date): boolean;
|
|
524
537
|
private validateValue;
|
|
525
538
|
private disablePopupButton;
|
|
526
539
|
private getFormattedValue;
|
|
@@ -142,7 +142,6 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
142
142
|
if (this.showClearButton) {
|
|
143
143
|
this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
|
|
144
144
|
}
|
|
145
|
-
this.hide(null);
|
|
146
145
|
if (this.popupObject && this.popupObject.element.classList.contains(POPUP)) {
|
|
147
146
|
this.popupObject.destroy();
|
|
148
147
|
detach(this.dateTimeWrapper);
|
|
@@ -215,6 +214,12 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
215
214
|
if (typeof (this.max) === 'string') {
|
|
216
215
|
this.max = this.checkDateValue(new Date(this.max));
|
|
217
216
|
}
|
|
217
|
+
if (typeof (this.minTime) === 'string') {
|
|
218
|
+
this.minTime = this.checkDateValue(new Date(this.minTime));
|
|
219
|
+
}
|
|
220
|
+
if (typeof (this.maxTime) === 'string') {
|
|
221
|
+
this.maxTime = this.checkDateValue(new Date(this.maxTime));
|
|
222
|
+
}
|
|
218
223
|
if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
|
|
219
224
|
this.enabled = false;
|
|
220
225
|
}
|
|
@@ -286,7 +291,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
286
291
|
DateTimePicker.prototype.checkValidState = function (value) {
|
|
287
292
|
this.isValidState = true;
|
|
288
293
|
if (!this.strictMode) {
|
|
289
|
-
if ((+(value) > +(this.max)) || (+(value) < +(this.min))) {
|
|
294
|
+
if ((+(value) > +(this.max)) || (+(value) < +(this.min)) || !this.isValidTime(value)) {
|
|
290
295
|
this.isValidState = false;
|
|
291
296
|
}
|
|
292
297
|
}
|
|
@@ -301,6 +306,54 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
301
306
|
}
|
|
302
307
|
attributes(this.inputElement, { 'aria-invalid': this.isValidState ? 'false' : 'true' });
|
|
303
308
|
};
|
|
309
|
+
DateTimePicker.prototype.isValidTime = function (value) {
|
|
310
|
+
if (value != null && (this.minTime || this.maxTime)) {
|
|
311
|
+
var minTimeValue = void 0;
|
|
312
|
+
var maxTimeValue = void 0;
|
|
313
|
+
var maxValue = void 0;
|
|
314
|
+
var minValue = void 0;
|
|
315
|
+
var valueTime = value.getHours() * 3600000 + value.getMinutes() * 60000 +
|
|
316
|
+
value.getSeconds() * 1000 + value.getMilliseconds();
|
|
317
|
+
if (this.minTime) {
|
|
318
|
+
minTimeValue = this.minTime.getHours() * 3600000 + this.minTime.getMinutes() * 60000 +
|
|
319
|
+
this.minTime.getSeconds() * 1000 + this.minTime.getMilliseconds();
|
|
320
|
+
}
|
|
321
|
+
if (this.maxTime) {
|
|
322
|
+
maxTimeValue = this.maxTime.getHours() * 3600000 + this.maxTime.getMinutes() * 60000 +
|
|
323
|
+
this.maxTime.getSeconds() * 1000 + this.maxTime.getMilliseconds();
|
|
324
|
+
}
|
|
325
|
+
if (this.min && (+value.getDate() === +this.min.getDate() && +value.getMonth() === +this.min.getMonth() &&
|
|
326
|
+
+value.getFullYear() === +this.min.getFullYear())) {
|
|
327
|
+
minValue = this.min.getHours() * 3600000 + this.min.getMinutes() * 60000 +
|
|
328
|
+
this.min.getSeconds() * 1000 + this.min.getMilliseconds();
|
|
329
|
+
minTimeValue = minTimeValue < minValue ? minValue : minTimeValue;
|
|
330
|
+
}
|
|
331
|
+
if (this.max && (+value.getDate() === +this.max.getDate() && +value.getMonth() === +this.max.getMonth() &&
|
|
332
|
+
+this.max.getFullYear() === +this.max.getFullYear())) {
|
|
333
|
+
maxValue = this.max.getHours() * 3600000 + this.max.getMinutes() * 60000 +
|
|
334
|
+
this.max.getSeconds() * 1000 + this.max.getMilliseconds();
|
|
335
|
+
maxTimeValue = maxTimeValue > maxValue ? maxValue : maxTimeValue;
|
|
336
|
+
}
|
|
337
|
+
if (this.strictMode) {
|
|
338
|
+
var newValue = void 0;
|
|
339
|
+
if (minTimeValue && valueTime < minTimeValue) {
|
|
340
|
+
newValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.minTime.getHours(), this.minTime.getMinutes(), this.minTime.getSeconds(), this.minTime.getMilliseconds());
|
|
341
|
+
this.setProperties({ value: newValue }, true);
|
|
342
|
+
this.changedArgs = { value: this.value };
|
|
343
|
+
}
|
|
344
|
+
else if (maxTimeValue && valueTime > maxTimeValue) {
|
|
345
|
+
newValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.maxTime.getHours(), this.maxTime.getMinutes(), this.maxTime.getSeconds(), this.maxTime.getMilliseconds());
|
|
346
|
+
this.setProperties({ value: newValue }, true);
|
|
347
|
+
this.changedArgs = { value: this.value };
|
|
348
|
+
}
|
|
349
|
+
return true;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
return !((minTimeValue && valueTime < minTimeValue) || (maxTimeValue && valueTime > maxTimeValue));
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return true;
|
|
356
|
+
};
|
|
304
357
|
DateTimePicker.prototype.validateValue = function (value) {
|
|
305
358
|
var dateVal = value;
|
|
306
359
|
if (this.strictMode) {
|
|
@@ -575,8 +628,11 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
575
628
|
if (!Browser.isDevice || (Browser.isDevice && !this.fullScreenMode)) {
|
|
576
629
|
this.popupObject.refreshPosition(this.inputElement);
|
|
577
630
|
}
|
|
578
|
-
if (Browser.isDevice
|
|
579
|
-
this.
|
|
631
|
+
if (Browser.isDevice) {
|
|
632
|
+
this.modelWrapper.style.zIndex = (this.popupObject.zIndex - 1).toString();
|
|
633
|
+
if (this.fullScreenMode) {
|
|
634
|
+
this.dateTimeWrapper.style.left = '0px';
|
|
635
|
+
}
|
|
580
636
|
}
|
|
581
637
|
}
|
|
582
638
|
}
|
|
@@ -994,20 +1050,35 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
994
1050
|
var tempStartValue;
|
|
995
1051
|
var start;
|
|
996
1052
|
var tempMin = this.min;
|
|
1053
|
+
var tempMax = this.max;
|
|
997
1054
|
var value = date === null ? new Date() : date;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1055
|
+
var isModified = false;
|
|
1056
|
+
var startValue;
|
|
1057
|
+
if (this.minTime) {
|
|
1058
|
+
startValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.minTime.getHours(), this.minTime.getMinutes(), this.minTime.getSeconds(), this.minTime.getMilliseconds());
|
|
1059
|
+
isModified = true;
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
startValue = value;
|
|
1063
|
+
}
|
|
1064
|
+
if ((+startValue.getDate() === +tempMin.getDate() && +startValue.getMonth() === +tempMin.getMonth() &&
|
|
1065
|
+
+startValue.getFullYear() === +tempMin.getFullYear()) ||
|
|
1066
|
+
((+new Date(startValue.getFullYear(), startValue.getMonth(), startValue.getDate())) <=
|
|
1067
|
+
+new Date(tempMin.getFullYear(), tempMin.getMonth(), tempMin.getDate()))) {
|
|
1001
1068
|
start = false;
|
|
1002
|
-
tempStartValue =
|
|
1069
|
+
tempStartValue = tempMin;
|
|
1070
|
+
if (isModified && ((+new Date(startValue.getFullYear(), startValue.getMonth(), startValue.getDate(), startValue.getHours(), startValue.getMinutes(), startValue.getSeconds(), startValue.getMilliseconds())) >=
|
|
1071
|
+
+new Date(tempMin.getFullYear(), tempMin.getMonth(), tempMin.getDate(), tempMin.getHours(), tempMin.getMinutes(), tempMin.getSeconds(), tempMin.getMilliseconds()))) {
|
|
1072
|
+
tempStartValue.setHours(startValue.getHours(), startValue.getMinutes(), startValue.getSeconds(), startValue.getMilliseconds());
|
|
1073
|
+
}
|
|
1003
1074
|
}
|
|
1004
|
-
else if (+
|
|
1005
|
-
start =
|
|
1006
|
-
tempStartValue =
|
|
1075
|
+
else if (+startValue < +tempMax && +startValue > +tempMin) {
|
|
1076
|
+
start = !isModified;
|
|
1077
|
+
tempStartValue = startValue;
|
|
1007
1078
|
}
|
|
1008
|
-
else if (+
|
|
1079
|
+
else if (+startValue >= +tempMax) {
|
|
1009
1080
|
start = true;
|
|
1010
|
-
tempStartValue =
|
|
1081
|
+
tempStartValue = tempMax;
|
|
1011
1082
|
}
|
|
1012
1083
|
return this.calculateStartEnd(tempStartValue, start, 'starttime');
|
|
1013
1084
|
};
|
|
@@ -1056,17 +1127,31 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1056
1127
|
var end;
|
|
1057
1128
|
var tempMax = this.max;
|
|
1058
1129
|
var value = date === null ? new Date() : date;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1130
|
+
var isModified = false;
|
|
1131
|
+
var endValue;
|
|
1132
|
+
if (this.maxTime) {
|
|
1133
|
+
endValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.maxTime.getHours(), this.maxTime.getMinutes(), this.maxTime.getSeconds(), this.maxTime.getMilliseconds());
|
|
1134
|
+
isModified = true;
|
|
1135
|
+
}
|
|
1136
|
+
else {
|
|
1137
|
+
endValue = value;
|
|
1138
|
+
}
|
|
1139
|
+
if ((+endValue.getDate() === +tempMax.getDate() && +endValue.getMonth() === +tempMax.getMonth() &&
|
|
1140
|
+
+endValue.getFullYear() === +tempMax.getFullYear()) ||
|
|
1141
|
+
(+new Date(endValue.getUTCFullYear(), endValue.getMonth(), endValue.getDate()) >=
|
|
1142
|
+
+new Date(tempMax.getFullYear(), tempMax.getMonth(), tempMax.getDate()))) {
|
|
1062
1143
|
end = false;
|
|
1063
1144
|
tempEndValue = this.max;
|
|
1145
|
+
if (isModified && (+new Date(endValue.getUTCFullYear(), endValue.getMonth(), endValue.getDate(), endValue.getHours(), endValue.getMinutes(), endValue.getSeconds(), endValue.getMilliseconds()) <=
|
|
1146
|
+
+new Date(tempMax.getFullYear(), tempMax.getMonth(), tempMax.getDate(), tempMax.getHours(), tempMax.getMinutes(), tempMax.getSeconds(), tempMax.getMilliseconds()))) {
|
|
1147
|
+
tempEndValue.setHours(endValue.getHours(), endValue.getMinutes(), endValue.getSeconds(), endValue.getMilliseconds());
|
|
1148
|
+
}
|
|
1064
1149
|
}
|
|
1065
|
-
else if (+
|
|
1066
|
-
end =
|
|
1067
|
-
tempEndValue =
|
|
1150
|
+
else if (+endValue < +this.max && +endValue > +this.min) {
|
|
1151
|
+
end = !isModified;
|
|
1152
|
+
tempEndValue = endValue;
|
|
1068
1153
|
}
|
|
1069
|
-
else if (+
|
|
1154
|
+
else if (+endValue <= +this.min) {
|
|
1070
1155
|
end = true;
|
|
1071
1156
|
tempEndValue = this.min;
|
|
1072
1157
|
}
|
|
@@ -1669,6 +1754,12 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1669
1754
|
__decorate([
|
|
1670
1755
|
Property(new Date(2099, 11, 31))
|
|
1671
1756
|
], DateTimePicker.prototype, "max", void 0);
|
|
1757
|
+
__decorate([
|
|
1758
|
+
Property(null)
|
|
1759
|
+
], DateTimePicker.prototype, "minTime", void 0);
|
|
1760
|
+
__decorate([
|
|
1761
|
+
Property(null)
|
|
1762
|
+
], DateTimePicker.prototype, "maxTime", void 0);
|
|
1672
1763
|
__decorate([
|
|
1673
1764
|
Property(null)
|
|
1674
1765
|
], DateTimePicker.prototype, "firstDayOfWeek", void 0);
|
|
@@ -1228,7 +1228,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1228
1228
|
return dateVal;
|
|
1229
1229
|
};
|
|
1230
1230
|
TimePicker.prototype.valueIsDisable = function (value) {
|
|
1231
|
-
if (this.disableItemCollection.length > 0) {
|
|
1231
|
+
if (!isNullOrUndefined(this.disableItemCollection) && this.disableItemCollection.length > 0) {
|
|
1232
1232
|
if (this.disableItemCollection.length === this.timeCollections.length) {
|
|
1233
1233
|
return false;
|
|
1234
1234
|
}
|