tnx-shared 5.3.203 → 5.3.205
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/bundles/tnx-shared.umd.js +9 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/datetime-picker/datetime-picker.component.d.ts.map +1 -1
- package/esm2015/components/datetime-picker/datetime-picker.component.js +2 -2
- package/esm2015/services/common.service.js +8 -2
- package/fesm2015/tnx-shared.js +8 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -1
- package/services/common.service.d.ts.map +1 -1
|
@@ -3975,8 +3975,9 @@
|
|
|
3975
3975
|
// jQuery(".ql-toolbar").find(":button").attr("tabindex", "-1");
|
|
3976
3976
|
};
|
|
3977
3977
|
/** End disable editor tab */
|
|
3978
|
-
CommonService.prototype.processDateInput = function (inputValue, showTime, timeOnly) {
|
|
3978
|
+
CommonService.prototype.processDateInput = function (inputValue, showTime, timeOnly, view) {
|
|
3979
3979
|
if (timeOnly === void 0) { timeOnly = false; }
|
|
3980
|
+
if (view === void 0) { view = 'date'; }
|
|
3980
3981
|
if (!inputValue) {
|
|
3981
3982
|
return null;
|
|
3982
3983
|
}
|
|
@@ -4084,6 +4085,12 @@
|
|
|
4084
4085
|
return tryParseDate;
|
|
4085
4086
|
}
|
|
4086
4087
|
}
|
|
4088
|
+
else if (view == 'month') {
|
|
4089
|
+
var tryParseDate = this.tryParseExtractDate("" + inputValue, 'MM/YYYY');
|
|
4090
|
+
if (tryParseDate + '' != 'Invalid Date') {
|
|
4091
|
+
return tryParseDate;
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
4087
4094
|
else {
|
|
4088
4095
|
var tryParseDate = this.tryParseExtractDate(inputValue, 'DD/MM/YYYY');
|
|
4089
4096
|
if (tryParseDate + '' != 'Invalid Date') {
|
|
@@ -44696,7 +44703,7 @@
|
|
|
44696
44703
|
DatetimePickerComponent.prototype.autoCorectDateTime = function (input) {
|
|
44697
44704
|
if (input != '') {
|
|
44698
44705
|
var dateValue = this.control.timeOnly ? "01/01/0001 " + input : input;
|
|
44699
|
-
var result = this._commonService.processDateInput(dateValue, this.control.showTime, this.control.timeOnly);
|
|
44706
|
+
var result = this._commonService.processDateInput(dateValue, this.control.showTime, this.control.timeOnly, this.control.view);
|
|
44700
44707
|
if (isValidDate(result)) {
|
|
44701
44708
|
if (this.control.minDate || this.control.maxDate) {
|
|
44702
44709
|
if (this.control.maxDate) {
|