@magic-xpa/angular 4.1000.0-dev4100.330 → 4.1000.0-dev4100.332

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.
@@ -3271,6 +3271,17 @@ class MgformatMagicDirective {
3271
3271
  input.value = `${value.slice(0, 4)}/${value.slice(4, 6)}/${value.slice(6, 8)}`;
3272
3272
  }
3273
3273
  }
3274
+ else if (this._task.mgInputDateFormat == "dd/MM/yy" || this._task.mgInputDateFormat == "yy/MM/dd" || this._task.mgInputDateFormat == "MM/dd/yy") {
3275
+ if (value.length <= 2) {
3276
+ input.value = value;
3277
+ }
3278
+ else if (value.length <= 4) {
3279
+ input.value = `${value.slice(0, 2)}/${value.slice(2)}`;
3280
+ }
3281
+ else {
3282
+ input.value = `${value.slice(0, 2)}/${value.slice(2, 4)}/${value.slice(4, 6)}`;
3283
+ }
3284
+ }
3274
3285
  }
3275
3286
  onChangeEvent($event) {
3276
3287
  let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);