@syncfusion/ej2-calendars 23.2.6 → 23.2.7
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/CHANGELOG.md +2 -0
- 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 +33 -10
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +33 -10
- 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 +6 -6
- package/src/datepicker/datepicker.js +4 -2
- package/src/daterangepicker/daterangepicker.js +8 -4
- package/src/datetimepicker/datetimepicker.js +4 -2
- package/src/maskbase/masked-date-time.d.ts +1 -0
- package/src/maskbase/masked-date-time.js +14 -1
- package/src/timepicker/timepicker.js +3 -1
|
@@ -5089,8 +5089,10 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5089
5089
|
case 'locale':
|
|
5090
5090
|
this.globalize = new Internationalization(this.locale);
|
|
5091
5091
|
this.l10n.setLocale(this.locale);
|
|
5092
|
-
this.
|
|
5093
|
-
|
|
5092
|
+
if (this.datepickerOptions && this.datepickerOptions.placeholder == null) {
|
|
5093
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
5094
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
5095
|
+
}
|
|
5094
5096
|
this.updateInput();
|
|
5095
5097
|
if (this.enableMask) {
|
|
5096
5098
|
this.notify('createMask', {
|
|
@@ -9425,8 +9427,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9425
9427
|
DateRangePicker.prototype.setLocale = function () {
|
|
9426
9428
|
this.globalize = new Internationalization(this.locale);
|
|
9427
9429
|
this.l10n.setLocale(this.locale);
|
|
9428
|
-
this.
|
|
9429
|
-
|
|
9430
|
+
if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
|
|
9431
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
9432
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
9433
|
+
}
|
|
9430
9434
|
this.updateInput();
|
|
9431
9435
|
this.updateHiddenInput();
|
|
9432
9436
|
this.changeTrigger();
|
|
@@ -9583,8 +9587,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9583
9587
|
case 'locale':
|
|
9584
9588
|
this.globalize = new Internationalization(this.locale);
|
|
9585
9589
|
this.l10n.setLocale(this.locale);
|
|
9586
|
-
this.
|
|
9587
|
-
|
|
9590
|
+
if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
|
|
9591
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
9592
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
9593
|
+
}
|
|
9588
9594
|
this.setLocale();
|
|
9589
9595
|
break;
|
|
9590
9596
|
case 'htmlAttributes':
|
|
@@ -12240,7 +12246,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12240
12246
|
this.setProperties({ locale: newProp.locale }, true);
|
|
12241
12247
|
this.globalize = new Internationalization(this.locale);
|
|
12242
12248
|
this.l10n.setLocale(this.locale);
|
|
12243
|
-
this.
|
|
12249
|
+
if (this.timeOptions && this.timeOptions.placeholder == null) {
|
|
12250
|
+
this.updatePlaceHolder();
|
|
12251
|
+
}
|
|
12244
12252
|
this.setValue(this.value);
|
|
12245
12253
|
if (this.enableMask) {
|
|
12246
12254
|
this.notify('createMask', {
|
|
@@ -13902,8 +13910,10 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13902
13910
|
case 'locale':
|
|
13903
13911
|
this.globalize = new Internationalization(this.locale);
|
|
13904
13912
|
this.l10n.setLocale(this.locale);
|
|
13905
|
-
this.
|
|
13906
|
-
|
|
13913
|
+
if (this.dateTimeOptions && this.dateTimeOptions.placeholder == null) {
|
|
13914
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
13915
|
+
Input.setPlaceholder(this.l10n.getConstant('placeholder'), this.inputElement);
|
|
13916
|
+
}
|
|
13907
13917
|
this.dateTimeFormat = this.cldrDateTimeFormat();
|
|
13908
13918
|
_super.prototype.updateInput.call(this);
|
|
13909
13919
|
break;
|
|
@@ -14167,6 +14177,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
|
|
|
14167
14177
|
this.isDateZero = false;
|
|
14168
14178
|
this.isMonthZero = false;
|
|
14169
14179
|
this.isYearZero = false;
|
|
14180
|
+
this.isLeadingZero = false;
|
|
14170
14181
|
this.dayTypeCount = 0;
|
|
14171
14182
|
this.monthTypeCount = 0;
|
|
14172
14183
|
this.hourTypeCount = 0;
|
|
@@ -14410,7 +14421,18 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
|
|
|
14410
14421
|
}
|
|
14411
14422
|
if (month >= 1) {
|
|
14412
14423
|
newDateValue.setMonth(month - 1);
|
|
14413
|
-
|
|
14424
|
+
if (month >= 10 || month == 1) {
|
|
14425
|
+
if (this.isLeadingZero && month == 1) {
|
|
14426
|
+
this.isNavigate = month.toString().length === 1;
|
|
14427
|
+
this.isLeadingZero = false;
|
|
14428
|
+
}
|
|
14429
|
+
else {
|
|
14430
|
+
this.isNavigate = month.toString().length === 2;
|
|
14431
|
+
}
|
|
14432
|
+
}
|
|
14433
|
+
else {
|
|
14434
|
+
this.isNavigate = month.toString().length === 1;
|
|
14435
|
+
}
|
|
14414
14436
|
if (newDateValue.getMonth() !== month - 1) {
|
|
14415
14437
|
newDateValue.setDate(1);
|
|
14416
14438
|
newDateValue.setMonth(month - 1);
|
|
@@ -14428,6 +14450,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
|
|
|
14428
14450
|
}
|
|
14429
14451
|
else {
|
|
14430
14452
|
newDateValue.setMonth(0);
|
|
14453
|
+
this.isLeadingZero = true;
|
|
14431
14454
|
this.isMonthPart = false;
|
|
14432
14455
|
this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
|
|
14433
14456
|
}
|