@syncfusion/ej2-calendars 21.2.10 → 22.1.34

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.
Files changed (264) hide show
  1. package/.eslintrc.json +1 -0
  2. package/CHANGELOG.md +7 -31
  3. package/dist/ej2-calendars.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js +2 -2
  5. package/dist/ej2-calendars.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es2015.js +246 -19
  7. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  8. package/dist/es6/ej2-calendars.es5.js +245 -18
  9. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  10. package/dist/global/ej2-calendars.min.js +2 -2
  11. package/dist/global/ej2-calendars.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +10 -10
  14. package/src/calendar/calendar-model.d.ts +1 -1
  15. package/src/calendar/calendar.d.ts +5 -5
  16. package/src/calendar/calendar.js +2 -2
  17. package/src/datepicker/datepicker-model.d.ts +8 -1
  18. package/src/datepicker/datepicker.d.ts +13 -0
  19. package/src/datepicker/datepicker.js +70 -3
  20. package/src/daterangepicker/daterangepicker-model.d.ts +8 -1
  21. package/src/daterangepicker/daterangepicker.d.ts +13 -0
  22. package/src/daterangepicker/daterangepicker.js +91 -6
  23. package/src/datetimepicker/datetimepicker-model.d.ts +8 -1
  24. package/src/datetimepicker/datetimepicker.d.ts +10 -1
  25. package/src/datetimepicker/datetimepicker.js +50 -5
  26. package/src/maskbase/masked-date-time.js +6 -1
  27. package/src/timepicker/timepicker-model.d.ts +7 -0
  28. package/src/timepicker/timepicker.d.ts +7 -0
  29. package/src/timepicker/timepicker.js +27 -2
  30. package/styles/bootstrap-dark.css +715 -19
  31. package/styles/bootstrap.css +711 -15
  32. package/styles/bootstrap4.css +711 -16
  33. package/styles/bootstrap5-dark.css +708 -12
  34. package/styles/bootstrap5.css +708 -12
  35. package/styles/calendar/_bootstrap-dark-definition.scss +1 -1
  36. package/styles/calendar/_bootstrap4-definition.scss +1 -1
  37. package/styles/calendar/_layout.scss +64 -19
  38. package/styles/calendar/_material-definition.scss +1 -1
  39. package/styles/calendar/_material3-dark-definition.scss +1 -0
  40. package/styles/calendar/_material3-definition.scss +195 -0
  41. package/styles/calendar/_theme.scss +2 -1
  42. package/styles/calendar/bootstrap-dark.css +3 -2
  43. package/styles/calendar/bootstrap.css +2 -1
  44. package/styles/calendar/bootstrap4.css +3 -2
  45. package/styles/calendar/bootstrap5-dark.css +2 -1
  46. package/styles/calendar/bootstrap5.css +2 -1
  47. package/styles/calendar/fabric-dark.css +2 -1
  48. package/styles/calendar/fabric.css +2 -1
  49. package/styles/calendar/fluent-dark.css +2 -1
  50. package/styles/calendar/fluent.css +2 -1
  51. package/styles/calendar/highcontrast-light.css +2 -1
  52. package/styles/calendar/highcontrast.css +2 -1
  53. package/styles/calendar/icons/_material3-dark.scss +1 -0
  54. package/styles/calendar/material-dark.css +2 -1
  55. package/styles/calendar/material.css +3 -2
  56. package/styles/calendar/material3-dark.css +895 -0
  57. package/styles/calendar/material3-dark.scss +6 -0
  58. package/styles/calendar/material3.css +951 -0
  59. package/styles/calendar/material3.scss +6 -0
  60. package/styles/calendar/tailwind-dark.css +2 -1
  61. package/styles/calendar/tailwind.css +2 -1
  62. package/styles/datepicker/_bootstrap-dark-definition.scss +71 -11
  63. package/styles/datepicker/_bootstrap-definition.scss +71 -9
  64. package/styles/datepicker/_bootstrap4-definition.scss +70 -9
  65. package/styles/datepicker/_bootstrap5-definition.scss +67 -6
  66. package/styles/datepicker/_fabric-dark-definition.scss +70 -9
  67. package/styles/datepicker/_fabric-definition.scss +70 -9
  68. package/styles/datepicker/_fluent-definition.scss +67 -6
  69. package/styles/datepicker/_fusionnew-definition.scss +67 -6
  70. package/styles/datepicker/_highcontrast-definition.scss +69 -8
  71. package/styles/datepicker/_highcontrast-light-definition.scss +69 -8
  72. package/styles/datepicker/_layout.scss +214 -66
  73. package/styles/datepicker/_material-dark-definition.scss +67 -6
  74. package/styles/datepicker/_material-definition.scss +67 -6
  75. package/styles/datepicker/_material3-dark-definition.scss +1 -0
  76. package/styles/datepicker/_material3-definition.scss +116 -0
  77. package/styles/datepicker/_tailwind-definition.scss +67 -6
  78. package/styles/datepicker/_theme.scss +0 -1
  79. package/styles/datepicker/bootstrap-dark.css +262 -8
  80. package/styles/datepicker/bootstrap.css +262 -8
  81. package/styles/datepicker/bootstrap4.css +261 -8
  82. package/styles/datepicker/bootstrap5-dark.css +259 -5
  83. package/styles/datepicker/bootstrap5.css +259 -5
  84. package/styles/datepicker/fabric-dark.css +255 -8
  85. package/styles/datepicker/fabric.css +255 -8
  86. package/styles/datepicker/fluent-dark.css +258 -5
  87. package/styles/datepicker/fluent.css +258 -5
  88. package/styles/datepicker/highcontrast-light.css +260 -7
  89. package/styles/datepicker/highcontrast.css +260 -7
  90. package/styles/datepicker/icons/_bootstrap-dark.scss +21 -0
  91. package/styles/datepicker/icons/_bootstrap.scss +20 -0
  92. package/styles/datepicker/icons/_bootstrap4.scss +20 -0
  93. package/styles/datepicker/icons/_bootstrap5.scss +20 -0
  94. package/styles/datepicker/icons/_fabric-dark.scss +13 -0
  95. package/styles/datepicker/icons/_fabric.scss +13 -0
  96. package/styles/datepicker/icons/_fluent.scss +20 -0
  97. package/styles/datepicker/icons/_fusionnew.scss +20 -0
  98. package/styles/datepicker/icons/_highcontrast-light.scss +20 -0
  99. package/styles/datepicker/icons/_highcontrast.scss +20 -0
  100. package/styles/datepicker/icons/_material-dark.scss +13 -0
  101. package/styles/datepicker/icons/_material.scss +13 -0
  102. package/styles/datepicker/icons/_material3-dark.scss +1 -0
  103. package/styles/datepicker/icons/_material3.scss +23 -0
  104. package/styles/datepicker/icons/_tailwind.scss +20 -0
  105. package/styles/datepicker/material-dark.css +252 -5
  106. package/styles/datepicker/material.css +204 -40
  107. package/styles/datepicker/material3-dark.css +510 -0
  108. package/styles/datepicker/material3-dark.scss +8 -0
  109. package/styles/datepicker/material3.css +566 -0
  110. package/styles/datepicker/material3.scss +8 -0
  111. package/styles/datepicker/tailwind-dark.css +258 -5
  112. package/styles/datepicker/tailwind.css +258 -5
  113. package/styles/daterangepicker/_bootstrap-dark-definition.scss +67 -2
  114. package/styles/daterangepicker/_bootstrap-definition.scss +65 -0
  115. package/styles/daterangepicker/_bootstrap4-definition.scss +65 -0
  116. package/styles/daterangepicker/_bootstrap5-definition.scss +65 -0
  117. package/styles/daterangepicker/_fabric-dark-definition.scss +65 -0
  118. package/styles/daterangepicker/_fabric-definition.scss +65 -0
  119. package/styles/daterangepicker/_fluent-definition.scss +66 -1
  120. package/styles/daterangepicker/_fusionnew-definition.scss +65 -0
  121. package/styles/daterangepicker/_highcontrast-definition.scss +65 -0
  122. package/styles/daterangepicker/_highcontrast-light-definition.scss +65 -0
  123. package/styles/daterangepicker/_layout.scss +325 -116
  124. package/styles/daterangepicker/_material-dark-definition.scss +65 -0
  125. package/styles/daterangepicker/_material-definition.scss +65 -0
  126. package/styles/daterangepicker/_material3-dark-definition.scss +1 -0
  127. package/styles/daterangepicker/_material3-definition.scss +278 -0
  128. package/styles/daterangepicker/_tailwind-definition.scss +65 -0
  129. package/styles/daterangepicker/_theme.scss +21 -1
  130. package/styles/daterangepicker/bootstrap-dark.css +358 -7
  131. package/styles/daterangepicker/bootstrap.css +355 -4
  132. package/styles/daterangepicker/bootstrap4.css +355 -4
  133. package/styles/daterangepicker/bootstrap5-dark.css +355 -4
  134. package/styles/daterangepicker/bootstrap5.css +355 -4
  135. package/styles/daterangepicker/fabric-dark.css +355 -4
  136. package/styles/daterangepicker/fabric.css +355 -4
  137. package/styles/daterangepicker/fluent-dark.css +356 -5
  138. package/styles/daterangepicker/fluent.css +356 -5
  139. package/styles/daterangepicker/highcontrast-light.css +355 -4
  140. package/styles/daterangepicker/highcontrast.css +355 -4
  141. package/styles/daterangepicker/icons/_bootstrap-dark.scss +20 -0
  142. package/styles/daterangepicker/icons/_bootstrap.scss +20 -0
  143. package/styles/daterangepicker/icons/_bootstrap4.scss +20 -0
  144. package/styles/daterangepicker/icons/_bootstrap5.scss +20 -0
  145. package/styles/daterangepicker/icons/_fabric-dark.scss +20 -0
  146. package/styles/daterangepicker/icons/_fabric.scss +20 -0
  147. package/styles/daterangepicker/icons/_fluent.scss +20 -0
  148. package/styles/daterangepicker/icons/_fusionnew.scss +20 -0
  149. package/styles/daterangepicker/icons/_highcontrast-light.scss +20 -0
  150. package/styles/daterangepicker/icons/_highcontrast.scss +20 -0
  151. package/styles/daterangepicker/icons/_material-dark.scss +20 -0
  152. package/styles/daterangepicker/icons/_material.scss +20 -0
  153. package/styles/daterangepicker/icons/_material3-dark.scss +1 -0
  154. package/styles/daterangepicker/icons/_material3.scss +32 -2
  155. package/styles/daterangepicker/icons/_tailwind.scss +20 -0
  156. package/styles/daterangepicker/material-dark.css +355 -4
  157. package/styles/daterangepicker/material.css +309 -70
  158. package/styles/daterangepicker/material3-dark.css +1330 -0
  159. package/styles/daterangepicker/material3-dark.scss +8 -0
  160. package/styles/daterangepicker/material3.css +1386 -0
  161. package/styles/daterangepicker/material3.scss +8 -0
  162. package/styles/daterangepicker/tailwind-dark.css +355 -4
  163. package/styles/daterangepicker/tailwind.css +355 -4
  164. package/styles/datetimepicker/_bootstrap-dark-definition.scss +5 -0
  165. package/styles/datetimepicker/_bootstrap-definition.scss +5 -0
  166. package/styles/datetimepicker/_bootstrap4-definition.scss +5 -0
  167. package/styles/datetimepicker/_bootstrap5-definition.scss +5 -0
  168. package/styles/datetimepicker/_fabric-dark-definition.scss +5 -0
  169. package/styles/datetimepicker/_fabric-definition.scss +5 -0
  170. package/styles/datetimepicker/_fluent-definition.scss +5 -0
  171. package/styles/datetimepicker/_fusionnew-definition.scss +5 -0
  172. package/styles/datetimepicker/_highcontrast-definition.scss +5 -0
  173. package/styles/datetimepicker/_highcontrast-light-definition.scss +5 -0
  174. package/styles/datetimepicker/_layout.scss +47 -4
  175. package/styles/datetimepicker/_material-dark-definition.scss +5 -0
  176. package/styles/datetimepicker/_material-definition.scss +5 -0
  177. package/styles/datetimepicker/_material3-dark-definition.scss +1 -0
  178. package/styles/datetimepicker/_material3-definition.scss +71 -0
  179. package/styles/datetimepicker/_tailwind-definition.scss +5 -0
  180. package/styles/datetimepicker/bootstrap-dark.css +8 -2
  181. package/styles/datetimepicker/bootstrap.css +8 -2
  182. package/styles/datetimepicker/bootstrap4.css +8 -2
  183. package/styles/datetimepicker/bootstrap5-dark.css +8 -2
  184. package/styles/datetimepicker/bootstrap5.css +8 -2
  185. package/styles/datetimepicker/fabric-dark.css +8 -2
  186. package/styles/datetimepicker/fabric.css +8 -2
  187. package/styles/datetimepicker/fluent-dark.css +8 -2
  188. package/styles/datetimepicker/fluent.css +8 -2
  189. package/styles/datetimepicker/highcontrast-light.css +8 -2
  190. package/styles/datetimepicker/highcontrast.css +8 -2
  191. package/styles/datetimepicker/icons/_material3-dark.scss +1 -0
  192. package/styles/datetimepicker/material-dark.css +8 -2
  193. package/styles/datetimepicker/material.css +8 -2
  194. package/styles/datetimepicker/material3-dark.css +283 -0
  195. package/styles/datetimepicker/material3-dark.scss +9 -0
  196. package/styles/datetimepicker/material3.css +339 -0
  197. package/styles/datetimepicker/material3.scss +9 -0
  198. package/styles/datetimepicker/tailwind-dark.css +8 -2
  199. package/styles/datetimepicker/tailwind.css +8 -2
  200. package/styles/fabric-dark.css +704 -15
  201. package/styles/fabric.css +704 -15
  202. package/styles/fluent-dark.css +708 -13
  203. package/styles/fluent.css +708 -13
  204. package/styles/highcontrast-light.css +709 -14
  205. package/styles/highcontrast.css +709 -14
  206. package/styles/material-dark.css +701 -12
  207. package/styles/material.css +608 -114
  208. package/styles/material3-dark.css +3179 -0
  209. package/styles/material3-dark.scss +7 -0
  210. package/styles/material3.css +3235 -0
  211. package/styles/material3.scss +7 -0
  212. package/styles/tailwind-dark.css +707 -12
  213. package/styles/tailwind.css +707 -12
  214. package/styles/timepicker/_bootstrap-dark-definition.scss +28 -0
  215. package/styles/timepicker/_bootstrap-definition.scss +28 -0
  216. package/styles/timepicker/_bootstrap4-definition.scss +28 -0
  217. package/styles/timepicker/_bootstrap5-definition.scss +28 -0
  218. package/styles/timepicker/_fabric-dark-definition.scss +28 -0
  219. package/styles/timepicker/_fabric-definition.scss +28 -0
  220. package/styles/timepicker/_fluent-definition.scss +28 -0
  221. package/styles/timepicker/_fusionnew-definition.scss +28 -0
  222. package/styles/timepicker/_highcontrast-definition.scss +28 -0
  223. package/styles/timepicker/_highcontrast-light-definition.scss +28 -0
  224. package/styles/timepicker/_layout.scss +86 -1
  225. package/styles/timepicker/_material-dark-definition.scss +28 -0
  226. package/styles/timepicker/_material-definition.scss +28 -0
  227. package/styles/timepicker/_material3-dark-definition.scss +1 -0
  228. package/styles/timepicker/_material3-definition.scss +99 -0
  229. package/styles/timepicker/_tailwind-definition.scss +28 -0
  230. package/styles/timepicker/_theme.scss +13 -0
  231. package/styles/timepicker/bootstrap-dark.css +84 -0
  232. package/styles/timepicker/bootstrap.css +84 -0
  233. package/styles/timepicker/bootstrap4.css +84 -0
  234. package/styles/timepicker/bootstrap5-dark.css +84 -0
  235. package/styles/timepicker/bootstrap5.css +84 -0
  236. package/styles/timepicker/fabric-dark.css +84 -0
  237. package/styles/timepicker/fabric.css +84 -0
  238. package/styles/timepicker/fluent-dark.css +84 -0
  239. package/styles/timepicker/fluent.css +84 -0
  240. package/styles/timepicker/highcontrast-light.css +84 -0
  241. package/styles/timepicker/highcontrast.css +84 -0
  242. package/styles/timepicker/icons/_bootstrap-dark.scss +12 -0
  243. package/styles/timepicker/icons/_bootstrap.scss +12 -0
  244. package/styles/timepicker/icons/_bootstrap4.scss +12 -0
  245. package/styles/timepicker/icons/_bootstrap5.scss +12 -0
  246. package/styles/timepicker/icons/_fabric-dark.scss +12 -0
  247. package/styles/timepicker/icons/_fabric.scss +12 -0
  248. package/styles/timepicker/icons/_fluent.scss +12 -0
  249. package/styles/timepicker/icons/_fusionnew.scss +12 -0
  250. package/styles/timepicker/icons/_highcontrast-light.scss +12 -0
  251. package/styles/timepicker/icons/_highcontrast.scss +12 -0
  252. package/styles/timepicker/icons/_material-dark.scss +12 -0
  253. package/styles/timepicker/icons/_material.scss +12 -0
  254. package/styles/timepicker/icons/_material3-dark.scss +1 -0
  255. package/styles/timepicker/icons/_material3.scss +12 -0
  256. package/styles/timepicker/icons/_tailwind.scss +12 -0
  257. package/styles/timepicker/material-dark.css +84 -0
  258. package/styles/timepicker/material.css +84 -0
  259. package/styles/timepicker/material3-dark.css +382 -0
  260. package/styles/timepicker/material3-dark.scss +7 -0
  261. package/styles/timepicker/material3.css +438 -0
  262. package/styles/timepicker/material3.scss +7 -0
  263. package/styles/timepicker/tailwind-dark.css +84 -0
  264. package/styles/timepicker/tailwind.css +84 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.10
