@acorex/components 16.19.13 → 16.19.15
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.
@@ -4255,7 +4255,6 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4255
4255
|
return this._value?.date;
|
4256
4256
|
}
|
4257
4257
|
set value(v) {
|
4258
|
-
this.validate();
|
4259
4258
|
const oldValue = this._value;
|
4260
4259
|
const old = this.value;
|
4261
4260
|
if (v) {
|
@@ -4271,16 +4270,21 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4271
4270
|
if (!unValidDate) {
|
4272
4271
|
if ((!v && oldValue) ||
|
4273
4272
|
(this._value && !this._value.equal(oldValue, 'day'))) {
|
4274
|
-
|
4275
|
-
|
4276
|
-
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4283
|
-
|
4273
|
+
if (this._value) {
|
4274
|
+
switch (this.dateType) {
|
4275
|
+
case this.ddMMyyyy:
|
4276
|
+
this.text = this._value.format(this.convertToAXFormatDate.DDMMYYYY);
|
4277
|
+
break;
|
4278
|
+
case this.MMddyyyy:
|
4279
|
+
this.text = this._value.format(this.convertToAXFormatDate.MMDDYYYY);
|
4280
|
+
break;
|
4281
|
+
default:
|
4282
|
+
this.text = this._value.format(this.convertToAXFormatDate.YYYYMMDD);
|
4283
|
+
break;
|
4284
|
+
}
|
4285
|
+
}
|
4286
|
+
else {
|
4287
|
+
this.text = null;
|
4284
4288
|
}
|
4285
4289
|
setTimeout(() => {
|
4286
4290
|
this.valueChange.emit(v);
|
@@ -4297,6 +4301,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4297
4301
|
this.text = '';
|
4298
4302
|
}
|
4299
4303
|
this.userChange = false;
|
4304
|
+
this.validate();
|
4300
4305
|
}
|
4301
4306
|
_setDateType() {
|
4302
4307
|
switch (this.dateType) {
|