ps-toolkit-ui 1.14.7 → 1.14.9

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.
@@ -1072,7 +1072,10 @@
1072
1072
  return inp.l(n) + desc;
1073
1073
  };
1074
1074
  HelperClass.nationalCodeNumValid = function (c) {
1075
- return HelperClass.nationalCodeValid(c) || HelperClass.nationalNumValid(c);
1075
+ return HelperClass.nationalCodeNaturalValid(c) || HelperClass.nationalNumValid(c);
1076
+ };
1077
+ HelperClass.nationalCodeNaturalValid = function (c) {
1078
+ return HelperClass.nationalCodeValid(c) || (c.length === 14 && HelperClass.nationalCodeValid(c.substr(0, 10)));
1076
1079
  };
1077
1080
  HelperClass.nationalCodeValid = function (c) {
1078
1081
  if (!RegExp(/^\d{10}$/).test(c) || RegExp(/^(.)\1+$/).test(c)) {
@@ -7508,6 +7511,7 @@
7508
7511
  };
7509
7512
  LoginClass.prototype.showModal = function () {
7510
7513
  this.modal.show();
7514
+ this.steps[this.active].form.focus();
7511
7515
  };
7512
7516
  return LoginClass;
7513
7517
  }());