@ldmjs/ui 1.0.47 → 1.0.49
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/index.js +14 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7471,6 +7471,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7471
7471
|
}
|
|
7472
7472
|
onMinDateChanged(newVal) {
|
|
7473
7473
|
if (!newVal) {
|
|
7474
|
+
this.currentMinDate = null;
|
|
7474
7475
|
return;
|
|
7475
7476
|
}
|
|
7476
7477
|
if (!this.date && !this.currentMinDate) {
|
|
@@ -7490,6 +7491,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7490
7491
|
}
|
|
7491
7492
|
onMaxDateChanged(newVal) {
|
|
7492
7493
|
if (!newVal) {
|
|
7494
|
+
this.currentMaxDate = null;
|
|
7493
7495
|
return;
|
|
7494
7496
|
}
|
|
7495
7497
|
if (!this.date && !this.currentMaxDate) {
|
|
@@ -7514,8 +7516,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7514
7516
|
}
|
|
7515
7517
|
}
|
|
7516
7518
|
created() {
|
|
7517
|
-
/* eslint-disable no-console */
|
|
7518
|
-
console.log(this.placeholderTimepicker);
|
|
7519
7519
|
this.dateMaskPromise = new Promise(resolve => {
|
|
7520
7520
|
this.dateMaskPromiseResolve = resolve;
|
|
7521
7521
|
});
|
|
@@ -7838,21 +7838,25 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7838
7838
|
// },
|
|
7839
7839
|
// },
|
|
7840
7840
|
// };
|
|
7841
|
-
this.timeMask = IMask(inputEl, {
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
this.timeMask.
|
|
7841
|
+
// this.timeMask = IMask(inputEl as HTMLElement, {
|
|
7842
|
+
// mask: 'HH:mm',
|
|
7843
|
+
// });
|
|
7844
|
+
// this.timeMask._unbindEvents();
|
|
7845
|
+
// this.timeMask._bindEvents();
|
|
7846
|
+
// this.timeMask.on('complete', () => this.onTimeMaskedValueChanged(this.timeMask.value));
|
|
7845
7847
|
}
|
|
7846
7848
|
}
|
|
7847
7849
|
}
|
|
7848
7850
|
parseDate(value) {
|
|
7849
|
-
if (!value
|
|
7851
|
+
if (!value) {
|
|
7850
7852
|
return null;
|
|
7851
7853
|
}
|
|
7854
|
+
const ru = this.locale.includes('ru');
|
|
7855
|
+
const separator = ru ? '.' : '/';
|
|
7856
|
+
const ddMMyyyy = value.split(separator);
|
|
7857
|
+
let dt;
|
|
7852
7858
|
try {
|
|
7853
|
-
|
|
7854
|
-
let dt;
|
|
7855
|
-
if (this.locale.includes('ru')) {
|
|
7859
|
+
if (ru) {
|
|
7856
7860
|
dt = new Date(Number(ddMMyyyy[2]), Number(ddMMyyyy[1]) - 1, Number(ddMMyyyy[0]));
|
|
7857
7861
|
}
|
|
7858
7862
|
else {
|