3
+ * version : 22.1.34
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@21.2.9",
3
+ "_id": "@syncfusion/ej2-calendars@18.30.17",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-hEe0pY/d+LA4Nh3/iHYsKuOMc+H6WDWxjiiWapfTOYE3+FwoqRlWcb60IvVtmdvGFdYbAh+5EJENzvoF1PlBaA==",
5
+ "_integrity": "sha512-SnX9BTY2Swgg/KkCKCkXT2ceYIuvP7eWTB6qkKufoQODUbpGQ1FCQ39RddN5bgUgTHR7mmOR/Zr0qFONHkAFWQ==",
6
6
  "_location": "/@syncfusion/ej2-calendars",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -32,8 +32,8 @@
32
32
  "/@syncfusion/ej2-schedule",
33
33
  "/@syncfusion/ej2-vue-calendars"
34
34
  ],
35
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-21.2.9.tgz",
36
- "_shasum": "03c2e601ebb2ddbfbbfdb817755ad7a334c71907",
35
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.30.17.tgz",
36
+ "_shasum": "bd1deeac1a021cf0417ca1a889cb9a2f4f485ec9",
37
37
  "_spec": "@syncfusion/ej2-calendars@*",
38
38
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
39
39
  "author": {
@@ -44,11 +44,11 @@
44
44
  },
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
- "@syncfusion/ej2-base": "~21.2.9",
48
- "@syncfusion/ej2-buttons": "~21.2.10",
49
- "@syncfusion/ej2-inputs": "~21.2.9",
50
- "@syncfusion/ej2-lists": "~21.2.9",
51
- "@syncfusion/ej2-popups": "~21.2.10"
47
+ "@syncfusion/ej2-base": "~22.1.34",
48
+ "@syncfusion/ej2-buttons": "~22.1.34",
49
+ "@syncfusion/ej2-inputs": "~22.1.34",
50
+ "@syncfusion/ej2-lists": "~22.1.34",
51
+ "@syncfusion/ej2-popups": "~22.1.34"
52
52
  },
