@syncfusion/ej2-calendars 32.2.9 → 33.2.3

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 (43) hide show
  1. package/dist/ej2-calendars.min.js +2 -2
  2. package/dist/ej2-calendars.umd.min.js +2 -2
  3. package/dist/ej2-calendars.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-calendars.es2015.js +44 -16
  5. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  6. package/dist/es6/ej2-calendars.es5.js +44 -16
  7. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  8. package/dist/global/ej2-calendars.min.js +2 -2
  9. package/dist/global/ej2-calendars.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +6 -6
  12. package/src/datepicker/datepicker.js +7 -4
  13. package/src/daterangepicker/daterangepicker.js +8 -5
  14. package/src/datetimepicker/datetimepicker.js +13 -4
  15. package/src/timepicker/timepicker.js +16 -3
  16. package/styles/datepicker/_layout.scss +3 -0
  17. package/styles/datepicker/material-dark.css +3 -0
  18. package/styles/datepicker/material.css +3 -0
  19. package/styles/datepicker/material3-dark.css +3 -4
  20. package/styles/datepicker/material3.css +3 -4
  21. package/styles/daterangepicker/_layout.scss +3 -0
  22. package/styles/daterangepicker/material-dark.css +3 -0
  23. package/styles/daterangepicker/material.css +3 -0
  24. package/styles/daterangepicker/material3-dark.css +3 -15
  25. package/styles/daterangepicker/material3.css +3 -15
  26. package/styles/datetimepicker/_layout.scss +6 -0
  27. package/styles/datetimepicker/material-dark.css +4 -0
  28. package/styles/datetimepicker/material.css +4 -0
  29. package/styles/datetimepicker/material3-dark.css +4 -2
  30. package/styles/datetimepicker/material3.css +4 -2
  31. package/styles/material-dark-lite.css +14 -0
  32. package/styles/material-dark.css +14 -0
  33. package/styles/material-lite.css +14 -0
  34. package/styles/material.css +14 -0
  35. package/styles/material3-dark-lite.css +14 -14
  36. package/styles/material3-dark.css +14 -24
  37. package/styles/material3-lite.css +14 -14
  38. package/styles/material3.css +14 -24
  39. package/styles/timepicker/_layout.scss +6 -0
  40. package/styles/timepicker/material-dark.css +4 -0
  41. package/styles/timepicker/material.css +4 -0
  42. package/styles/timepicker/material3-dark.css +4 -3
  43. package/styles/timepicker/material3.css +4 -3
@@ -5161,9 +5161,12 @@ let DatePicker = class DatePicker extends Calendar {
5161
5161
  width += icons[index].offsetWidth;
5162
5162
  }
5163
5163
  if (label) {
5164
- const labelWidth = (this.element.parentElement.offsetWidth) - width;
5165
- if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
5166
- label.style.width = `${labelWidth}px`;
5164
+ const isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
5165
+ if (isMaterial === '') {
5166
+ const labelWidth = (this.element.parentElement.offsetWidth) - width;
5167
+ if (labelWidth) {
5168
+ label.style.width = `${labelWidth}px`;
5169
+ }
5167
5170
  }
5168
5171
  }
5169
5172
  }
