@syncfusion/ej2-calendars 20.2.46 → 20.2.50
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 +6 -0
- 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 +76 -7
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +76 -7
- 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 +8 -8
- package/src/calendar/calendar.d.ts +3 -2
- package/src/calendar/calendar.js +33 -7
- package/src/datepicker/datepicker.js +11 -0
- package/src/daterangepicker/daterangepicker.js +11 -0
- package/src/datetimepicker/datetimepicker.js +11 -0
- package/src/timepicker/timepicker.js +10 -0
- package/styles/bootstrap-dark.css +190 -0
- package/styles/bootstrap.css +190 -0
- package/styles/bootstrap4.css +190 -0
- package/styles/bootstrap5-dark.css +190 -0
- package/styles/bootstrap5.css +190 -0
- package/styles/datepicker/_layout.scss +123 -0
- package/styles/datepicker/bootstrap-dark.css +79 -0
- package/styles/datepicker/bootstrap.css +79 -0
- package/styles/datepicker/bootstrap4.css +79 -0
- package/styles/datepicker/bootstrap5-dark.css +79 -0
- package/styles/datepicker/bootstrap5.css +79 -0
- package/styles/datepicker/fabric-dark.css +79 -0
- package/styles/datepicker/fabric.css +79 -0
- package/styles/datepicker/fluent-dark.css +79 -0
- package/styles/datepicker/fluent.css +79 -0
- package/styles/datepicker/highcontrast-light.css +79 -0
- package/styles/datepicker/highcontrast.css +79 -0
- package/styles/datepicker/material-dark.css +79 -0
- package/styles/datepicker/material.css +79 -0
- package/styles/datepicker/tailwind-dark.css +79 -0
- package/styles/datepicker/tailwind.css +79 -0
- package/styles/daterangepicker/_layout.scss +151 -0
- package/styles/daterangepicker/bootstrap-dark.css +111 -0
- package/styles/daterangepicker/bootstrap.css +111 -0
- package/styles/daterangepicker/bootstrap4.css +111 -0
- package/styles/daterangepicker/bootstrap5-dark.css +111 -0
- package/styles/daterangepicker/bootstrap5.css +111 -0
- package/styles/daterangepicker/fabric-dark.css +111 -0
- package/styles/daterangepicker/fabric.css +111 -0
- package/styles/daterangepicker/fluent-dark.css +111 -0
- package/styles/daterangepicker/fluent.css +111 -0
- package/styles/daterangepicker/highcontrast-light.css +111 -0
- package/styles/daterangepicker/highcontrast.css +111 -0
- package/styles/daterangepicker/material-dark.css +111 -0
- package/styles/daterangepicker/material.css +111 -0
- package/styles/daterangepicker/tailwind-dark.css +111 -0
- package/styles/daterangepicker/tailwind.css +111 -0
- package/styles/fabric-dark.css +190 -0
- package/styles/fabric.css +190 -0
- package/styles/fluent-dark.css +190 -0
- package/styles/fluent.css +190 -0
- package/styles/highcontrast-light.css +190 -0
- package/styles/highcontrast.css +190 -0
- package/styles/material-dark.css +190 -0
- package/styles/material.css +190 -0
- package/styles/tailwind-dark.css +190 -0
- package/styles/tailwind.css +190 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.50
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@20.2.46",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-P79N0+ovKdSyWvqQt39rUzhOf2MuGpS5CyFHNn4+ui8K5QY1ld38MdQKBfAMqlq+esyHrgnq/smaw0ef7Fde9g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"/@syncfusion/ej2-schedule",
|
|
33
33
|
"/@syncfusion/ej2-vue-calendars"
|
|
34
34
|
],
|
|
35
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-20.2.
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-20.2.46.tgz",
|
|
36
|
+
"_shasum": "019e69e0c54925b505f9b888952d4afc033a7567",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
47
|
+
"@syncfusion/ej2-base": "~20.2.48",
|
|
48
48
|
"@syncfusion/ej2-buttons": "~20.2.46",
|
|
49
|
-
"@syncfusion/ej2-inputs": "~20.2.
|
|
49
|
+
"@syncfusion/ej2-inputs": "~20.2.48",
|
|
50
50
|
"@syncfusion/ej2-lists": "~20.2.46",
|
|
51
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
51
|
+
"@syncfusion/ej2-popups": "~20.2.49"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "20.2.
|
|
84
|
+
"version": "20.2.50",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -62,6 +62,7 @@ export declare class CalendarBase extends Component<HTMLElement> implements INot
|
|
|
62
62
|
protected todayButtonEvent: MouseEvent | KeyboardEvent;
|
|
63
63
|
protected preventChange: boolean;
|
|
64
64
|
protected isAngular: boolean;
|
|
65
|
+
protected previousDates: boolean;
|
|
65
66
|
/**
|
|
66
67
|
* Gets or sets the minimum date that can be selected in the Calendar.
|
|
67
68
|
*
|
|
@@ -387,7 +388,7 @@ export declare class CalendarBase extends Component<HTMLElement> implements INot
|
|
|
387
388
|
protected preRender(value?: Date): void;
|
|
388
389
|
protected minMaxDate(localDate: Date): Date;
|
|
389
390
|
protected renderMonths(e?: Event, value?: Date, isCustomDate?: boolean): void;
|
|
390
|
-
protected renderDays(currentDate: Date, value?: Date, multiSelection?: boolean, values?: Date[], isTodayDate?: boolean): HTMLElement[];
|
|
391
|
+
protected renderDays(currentDate: Date, value?: Date, multiSelection?: boolean, values?: Date[], isTodayDate?: boolean, e?: Event): HTMLElement[];
|
|
391
392
|
protected updateFocus(otherMonth: boolean, disabled: boolean, localDate: Date, tableElement: HTMLElement, currentDate: Date): void;
|
|
392
393
|
protected renderYears(e?: Event, value?: Date): void;
|
|
393
394
|
protected renderDecades(e?: Event, value?: Date): void;
|
|
@@ -587,7 +588,7 @@ export declare class Calendar extends CalendarBase {
|
|
|
587
588
|
createContent(): void;
|
|
588
589
|
protected minMaxDate(localDate: Date): Date;
|
|
589
590
|
protected renderMonths(e?: Event, value?: Date, isCustomDate?: boolean): void;
|
|
590
|
-
protected renderDays(currentDate: Date, value?: Date, isMultiSelect?: boolean, values?: Date[], isCustomDate?: boolean): HTMLElement[];
|
|
591
|
+
protected renderDays(currentDate: Date, value?: Date, isMultiSelect?: boolean, values?: Date[], isCustomDate?: boolean, e?: Event): HTMLElement[];
|
|
591
592
|
protected renderYears(e?: Event): void;
|
|
592
593
|
protected renderDecades(e?: Event): void;
|
|
593
594
|
protected renderTemplate(elements: HTMLElement[], count: number, classNm: string, e?: Event): void;
|
package/src/calendar/calendar.js
CHANGED
|
@@ -84,6 +84,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
84
84
|
_this.isTodayClicked = false;
|
|
85
85
|
_this.preventChange = false;
|
|
86
86
|
_this.isAngular = false;
|
|
87
|
+
_this.previousDates = false;
|
|
87
88
|
return _this;
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
@@ -652,7 +653,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
652
653
|
var numCells = this.weekNumber ? 8 : 7;
|
|
653
654
|
var tdEles;
|
|
654
655
|
if (this.calendarMode === 'Gregorian') {
|
|
655
|
-
tdEles = this.renderDays(this.currentDate, value, null, null, isCustomDate);
|
|
656
|
+
tdEles = this.renderDays(this.currentDate, value, null, null, isCustomDate, e);
|
|
656
657
|
}
|
|
657
658
|
else {
|
|
658
659
|
tdEles = this.islamicModule.islamicRenderDays(this.currentDate, value);
|
|
@@ -665,7 +666,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
665
666
|
this.islamicModule.islamicRenderTemplate(tdEles, numCells, MONTH, e, value);
|
|
666
667
|
}
|
|
667
668
|
};
|
|
668
|
-
CalendarBase.prototype.renderDays = function (currentDate, value, multiSelection, values, isTodayDate) {
|
|
669
|
+
CalendarBase.prototype.renderDays = function (currentDate, value, multiSelection, values, isTodayDate, e) {
|
|
669
670
|
var tdEles = [];
|
|
670
671
|
var cellsCount = 42;
|
|
671
672
|
var todayDate = isTodayDate ? new Date(+currentDate) : this.getDate(new Date(), this.timezone);
|
|
@@ -756,6 +757,10 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
756
757
|
// if (args.isDisabled && +this.value === +args.date) {
|
|
757
758
|
// this.setProperties({ value: null }, true);
|
|
758
759
|
// }
|
|
760
|
+
var currentTarget = void 0;
|
|
761
|
+
if (!isNullOrUndefined(e) && e.type == 'click') {
|
|
762
|
+
currentTarget = e.currentTarget;
|
|
763
|
+
}
|
|
759
764
|
if (multiSelection && !isNullOrUndefined(values) && !disabledCls) {
|
|
760
765
|
for (var tempValue = 0; tempValue < values.length; tempValue++) {
|
|
761
766
|
var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
|
|
@@ -766,6 +771,22 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
766
771
|
|| (this.getDateVal(localDate, value))) {
|
|
767
772
|
addClass([tdEle], SELECTED);
|
|
768
773
|
}
|
|
774
|
+
if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && currentTarget.classList.contains(SELECTED)) {
|
|
775
|
+
removeClass([tdEle], SELECTED);
|
|
776
|
+
this.previousDates = false;
|
|
777
|
+
var copyValues = this.copyValues(values);
|
|
778
|
+
for (var i = 0; i < copyValues.length; i++) {
|
|
779
|
+
var type_1 = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
|
|
780
|
+
var formatOptions_1 = { format: null, type: 'date', skeleton: 'short', calendar: type_1 };
|
|
781
|
+
var localDateString_1 = this.globalize.formatDate(date, formatOptions_1);
|
|
782
|
+
var tempDateString_1 = this.globalize.formatDate(copyValues[i], formatOptions_1);
|
|
783
|
+
if (localDateString_1 === tempDateString_1) {
|
|
784
|
+
var index = copyValues.indexOf(copyValues[i]);
|
|
785
|
+
copyValues.splice(index, 1);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
this.setProperties({ values: copyValues }, true);
|
|
789
|
+
}
|
|
769
790
|
else {
|
|
770
791
|
this.updateFocus(otherMnthBool, disabledCls, localDate, tdEle, currentDate);
|
|
771
792
|
}
|
|
@@ -2209,8 +2230,8 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
2209
2230
|
Calendar.prototype.renderMonths = function (e, value, isCustomDate) {
|
|
2210
2231
|
_super.prototype.renderMonths.call(this, e, this.value, isCustomDate);
|
|
2211
2232
|
};
|
|
2212
|
-
Calendar.prototype.renderDays = function (currentDate, value, isMultiSelect, values, isCustomDate) {
|
|
2213
|
-
var tempDays = _super.prototype.renderDays.call(this, currentDate, this.value, this.isMultiSelection, this.values, isCustomDate);
|
|
2233
|
+
Calendar.prototype.renderDays = function (currentDate, value, isMultiSelect, values, isCustomDate, e) {
|
|
2234
|
+
var tempDays = _super.prototype.renderDays.call(this, currentDate, this.value, this.isMultiSelection, this.values, isCustomDate, e);
|
|
2214
2235
|
if (this.isMultiSelection) {
|
|
2215
2236
|
_super.prototype.validateValues.call(this, this.isMultiSelection, this.values);
|
|
2216
2237
|
}
|
|
@@ -2248,9 +2269,14 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
2248
2269
|
if (eve.classList.contains(OTHERMONTH)) {
|
|
2249
2270
|
if (this.isMultiSelection) {
|
|
2250
2271
|
var copyValues = this.copyValues(this.values);
|
|
2251
|
-
copyValues.
|
|
2252
|
-
|
|
2253
|
-
|
|
2272
|
+
if (copyValues.toString().indexOf(this.getIdValue(e, null).toString()) === -1) {
|
|
2273
|
+
copyValues.push(this.getIdValue(e, null));
|
|
2274
|
+
this.setProperties({ values: copyValues }, true);
|
|
2275
|
+
this.setProperties({ value: this.values[this.values.length - 1] }, true);
|
|
2276
|
+
}
|
|
2277
|
+
else {
|
|
2278
|
+
this.previousDates = true;
|
|
2279
|
+
}
|
|
2254
2280
|
}
|
|
2255
2281
|
else {
|
|
2256
2282
|
this.setProperties({ value: this.getIdValue(e, null) }, true);
|
|
@@ -98,6 +98,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
98
98
|
DatePicker.prototype.render = function () {
|
|
99
99
|
this.initialize();
|
|
100
100
|
this.bindEvents();
|
|
101
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
102
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
103
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
104
|
+
}
|
|
101
105
|
this.renderComplete();
|
|
102
106
|
this.setTimeZone(this.serverTimezoneOffset);
|
|
103
107
|
};
|
|
@@ -1822,11 +1826,18 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1822
1826
|
break;
|
|
1823
1827
|
case 'width':
|
|
1824
1828
|
this.setWidth(newProp.width);
|
|
1829
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
1830
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
1831
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
1832
|
+
}
|
|
1825
1833
|
break;
|
|
1826
1834
|
case 'floatLabelType':
|
|
1827
1835
|
this.floatLabelType = newProp.floatLabelType;
|
|
1828
1836
|
Input.removeFloating(this.inputWrapper);
|
|
1829
1837
|
Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
|
|
1838
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
1839
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
1840
|
+
}
|
|
1830
1841
|
break;
|
|
1831
1842
|
case 'enableMask':
|
|
1832
1843
|
if (this.enableMask) {
|
|
@@ -165,6 +165,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
165
165
|
if (this.element.hasAttribute('data-val')) {
|
|
166
166
|
this.element.setAttribute('data-val', 'false');
|
|
167
167
|
}
|
|
168
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
169
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
170
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
171
|
+
}
|
|
168
172
|
this.renderComplete();
|
|
169
173
|
};
|
|
170
174
|
/**
|
|
@@ -4103,6 +4107,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4103
4107
|
switch (prop) {
|
|
4104
4108
|
case 'width':
|
|
4105
4109
|
this.setEleWidth(this.width);
|
|
4110
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
4111
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
4112
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
4113
|
+
}
|
|
4106
4114
|
break;
|
|
4107
4115
|
case 'separator':
|
|
4108
4116
|
this.previousEleValue = this.inputElement.value;
|
|
@@ -4294,6 +4302,9 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4294
4302
|
this.floatLabelType = newProp.floatLabelType;
|
|
4295
4303
|
Input.removeFloating(this.inputWrapper);
|
|
4296
4304
|
Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
|
|
4305
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
4306
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
4307
|
+
}
|
|
4297
4308
|
break;
|
|
4298
4309
|
case 'start':
|
|
4299
4310
|
this.setProperties({ start: newProp.start }, true);
|
|
@@ -219,6 +219,10 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
219
219
|
this.inputElement.tabIndex = -1;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
223
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
224
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-date-time-icon');
|
|
225
|
+
}
|
|
222
226
|
this.renderComplete();
|
|
223
227
|
};
|
|
224
228
|
DateTimePicker.prototype.setValue = function () {
|
|
@@ -1409,6 +1413,10 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1409
1413
|
break;
|
|
1410
1414
|
case 'width':
|
|
1411
1415
|
this.setWidth(newProp.width);
|
|
1416
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
1417
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
1418
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-date-time-icon');
|
|
1419
|
+
}
|
|
1412
1420
|
break;
|
|
1413
1421
|
case 'readonly':
|
|
1414
1422
|
Input.setReadonly(this.readonly, this.inputElement);
|
|
@@ -1417,6 +1425,9 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1417
1425
|
this.floatLabelType = newProp.floatLabelType;
|
|
1418
1426
|
Input.removeFloating(this.inputWrapper);
|
|
1419
1427
|
Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
|
|
1428
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
1429
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-date-time-icon');
|
|
1430
|
+
}
|
|
1420
1431
|
break;
|
|
1421
1432
|
case 'scrollTo':
|
|
1422
1433
|
if (this.checkDateValue(new Date(this.checkValue(newProp.scrollTo)))) {
|
|
@@ -197,6 +197,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
197
197
|
this.anchor = this.inputElement;
|
|
198
198
|
this.inputElement.setAttribute('value', this.inputElement.value);
|
|
199
199
|
this.inputEleValue = this.getDateObject(this.inputElement.value);
|
|
200
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
201
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
202
|
+
}
|
|
200
203
|
this.renderComplete();
|
|
201
204
|
};
|
|
202
205
|
TimePicker.prototype.setTimeAllowEdit = function () {
|
|
@@ -2308,6 +2311,10 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2308
2311
|
case 'width':
|
|
2309
2312
|
setStyleAttribute(this.inputWrapper.container, { 'width': this.setWidth(newProp.width) });
|
|
2310
2313
|
this.containerStyle = this.inputWrapper.container.getBoundingClientRect();
|
|
2314
|
+
Input.calculateWidth(this.inputElement, this.inputWrapper.container);
|
|
2315
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
2316
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
2317
|
+
}
|
|
2311
2318
|
break;
|
|
2312
2319
|
case 'format':
|
|
2313
2320
|
this.setProperties({ format: newProp.format }, true);
|
|
@@ -2358,6 +2365,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2358
2365
|
this.floatLabelType = newProp.floatLabelType;
|
|
2359
2366
|
Input.removeFloating(this.inputWrapper);
|
|
2360
2367
|
Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
|
|
2368
|
+
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
|
|
2369
|
+
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
2370
|
+
}
|
|
2361
2371
|
break;
|
|
2362
2372
|
case 'strictMode':
|
|
2363
2373
|
this.invalidValueString = null;
|
|
@@ -1144,6 +1144,10 @@ ejs-calendar {
|
|
|
1144
1144
|
top: 0 !important;
|
|
1145
1145
|
left: 0 !important;
|
|
1146
1146
|
}
|
|
1147
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-wrapper.e-popup-expand.e-lib.e-popup.e-control.e-popup-open {
|
|
1148
|
+
min-width: 100%;
|
|
1149
|
+
min-height: 100%;
|
|
1150
|
+
}
|
|
1147
1151
|
|
|
1148
1152
|
.e-content-placeholder.e-datepicker.e-placeholder-datepicker {
|
|
1149
1153
|
background-size: 250px 33px;
|
|
@@ -1156,6 +1160,40 @@ ejs-calendar {
|
|
|
1156
1160
|
min-height: 40px;
|
|
1157
1161
|
}
|
|
1158
1162
|
|
|
1163
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header {
|
|
1164
|
+
height: 15%;
|
|
1165
|
+
}
|
|
1166
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close {
|
|
1167
|
+
float: right;
|
|
1168
|
+
margin-right: 10px;
|
|
1169
|
+
padding: 5px;
|
|
1170
|
+
}
|
|
1171
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close::before {
|
|
1172
|
+
content: "\e932";
|
|
1173
|
+
font-family: "e-icons";
|
|
1174
|
+
color: rgb(255, 255, 255);
|
|
1175
|
+
}
|
|
1176
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar {
|
|
1177
|
+
min-width: 100%;
|
|
1178
|
+
min-height: 100%;
|
|
1179
|
+
height: 100%;
|
|
1180
|
+
}
|
|
1181
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month {
|
|
1182
|
+
height: 10%;
|
|
1183
|
+
}
|
|
1184
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container {
|
|
1185
|
+
height: 85%;
|
|
1186
|
+
}
|
|
1187
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-footer-container {
|
|
1188
|
+
height: 10%;
|
|
1189
|
+
}
|
|
1190
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month {
|
|
1191
|
+
height: 80%;
|
|
1192
|
+
}
|
|
1193
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month table {
|
|
1194
|
+
height: 100%;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1159
1197
|
@media screen and (orientation: landscape) and (max-height: 360px) {
|
|
1160
1198
|
.e-datepicker .e-calendar.e-device .e-month table tbody {
|
|
1161
1199
|
display: inline-block;
|
|
@@ -1163,6 +1201,47 @@ ejs-calendar {
|
|
|
1163
1201
|
overflow: auto;
|
|
1164
1202
|
}
|
|
1165
1203
|
}
|
|
1204
|
+
@media screen and (orientation: landscape) {
|
|
1205
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header {
|
|
1206
|
+
float: left;
|
|
1207
|
+
height: 100%;
|
|
1208
|
+
width: 30%;
|
|
1209
|
+
}
|
|
1210
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close {
|
|
1211
|
+
float: left;
|
|
1212
|
+
padding: 5px;
|
|
1213
|
+
}
|
|
1214
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-model-year {
|
|
1215
|
+
font-size: 35px;
|
|
1216
|
+
margin-top: 35%;
|
|
1217
|
+
}
|
|
1218
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-day {
|
|
1219
|
+
display: block;
|
|
1220
|
+
font-size: 40px;
|
|
1221
|
+
margin-top: 10%;
|
|
1222
|
+
}
|
|
1223
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-header.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-footer-container {
|
|
1224
|
+
height: 10%;
|
|
1225
|
+
}
|
|
1226
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month {
|
|
1227
|
+
height: 75%;
|
|
1228
|
+
}
|
|
1229
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar {
|
|
1230
|
+
display: -ms-flexbox;
|
|
1231
|
+
display: flex;
|
|
1232
|
+
}
|
|
1233
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container {
|
|
1234
|
+
float: right;
|
|
1235
|
+
height: 90%;
|
|
1236
|
+
width: 70%;
|
|
1237
|
+
}
|
|
1238
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar.e-device .e-month table tbody {
|
|
1239
|
+
display: table-row-group;
|
|
1240
|
+
}
|
|
1241
|
+
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year table {
|
|
1242
|
+
height: 100%;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1166
1245
|
.e-datepicker.e-popup-wrapper,
|
|
1167
1246
|
.e-bigger.e-small .e-datepicker.e-popup-wrapper,
|
|
1168
1247
|
.e-bigger .e-datepicker.e-popup-wrapper,
|
|
@@ -1813,6 +1892,12 @@ ejs-calendar {
|
|
|
1813
1892
|
top: 0 !important;
|
|
1814
1893
|
left: 0 !important;
|
|
1815
1894
|
}
|
|
1895
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand.e-control.e-lib.e-device.e-popup-open {
|
|
1896
|
+
min-height: 100%;
|
|
1897
|
+
min-width: 100%;
|
|
1898
|
+
height: 100%;
|
|
1899
|
+
width: 100%;
|
|
1900
|
+
}
|
|
1816
1901
|
|
|
1817
1902
|
.e-content-placeholder.e-daterangepicker.e-placeholder-daterangepicker {
|
|
1818
1903
|
background-size: 250px 33px;
|
|
@@ -1825,6 +1910,111 @@ ejs-calendar {
|
|
|
1825
1910
|
min-height: 40px;
|
|
1826
1911
|
}
|
|
1827
1912
|
|
|
1913
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar,
|
|
1914
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container {
|
|
1915
|
+
min-height: 100%;
|
|
1916
|
+
min-width: 100%;
|
|
1917
|
+
height: 100%;
|
|
1918
|
+
width: 100%;
|
|
1919
|
+
}
|
|
1920
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar-holder {
|
|
1921
|
+
height: 100%;
|
|
1922
|
+
}
|
|
1923
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar-container {
|
|
1924
|
+
height: 78%;
|
|
1925
|
+
}
|
|
1926
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-content.e-month {
|
|
1927
|
+
height: 90%;
|
|
1928
|
+
}
|
|
1929
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-header,
|
|
1930
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-range-header {
|
|
1931
|
+
height: 10%;
|
|
1932
|
+
}
|
|
1933
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-separator {
|
|
1934
|
+
margin: 0;
|
|
1935
|
+
}
|
|
1936
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-content.e-month {
|
|
1937
|
+
height: 90%;
|
|
1938
|
+
}
|
|
1939
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-content.e-month table {
|
|
1940
|
+
height: 100%;
|
|
1941
|
+
border-spacing: 0px 30px;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
@media screen and (orientation: landscape) {
|
|
1945
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-range-header {
|
|
1946
|
+
float: left;
|
|
1947
|
+
height: 100%;
|
|
1948
|
+
border-right: 1.5px;
|
|
1949
|
+
border-color: black;
|
|
1950
|
+
width: 40%;
|
|
1951
|
+
margin: 0;
|
|
1952
|
+
display: block;
|
|
1953
|
+
background-color: #3f51b5;
|
|
1954
|
+
}
|
|
1955
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar-holder {
|
|
1956
|
+
height: 100%;
|
|
1957
|
+
width: 100%;
|
|
1958
|
+
}
|
|
1959
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-start-end {
|
|
1960
|
+
display: block;
|
|
1961
|
+
width: 100%;
|
|
1962
|
+
text-align: -webkit-center;
|
|
1963
|
+
}
|
|
1964
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-range-header .e-start-end .e-start-btn {
|
|
1965
|
+
display: block;
|
|
1966
|
+
width: 100%;
|
|
1967
|
+
text-align: -webkit-center;
|
|
1968
|
+
margin-top: 20%;
|
|
1969
|
+
font-size: 20px;
|
|
1970
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
1971
|
+
}
|
|
1972
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-range-header .e-day-span {
|
|
1973
|
+
font-size: 20px;
|
|
1974
|
+
margin-top: 60%;
|
|
1975
|
+
color: #fff;
|
|
1976
|
+
}
|
|
1977
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-range-header .e-start-end .e-end-btn {
|
|
1978
|
+
width: 100%;
|
|
1979
|
+
text-align: -webkit-center;
|
|
1980
|
+
margin-top: 20%;
|
|
1981
|
+
font-size: 20px;
|
|
1982
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
1983
|
+
}
|
|
1984
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar-container {
|
|
1985
|
+
height: 82%;
|
|
1986
|
+
}
|
|
1987
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-content.e-month {
|
|
1988
|
+
height: 80%;
|
|
1989
|
+
}
|
|
1990
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-content.e-month table {
|
|
1991
|
+
border-spacing: unset;
|
|
1992
|
+
}
|
|
1993
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-header {
|
|
1994
|
+
height: 20%;
|
|
1995
|
+
}
|
|
1996
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar-holder {
|
|
1997
|
+
width: 100%;
|
|
1998
|
+
}
|
|
1999
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container {
|
|
2000
|
+
display: -ms-flexbox;
|
|
2001
|
+
display: flex;
|
|
2002
|
+
}
|
|
2003
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar .e-end-date.e-selected.e-range-hover {
|
|
2004
|
+
border-radius: 0 40% 40% 0;
|
|
2005
|
+
}
|
|
2006
|
+
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-calendar .e-end-date.e-selected.e-range-hover {
|
|
2007
|
+
border-radius: 0 40% 40% 0;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
.e-outline.e-float-input.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
|
|
2011
|
+
width: calc(100% - 80px);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.e-outline.e-float-input.e-static-clear.e-control-wrapper label.e-float-text.e-label-bottom span.e-float-text-content.e-float-text-overflow.e-date-time-icon {
|
|
2015
|
+
width: calc(100% - 110px);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
1828
2018
|
/*! daterangepicker theme */
|
|
1829
2019
|
.e-date-range-wrapper .e-input-group-icon.e-icons.e-active {
|
|
1830
2020
|
color: #f0f0f0;
|