53
53
  "deprecated": false,
54
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.",
@@ -81,6 +81,6 @@
81
81
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
82
82
  },
83
83
  "typings": "index.d.ts",
84
- "version": "21.2.10",
84
+ "version": "22.1.34",
85
85
  "sideEffects": false
86
86
  }
@@ -1,4 +1,4 @@
1
- import { Component, EventHandler, Internationalization, ModuleDeclaration } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';import { cldrData, getDefaultDateObject, rippleEffect } from '@syncfusion/ej2-base';import { removeClass, detach, closest, addClass, attributes } from '@syncfusion/ej2-base';import { getValue, getUniqueID, extend, Browser } from '@syncfusion/ej2-base';import { Property, Event, EmitType, isNullOrUndefined, throwError } from '@syncfusion/ej2-base';import { Islamic, IslamicDateArgs } from './index';
1
+ import { Component, EventHandler, Internationalization, ModuleDeclaration } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, KeyboardEvents, L10n, SwipeEventArgs } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';import { cldrData, getDefaultDateObject, rippleEffect } from '@syncfusion/ej2-base';import { removeClass, detach, closest, addClass, attributes } from '@syncfusion/ej2-base';import { getValue, getUniqueID, extend, Browser } from '@syncfusion/ej2-base';import { Property, Event, EmitType, isNullOrUndefined, throwError } from '@syncfusion/ej2-base';import { Islamic, IslamicDateArgs } from './index';
2
2
  import {CalendarType,CalendarView,WeekRule,DayHeaderFormats,NavigatedEventArgs,RenderDayCellEventArgs,ChangedEventArgs} from "./calendar";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { Component, Internationalization, ModuleDeclaration } from '@syncfusion/ej2-base';
