@syncfusion/ej2-calendars 25.2.7-30676 → 26.1.35-7502
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/.eslintrc.json +261 -0
- package/README.md +178 -178
- package/dist/ej2-calendars.min.js +10 -0
- package/dist/ej2-calendars.umd.min.js +10 -1
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +182 -236
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +252 -307
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +11 -0
- package/dist/global/ej2-calendars.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- package/helpers/e2e/calendarHelper.js +13 -13
- package/helpers/e2e/datepickerHelper.js +13 -13
- package/helpers/e2e/daterangepickerHelper.js +13 -13
- package/helpers/e2e/datetimepickerHelper.js +13 -13
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/timepickerHelper.js +13 -13
- package/license +10 -10
- package/package.json +85 -85
- package/src/calendar/calendar-model.d.ts +277 -277
- package/src/calendar/calendar.d.ts +20 -21
- package/src/calendar/calendar.js +60 -52
- package/src/calendar/islamic.js +8 -7
- package/src/common/maskplaceholder-model.d.ts +36 -36
- package/src/common/maskplaceholder.js +19 -19
- package/src/datepicker/datepicker-model.d.ts +289 -289
- package/src/datepicker/datepicker.d.ts +9 -10
- package/src/datepicker/datepicker.js +38 -39
- package/src/daterangepicker/daterangepicker-model.d.ts +427 -427
- package/src/daterangepicker/daterangepicker.d.ts +1 -2
- package/src/daterangepicker/daterangepicker.js +46 -50
- package/src/datetimepicker/datetimepicker-model.d.ts +453 -453
- package/src/datetimepicker/datetimepicker.d.ts +1 -1
- package/src/datetimepicker/datetimepicker.js +37 -31
- package/src/maskbase/interface.js +0 -1
- package/src/maskbase/masked-date-time.js +3 -5
- package/src/timepicker/timepicker-model.d.ts +350 -350
- package/src/timepicker/timepicker.d.ts +4 -5
- package/src/timepicker/timepicker.js +28 -32
- package/styles/bootstrap-dark.css +1107 -261
- package/styles/bootstrap.css +1106 -261
- package/styles/bootstrap4.css +1113 -261
- package/styles/bootstrap5-dark.css +1133 -261
- package/styles/bootstrap5.css +1133 -261
- package/styles/calendar/_all.scss +2 -2
- package/styles/calendar/_bds-definition.scss +273 -273
- package/styles/calendar/_bootstrap-dark-definition.scss +238 -238
- package/styles/calendar/_bootstrap-definition.scss +238 -238
- package/styles/calendar/_bootstrap4-definition.scss +238 -238
- package/styles/calendar/_bootstrap5-definition.scss +258 -258
- package/styles/calendar/_bootstrap5.3-definition.scss +256 -260
- package/styles/calendar/_fabric-dark-definition.scss +202 -202
- package/styles/calendar/_fabric-definition.scss +200 -200
- package/styles/calendar/_fluent-definition.scss +262 -264
- package/styles/calendar/_fluent2-definition.scss +290 -294
- package/styles/calendar/_fusionnew-definition.scss +260 -260
- package/styles/calendar/_highcontrast-definition.scss +199 -199
- package/styles/calendar/_highcontrast-light-definition.scss +202 -202
- package/styles/calendar/_layout.scss +809 -565
- package/styles/calendar/_material-dark-definition.scss +204 -204
- package/styles/calendar/_material-definition.scss +199 -199
- package/styles/calendar/_material3-definition.scss +196 -196
- package/styles/calendar/_tailwind-definition.scss +271 -271
- package/styles/calendar/_theme.scss +614 -643
- package/styles/calendar/bootstrap-dark.css +416 -114
- package/styles/calendar/bootstrap.css +416 -114
- package/styles/calendar/bootstrap4.css +416 -114
- package/styles/calendar/bootstrap5-dark.css +437 -115
- package/styles/calendar/bootstrap5.css +437 -115
- package/styles/calendar/fabric-dark.css +421 -116
- package/styles/calendar/fabric.css +423 -117
- package/styles/calendar/fluent-dark.css +485 -143
- package/styles/calendar/fluent.css +485 -143
- package/styles/calendar/fluent2.css +549 -274
- package/styles/calendar/highcontrast-light.css +417 -114
- package/styles/calendar/highcontrast.css +423 -117
- package/styles/calendar/icons/_bds.scss +13 -13
- package/styles/calendar/icons/_bootstrap-dark.scss +13 -13
- package/styles/calendar/icons/_bootstrap.scss +13 -13
- package/styles/calendar/icons/_bootstrap4.scss +13 -13
- package/styles/calendar/icons/_bootstrap5.3.scss +13 -13
- package/styles/calendar/icons/_bootstrap5.scss +13 -13
- package/styles/calendar/icons/_fabric-dark.scss +13 -13
- package/styles/calendar/icons/_fabric.scss +13 -13
- package/styles/calendar/icons/_fluent.scss +13 -13
- package/styles/calendar/icons/_fluent2.scss +13 -13
- package/styles/calendar/icons/_fusionnew.scss +13 -13
- package/styles/calendar/icons/_highcontrast-light.scss +13 -13
- package/styles/calendar/icons/_highcontrast.scss +13 -13
- package/styles/calendar/icons/_material-dark.scss +13 -13
- package/styles/calendar/icons/_material.scss +13 -13
- package/styles/calendar/icons/_material3.scss +13 -13
- package/styles/calendar/icons/_tailwind.scss +13 -13
- package/styles/calendar/material-dark.css +423 -117
- package/styles/calendar/material.css +423 -117
- package/styles/calendar/material3-dark.css +426 -117
- package/styles/calendar/material3-dark.scss +1 -1
- package/styles/calendar/material3.css +426 -117
- package/styles/calendar/material3.scss +1 -1
- package/styles/calendar/tailwind-dark.css +469 -117
- package/styles/calendar/tailwind.css +469 -117
- package/styles/datepicker/_all.scss +2 -2
- package/styles/datepicker/_bds-definition.scss +105 -105
- package/styles/datepicker/_bootstrap-dark-definition.scss +97 -97
- package/styles/datepicker/_bootstrap-definition.scss +96 -96
- package/styles/datepicker/_bootstrap4-definition.scss +101 -101
- package/styles/datepicker/_bootstrap5-definition.scss +107 -107
- package/styles/datepicker/_bootstrap5.3-definition.scss +107 -108
- package/styles/datepicker/_fabric-dark-definition.scss +98 -98
- package/styles/datepicker/_fabric-definition.scss +95 -95
- package/styles/datepicker/_fluent-definition.scss +107 -107
- package/styles/datepicker/_fluent2-definition.scss +118 -118
- package/styles/datepicker/_fusionnew-definition.scss +107 -107
- package/styles/datepicker/_highcontrast-definition.scss +96 -96
- package/styles/datepicker/_highcontrast-light-definition.scss +99 -99
- package/styles/datepicker/_layout.scss +442 -459
- package/styles/datepicker/_material-dark-definition.scss +103 -103
- package/styles/datepicker/_material-definition.scss +100 -100
- package/styles/datepicker/_material3-definition.scss +97 -97
- package/styles/datepicker/_tailwind-definition.scss +105 -105
- package/styles/datepicker/_theme.scss +53 -48
- package/styles/datepicker/bootstrap-dark.css +59 -20
- package/styles/datepicker/bootstrap.css +59 -20
- package/styles/datepicker/bootstrap4.css +61 -20
- package/styles/datepicker/bootstrap5-dark.css +63 -21
- package/styles/datepicker/bootstrap5.css +63 -21
- package/styles/datepicker/fabric-dark.css +59 -20
- package/styles/datepicker/fabric.css +59 -20
- package/styles/datepicker/fluent-dark.css +63 -21
- package/styles/datepicker/fluent.css +63 -21
- package/styles/datepicker/fluent2.css +172 -109
- package/styles/datepicker/highcontrast-light.css +59 -20
- package/styles/datepicker/highcontrast.css +59 -20
- package/styles/datepicker/icons/_bds.scss +76 -52
- package/styles/datepicker/icons/_bootstrap-dark.scss +73 -49
- package/styles/datepicker/icons/_bootstrap.scss +72 -50
- package/styles/datepicker/icons/_bootstrap4.scss +76 -52
- package/styles/datepicker/icons/_bootstrap5.3.scss +76 -52
- package/styles/datepicker/icons/_bootstrap5.scss +76 -52
- package/styles/datepicker/icons/_fabric-dark.scss +65 -43
- package/styles/datepicker/icons/_fabric.scss +65 -43
- package/styles/datepicker/icons/_fluent.scss +76 -52
- package/styles/datepicker/icons/_fluent2.scss +83 -52
- package/styles/datepicker/icons/_fusionnew.scss +76 -52
- package/styles/datepicker/icons/_highcontrast-light.scss +72 -50
- package/styles/datepicker/icons/_highcontrast.scss +72 -50
- package/styles/datepicker/icons/_material-dark.scss +99 -59
- package/styles/datepicker/icons/_material.scss +99 -59
- package/styles/datepicker/icons/_material3.scss +79 -50
- package/styles/datepicker/icons/_tailwind.scss +76 -52
- package/styles/datepicker/material-dark.css +87 -22
- package/styles/datepicker/material.css +101 -24
- package/styles/datepicker/material3-dark.css +94 -24
- package/styles/datepicker/material3-dark.scss +1 -1
- package/styles/datepicker/material3.css +94 -24
- package/styles/datepicker/material3.scss +1 -1
- package/styles/datepicker/tailwind-dark.css +68 -21
- package/styles/datepicker/tailwind.css +68 -21
- package/styles/daterangepicker/_all.scss +2 -2
- package/styles/daterangepicker/_bds-definition.scss +294 -294
- package/styles/daterangepicker/_bootstrap-dark-definition.scss +258 -258
- package/styles/daterangepicker/_bootstrap-definition.scss +258 -258
- package/styles/daterangepicker/_bootstrap4-definition.scss +268 -268
- package/styles/daterangepicker/_bootstrap5-definition.scss +296 -296
- package/styles/daterangepicker/_bootstrap5.3-definition.scss +296 -298
- package/styles/daterangepicker/_fabric-dark-definition.scss +261 -261
- package/styles/daterangepicker/_fabric-definition.scss +258 -258
- package/styles/daterangepicker/_fluent-definition.scss +322 -313
- package/styles/daterangepicker/_fluent2-definition.scss +309 -305
- package/styles/daterangepicker/_fusionnew-definition.scss +295 -295
- package/styles/daterangepicker/_highcontrast-definition.scss +258 -258
- package/styles/daterangepicker/_highcontrast-light-definition.scss +261 -261
- package/styles/daterangepicker/_layout.scss +1022 -790
- package/styles/daterangepicker/_material-dark-definition.scss +266 -266
- package/styles/daterangepicker/_material-definition.scss +266 -266
- package/styles/daterangepicker/_material3-definition.scss +262 -262
- package/styles/daterangepicker/_tailwind-definition.scss +287 -287
- package/styles/daterangepicker/_theme.scss +463 -415
- package/styles/daterangepicker/bootstrap-dark.css +524 -91
- package/styles/daterangepicker/bootstrap.css +523 -91
- package/styles/daterangepicker/bootstrap4.css +528 -91
- package/styles/daterangepicker/bootstrap5-dark.css +529 -91
- package/styles/daterangepicker/bootstrap5.css +529 -91
- package/styles/daterangepicker/fabric-dark.css +518 -91
- package/styles/daterangepicker/fabric.css +518 -91
- package/styles/daterangepicker/fluent-dark.css +559 -96
- package/styles/daterangepicker/fluent.css +559 -96
- package/styles/daterangepicker/fluent2.css +658 -191
- package/styles/daterangepicker/highcontrast-light.css +518 -91
- package/styles/daterangepicker/highcontrast.css +518 -91
- package/styles/daterangepicker/icons/_bds.scss +92 -74
- package/styles/daterangepicker/icons/_bootstrap-dark.scss +85 -61
- package/styles/daterangepicker/icons/_bootstrap.scss +85 -69
- package/styles/daterangepicker/icons/_bootstrap4.scss +94 -75
- package/styles/daterangepicker/icons/_bootstrap5.3.scss +92 -74
- package/styles/daterangepicker/icons/_bootstrap5.scss +92 -74
- package/styles/daterangepicker/icons/_fabric-dark.scss +85 -69
- package/styles/daterangepicker/icons/_fabric.scss +85 -69
- package/styles/daterangepicker/icons/_fluent.scss +92 -74
- package/styles/daterangepicker/icons/_fluent2.scss +132 -91
- package/styles/daterangepicker/icons/_fusionnew.scss +92 -74
- package/styles/daterangepicker/icons/_highcontrast-light.scss +85 -69
- package/styles/daterangepicker/icons/_highcontrast.scss +85 -69
- package/styles/daterangepicker/icons/_material-dark.scss +119 -85
- package/styles/daterangepicker/icons/_material.scss +119 -85
- package/styles/daterangepicker/icons/_material3.scss +129 -90
- package/styles/daterangepicker/icons/_tailwind.scss +92 -74
- package/styles/daterangepicker/material-dark.css +543 -91
- package/styles/daterangepicker/material.css +562 -93
- package/styles/daterangepicker/material3-dark.css +578 -94
- package/styles/daterangepicker/material3-dark.scss +1 -1
- package/styles/daterangepicker/material3.css +578 -94
- package/styles/daterangepicker/material3.scss +1 -1
- package/styles/daterangepicker/tailwind-dark.css +526 -91
- package/styles/daterangepicker/tailwind.css +526 -91
- package/styles/datetimepicker/_all.scss +2 -2
- package/styles/datetimepicker/_bds-definition.scss +65 -65
- package/styles/datetimepicker/_bootstrap-dark-definition.scss +60 -60
- package/styles/datetimepicker/_bootstrap-definition.scss +59 -59
- package/styles/datetimepicker/_bootstrap4-definition.scss +65 -65
- package/styles/datetimepicker/_bootstrap5-definition.scss +65 -65
- package/styles/datetimepicker/_bootstrap5.3-definition.scss +65 -65
- package/styles/datetimepicker/_fabric-dark-definition.scss +60 -60
- package/styles/datetimepicker/_fabric-definition.scss +57 -57
- package/styles/datetimepicker/_fluent-definition.scss +65 -65
- package/styles/datetimepicker/_fluent2-definition.scss +65 -65
- package/styles/datetimepicker/_fusionnew-definition.scss +65 -65
- package/styles/datetimepicker/_highcontrast-definition.scss +57 -57
- package/styles/datetimepicker/_highcontrast-light-definition.scss +60 -60
- package/styles/datetimepicker/_layout.scss +235 -179
- package/styles/datetimepicker/_material-dark-definition.scss +64 -64
- package/styles/datetimepicker/_material-definition.scss +62 -62
- package/styles/datetimepicker/_material3-definition.scss +61 -61
- package/styles/datetimepicker/_tailwind-definition.scss +65 -65
- package/styles/datetimepicker/_theme.scss +70 -70
- package/styles/datetimepicker/bootstrap-dark.css +49 -26
- package/styles/datetimepicker/bootstrap.css +49 -26
- package/styles/datetimepicker/bootstrap4.css +49 -26
- package/styles/datetimepicker/bootstrap5-dark.css +49 -26
- package/styles/datetimepicker/bootstrap5.css +49 -26
- package/styles/datetimepicker/fabric-dark.css +49 -26
- package/styles/datetimepicker/fabric.css +49 -26
- package/styles/datetimepicker/fluent-dark.css +49 -26
- package/styles/datetimepicker/fluent.css +49 -26
- package/styles/datetimepicker/fluent2.css +150 -115
- package/styles/datetimepicker/highcontrast-light.css +49 -26
- package/styles/datetimepicker/highcontrast.css +49 -26
- package/styles/datetimepicker/icons/_bds.scss +11 -11
- package/styles/datetimepicker/icons/_bootstrap-dark.scss +11 -11
- package/styles/datetimepicker/icons/_bootstrap.scss +11 -11
- package/styles/datetimepicker/icons/_bootstrap4.scss +11 -11
- package/styles/datetimepicker/icons/_bootstrap5.3.scss +11 -11
- package/styles/datetimepicker/icons/_bootstrap5.scss +11 -11
- package/styles/datetimepicker/icons/_fabric-dark.scss +11 -11
- package/styles/datetimepicker/icons/_fabric.scss +11 -11
- package/styles/datetimepicker/icons/_fluent.scss +11 -11
- package/styles/datetimepicker/icons/_fluent2.scss +11 -11
- package/styles/datetimepicker/icons/_fusionnew.scss +11 -11
- package/styles/datetimepicker/icons/_highcontrast-light.scss +11 -11
- package/styles/datetimepicker/icons/_highcontrast.scss +11 -11
- package/styles/datetimepicker/icons/_material-dark.scss +53 -31
- package/styles/datetimepicker/icons/_material.scss +62 -40
- package/styles/datetimepicker/icons/_material3.scss +11 -11
- package/styles/datetimepicker/icons/_tailwind.scss +11 -11
- package/styles/datetimepicker/material-dark.css +82 -27
- package/styles/datetimepicker/material.css +96 -29
- package/styles/datetimepicker/material3-dark.css +85 -29
- package/styles/datetimepicker/material3-dark.scss +1 -1
- package/styles/datetimepicker/material3.css +85 -29
- package/styles/datetimepicker/material3.scss +1 -1
- package/styles/datetimepicker/tailwind-dark.css +49 -26
- package/styles/datetimepicker/tailwind.css +49 -26
- package/styles/fabric-dark.css +1106 -263
- package/styles/fabric.css +1108 -264
- package/styles/fluent-dark.css +1211 -294
- package/styles/fluent.css +1211 -294
- package/styles/fluent2.css +1313 -433
- package/styles/highcontrast-light.css +1102 -261
- package/styles/highcontrast.css +1108 -264
- package/styles/material-dark.css +1193 -265
- package/styles/material.css +1212 -267
- package/styles/material3-dark.css +1207 -268
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +1207 -268
- package/styles/material3.scss +1 -1
- package/styles/tailwind-dark.css +1167 -263
- package/styles/tailwind.css +1167 -263
- package/styles/timepicker/_all.scss +2 -2
- package/styles/timepicker/_bds-definition.scss +84 -84
- package/styles/timepicker/_bootstrap-dark-definition.scss +80 -80
- package/styles/timepicker/_bootstrap-definition.scss +77 -77
- package/styles/timepicker/_bootstrap4-definition.scss +85 -85
- package/styles/timepicker/_bootstrap5-definition.scss +86 -86
- package/styles/timepicker/_bootstrap5.3-definition.scss +85 -85
- package/styles/timepicker/_fabric-dark-definition.scss +80 -80
- package/styles/timepicker/_fabric-definition.scss +77 -77
- package/styles/timepicker/_fluent-definition.scss +86 -86
- package/styles/timepicker/_fluent2-definition.scss +84 -84
- package/styles/timepicker/_fusionnew-definition.scss +86 -86
- package/styles/timepicker/_highcontrast-definition.scss +77 -77
- package/styles/timepicker/_highcontrast-light-definition.scss +80 -80
- package/styles/timepicker/_layout.scss +288 -226
- package/styles/timepicker/_material-dark-definition.scss +84 -84
- package/styles/timepicker/_material-definition.scss +81 -81
- package/styles/timepicker/_material3-definition.scss +83 -83
- package/styles/timepicker/_tailwind-definition.scss +84 -84
- package/styles/timepicker/_theme.scss +111 -109
- package/styles/timepicker/bootstrap-dark.css +59 -10
- package/styles/timepicker/bootstrap.css +59 -10
- package/styles/timepicker/bootstrap4.css +59 -10
- package/styles/timepicker/bootstrap5-dark.css +59 -10
- package/styles/timepicker/bootstrap5.css +59 -10
- package/styles/timepicker/fabric-dark.css +59 -10
- package/styles/timepicker/fabric.css +59 -10
- package/styles/timepicker/fluent-dark.css +59 -10
- package/styles/timepicker/fluent.css +59 -10
- package/styles/timepicker/fluent2.css +160 -99
- package/styles/timepicker/highcontrast-light.css +59 -10
- package/styles/timepicker/highcontrast.css +59 -10
- package/styles/timepicker/icons/_bds.scss +24 -24
- package/styles/timepicker/icons/_bootstrap-dark.scss +23 -23
- package/styles/timepicker/icons/_bootstrap.scss +24 -24
- package/styles/timepicker/icons/_bootstrap4.scss +24 -24
- package/styles/timepicker/icons/_bootstrap5.3.scss +24 -24
- package/styles/timepicker/icons/_bootstrap5.scss +24 -24
- package/styles/timepicker/icons/_fabric-dark.scss +24 -24
- package/styles/timepicker/icons/_fabric.scss +24 -24
- package/styles/timepicker/icons/_fluent.scss +24 -24
- package/styles/timepicker/icons/_fluent2.scss +24 -24
- package/styles/timepicker/icons/_fusionnew.scss +24 -24
- package/styles/timepicker/icons/_highcontrast-light.scss +24 -24
- package/styles/timepicker/icons/_highcontrast.scss +24 -24
- package/styles/timepicker/icons/_material-dark.scss +52 -37
- package/styles/timepicker/icons/_material.scss +54 -39
- package/styles/timepicker/icons/_material3.scss +24 -24
- package/styles/timepicker/icons/_tailwind.scss +24 -24
- package/styles/timepicker/material-dark.css +85 -11
- package/styles/timepicker/material.css +99 -13
- package/styles/timepicker/material3-dark.css +93 -13
- package/styles/timepicker/material3-dark.scss +1 -1
- package/styles/timepicker/material3.css +93 -13
- package/styles/timepicker/material3.scss +1 -1
- package/styles/timepicker/tailwind-dark.css +59 -10
- package/styles/timepicker/tailwind.css +59 -10
- package/tslint.json +111 -0
- package/CHANGELOG.md +0 -1220
- package/styles/calendar/_bigger.scss +0 -1142
- package/styles/calendar/_tailwind4-definition.scss +0 -260
- package/styles/calendar/icons/_tailwind4.scss +0 -13
- package/styles/datepicker/_bigger.scss +0 -82
- package/styles/datepicker/_tailwind4-definition.scss +0 -108
- package/styles/datepicker/icons/_tailwind4.scss +0 -52
- package/styles/daterangepicker/_bigger.scss +0 -971
- package/styles/daterangepicker/_tailwind4-definition.scss +0 -298
- package/styles/daterangepicker/icons/_tailwind4.scss +0 -74
- package/styles/datetimepicker/_bigger.scss +0 -105
- package/styles/datetimepicker/_tailwind4-definition.scss +0 -65
- package/styles/datetimepicker/icons/_tailwind4.scss +0 -11
- package/styles/timepicker/_bigger.scss +0 -92
- package/styles/timepicker/_tailwind4-definition.scss +0 -86
- package/styles/timepicker/icons/_tailwind4.scss +0 -24
|
@@ -58,7 +58,6 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
58
58
|
[key: string]: string;
|
|
59
59
|
};
|
|
60
60
|
protected mobilePopupWrapper: HTMLElement;
|
|
61
|
-
isAngular: boolean;
|
|
62
61
|
protected preventChange: boolean;
|
|
63
62
|
protected isIconClicked: boolean;
|
|
64
63
|
protected isDynamicValueChanged: boolean;
|
|
@@ -81,7 +80,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
81
80
|
*
|
|
82
81
|
* @default null
|
|
83
82
|
* @isGenericType true
|
|
84
|
-
|
|
83
|
+
|
|
85
84
|
*/
|
|
86
85
|
value: Date;
|
|
87
86
|
/**
|
|
@@ -275,7 +274,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
275
274
|
* {% codeBlock src='datepicker/keyConfigs/index.md' %}{% endcodeBlock %}
|
|
276
275
|
*
|
|
277
276
|
* @default null
|
|
278
|
-
|
|
277
|
+
|
|
279
278
|
*/
|
|
280
279
|
keyConfigs: {
|
|
281
280
|
[key: string]: string;
|
|
@@ -285,7 +284,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
285
284
|
* 1. value
|
|
286
285
|
*
|
|
287
286
|
* @default false
|
|
288
|
-
|
|
287
|
+
|
|
289
288
|
*/
|
|
290
289
|
enablePersistence: boolean;
|
|
291
290
|
/**
|
|
@@ -325,7 +324,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
325
324
|
* then specify the time zone value to `serverTimezoneOffset` property.
|
|
326
325
|
*
|
|
327
326
|
* @default null
|
|
328
|
-
|
|
327
|
+
|
|
329
328
|
*/
|
|
330
329
|
serverTimezoneOffset: number;
|
|
331
330
|
/**
|
|
@@ -460,14 +459,14 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
460
459
|
* Shows the Calendar.
|
|
461
460
|
*
|
|
462
461
|
* @returns {void}
|
|
463
|
-
|
|
462
|
+
|
|
464
463
|
*/
|
|
465
464
|
show(type?: null | string, e?: MouseEvent | KeyboardEvent | KeyboardEventArgs): void;
|
|
466
465
|
/**
|
|
467
466
|
* Hide the Calendar.
|
|
468
467
|
*
|
|
469
468
|
* @returns {void}
|
|
470
|
-
|
|
469
|
+
|
|
471
470
|
*/
|
|
472
471
|
hide(event?: MouseEvent | KeyboardEvent | Event): void;
|
|
473
472
|
private closeEventCallback;
|
|
@@ -487,7 +486,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
487
486
|
* Gets the current view of the DatePicker.
|
|
488
487
|
*
|
|
489
488
|
* @returns {string}
|
|
490
|
-
|
|
489
|
+
|
|
491
490
|
*/
|
|
492
491
|
currentView(): string;
|
|
493
492
|
/**
|
|
@@ -496,7 +495,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
496
495
|
* @param {string} view - Specifies the view of the calendar.
|
|
497
496
|
* @param {Date} date - Specifies the focused date in a view.
|
|
498
497
|
* @returns {void}
|
|
499
|
-
|
|
498
|
+
|
|
500
499
|
*/
|
|
501
500
|
navigateTo(view: CalendarView, date: Date): void;
|
|
502
501
|
/**
|
|
@@ -545,7 +544,7 @@ export interface PopupObjectArgs {
|
|
|
545
544
|
/**
|
|
546
545
|
* Defines the DatePicker popup element.
|
|
547
546
|
*
|
|
548
|
-
|
|
547
|
+
|
|
549
548
|
*/
|
|
550
549
|
popup?: Popup;
|
|
551
550
|
/**
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
21
21
|
/// <reference path='../calendar/calendar-model.d.ts'/>
|
|
22
22
|
import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';
|
|
@@ -79,7 +79,6 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
79
79
|
_this.invalidValueString = null;
|
|
80
80
|
_this.checkPreviousValue = null;
|
|
81
81
|
_this.maskedDateValue = '';
|
|
82
|
-
_this.isAngular = false;
|
|
83
82
|
_this.preventChange = false;
|
|
84
83
|
_this.isIconClicked = false;
|
|
85
84
|
_this.isDynamicValueChanged = false;
|
|
@@ -185,7 +184,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
185
184
|
this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
|
|
186
185
|
}
|
|
187
186
|
if (this.fullScreenMode && Browser.isDevice) {
|
|
188
|
-
this.cssClass += ' ' +
|
|
187
|
+
this.cssClass += ' ' + 'e-popup-expand';
|
|
189
188
|
}
|
|
190
189
|
var updatedCssClassValues = this.cssClass;
|
|
191
190
|
if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
|
|
@@ -1005,10 +1004,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1005
1004
|
open: function () {
|
|
1006
1005
|
if (Browser.isDevice && _this.fullScreenMode) {
|
|
1007
1006
|
_this.iconRight = parseInt(window.getComputedStyle(_this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;
|
|
1008
|
-
_this.touchModule = new Touch(_this.calendarElement.querySelector(
|
|
1007
|
+
_this.touchModule = new Touch(_this.calendarElement.querySelector('.e-content.e-month'), {
|
|
1009
1008
|
swipe: _this.CalendarSwipeHandler.bind(_this)
|
|
1010
1009
|
});
|
|
1011
|
-
EventHandler.add(_this.calendarElement.querySelector(
|
|
1010
|
+
EventHandler.add(_this.calendarElement.querySelector('.e-content.e-month'), 'touchstart', _this.TouchStartHandler, _this);
|
|
1012
1011
|
}
|
|
1013
1012
|
if (_this.getModuleName() !== 'datetimepicker') {
|
|
1014
1013
|
if (document.activeElement !== _this.inputElement) {
|
|
@@ -1055,10 +1054,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1055
1054
|
var direction = 0;
|
|
1056
1055
|
if (this.iconRight) {
|
|
1057
1056
|
switch (e.swipeDirection) {
|
|
1058
|
-
case
|
|
1057
|
+
case 'Left':
|
|
1059
1058
|
direction = 1;
|
|
1060
1059
|
break;
|
|
1061
|
-
case
|
|
1060
|
+
case 'Right':
|
|
1062
1061
|
direction = -1;
|
|
1063
1062
|
break;
|
|
1064
1063
|
default:
|
|
@@ -1067,10 +1066,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1067
1066
|
}
|
|
1068
1067
|
else {
|
|
1069
1068
|
switch (e.swipeDirection) {
|
|
1070
|
-
case
|
|
1069
|
+
case 'Up':
|
|
1071
1070
|
direction = 1;
|
|
1072
1071
|
break;
|
|
1073
|
-
case
|
|
1072
|
+
case 'Down':
|
|
1074
1073
|
direction = -1;
|
|
1075
1074
|
break;
|
|
1076
1075
|
default:
|
|
@@ -1129,16 +1128,17 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1129
1128
|
}
|
|
1130
1129
|
monthSpan.textContent = '' + this.globalize.formatDate(this.value || new Date(), dateOptions);
|
|
1131
1130
|
if (this.fullScreenMode) {
|
|
1132
|
-
var modelCloseIcon = this.createElement(
|
|
1131
|
+
var modelCloseIcon = this.createElement('span', { className: 'e-popup-close' });
|
|
1133
1132
|
EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.modelCloseHandler, this);
|
|
1134
|
-
var modelTodayButton = this.calendarElement.querySelector(
|
|
1135
|
-
h2.classList.add(
|
|
1136
|
-
modelTodayButton.classList.add(
|
|
1133
|
+
var modelTodayButton = this.calendarElement.querySelector('button.e-today');
|
|
1134
|
+
h2.classList.add('e-day-wrapper');
|
|
1135
|
+
modelTodayButton.classList.add('e-outline');
|
|
1137
1136
|
modelHeader.appendChild(modelCloseIcon);
|
|
1138
1137
|
modelHeader.appendChild(modelTodayButton);
|
|
1139
1138
|
}
|
|
1140
|
-
if (!this.fullScreenMode)
|
|
1139
|
+
if (!this.fullScreenMode) {
|
|
1141
1140
|
modelHeader.appendChild(yearHeading);
|
|
1141
|
+
}
|
|
1142
1142
|
h2.appendChild(daySpan);
|
|
1143
1143
|
h2.appendChild(monthSpan);
|
|
1144
1144
|
modelHeader.appendChild(h2);
|
|
@@ -1275,7 +1275,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1275
1275
|
* Shows the Calendar.
|
|
1276
1276
|
*
|
|
1277
1277
|
* @returns {void}
|
|
1278
|
-
|
|
1278
|
+
|
|
1279
1279
|
*/
|
|
1280
1280
|
DatePicker.prototype.show = function (type, e) {
|
|
1281
1281
|
var _this = this;
|
|
@@ -1356,7 +1356,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1356
1356
|
* Hide the Calendar.
|
|
1357
1357
|
*
|
|
1358
1358
|
* @returns {void}
|
|
1359
|
-
|
|
1359
|
+
|
|
1360
1360
|
*/
|
|
1361
1361
|
DatePicker.prototype.hide = function (event) {
|
|
1362
1362
|
var _this = this;
|
|
@@ -1405,7 +1405,8 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1405
1405
|
this.modal = null;
|
|
1406
1406
|
}
|
|
1407
1407
|
if (Browser.isDevice) {
|
|
1408
|
-
if (!isNullOrUndefined(this.mobilePopupWrapper) &&
|
|
1408
|
+
if (!isNullOrUndefined(this.mobilePopupWrapper) &&
|
|
1409
|
+
(prevent && (isNullOrUndefined(this.preventArgs) || !this.preventArgs.cancel))) {
|
|
1409
1410
|
this.mobilePopupWrapper.remove();
|
|
1410
1411
|
this.mobilePopupWrapper = null;
|
|
1411
1412
|
}
|
|
@@ -1446,7 +1447,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1446
1447
|
* Gets the current view of the DatePicker.
|
|
1447
1448
|
*
|
|
1448
1449
|
* @returns {string}
|
|
1449
|
-
|
|
1450
|
+
|
|
1450
1451
|
*/
|
|
1451
1452
|
DatePicker.prototype.currentView = function () {
|
|
1452
1453
|
var currentView;
|
|
@@ -1463,7 +1464,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1463
1464
|
* @param {string} view - Specifies the view of the calendar.
|
|
1464
1465
|
* @param {Date} date - Specifies the focused date in a view.
|
|
1465
1466
|
* @returns {void}
|
|
1466
|
-
|
|
1467
|
+
|
|
1467
1468
|
*/
|
|
1468
1469
|
DatePicker.prototype.navigateTo = function (view, date) {
|
|
1469
1470
|
if (this.calendarElement) {
|
|
@@ -1849,9 +1850,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1849
1850
|
this.calendarElement.querySelectorAll(dateIdString)[0] &&
|
|
1850
1851
|
this.calendarElement.querySelectorAll(dateIdString)[0].classList.contains('e-disabled');
|
|
1851
1852
|
if ((!isNullOrUndefined(this.value) && !isNullOrUndefined(this.min) &&
|
|
1852
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1853
1853
|
!isNullOrUndefined(this.max) && !(new Date(this.value).setMilliseconds(0) >= new Date(this.min).setMilliseconds(0)
|
|
1854
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1855
1854
|
&& new Date(this.value).setMilliseconds(0) <= new Date(this.max).setMilliseconds(0)))
|
|
1856
1855
|
|| (!this.strictMode && this.inputElement.value !== '' && this.inputElement.value !== this.maskedDateValue && isNullOrUndefined(this.value) || isDisabledDate)) {
|
|
1857
1856
|
addClass([this.inputWrapper.container], ERROR);
|