@syncfusion/ej2-calendars 26.2.12 → 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 +149 -35
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +149 -35
- 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 +106 -18
- 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
|
@@ -310,8 +310,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
310
310
|
CalendarBase.prototype.getCultureValues = function () {
|
|
311
311
|
var culShortNames = [];
|
|
312
312
|
var cldrObj;
|
|
313
|
-
var dayFormat = 'days.stand-alone.' + this.dayHeaderFormat.toLowerCase();
|
|
314
|
-
if (this.locale === 'en' || this.locale === 'en-US') {
|
|
313
|
+
var dayFormat = !isNullOrUndefined(this.dayHeaderFormat) ? 'days.stand-alone.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
314
|
+
if ((this.locale === 'en' || this.locale === 'en-US') && !isNullOrUndefined(dayFormat)) {
|
|
315
315
|
cldrObj = (getValue(dayFormat, getDefaultDateObject()));
|
|
316
316
|
}
|
|
317
317
|
else {
|
|
@@ -549,7 +549,12 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
549
549
|
else if (e.target === this.todayElement && !e.target.className.includes(DISABLED)) {
|
|
550
550
|
this.todayButtonClick(e, value);
|
|
551
551
|
if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
|
|
552
|
-
this.
|
|
552
|
+
if (this.isAngular) {
|
|
553
|
+
this.inputElement.focus();
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
this.element.focus();
|
|
557
|
+
}
|
|
553
558
|
}
|
|
554
559
|
}
|
|
555
560
|
else {
|
|
@@ -560,7 +565,12 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
560
565
|
var d = new Date(parseInt('' + (element).id, 0));
|
|
561
566
|
this.selectDate(e, d, (element));
|
|
562
567
|
if (this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') {
|
|
563
|
-
this.
|
|
568
|
+
if (this.isAngular) {
|
|
569
|
+
this.inputElement.focus();
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
this.element.focus();
|
|
573
|
+
}
|
|
564
574
|
}
|
|
565
575
|
}
|
|
566
576
|
else {
|
|
@@ -652,7 +662,12 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
652
662
|
case 'shiftTab':
|
|
653
663
|
if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && e.target === this.headerTitleElement) {
|
|
654
664
|
e.preventDefault();
|
|
655
|
-
this.
|
|
665
|
+
if (this.isAngular) {
|
|
666
|
+
this.inputElement.focus();
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
this.element.focus();
|
|
670
|
+
}
|
|
656
671
|
this.hide();
|
|
657
672
|
}
|
|
658
673
|
break;
|
|
@@ -747,13 +762,13 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
747
762
|
tdEles = this.renderDays(this.currentDate, value, null, null, isCustomDate, e);
|
|
748
763
|
}
|
|
749
764
|
else {
|
|
750
|
-
tdEles = this.islamicModule.islamicRenderDays(this.currentDate, value);
|
|
765
|
+
tdEles = !isNullOrUndefined(this.islamicModule) ? this.islamicModule.islamicRenderDays(this.currentDate, value) : null;
|
|
751
766
|
}
|
|
752
767
|
this.createContentHeader();
|
|
753
768
|
if (this.calendarMode === 'Gregorian') {
|
|
754
769
|
this.renderTemplate(tdEles, numCells, MONTH, e, value);
|
|
755
770
|
}
|
|
756
|
-
else {
|
|
771
|
+
else if (!isNullOrUndefined(this.islamicModule)) {
|
|
757
772
|
this.islamicModule.islamicRenderTemplate(tdEles, numCells, MONTH, e, value);
|
|
758
773
|
}
|
|
759
774
|
};
|
|
@@ -1704,8 +1719,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1704
1719
|
};
|
|
1705
1720
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1706
1721
|
CalendarBase.prototype.getCultureObjects = function (ld, c) {
|
|
1707
|
-
var gregorianFormat = '.dates.calendars.gregorian.days.format.' + this.dayHeaderFormat.toLowerCase();
|
|
1708
|
-
var islamicFormat = '.dates.calendars.islamic.days.format.' + this.dayHeaderFormat.toLowerCase();
|
|
1722
|
+
var gregorianFormat = !isNullOrUndefined(this.dayHeaderFormat) ? '.dates.calendars.gregorian.days.format.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
1723
|
+
var islamicFormat = !isNullOrUndefined(this.dayHeaderFormat) ? '.dates.calendars.islamic.days.format.' + this.dayHeaderFormat.toLowerCase() : null;
|
|
1709
1724
|
var mainVal = 'main.';
|
|
1710
1725
|
if (this.calendarMode === 'Gregorian') {
|
|
1711
1726
|
return getValue(mainVal + '' + this.locale + gregorianFormat, ld);
|
|
@@ -2666,6 +2681,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
|
|
|
2666
2681
|
if (!isNullOrUndefined(this.value)) {
|
|
2667
2682
|
this.setProperties({ value: this.value }, true);
|
|
2668
2683
|
}
|
|
2684
|
+
// eslint-disable-next-line
|
|
2669
2685
|
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) &&
|
|
2670
2686
|
!isNullOrUndefined(this.previousDate) || this.previousDate === null
|
|
2671
2687
|
&& !isNaN(+this.value))) {
|
|
@@ -3416,7 +3432,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3416
3432
|
var ariaAttrs = {
|
|
3417
3433
|
'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
3418
3434
|
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
3419
|
-
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3435
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3420
3436
|
};
|
|
3421
3437
|
if (this.getModuleName() === 'datepicker') {
|
|
3422
3438
|
var l10nLocale = { placeholder: this.placeholder };
|
|
@@ -3454,6 +3470,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3454
3470
|
this.inputElement.setAttribute('name', '' + this.element.id);
|
|
3455
3471
|
}
|
|
3456
3472
|
attributes(this.inputElement, ariaAttrs);
|
|
3473
|
+
if (!this.inputElement.hasAttribute('aria-label')) {
|
|
3474
|
+
this.inputElement.setAttribute('aria-label', this.getModuleName());
|
|
3475
|
+
}
|
|
3457
3476
|
if (!this.enabled) {
|
|
3458
3477
|
this.inputElement.setAttribute('aria-disabled', 'true');
|
|
3459
3478
|
this.inputElement.tabIndex = -1;
|
|
@@ -4717,7 +4736,6 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4717
4736
|
if (this.showClearButton) {
|
|
4718
4737
|
this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
|
|
4719
4738
|
}
|
|
4720
|
-
this.hide(null);
|
|
4721
4739
|
_super.prototype.destroy.call(this);
|
|
4722
4740
|
Input.destroy({
|
|
4723
4741
|
element: this.inputElement,
|
|
@@ -4733,8 +4751,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4733
4751
|
var ariaAttrs = {
|
|
4734
4752
|
'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
4735
4753
|
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
4736
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
4754
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
4737
4755
|
};
|
|
4756
|
+
if (this.inputElement.hasAttribute('aria-label')) {
|
|
4757
|
+
this.inputElement.removeAttribute('aria-label');
|
|
4758
|
+
}
|
|
4738
4759
|
if (this.inputElement) {
|
|
4739
4760
|
Input.removeAttributes(ariaAttrs, this.inputElement);
|
|
4740
4761
|
if (!isNullOrUndefined(this.inputElementCopy.getAttribute('tabindex'))) {
|
|
@@ -5086,9 +5107,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5086
5107
|
this.calendarElement.querySelectorAll(dateIdString)[0] &&
|
|
5087
5108
|
this.calendarElement.querySelectorAll(dateIdString)[0].classList.contains('e-disabled');
|
|
5088
5109
|
if ((!isNullOrUndefined(this.value) && !isNullOrUndefined(this.min) &&
|
|
5089
|
-
!isNullOrUndefined(this.max) && !(new Date(this.value).setMilliseconds(0) >=
|
|
5110
|
+
!isNullOrUndefined(this.max) && !(new Date(this.value).setMilliseconds(0) >=
|
|
5111
|
+
new Date(this.min).setMilliseconds(0)
|
|
5090
5112
|
&& new Date(this.value).setMilliseconds(0) <= new Date(this.max).setMilliseconds(0)))
|
|
5091
|
-
|| (!this.strictMode && this.inputElement.value !== '' && this.inputElement.value !== this.maskedDateValue &&
|
|
5113
|
+
|| (!this.strictMode && this.inputElement.value !== '' && this.inputElement.value !== this.maskedDateValue &&
|
|
5114
|
+
isNullOrUndefined(this.value) || isDisabledDate) || !this.isValidTime(this.value)) {
|
|
5092
5115
|
addClass([this.inputWrapper.container], ERROR);
|
|
5093
5116
|
attributes(this.inputElement, { 'aria-invalid': 'true' });
|
|
5094
5117
|
}
|
|
@@ -5097,6 +5120,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5097
5120
|
attributes(this.inputElement, { 'aria-invalid': 'false' });
|
|
5098
5121
|
}
|
|
5099
5122
|
};
|
|
5123
|
+
DatePicker.prototype.isValidTime = function (value) {
|
|
5124
|
+
return true;
|
|
5125
|
+
};
|
|
5100
5126
|
/**
|
|
5101
5127
|
* Called internally if any of the property value changed.
|
|
5102
5128
|
*
|
|
@@ -5809,7 +5835,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5809
5835
|
DateRangePicker.prototype.processPresets = function () {
|
|
5810
5836
|
this.presetsItem = [];
|
|
5811
5837
|
var i = 0;
|
|
5812
|
-
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
5838
|
+
if (!isNullOrUndefined(this.presets[0]) && !isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
5813
5839
|
for (var _i = 0, _a = this.presets; _i < _a.length; _i++) {
|
|
5814
5840
|
var range = _a[_i];
|
|
5815
5841
|
var id = range.label.replace(/\s+/g, '') + '_' + (++i);
|
|
@@ -6409,7 +6435,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
6409
6435
|
this.currentDate = null;
|
|
6410
6436
|
};
|
|
6411
6437
|
DateRangePicker.prototype.errorClass = function () {
|
|
6412
|
-
var inputStr = this.inputElement.value.trim();
|
|
6438
|
+
var inputStr = !isNullOrUndefined(this.inputElement.value) ? this.inputElement.value.trim() : null;
|
|
6413
6439
|
if (((isNullOrUndefined(this.endValue) && isNullOrUndefined(this.startValue) && inputStr !== '') ||
|
|
6414
6440
|
((!isNullOrUndefined(this.startValue) && +this.startValue < +this.min)
|
|
6415
6441
|
|| ((!isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.endValue)) && +this.startValue > +this.endValue)
|
|
@@ -11199,7 +11225,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11199
11225
|
return dateVal;
|
|
11200
11226
|
};
|
|
11201
11227
|
TimePicker.prototype.valueIsDisable = function (value) {
|
|
11202
|
-
if (this.disableItemCollection.length > 0) {
|
|
11228
|
+
if (!isNullOrUndefined(this.disableItemCollection) && this.disableItemCollection.length > 0) {
|
|
11203
11229
|
if (this.disableItemCollection.length === this.timeCollections.length) {
|
|
11204
11230
|
return false;
|
|
11205
11231
|
}
|
|
@@ -12705,7 +12731,6 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12705
12731
|
if (this.showClearButton) {
|
|
12706
12732
|
this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
|
|
12707
12733
|
}
|
|
12708
|
-
this.hide(null);
|
|
12709
12734
|
if (this.popupObject && this.popupObject.element.classList.contains(POPUP$3)) {
|
|
12710
12735
|
this.popupObject.destroy();
|
|
12711
12736
|
detach(this.dateTimeWrapper);
|
|
@@ -12778,6 +12803,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12778
12803
|
if (typeof (this.max) === 'string') {
|
|
12779
12804
|
this.max = this.checkDateValue(new Date(this.max));
|
|
12780
12805
|
}
|
|
12806
|
+
if (typeof (this.minTime) === 'string') {
|
|
12807
|
+
this.minTime = this.checkDateValue(new Date(this.minTime));
|
|
12808
|
+
}
|
|
12809
|
+
if (typeof (this.maxTime) === 'string') {
|
|
12810
|
+
this.maxTime = this.checkDateValue(new Date(this.maxTime));
|
|
12811
|
+
}
|
|
12781
12812
|
if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
|
|
12782
12813
|
this.enabled = false;
|
|
12783
12814
|
}
|
|
@@ -12849,7 +12880,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12849
12880
|
DateTimePicker.prototype.checkValidState = function (value) {
|
|
12850
12881
|
this.isValidState = true;
|
|
12851
12882
|
if (!this.strictMode) {
|
|
12852
|
-
if ((+(value) > +(this.max)) || (+(value) < +(this.min))) {
|
|
12883
|
+
if ((+(value) > +(this.max)) || (+(value) < +(this.min)) || !this.isValidTime(value)) {
|
|
12853
12884
|
this.isValidState = false;
|
|
12854
12885
|
}
|
|
12855
12886
|
}
|
|
@@ -12864,6 +12895,54 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12864
12895
|
}
|
|
12865
12896
|
attributes(this.inputElement, { 'aria-invalid': this.isValidState ? 'false' : 'true' });
|
|
12866
12897
|
};
|
|
12898
|
+
DateTimePicker.prototype.isValidTime = function (value) {
|
|
12899
|
+
if (value != null && (this.minTime || this.maxTime)) {
|
|
12900
|
+
var minTimeValue = void 0;
|
|
12901
|
+
var maxTimeValue = void 0;
|
|
12902
|
+
var maxValue = void 0;
|
|
12903
|
+
var minValue = void 0;
|
|
12904
|
+
var valueTime = value.getHours() * 3600000 + value.getMinutes() * 60000 +
|
|
12905
|
+
value.getSeconds() * 1000 + value.getMilliseconds();
|
|
12906
|
+
if (this.minTime) {
|
|
12907
|
+
minTimeValue = this.minTime.getHours() * 3600000 + this.minTime.getMinutes() * 60000 +
|
|
12908
|
+
this.minTime.getSeconds() * 1000 + this.minTime.getMilliseconds();
|
|
12909
|
+
}
|
|
12910
|
+
if (this.maxTime) {
|
|
12911
|
+
maxTimeValue = this.maxTime.getHours() * 3600000 + this.maxTime.getMinutes() * 60000 +
|
|
12912
|
+
this.maxTime.getSeconds() * 1000 + this.maxTime.getMilliseconds();
|
|
12913
|
+
}
|
|
12914
|
+
if (this.min && (+value.getDate() === +this.min.getDate() && +value.getMonth() === +this.min.getMonth() &&
|
|
12915
|
+
+value.getFullYear() === +this.min.getFullYear())) {
|
|
12916
|
+
minValue = this.min.getHours() * 3600000 + this.min.getMinutes() * 60000 +
|
|
12917
|
+
this.min.getSeconds() * 1000 + this.min.getMilliseconds();
|
|
12918
|
+
minTimeValue = minTimeValue < minValue ? minValue : minTimeValue;
|
|
12919
|
+
}
|
|
12920
|
+
if (this.max && (+value.getDate() === +this.max.getDate() && +value.getMonth() === +this.max.getMonth() &&
|
|
12921
|
+
+this.max.getFullYear() === +this.max.getFullYear())) {
|
|
12922
|
+
maxValue = this.max.getHours() * 3600000 + this.max.getMinutes() * 60000 +
|
|
12923
|
+
this.max.getSeconds() * 1000 + this.max.getMilliseconds();
|
|
12924
|
+
maxTimeValue = maxTimeValue > maxValue ? maxValue : maxTimeValue;
|
|
12925
|
+
}
|
|
12926
|
+
if (this.strictMode) {
|
|
12927
|
+
var newValue = void 0;
|
|
12928
|
+
if (minTimeValue && valueTime < minTimeValue) {
|
|
12929
|
+
newValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.minTime.getHours(), this.minTime.getMinutes(), this.minTime.getSeconds(), this.minTime.getMilliseconds());
|
|
12930
|
+
this.setProperties({ value: newValue }, true);
|
|
12931
|
+
this.changedArgs = { value: this.value };
|
|
12932
|
+
}
|
|
12933
|
+
else if (maxTimeValue && valueTime > maxTimeValue) {
|
|
12934
|
+
newValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.maxTime.getHours(), this.maxTime.getMinutes(), this.maxTime.getSeconds(), this.maxTime.getMilliseconds());
|
|
12935
|
+
this.setProperties({ value: newValue }, true);
|
|
12936
|
+
this.changedArgs = { value: this.value };
|
|
12937
|
+
}
|
|
12938
|
+
return true;
|
|
12939
|
+
}
|
|
12940
|
+
else {
|
|
12941
|
+
return !((minTimeValue && valueTime < minTimeValue) || (maxTimeValue && valueTime > maxTimeValue));
|
|
12942
|
+
}
|
|
12943
|
+
}
|
|
12944
|
+
return true;
|
|
12945
|
+
};
|
|
12867
12946
|
DateTimePicker.prototype.validateValue = function (value) {
|
|
12868
12947
|
var dateVal = value;
|
|
12869
12948
|
if (this.strictMode) {
|
|
@@ -13560,20 +13639,35 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13560
13639
|
var tempStartValue;
|
|
13561
13640
|
var start;
|
|
13562
13641
|
var tempMin = this.min;
|
|
13642
|
+
var tempMax = this.max;
|
|
13563
13643
|
var value = date === null ? new Date() : date;
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13644
|
+
var isModified = false;
|
|
13645
|
+
var startValue;
|
|
13646
|
+
if (this.minTime) {
|
|
13647
|
+
startValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.minTime.getHours(), this.minTime.getMinutes(), this.minTime.getSeconds(), this.minTime.getMilliseconds());
|
|
13648
|
+
isModified = true;
|
|
13649
|
+
}
|
|
13650
|
+
else {
|
|
13651
|
+
startValue = value;
|
|
13652
|
+
}
|
|
13653
|
+
if ((+startValue.getDate() === +tempMin.getDate() && +startValue.getMonth() === +tempMin.getMonth() &&
|
|
13654
|
+
+startValue.getFullYear() === +tempMin.getFullYear()) ||
|
|
13655
|
+
((+new Date(startValue.getFullYear(), startValue.getMonth(), startValue.getDate())) <=
|
|
13656
|
+
+new Date(tempMin.getFullYear(), tempMin.getMonth(), tempMin.getDate()))) {
|
|
13567
13657
|
start = false;
|
|
13568
|
-
tempStartValue =
|
|
13658
|
+
tempStartValue = tempMin;
|
|
13659
|
+
if (isModified && ((+new Date(startValue.getFullYear(), startValue.getMonth(), startValue.getDate(), startValue.getHours(), startValue.getMinutes(), startValue.getSeconds(), startValue.getMilliseconds())) >=
|
|
13660
|
+
+new Date(tempMin.getFullYear(), tempMin.getMonth(), tempMin.getDate(), tempMin.getHours(), tempMin.getMinutes(), tempMin.getSeconds(), tempMin.getMilliseconds()))) {
|
|
13661
|
+
tempStartValue.setHours(startValue.getHours(), startValue.getMinutes(), startValue.getSeconds(), startValue.getMilliseconds());
|
|
13662
|
+
}
|
|
13569
13663
|
}
|
|
13570
|
-
else if (+
|
|
13571
|
-
start =
|
|
13572
|
-
tempStartValue =
|
|
13664
|
+
else if (+startValue < +tempMax && +startValue > +tempMin) {
|
|
13665
|
+
start = !isModified;
|
|
13666
|
+
tempStartValue = startValue;
|
|
13573
13667
|
}
|
|
13574
|
-
else if (+
|
|
13668
|
+
else if (+startValue >= +tempMax) {
|
|
13575
13669
|
start = true;
|
|
13576
|
-
tempStartValue =
|
|
13670
|
+
tempStartValue = tempMax;
|
|
13577
13671
|
}
|
|
13578
13672
|
return this.calculateStartEnd(tempStartValue, start, 'starttime');
|
|
13579
13673
|
};
|
|
@@ -13622,17 +13716,31 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13622
13716
|
var end;
|
|
13623
13717
|
var tempMax = this.max;
|
|
13624
13718
|
var value = date === null ? new Date() : date;
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13719
|
+
var isModified = false;
|
|
13720
|
+
var endValue;
|
|
13721
|
+
if (this.maxTime) {
|
|
13722
|
+
endValue = new Date(value.getFullYear(), value.getMonth(), value.getDate(), this.maxTime.getHours(), this.maxTime.getMinutes(), this.maxTime.getSeconds(), this.maxTime.getMilliseconds());
|
|
13723
|
+
isModified = true;
|
|
13724
|
+
}
|
|
13725
|
+
else {
|
|
13726
|
+
endValue = value;
|
|
13727
|
+
}
|
|
13728
|
+
if ((+endValue.getDate() === +tempMax.getDate() && +endValue.getMonth() === +tempMax.getMonth() &&
|
|
13729
|
+
+endValue.getFullYear() === +tempMax.getFullYear()) ||
|
|
13730
|
+
(+new Date(endValue.getUTCFullYear(), endValue.getMonth(), endValue.getDate()) >=
|
|
13731
|
+
+new Date(tempMax.getFullYear(), tempMax.getMonth(), tempMax.getDate()))) {
|
|
13628
13732
|
end = false;
|
|
13629
13733
|
tempEndValue = this.max;
|
|
13734
|
+
if (isModified && (+new Date(endValue.getUTCFullYear(), endValue.getMonth(), endValue.getDate(), endValue.getHours(), endValue.getMinutes(), endValue.getSeconds(), endValue.getMilliseconds()) <=
|
|
13735
|
+
+new Date(tempMax.getFullYear(), tempMax.getMonth(), tempMax.getDate(), tempMax.getHours(), tempMax.getMinutes(), tempMax.getSeconds(), tempMax.getMilliseconds()))) {
|
|
13736
|
+
tempEndValue.setHours(endValue.getHours(), endValue.getMinutes(), endValue.getSeconds(), endValue.getMilliseconds());
|
|
13737
|
+
}
|
|
13630
13738
|
}
|
|
13631
|
-
else if (+
|
|
13632
|
-
end =
|
|
13633
|
-
tempEndValue =
|
|
13739
|
+
else if (+endValue < +this.max && +endValue > +this.min) {
|
|
13740
|
+
end = !isModified;
|
|
13741
|
+
tempEndValue = endValue;
|
|
13634
13742
|
}
|
|
13635
|
-
else if (+
|
|
13743
|
+
else if (+endValue <= +this.min) {
|
|
13636
13744
|
end = true;
|
|
13637
13745
|
tempEndValue = this.min;
|
|
13638
13746
|
}
|
|
@@ -14235,6 +14343,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
14235
14343
|
__decorate$4([
|
|
14236
14344
|
Property(new Date(2099, 11, 31))
|
|
14237
14345
|
], DateTimePicker.prototype, "max", void 0);
|
|
14346
|
+
__decorate$4([
|
|
14347
|
+
Property(null)
|
|
14348
|
+
], DateTimePicker.prototype, "minTime", void 0);
|
|
14349
|
+
__decorate$4([
|
|
14350
|
+
Property(null)
|
|
14351
|
+
], DateTimePicker.prototype, "maxTime", void 0);
|
|
14238
14352
|
__decorate$4([
|
|
14239
14353
|
Property(null)
|
|
14240
14354
|
], DateTimePicker.prototype, "firstDayOfWeek", void 0);
|