@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.2.6
3
+ * version : 23.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-calendars@*",
3
- "_id": "@syncfusion/ej2-calendars@23.2.4",
3
+ "_id": "@syncfusion/ej2-calendars@23.2.6",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-IoA8w/ftQROQfFPiaxnH1nR5QIdX0HQYdzRGZQoK5pn8fLy0g13wa9vglRCnUrXsHwr2+JKR+kf5mToEYV/C1w==",
5
+ "_integrity": "sha512-IACUKQNWSCTQtrcW0MLRY2+lmnx6fLl3P0z8/tvocDpC8k+tXYWJIFB33WqdTMJfrFmJixapKbL1sleRrvHrhw==",
6
6
  "_location": "/@syncfusion/ej2-calendars",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -31,8 +31,8 @@
31
31
  "/@syncfusion/ej2-schedule",
32
32
  "/@syncfusion/ej2-vue-calendars"
33
33
  ],
34
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-23.2.4.tgz",
35
- "_shasum": "ace505e5174cdf9e846854ddf24b9f6d2378c22c",
34
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-23.2.6.tgz",
35
+ "_shasum": "b9d9fc4669de28c99d81a6470d97d45b15281e1b",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
38
38
  "author": {
@@ -44,7 +44,7 @@
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~23.2.6",
47
- "@syncfusion/ej2-buttons": "~23.2.4",
47
+ "@syncfusion/ej2-buttons": "~23.2.7",
48
48
  "@syncfusion/ej2-inputs": "~23.2.4",
49
49
  "@syncfusion/ej2-lists": "~23.2.4",
50
50
  "@syncfusion/ej2-popups": "~23.2.4"
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "23.2.6",
83
+ "version": "23.2.7",
84
84
  "sideEffects": false
85
85
  }
@@ -1919,8 +1919,10 @@ var DatePicker = /** @class */ (function (_super) {
1919
1919
  case 'locale':
1920
1920
  this.globalize = new Internationalization(this.locale);
1921
1921
  this.l10n.setLocale(this.locale);
1922
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
1923
- Input.setPlaceholder(this.placeholder, this.inputElement);
1922
+ if (this.datepickerOptions && this.datepickerOptions.placeholder == null) {
1923
+ this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
1924
+ Input.setPlaceholder(this.placeholder, this.inputElement);
1925
+ }
1924
1926
  this.updateInput();
1925
1927
  if (this.enableMask) {
1926
1928
  this.notify('createMask', {
@@ -4172,8 +4172,10 @@ var DateRangePicker = /** @class */ (function (_super) {
4172
4172
  DateRangePicker.prototype.setLocale = function () {
4173
4173
  this.globalize = new Internationalization(this.locale);
4174
4174
  this.l10n.setLocale(this.locale);
4175
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
4176
- Input.setPlaceholder(this.placeholder, this.inputElement);
4175
+ if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
4176
+ this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
4177
+ Input.setPlaceholder(this.placeholder, this.inputElement);
4178
+ }
4177
4179
  this.updateInput();
4178
4180
  this.updateHiddenInput();
4179
4181
  this.changeTrigger();
@@ -4330,8 +4332,10 @@ var DateRangePicker = /** @class */ (function (_super) {
4330
4332
  case 'locale':
4331
4333
  this.globalize = new Internationalization(this.locale);
4332
4334
  this.l10n.setLocale(this.locale);
4333
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
4334
- Input.setPlaceholder(this.placeholder, this.inputElement);
4335
+ if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
4336
+ this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
4337
+ Input.setPlaceholder(this.placeholder, this.inputElement);
4338
+ }
4335
4339
  this.setLocale();
4336
4340
  break;
4337
4341
  case 'htmlAttributes':
@@ -1441,8 +1441,10 @@ var DateTimePicker = /** @class */ (function (_super) {
1441
1441
  case 'locale':
1442
1442
  this.globalize = new Internationalization(this.locale);
1443
1443
  this.l10n.setLocale(this.locale);
1444
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
1445
- Input.setPlaceholder(this.l10n.getConstant('placeholder'), this.inputElement);
1444
+ if (this.dateTimeOptions && this.dateTimeOptions.placeholder == null) {
1445
+ this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
1446
+ Input.setPlaceholder(this.l10n.getConstant('placeholder'), this.inputElement);
1447
+ }
1446
1448
  this.dateTimeFormat = this.cldrDateTimeFormat();
1447
1449
  _super.prototype.updateInput.call(this);
1448
1450
  break;
@@ -35,6 +35,7 @@ export declare class MaskedDateTime {
35
35
  private isDateZero;
36
36
  private isMonthZero;
37
37
  private isYearZero;
38
+ private isLeadingZero;
38
39
  private dayTypeCount;
39
40
  private monthTypeCount;
40
41
  private hourTypeCount;
@@ -42,6 +42,7 @@ var MaskedDateTime = /** @class */ (function () {
42
42
  this.isDateZero = false;
43
43
  this.isMonthZero = false;
44
44
  this.isYearZero = false;
45
+ this.isLeadingZero = false;
45
46
  this.dayTypeCount = 0;
46
47
  this.monthTypeCount = 0;
47
48
  this.hourTypeCount = 0;
@@ -285,7 +286,18 @@ var MaskedDateTime = /** @class */ (function () {
285
286
  }
286
287
  if (month >= 1) {
287
288
  newDateValue.setMonth(month - 1);
288
- this.isNavigate = month.toString().length === 2;
289
+ if (month >= 10 || month == 1) {
290
+ if (this.isLeadingZero && month == 1) {
291
+ this.isNavigate = month.toString().length === 1;
292
+ this.isLeadingZero = false;
293
+ }
294
+ else {
295
+ this.isNavigate = month.toString().length === 2;
296
+ }
297
+ }
298
+ else {
299
+ this.isNavigate = month.toString().length === 1;
300
+ }
289
301
  if (newDateValue.getMonth() !== month - 1) {
290
302
  newDateValue.setDate(1);
291
303
  newDateValue.setMonth(month - 1);
@@ -303,6 +315,7 @@ var MaskedDateTime = /** @class */ (function () {
303
315
  }
304
316
  else {
305
317
  newDateValue.setMonth(0);
318
+ this.isLeadingZero = true;
306
319
  this.isMonthPart = false;
307
320
  this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
308
321
  }
@@ -2370,7 +2370,9 @@ var TimePicker = /** @class */ (function (_super) {
2370
2370
  this.setProperties({ locale: newProp.locale }, true);
2371
2371
  this.globalize = new Internationalization(this.locale);
2372
2372
  this.l10n.setLocale(this.locale);
2373
- this.updatePlaceHolder();
2373
+ if (this.timeOptions && this.timeOptions.placeholder == null) {
2374
+ this.updatePlaceHolder();
2375
+ }
2374
2376
  this.setValue(this.value);
2375
2377
  if (this.enableMask) {
2376
2378
  this.notify('createMask', {