@smartsoft001/angular 1.1.601 → 1.1.605

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.
@@ -6824,6 +6824,7 @@
6824
6824
  case 1:
6825
6825
  nativeEl = _a.sent();
6826
6826
  if (nativeEl) {
6827
+ nativeEl.value = nativeEl.value.substr(0, 1);
6827
6828
  if (nativeEl.setSelectionRange) {
6828
6829
  nativeEl.type = 'text';
6829
6830
  nativeEl.setSelectionRange(0, nativeEl.value.length);
@@ -6843,6 +6844,7 @@
6843
6844
  DateEditComponent.prototype.setValueAt = function (val, index) {
6844
6845
  if (val === null)
6845
6846
  return;
6847
+ val = val.toString().substr(0, 1);
6846
6848
  var newValue = Number(val);
6847
6849
  if (!this.value || newValue > 9 || newValue < 0)
6848
6850
  this.value = this.DEFAULT_DATE;
@@ -6869,7 +6871,7 @@
6869
6871
  DateEditComponent.decorators = [
6870
6872
  { type: i0.Component, args: [{
6871
6873
  selector: "smart-date-edit",
6872
- template: "<ion-grid [class.invalid]=\"!validDate\">\n <ion-row>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"d1\" #d1Element (click)=\"select(d1Element)\" (keyup)=\"moveTo($event, d2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"d2\" #d2Element (click)=\"select(d2Element)\" (keyup)=\"moveTo($event, m1Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div style=\"text-align: center; vertical-align: middle; padding: 6px 0;\">-</div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"m1\" #m1Element (click)=\"select(m1Element)\" (keyup)=\"moveTo($event, m2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"m2\" #m2Element (click)=\"select(m2Element)\" (keyup)=\"moveTo($event, y1Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div style=\"text-align: center; vertical-align: middle; padding: 6px 0;\">-</div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y1\" #y1Element (click)=\"select(y1Element)\" (keyup)=\"moveTo($event, y2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y2\" #y2Element (click)=\"select(y2Element)\" (keyup)=\"moveTo($event, y3Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y3\" #y3Element (click)=\"select(y3Element)\" (keyup)=\"moveTo($event, y4Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y4\" #y4Element (click)=\"select(y4Element)\"></ion-input>\n </div>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col size=\"2\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">DD</div>\n </ion-col>\n <ion-col></ion-col>\n <ion-col size=\"2\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">MM</div>\n </ion-col>\n <ion-col></ion-col>\n <ion-col size=\"4\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">RRRR</div>\n </ion-col>\n </ion-row>\n</ion-grid>",
6874
+ template: "<ion-grid [class.invalid]=\"!validDate\">\n <ion-row>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"d1\" #d1Element (click)=\"select(d1Element)\" (keyup)=\"moveTo($event, d2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"d2\" #d2Element (click)=\"select(d2Element)\" (keyup)=\"moveTo($event, m1Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div style=\"text-align: center; vertical-align: middle; padding: 6px 0;\">-</div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"m1\" #m1Element (click)=\"select(m1Element)\" (keyup)=\"moveTo($event, m2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"m2\" #m2Element (click)=\"select(m2Element)\" (keyup)=\"moveTo($event, y1Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div style=\"text-align: center; vertical-align: middle; padding: 6px 0;\">-</div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y1\" #y1Element (click)=\"select(y1Element)\" (keyup)=\"moveTo($event, y2Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y2\" #y2Element (click)=\"select(y2Element)\" (keyup)=\"moveTo($event, y3Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y3\" #y3Element (click)=\"select(y3Element)\" (keyup)=\"moveTo($event, y4Element)\"></ion-input>\n </div>\n </ion-col>\n <ion-col>\n <div class=\"cell\">\n <ion-input type=\"number\" min=\"0\" max=\"9\" maxlength=\"1\" [(ngModel)]=\"y4\" #y4Element (click)=\"select(y4Element)\" (keyup)=\"select(y4Element)\"></ion-input>\n </div>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col size=\"2\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">DD</div>\n </ion-col>\n <ion-col></ion-col>\n <ion-col size=\"2\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">MM</div>\n </ion-col>\n <ion-col></ion-col>\n <ion-col size=\"4\">\n <div [class.invalid]=\"!validDate\" style=\"text-align: center; color: #CCC;\">RRRR</div>\n </ion-col>\n </ion-row>\n</ion-grid>",
6873
6875
  providers: [
6874
6876
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: i0.forwardRef(function () { return DateEditComponent; }), multi: true }
6875
6877
  ],