@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.
- 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 +44 -16
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +44 -16
- 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 +7 -4
- package/src/daterangepicker/daterangepicker.js +8 -5
- package/src/datetimepicker/datetimepicker.js +13 -4
- package/src/timepicker/timepicker.js +16 -3
- package/styles/datepicker/_layout.scss +3 -0
- package/styles/datepicker/material-dark.css +3 -0
- package/styles/datepicker/material.css +3 -0
- package/styles/datepicker/material3-dark.css +3 -4
- package/styles/datepicker/material3.css +3 -4
- package/styles/daterangepicker/_layout.scss +3 -0
- package/styles/daterangepicker/material-dark.css +3 -0
- package/styles/daterangepicker/material.css +3 -0
- package/styles/daterangepicker/material3-dark.css +3 -15
- package/styles/daterangepicker/material3.css +3 -15
- package/styles/datetimepicker/_layout.scss +6 -0
- package/styles/datetimepicker/material-dark.css +4 -0
- package/styles/datetimepicker/material.css +4 -0
- package/styles/datetimepicker/material3-dark.css +4 -2
- package/styles/datetimepicker/material3.css +4 -2
- package/styles/material-dark-lite.css +14 -0
- package/styles/material-dark.css +14 -0
- package/styles/material-lite.css +14 -0
- package/styles/material.css +14 -0
- package/styles/material3-dark-lite.css +14 -14
- package/styles/material3-dark.css +14 -24
- package/styles/material3-lite.css +14 -14
- package/styles/material3.css +14 -24
- package/styles/timepicker/_layout.scss +6 -0
- package/styles/timepicker/material-dark.css +4 -0
- package/styles/timepicker/material.css +4 -0
- package/styles/timepicker/material3-dark.css +4 -3
- package/styles/timepicker/material3.css +4 -3
|
@@ -5212,9 +5212,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5212
5212
|
width += icons[index].offsetWidth;
|
|
5213
5213
|
}
|
|
5214
5214
|
if (label) {
|
|
5215
|
-
var
|
|
5216
|
-
if (
|
|
5217
|
-
|
|
5215
|
+
var isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
|
|
5216
|
+
if (isMaterial === '') {
|
|
5217
|
+
var labelWidth = (this.element.parentElement.offsetWidth) - width;
|
|
5218
|
+
if (labelWidth) {
|
|
5219
|
+
label.style.width = labelWidth + "px";
|
|
5220
|
+
}
|
|
5218
5221
|
}
|
|
5219
5222
|
}
|
|
5220
5223
|
};
|
|
@@ -5389,7 +5392,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5389
5392
|
this.setAllowEdit();
|
|
5390
5393
|
break;
|
|
5391
5394
|
case 'placeholder':
|
|
5392
|
-
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
5395
|
+
Input.setPlaceholder(this.placeholder, this.inputElement, this.getModuleName());
|
|
5393
5396
|
break;
|
|
5394
5397
|
case 'readonly':
|
|
5395
5398
|
Input.setReadonly(this.readonly, this.inputElement);
|
|
@@ -7199,7 +7202,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7199
7202
|
var isDisabledCell = (!ele.classList.contains(DISABLED$2) || ele.classList.contains(DATEDISABLED));
|
|
7200
7203
|
if (!ele.classList.contains(WEEKNUMBER$2) && isDisabledCell) {
|
|
7201
7204
|
var eleDate = this.getIdValue(null, ele);
|
|
7202
|
-
var startDateValue = this.currentView() === 'Month' ? new Date(+this.startValue) : this.getStartEndDate(new Date(+this.startValue), false);
|
|
7205
|
+
var startDateValue = this.currentView() === 'Month' || currentDate != null ? new Date(+this.startValue) : this.getStartEndDate(new Date(+this.startValue), false);
|
|
7203
7206
|
var eleDateValue = new Date(+eleDate);
|
|
7204
7207
|
if (eleDateValue.setHours(0, 0, 0, 0) >= startDateValue.setHours(0, 0, 0, 0) && +eleDate <= +currentDate) {
|
|
7205
7208
|
addClass([ele], RANGEHOVER);
|
|
@@ -9718,9 +9721,12 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9718
9721
|
width += icons[index].offsetWidth;
|
|
9719
9722
|
}
|
|
9720
9723
|
if (label) {
|
|
9721
|
-
var
|
|
9722
|
-
if (
|
|
9723
|
-
|
|
9724
|
+
var isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
|
|
9725
|
+
if (isMaterial === '') {
|
|
9726
|
+
var labelWidth = (this.element.parentElement.offsetWidth) - width;
|
|
9727
|
+
if (labelWidth) {
|
|
9728
|
+
label.style.width = labelWidth + "px";
|
|
9729
|
+
}
|
|
9724
9730
|
}
|
|
9725
9731
|
}
|
|
9726
9732
|
};
|
|
@@ -10077,7 +10083,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
10077
10083
|
this.changeTrigger();
|
|
10078
10084
|
break;
|
|
10079
10085
|
case 'placeholder':
|
|
10080
|
-
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
10086
|
+
Input.setPlaceholder(newProp.placeholder, this.inputElement, this.getModuleName());
|
|
10081
10087
|
this.setProperties({ placeholder: newProp.placeholder }, true);
|
|
10082
10088
|
break;
|
|
10083
10089
|
case 'readonly':
|
|
@@ -12308,6 +12314,16 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12308
12314
|
if (this.enableMask && this.value) {
|
|
12309
12315
|
this.createMask();
|
|
12310
12316
|
}
|
|
12317
|
+
if ((this.globalize.culture === 'ar') && !isNullOrUndefined(date)) {
|
|
12318
|
+
var formatOptions = { format: this.cldrTimeFormat(), type: 'time' };
|
|
12319
|
+
var value = this.globalize.formatDate(date, formatOptions);
|
|
12320
|
+
this.updateInputValue(value);
|
|
12321
|
+
if (this.enableMask) {
|
|
12322
|
+
this.notify('setMaskSelection', {
|
|
12323
|
+
module: 'MaskedDateTime'
|
|
12324
|
+
});
|
|
12325
|
+
}
|
|
12326
|
+
}
|
|
12311
12327
|
}
|
|
12312
12328
|
if (!this.strictMode && isNullOrUndefined(this.value) && this.invalidValueString) {
|
|
12313
12329
|
this.checkErrorState(this.invalidValueString);
|
|
@@ -12791,9 +12807,12 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12791
12807
|
width += icons[index].offsetWidth;
|
|
12792
12808
|
}
|
|
12793
12809
|
if (label) {
|
|
12794
|
-
var
|
|
12795
|
-
if (
|
|
12796
|
-
|
|
12810
|
+
var isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
|
|
12811
|
+
if (isMaterial === '') {
|
|
12812
|
+
var labelWidth = (this.element.parentElement.offsetWidth) - width;
|
|
12813
|
+
if (labelWidth) {
|
|
12814
|
+
label.style.width = labelWidth + "px";
|
|
12815
|
+
}
|
|
12797
12816
|
}
|
|
12798
12817
|
}
|
|
12799
12818
|
};
|
|
@@ -14003,6 +14022,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
14003
14022
|
this.setProperties({ value: new Date(this.timeCollections[this.activeIndex]) }, true);
|
|
14004
14023
|
if (this.enableMask) {
|
|
14005
14024
|
this.createMask();
|
|
14025
|
+
if (this.globalize.culture === 'ar') {
|
|
14026
|
+
Input.setValue(tempVal, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
14027
|
+
this.notify('setMaskSelection', {
|
|
14028
|
+
module: 'MaskedDateTime'
|
|
14029
|
+
});
|
|
14030
|
+
}
|
|
14006
14031
|
}
|
|
14007
14032
|
}
|
|
14008
14033
|
this.updateIconState();
|
|
@@ -14707,7 +14732,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
14707
14732
|
}
|
|
14708
14733
|
break;
|
|
14709
14734
|
case 'placeholder':
|
|
14710
|
-
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
14735
|
+
Input.setPlaceholder(newProp.placeholder, this.inputElement, this.getModuleName());
|
|
14711
14736
|
break;
|
|
14712
14737
|
case 'enabled':
|
|
14713
14738
|
Input.setEnabled(this.enabled, this.inputElement);
|
|
@@ -14785,9 +14810,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
14785
14810
|
width += icons[index].offsetWidth;
|
|
14786
14811
|
}
|
|
14787
14812
|
if (label) {
|
|
14788
|
-
var
|
|
14789
|
-
if (
|
|
14790
|
-
|
|
14813
|
+
var isMaterial = window.getComputedStyle(this.element).getPropertyValue('--dummy-style').trim();
|
|
14814
|
+
if (isMaterial === '') {
|
|
14815
|
+
var labelWidth = (this.element.parentElement.offsetWidth) - width;
|
|
14816
|
+
if (labelWidth) {
|
|
14817
|
+
label.style.width = labelWidth + "px";
|
|
14818
|
+
}
|
|
14791
14819
|
}
|
|
14792
14820
|
}
|
|
14793
14821
|
};
|