2
- import { INotifyPropertyChanged, KeyboardEvents, L10n } from '@syncfusion/ej2-base';
2
+ import { INotifyPropertyChanged, KeyboardEvents, L10n, SwipeEventArgs } from '@syncfusion/ej2-base';
3
3
  import { KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';
4
4
  import { EmitType } from '@syncfusion/ej2-base';
5
5
  import { CalendarModel, CalendarBaseModel } from './calendar-model';
@@ -456,9 +456,9 @@ export declare class CalendarBase extends Component<HTMLElement> implements INot
456
456
  protected getViewNumber(stringVal: string): number;
457
457
  protected navigateTitle(e?: Event): void;
458
458
  protected previous(): void;
459
- protected navigatePrevious(e: MouseEvent | KeyboardEvent): void;
459
+ protected navigatePrevious(e: MouseEvent | KeyboardEvent | SwipeEventArgs): void;
460
460
  protected next(): void;
461
- protected navigateNext(eve: MouseEvent | KeyboardEvent): void;
461
+ protected navigateNext(eve: MouseEvent | KeyboardEvent | SwipeEventArgs): void;
462
462
  /**
463
463
  * This method is used to navigate to the month/year/decade view of the Calendar.
464
464
  *
@@ -487,8 +487,8 @@ export declare class CalendarBase extends Component<HTMLElement> implements INot
487
487
  protected setAriaActiveDescendant(): void;
488
488
  protected previousIconHandler(disabled: boolean): void;
489
489
  protected renderDayCellEvent(args: RenderDayCellEventArgs): void;
490
- protected navigatedEvent(eve: MouseEvent | KeyboardEvent): void;
491
- protected triggerNavigate(event: MouseEvent | KeyboardEvent): void;
490
+ protected navigatedEvent(eve: MouseEvent | KeyboardEvent | SwipeEventArgs): void;
491
+ protected triggerNavigate(event: MouseEvent | KeyboardEvent | SwipeEventArgs): void;
492
492
  protected nextIconHandler(disabled: boolean): void;
493
493
  protected compare(startDate: Date, endDate: Date, modifier: number): number;
494
494
  protected isMinMaxRange(date: Date): boolean;
@@ -1526,7 +1526,7 @@ var CalendarBase = /** @class */ (function (_super) {
1526
1526
  }
1527
1527
  };
1528
1528
  CalendarBase.prototype.navigatePrevious = function (e) {
1529
- e.preventDefault();
1529
+ !Browser.isDevice && e.preventDefault();
1530
1530
  if (this.calendarMode === 'Gregorian') {
1531
1531
  this.previous();
1532
1532
  }
@@ -1557,7 +1557,7 @@ var CalendarBase = /** @class */ (function (_super) {
1557
1557
  }
1558
1558
  };
1559
1559
  CalendarBase.prototype.navigateNext = function (eve) {
1560
- eve.preventDefault();
1560
+ !Browser.isDevice && eve.preventDefault();
1561
1561
  if (this.calendarMode === 'Gregorian') {
1562
1562
  this.next();
1563
1563
  }
@@ -1,4 +1,4 @@
1
- import { EventHandler, Property, Internationalization, NotifyPropertyChanges, DateFormatOptions } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, EmitType, Event, extend, L10n, Browser, formatUnit } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, closest, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, setValue, getUniqueID, ModuleDeclaration } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ChangedEventArgs, CalendarView, Calendar, BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { MaskPlaceholderModel } from '../common/maskplaceholder-model';
1
+ import { EventHandler, Property, Internationalization, NotifyPropertyChanges, DateFormatOptions } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, EmitType, Event, extend, L10n, Browser, formatUnit } from '@syncfusion/ej2-base';import { detach, addClass, removeClass, closest, attributes, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { isNullOrUndefined, setValue, getUniqueID, ModuleDeclaration } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ChangedEventArgs, CalendarView, Calendar, BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { MaskPlaceholderModel } from '../common/maskplaceholder-model';
2
2
  import {FormatObject,PopupObjectArgs,PreventableEventArgs} from "./datepicker";
3
3
  import {CalendarModel} from "../calendar/calendar-model";
4
4
 
@@ -60,6 +60,13 @@ export interface DatePickerModel extends CalendarModel{
60
60
  */
61
61
  enabled?: boolean;
62
62
 
63
+ /**
64
+ * Specifies the component popup display full screen in mobile devices.
65
+ *
66
+ * @default false
67
+ */
68
+ fullScreenMode?: boolean;
69
+
63
70
  /**
64
71
  * You can add the additional html attributes such as disabled, value etc., to the element.
65
72
  * If you configured both property and equivalent html attribute then the component considers the property value.
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../calendar/calendar-model.d.ts" />
2
2
  import { KeyboardEventArgs, EmitType, L10n } from '@syncfusion/ej2-base';
3
+ import { Touch } from '@syncfusion/ej2-base';
3
4
  import { ModuleDeclaration } from '@syncfusion/ej2-base';
4
5
  import { Popup } from '@syncfusion/ej2-popups';
5
6
  import { InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';
@@ -63,6 +64,9 @@ export declare class DatePicker extends Calendar implements IInput {
63
64
  protected isDynamicValueChanged: boolean;
64
65
  protected moduleName: string;
65
66
  protected isFocused: boolean;
67
+ protected touchModule: Touch;
68
+ protected touchStart: boolean;
69
+ protected iconRight: boolean;
66
70
  protected isBlur: boolean;
67
71
  /**
68
72
  * Specifies the width of the DatePicker component.
@@ -111,6 +115,12 @@ export declare class DatePicker extends Calendar implements IInput {
111
115
  * @default true
112
116
  */
113
117
  enabled: boolean;
118
+ /**
119
+ * Specifies the component popup display full screen in mobile devices.
120
+ *
121
+ * @default false
122
+ */
123
+ fullScreenMode: boolean;
114
124
  /**
115
125
  * You can add the additional html attributes such as disabled, value etc., to the element.
116
126
  * If you configured both property and equivalent html attribute then the component considers the property value.
@@ -431,8 +441,11 @@ export declare class DatePicker extends Calendar implements IInput {
431
441
  protected popupUpdate(): void;
432
442
  protected strictModeUpdate(): void;
433
443
  private createCalendar;
444
+ private CalendarSwipeHandler;
445
+ private TouchStartHandler;
434
446
  private setAriaDisabled;
435
447
  private modelHeader;
448
+ private modelCloseHandler;
436
449
  protected changeTrigger(event?: MouseEvent | KeyboardEvent): void;
437
450
  protected navigatedEvent(): void;
438
451
  protected changeEvent(event?: MouseEvent | KeyboardEvent | Event): void;
@@ -21,7 +21,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
21
21
  /// <reference path='../calendar/calendar-model.d.ts'/>
22
22
  import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';
23
23
  import { KeyboardEvents, Animation, Event, extend, L10n, Browser, formatUnit } from '@syncfusion/ej2-base';
24
- import { detach, addClass, removeClass, closest, attributes } from '@syncfusion/ej2-base';
24
+ import { detach, addClass, removeClass, closest, attributes, Touch } from '@syncfusion/ej2-base';
25
25
  import { isNullOrUndefined, setValue, getUniqueID } from '@syncfusion/ej2-base';
26
26
  import { Popup } from '@syncfusion/ej2-popups';
27
27
  import { Input } from '@syncfusion/ej2-inputs';
@@ -98,7 +98,9 @@ var DatePicker = /** @class */ (function (_super) {
98
98
  DatePicker.prototype.render = function () {
99
99
  this.initialize();
100
100
  this.bindEvents();
101
- Input.calculateWidth(this.inputElement, this.inputWrapper.container);
101
+ if (this.floatLabelType === 'Auto') {
102
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
103
+ }
102
104
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
103
105
  this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
104
106
  }
@@ -181,6 +183,9 @@ var DatePicker = /** @class */ (function (_super) {
181
183
  this.l10n = new L10n('datepicker', l10nLocale, this.locale);
182
184
  this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
183
185
  }
186
+ if (this.fullScreenMode && Browser.isDevice) {
187
+ this.cssClass = "e-popup-expand";
188
+ }
184
189
  var updatedCssClassValues = this.cssClass;
185
190
  if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
186
191
  updatedCssClassValues = (this.cssClass.replace(/\s+/g, ' ')).trim();
@@ -982,6 +987,13 @@ var DatePicker = /** @class */ (function (_super) {
982
987
  zIndex: this.zIndex,
983
988
  collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : { X: 'flip', Y: 'flip' },
984
989
  open: function () {
990
+ if (Browser.isDevice && _this.fullScreenMode) {
991
+ _this.iconRight = parseInt(window.getComputedStyle(_this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;
992
+ _this.touchModule = new Touch(_this.calendarElement.querySelector(".e-content.e-month"), {
993
+ swipe: _this.CalendarSwipeHandler.bind(_this)
994
+ });
995
+ EventHandler.add(_this.calendarElement.querySelector(".e-content.e-month"), "touchstart", _this.TouchStartHandler, _this);
996
+ }
985
997
  if (_this.getModuleName() !== 'datetimepicker') {
986
998
  if (document.activeElement !== _this.inputElement) {
987
999
  _this.defaultKeyConfigs = extend(_this.defaultKeyConfigs, _this.keyConfigs);
@@ -1023,6 +1035,45 @@ var DatePicker = /** @class */ (function (_super) {
1023
1035
  this.popupObj.element.className += ' ' + this.cssClass;
1024
1036
  this.setAriaAttributes();
1025
1037
  };
1038
+ DatePicker.prototype.CalendarSwipeHandler = function (e) {
1039
+ var direction = 0;
1040
+ if (this.iconRight) {
1041
+ switch (e.swipeDirection) {
1042
+ case "Left":
1043
+ direction = 1;
1044
+ break;
1045
+ case "Right":
1046
+ direction = -1;
1047
+ break;
1048
+ default:
1049
+ break;
1050
+ }
1051
+ }
1052
+ else {
1053
+ switch (e.swipeDirection) {
1054
+ case "Up":
1055
+ direction = 1;
1056
+ break;
1057
+ case "Down":
1058
+ direction = -1;
1059
+ break;
1060
+ default:
1061
+ break;
1062
+ }
1063
+ }
1064
+ if (this.touchStart) {
1065
+ if (direction === 1) {
1066
+ this.navigateNext(e);
1067
+ }
1068
+ else if (direction === -1) {
1069
+ this.navigatePrevious(e);
1070
+ }
1071
+ this.touchStart = false;
1072
+ }
1073
+ };
1074
+ DatePicker.prototype.TouchStartHandler = function (e) {
1075
+ this.touchStart = true;
1076
+ };
1026
1077
  DatePicker.prototype.setAriaDisabled = function () {
1027
1078
  if (!this.enabled) {
1028
1079
  this.inputElement.setAttribute('aria-disabled', 'true');
@@ -1061,12 +1112,25 @@ var DatePicker = /** @class */ (function (_super) {
1061
1112
  dateOptions = { format: 'MMM d', skeleton: 'dateTime', calendar: 'islamic' };
1062
1113
  }
1063
1114
  monthSpan.textContent = '' + this.globalize.formatDate(this.value || new Date(), dateOptions);
1064
- modelHeader.appendChild(yearHeading);
1115
+ if (this.fullScreenMode) {
1116
+ var modelCloseIcon = this.createElement("span", { className: "e-popup-close" });
1117
+ EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.modelCloseHandler, this);
1118
+ var modelTodayButton = this.calendarElement.querySelector("button.e-today");
1119
+ h2.classList.add("e-day-wrapper");
1120
+ modelTodayButton.classList.add("e-outline");
1121
+ modelHeader.appendChild(modelCloseIcon);
1122
+ modelHeader.appendChild(modelTodayButton);
1123
+ }
1124
+ if (!this.fullScreenMode)
1125
+ modelHeader.appendChild(yearHeading);
1065
1126
  h2.appendChild(daySpan);
1066
1127
  h2.appendChild(monthSpan);
1067
1128
  modelHeader.appendChild(h2);
1068
1129
  this.calendarElement.insertBefore(modelHeader, this.calendarElement.firstElementChild);
1069
1130
  };
1131
+ DatePicker.prototype.modelCloseHandler = function (e) {
1132
+ this.hide();
1133
+ };
1070
1134
  DatePicker.prototype.changeTrigger = function (event) {
1071
1135
  if (this.inputElement.value !== this.previousElementValue) {
1072
1136
  if (((this.previousDate && this.previousDate.valueOf()) !== (this.value && this.value.valueOf()))) {
@@ -1929,6 +1993,9 @@ var DatePicker = /** @class */ (function (_super) {
1929
1993
  __decorate([
1930
1994
  Property(true)
1931
1995
  ], DatePicker.prototype, "enabled", void 0);
1996
+ __decorate([
1997
+ Property(false)
1998
+ ], DatePicker.prototype, "fullScreenMode", void 0);
1932
1999
  __decorate([
1933
2000
  Property({})
1934
2001
  ], DatePicker.prototype, "htmlAttributes", void 0);
@@ -1,4 +1,4 @@
1
- import { Property, EventHandler, Internationalization, NotifyPropertyChanges, detach, getUniqueID } from '@syncfusion/ej2-base';import { KeyboardEvents, BaseEventArgs, KeyboardEventArgs, Event, EmitType, Browser, L10n, ChildProperty } from '@syncfusion/ej2-base';import { addClass, createElement, remove, closest, select, prepend, removeClass, attributes, Collection } from '@syncfusion/ej2-base';import { isNullOrUndefined, isUndefined, formatUnit, setValue, rippleEffect, merge, extend } from '@syncfusion/ej2-base';import { CalendarView, CalendarBase, NavigatedEventArgs, RenderDayCellEventArgs, CalendarType } from '../calendar/calendar';import { Popup } from '@syncfusion/ej2-popups';import { Button } from '@syncfusion/ej2-buttons';import { BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase} from '@syncfusion/ej2-lists';
1
+ import { Property, EventHandler, Internationalization, NotifyPropertyChanges, detach, getUniqueID } from '@syncfusion/ej2-base';import { KeyboardEvents, BaseEventArgs, KeyboardEventArgs, Event, EmitType, Browser, L10n, ChildProperty } from '@syncfusion/ej2-base';import { addClass, createElement, remove, closest, select, prepend, removeClass, attributes, Collection } from '@syncfusion/ej2-base';import { isNullOrUndefined, isUndefined, formatUnit, setValue, rippleEffect, merge, extend, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { CalendarView, CalendarBase, NavigatedEventArgs, RenderDayCellEventArgs, CalendarType } from '../calendar/calendar';import { Popup } from '@syncfusion/ej2-popups';import { Button } from '@syncfusion/ej2-buttons';import { BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase} from '@syncfusion/ej2-lists';
2
2
  import {DateRange,RangeEventArgs,RangeFormatObject} from "./daterangepicker";
3
3
  import {CalendarBaseModel} from "../calendar/calendar-model";
4
4
 
@@ -103,6 +103,13 @@ export interface DateRangePickerModel extends CalendarBaseModel{
103
103
  */
104
104
  openOnFocus?: boolean;
105
105
 
106
+ /**
107
+ * Specifies the component popup display full screen in mobile devices.
108
+ *
109
+ * @default false
110
+ */
111
+ fullScreenMode?: boolean;
112
+
106
113
  /**
107
114
  * Triggers when Calendar is created.
108
115
  *
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../calendar/calendar-model.d.ts" />
2
2
  import { KeyboardEvents, BaseEventArgs, KeyboardEventArgs, EmitType, ChildProperty } from '@syncfusion/ej2-base';
3
+ import { Touch } from '@syncfusion/ej2-base';
3
4
  import { CalendarView, CalendarBase, NavigatedEventArgs, RenderDayCellEventArgs, CalendarType } from '../calendar/calendar';
4
5
  import { Popup } from '@syncfusion/ej2-popups';
5
6
  import { BlurEventArgs, FocusEventArgs, ClearedEventArgs } from '../calendar/calendar';
@@ -169,6 +170,9 @@ export declare class DateRangePicker extends CalendarBase {
169
170
  private mobileRangePopupWrap;
170
171
  protected isAngular: boolean;
171
172
  protected preventChange: boolean;
173
+ protected touchRangeModule: Touch;
174
+ protected touchRangeStart: boolean;
175
+ protected iconRangeRight: string;
172
176
  /**
173
177
  * Gets or sets the start and end date of the Calendar.
174
178
  * {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
@@ -234,6 +238,12 @@ export declare class DateRangePicker extends CalendarBase {
234
238
  * @default false
235
239
  */
236
240
  openOnFocus: boolean;
241
+ /**
242
+ * Specifies the component popup display full screen in mobile devices.
243
+ *
244
+ * @default false
245
+ */
246
+ fullScreenMode: boolean;
237
247
  /**
238
248
  * Triggers when Calendar is created.
239
249
  *
@@ -702,6 +712,7 @@ export declare class DateRangePicker extends CalendarBase {
702
712
  protected getCalendarView(view: string): CalendarView;
703
713
  protected navigatedEvent(e: MouseEvent): void;
704
714
  private createControl;
715
+ private modelRangeCloseHandler;
705
716
  private cancelFunction;
706
717
  private deviceHeaderUpdate;
707
718
  private applyFunction;
@@ -719,6 +730,8 @@ export declare class DateRangePicker extends CalendarBase {
719
730
  private wireListEvents;
720
731
  private unWireListEvents;
721
732
  private renderPopup;
733
+ private dateRangeSwipeHandler;
734
+ private touchStartRangeHandler;
722
735
  protected popupCloseHandler(e: KeyboardEventArgs): void;
723
736
  private calendarFocus;
724
737
  private presetHeight;
@@ -22,7 +22,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
22
22
  import { Property, EventHandler, Internationalization, NotifyPropertyChanges, detach, getUniqueID } from '@syncfusion/ej2-base';
23
23
  import { KeyboardEvents, Event, Browser, L10n, ChildProperty } from '@syncfusion/ej2-base';
24
24
  import { addClass, createElement, remove, closest, select, prepend, removeClass, attributes, Collection } from '@syncfusion/ej2-base';
25
- import { isNullOrUndefined, isUndefined, formatUnit, setValue, rippleEffect, merge, extend } from '@syncfusion/ej2-base';
25
+ import { isNullOrUndefined, isUndefined, formatUnit, setValue, rippleEffect, merge, extend, Touch } from '@syncfusion/ej2-base';
26
26
  import { CalendarBase } from '../calendar/calendar';
27
27
  import { Popup } from '@syncfusion/ej2-popups';
28
28
  import { Button } from '@syncfusion/ej2-buttons';
@@ -165,7 +165,9 @@ var DateRangePicker = /** @class */ (function (_super) {
165
165
  if (this.element.hasAttribute('data-val')) {
166
166
  this.element.setAttribute('data-val', 'false');
167
167
  }
168
- Input.calculateWidth(this.inputElement, this.inputWrapper.container);
168
+ if (this.floatLabelType === 'Auto') {
169
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
170
+ }
169
171
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
170
172
  this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
171
173
  }
@@ -205,7 +207,7 @@ var DateRangePicker = /** @class */ (function (_super) {
205
207
  /**
206
208
  * Mobile View
207
209
  */
208
- this.isMobile = window.matchMedia('(max-width:550px)').matches;
210
+ this.isMobile = (Browser.isDevice && this.fullScreenMode) ? true : window.matchMedia('(max-width:550px)').matches;
209
211
  this.inputElement = this.element;
210
212
  this.angularTag = null;
211
213
  if (this.element.tagName === 'EJS-DATERANGEPICKER') {
@@ -541,7 +543,7 @@ var DateRangePicker = /** @class */ (function (_super) {
541
543
  };
542
544
  DateRangePicker.prototype.updateHiddenInput = function () {
543
545
  if (this.firstHiddenChild && this.secondHiddenChild) {
544
- var format = { type: 'datetime', skeleton: 'yMd' };
546
+ var format = { format: this.formatString, type: 'datetime', skeleton: 'yMd' };
545
547
  if (typeof this.startDate === 'string') {
546
548
  this.startDate = this.globalize.parseDate(this.startDate, format);
547
549
  }
@@ -951,7 +953,6 @@ var DateRangePicker = /** @class */ (function (_super) {
951
953
  this.trigger('focus', focusArguments);
952
954
  }
953
955
  this.updateClearIconState();
954
- this.updateHiddenInput();
955
956
  if (this.openOnFocus && !this.preventFocus) {
956
957
  this.preventFocus = true;
957
958
  this.show();
@@ -2682,6 +2683,16 @@ var DateRangePicker = /** @class */ (function (_super) {
2682
2683
  DateRangePicker.prototype.createControl = function () {
2683
2684
  var controlContainer = this.createElement('div', { className: RANGECONTAINER });
2684
2685
  var headerContainer = this.createElement('div', { className: RANGEHEADER });
2686
+ if (this.isMobile && this.fullScreenMode) {
2687
+ var modelHeaderIconWrapper = this.createElement("div", { className: "e-model-header-wrapper" });
2688
+ var modelCloseIcon = this.createElement("span", { className: "e-popup-close" });
2689
+ EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.modelRangeCloseHandler, this);
2690
+ var modelApplyButton = this.createElement("span", { className: "e-apply" });
2691
+ EventHandler.add(modelApplyButton, 'mousedown touchstart', this.applyFunction, this);
2692
+ modelHeaderIconWrapper.appendChild(modelCloseIcon);
2693
+ modelHeaderIconWrapper.appendChild(modelApplyButton);
2694
+ headerContainer.appendChild(modelHeaderIconWrapper);
2695
+ }
2685
2696
  var labelContainer = this.createRangeHeader();
2686
2697
  headerContainer.appendChild(labelContainer);
2687
2698
  var daySpan = this.createElement('div', { className: DAYSPAN });
@@ -2721,6 +2732,9 @@ var DateRangePicker = /** @class */ (function (_super) {
2721
2732
  }
2722
2733
  this.renderPopup();
2723
2734
  };
2735
+ DateRangePicker.prototype.modelRangeCloseHandler = function (e) {
2736
+ this.hide();
2737
+ };
2724
2738
  DateRangePicker.prototype.cancelFunction = function (eve) {
2725
2739
  if (document.activeElement !== this.inputElement) {
2726
2740
  this.preventFocus = true;
@@ -2934,7 +2948,24 @@ var DateRangePicker = /** @class */ (function (_super) {
2934
2948
  this.liCollections = this.presetElement.querySelectorAll('.' + LISTCLASS);
2935
2949
  this.wireListEvents();
2936
2950
  if (this.isMobile) {
2937
- this.presetElement.style.width = this.inputWrapper.container.getBoundingClientRect().width + 'px';
2951
+ if (this.fullScreenMode) {
2952
+ var modelWrapper = createElement('div', { className: 'e-range-mob-popup-wrap' });
2953
+ var modelHeader = this.createElement('div', { className: 'e-model-header' });
2954
+ var modelTitleSpan = this.createElement("span", { className: "e-model-title" });
2955
+ modelTitleSpan.textContent = "Select Preset";
2956
+ var modelCloseIcon = this.createElement("span", { className: "e-popup-close" });
2957
+ EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.modelRangeCloseHandler, this);
2958
+ var presetContent = this.presetElement;
2959
+ modelHeader.appendChild(modelCloseIcon);
2960
+ modelHeader.appendChild(modelTitleSpan);
2961
+ modelWrapper.appendChild(modelHeader);
2962
+ modelWrapper.appendChild(presetContent);
2963
+ this.popupWrapper.insertBefore(modelWrapper, this.popupWrapper.firstElementChild);
2964
+ this.presetElement.style.width = '100%';
2965
+ }
2966
+ else {
2967
+ this.presetElement.style.width = this.inputWrapper.container.getBoundingClientRect().width + 'px';
2968
+ }
2938
2969
  }
2939
2970
  if (!isNullOrUndefined(this.activeIndex) && this.activeIndex > -1) {
2940
2971
  addClass([this.liCollections[this.activeIndex]], ACTIVE);
@@ -2984,6 +3015,15 @@ var DateRangePicker = /** @class */ (function (_super) {
2984
3015
  enableRtl: this.enableRtl,
2985
3016
  zIndex: this.zIndex,
2986
3017
  open: function () {
3018
+ if (_this.isMobile && _this.fullScreenMode) {
3019
+ _this.iconRangeRight = _this.calendarElement && window.getComputedStyle(_this.calendarElement.querySelector('.e-header.e-month .e-prev')).cssFloat;
3020
+ if (_this.iconRangeRight) {
3021
+ _this.touchRangeModule = new Touch(_this.calendarElement.querySelector(".e-content.e-month"), {
3022
+ swipe: _this.dateRangeSwipeHandler.bind(_this)
3023
+ });
3024
+ EventHandler.add(_this.calendarElement.querySelector(".e-content.e-month"), "touchstart", _this.touchStartRangeHandler, _this);
3025
+ }
3026
+ }
2987
3027
  attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
2988
3028
  if (_this.value) {
2989
3029
  attributes(_this.inputElement, { 'aria-activedescendant': _this.inputElement.id });
@@ -3076,6 +3116,45 @@ var DateRangePicker = /** @class */ (function (_super) {
3076
3116
  }
3077
3117
  EventHandler.add(document, 'mousedown touchstart', this.documentHandler, this);
3078
3118
  };
3119
+ DateRangePicker.prototype.dateRangeSwipeHandler = function (e) {
3120
+ var direction = 0;
3121
+ if (this.iconRangeRight == 'left') {
3122
+ switch (e.swipeDirection) {
3123
+ case "Left":
3124
+ direction = 1;
3125
+ break;
3126
+ case "Right":
3127
+ direction = -1;
3128
+ break;
3129
+ default:
3130
+ break;
3131
+ }
3132
+ }
3133
+ else {
3134
+ switch (e.swipeDirection) {
3135
+ case "Up":
3136
+ direction = 1;
3137
+ break;
3138
+ case "Down":
3139
+ direction = -1;
3140
+ break;
3141
+ default:
3142
+ break;
3143
+ }
3144
+ }
3145
+ if (this.touchRangeStart) {
3146
+ if (direction === 1) {
3147
+ this.navigateNext(e);
3148
+ }
3149
+ else if (direction === -1) {
3150
+ this.navigatePrevious(e);
3151
+ }
3152
+ this.touchRangeStart = false;
3153
+ }
3154
+ };
3155
+ DateRangePicker.prototype.touchStartRangeHandler = function (e) {
3156
+ this.touchRangeStart = true;
3157
+ };
3079
3158
  DateRangePicker.prototype.popupCloseHandler = function (e) {
3080
3159
  switch (e.keyCode) {
3081
3160
  case 27:
@@ -3327,6 +3406,9 @@ var DateRangePicker = /** @class */ (function (_super) {
3327
3406
  }
3328
3407
  };
3329
3408
  DateRangePicker.prototype.createInput = function () {
3409
+ if (this.fullScreenMode && this.isMobile) {
3410
+ this.cssClass = "e-popup-expand";
3411
+ }
3330
3412
  var updatedCssClassValue = this.cssClass;
3331
3413
  if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
3332
3414
  updatedCssClassValue = (this.cssClass.replace(/\s+/g, ' ')).trim();
@@ -4418,6 +4500,9 @@ var DateRangePicker = /** @class */ (function (_super) {
4418
4500
  __decorate([
4419
4501
  Property(false)
4420
4502
  ], DateRangePicker.prototype, "openOnFocus", void 0);
4503
+ __decorate([
4504
+ Property(false)
4505
+ ], DateRangePicker.prototype, "fullScreenMode", void 0);
4421
4506
  __decorate([
4422
4507
  Event()
4423
4508
  ], DateRangePicker.prototype, "created", void 0);
@@ -1,4 +1,4 @@
1
- import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Browser, RippleOptions } from '@syncfusion/ej2-base';import { Animation, EmitType, Event, AnimationModel, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';import { ModuleDeclaration, extend } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input } from '@syncfusion/ej2-inputs';import { BlurEventArgs, ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';import { TimePickerBase } from '../timepicker/timepicker';import {MaskPlaceholderModel} from '../common/maskplaceholder-model';
1
+ import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Browser, RippleOptions } from '@syncfusion/ej2-base';import { Animation, EmitType, Event, AnimationModel, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';import { ModuleDeclaration, extend, Touch, SwipeEventArgs } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input } from '@syncfusion/ej2-inputs';import { BlurEventArgs, ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';import { TimePickerBase } from '../timepicker/timepicker';import {MaskPlaceholderModel} from '../common/maskplaceholder-model';
2
2
  import {DatePickerModel} from "../datepicker/datepicker-model";
3
3
 
4
4
  /**
@@ -254,6 +254,13 @@ export interface DateTimePickerModel extends DatePickerModel{
254
254
  */
255
255
  strictMode?: boolean;
256
256
 
257
+ /**
258
+ * Specifies the component popup display full screen in mobile devices.
259
+ *
260
+ * @default false
261
+ */
262
+ fullScreenMode?: boolean;
263
+
257
264
  /**
258
265
  * By default, the date value will be processed based on system time zone.
259
266
  * If you want to process the initial date value using server time zone
@@ -2,7 +2,7 @@
2
2
  import { EmitType } from '@syncfusion/ej2-base';
3
3
  import { L10n } from '@syncfusion/ej2-base';
4
4
  import { KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';
5
- import { ModuleDeclaration } from '@syncfusion/ej2-base';
5
+ import { ModuleDeclaration, Touch } from '@syncfusion/ej2-base';
6
6
  import { ClearedEventArgs, CalendarType, CalendarView, DayHeaderFormats } from '../calendar/calendar';
7
7
  import { DatePicker, PopupObjectArgs } from '../datepicker/datepicker';
8
8
  import { DateTimePickerModel } from './datetimepicker-model';
@@ -52,6 +52,8 @@ export declare class DateTimePicker extends DatePicker {
52
52
  protected scrollInvoked: boolean;
53
53
  protected maskedDateValue: string;
54
54
  protected moduleName: string;
55
+ protected touchDTModule: Touch;
56
+ protected touchDTStart: boolean;
55
57
  /**
56
58
  * Specifies the format of the time value that to be displayed in time popup list.
57
59
  *
@@ -290,6 +292,12 @@ export declare class DateTimePicker extends DatePicker {
290
292
  * [`Strict Mode`](../../datetimepicker/strict-mode/) documentation.
291
293
  */
292
294
  strictMode: boolean;
295
+ /**
296
+ * Specifies the component popup display full screen in mobile devices.
297
+ *
298
+ * @default false
299
+ */
300
+ fullScreenMode: boolean;
293
301
  /**
294
302
  * By default, the date value will be processed based on system time zone.
295
303
  * If you want to process the initial date value using server time zone
@@ -534,6 +542,7 @@ export declare class DateTimePicker extends DatePicker {
534
542
  private isTimePopupOpen;
535
543
  private isDatePopupOpen;
536
544
  private renderPopup;
545
+ private dateTimeCloseHandler;
537
546
  private setDimension;
538
547
  private setPopupWidth;
539
548
  protected wireTimeListEvents(): void;