@@ -5335,7 +5338,7 @@ let DatePicker = class DatePicker extends Calendar {
5335
5338
  this.setAllowEdit();
5336
5339
  break;
5337
5340
  case 'placeholder':
5338
- Input.setPlaceholder(this.placeholder, this.inputElement);
5341
+ Input.setPlaceholder(this.placeholder, this.inputElement, this.getModuleName());
5339
5342
  break;
5340
5343
  case 'readonly':
5341
5344
  Input.setReadonly(this.readonly, this.inputElement);
@@ -7113,7 +7116,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
7113
7116
  const isDisabledCell = (!ele.classList.contains(DISABLED$2) || ele.classList.contains(DATEDISABLED));
7114
7117
  if (!ele.classList.contains(WEEKNUMBER$2) && isDisabledCell) {
7115
7118
  const eleDate = this.getIdValue(null, ele);
7116
- const startDateValue = this.currentView() === 'Month' ? new Date(+this.startValue) : this.getStartEndDate(new Date(+this.startValue), false);
7119
+ const startDateValue = this.currentView() === 'Month' || currentDate != null ? new Date(+this.startValue) : this.getStartEndDate(new Date(+this.startValue), false);
7117
7120
  const eleDateValue = new Date(+eleDate);
7118
7121
  if (eleDateValue.setHours(0, 0, 0, 0) >= startDateValue.setHours(0, 0, 0, 0) && +eleDate <= +currentDate) {
7119
7122
  addClass([ele], RANGEHOVER);
@@ -9618,9 +9621,12 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
9618
9621
  width += icons[index].offsetWidth;
9619
9622
  }
9620
9623
  if (label) {
9621
- const labelWidth = (this.element.parentElement.offsetWidth) - width;
9622
- if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
9623
- label.style.width = `${labelWidth}px`;
9624
+ const isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
9625
+ if (isMaterial === '') {
9626
+ const labelWidth = (this.element.parentElement.offsetWidth) - width;
9627
+ if (labelWidth) {
9628
+ label.style.width = `${labelWidth}px`;
9629
+ }
9624
9630
  }
9625
9631
  }
9626
9632
  }
@@ -9974,7 +9980,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
9974
9980
  this.changeTrigger();
9975
9981
  break;
9976
9982
  case 'placeholder':
9977
- Input.setPlaceholder(newProp.placeholder, this.inputElement);
9983
+ Input.setPlaceholder(newProp.placeholder, this.inputElement, this.getModuleName());
9978
9984
  this.setProperties({ placeholder: newProp.placeholder }, true);
9979
9985
  break;
9980
9986
  case 'readonly':
@@ -12179,6 +12185,16 @@ let TimePicker = class TimePicker extends Component {
12179
12185
  if (this.enableMask && this.value) {
12180
12186
  this.createMask();
12181
12187
  }
12188
+ if ((this.globalize.culture === 'ar') && !isNullOrUndefined(date)) {
12189
+ const formatOptions = { format: this.cldrTimeFormat(), type: 'time' };
12190
+ const value = this.globalize.formatDate(date, formatOptions);
12191
+ this.updateInputValue(value);
12192
+ if (this.enableMask) {
12193
+ this.notify('setMaskSelection', {
12194
+ module: 'MaskedDateTime'
12195
+ });
12196
+ }
12197
+ }
12182
12198
  }
12183
12199
  if (!this.strictMode && isNullOrUndefined(this.value) && this.invalidValueString) {
12184
12200
  this.checkErrorState(this.invalidValueString);
@@ -12660,9 +12676,12 @@ let TimePicker = class TimePicker extends Component {
12660
12676
  width += icons[index].offsetWidth;
12661
12677
  }
12662
12678
  if (label) {
12663
- const labelWidth = (this.element.parentElement.offsetWidth) - width;
12664
- if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
12665
- label.style.width = `${labelWidth}px`;
12679
+ const isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
12680
+ if (isMaterial === '') {
12681
+ const labelWidth = (this.element.parentElement.offsetWidth) - width;
12682
+ if (labelWidth) {
12683
+ label.style.width = `${labelWidth}px`;
12684
+ }
12666
12685
  }
12667
12686
  }
12668
12687
  }
@@ -13852,6 +13871,12 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
13852
13871
  this.setProperties({ value: new Date(this.timeCollections[this.activeIndex]) }, true);
13853
13872
  if (this.enableMask) {
13854
13873
  this.createMask();
13874
+ if (this.globalize.culture === 'ar') {
13875
+ Input.setValue(tempVal, this.inputElement, this.floatLabelType, this.showClearButton);
13876
+ this.notify('setMaskSelection', {
13877
+ module: 'MaskedDateTime'
13878
+ });
13879
+ }
13855
13880
  }
13856
13881
  }
13857
13882
  this.updateIconState();
@@ -14553,7 +14578,7 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
14553
14578
  }
14554
14579
  break;
14555
14580
  case 'placeholder':
14556
- Input.setPlaceholder(newProp.placeholder, this.inputElement);
14581
+ Input.setPlaceholder(newProp.placeholder, this.inputElement, this.getModuleName());
14557
14582
  break;
14558
14583
  case 'enabled':
14559
14584
  Input.setEnabled(this.enabled, this.inputElement);
@@ -14631,9 +14656,12 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
14631
14656
  width += icons[index].offsetWidth;
14632
14657
  }
14633
14658
  if (label) {
14634
- const labelWidth = (this.element.parentElement.offsetWidth) - width;
14635
- if (labelWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
14636
- label.style.width = `${labelWidth}px`;
14659
+ const isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
14660
+ if (isMaterial === '') {
14661
+ const labelWidth = (this.element.parentElement.offsetWidth) - width;
14662
+ if (labelWidth) {
14663
+ label.style.width = `${labelWidth}px`;
14664
+ }
14637
14665
  }
14638
14666
  }
14639
14667
  }