ps-toolkit-ui 0.0.87 → 0.0.91
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/bundles/ps-toolkit-ui.umd.js +8 -7
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/login/login.component.js +4 -3
- package/fesm2015/ps-toolkit-ui.js +3 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -6692,11 +6692,11 @@
|
|
|
6692
6692
|
LoginComponent.prototype.ngOnInit = function () {
|
|
6693
6693
|
var _this = this;
|
|
6694
6694
|
if (this.login.type === 'Sms') {
|
|
6695
|
-
var
|
|
6695
|
+
var sendCodeForm_1 = new FormClass(this.config.environment, this.l, 'SendCode', true, this.login.sendCodeUrl, 'p-h-50');
|
|
6696
6696
|
var sendCode = new InputClass(this.config.environment, this.l, 'SendCode', 'fad fa-paper-plane', exports.InputType.Submit);
|
|
6697
|
-
|
|
6697
|
+
sendCodeForm_1.subName = 'SendCodeSubTitle';
|
|
6698
6698
|
this.mobile = new InputClass(this.config.environment, this.l, 'Mobile', 'fad fa-mobile-alt', exports.InputType.Mobile, 'm-b-10 h-45', '', true, 4, 50);
|
|
6699
|
-
|
|
6699
|
+
sendCodeForm_1.onSuccess = function () {
|
|
6700
6700
|
loginForm_1.subName = _this.l('LoginSmsSubTitle', _this.mobile.data());
|
|
6701
6701
|
_this.mobile.type = exports.InputType.Hidden;
|
|
6702
6702
|
code_1.progress.start();
|
|
@@ -6705,16 +6705,17 @@
|
|
|
6705
6705
|
code_1.focus();
|
|
6706
6706
|
}, 100);
|
|
6707
6707
|
};
|
|
6708
|
-
|
|
6708
|
+
sendCodeForm_1.inputs = [
|
|
6709
6709
|
this.mobile,
|
|
6710
6710
|
sendCode
|
|
6711
6711
|
];
|
|
6712
|
+
sendCode.onClick = function () {
|
|
6713
|
+
sendCodeForm_1.submit();
|
|
6714
|
+
};
|
|
6712
6715
|
var loginForm_1 = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
|
|
6713
6716
|
loginForm_1.subName = this.l('LoginSmsSubTitle', '');
|
|
6714
6717
|
loginForm_1.onSuccess = function (result) {
|
|
6715
6718
|
_this.login.setCookie(result);
|
|
6716
|
-
console.log(_this.login.steps);
|
|
6717
|
-
console.log(result);
|
|
6718
6719
|
if (_this.login.steps.length > 2 && result.CurrentUser === null) {
|
|
6719
6720
|
_this.login.steps[2].show(result.StepData);
|
|
6720
6721
|
}
|
|
@@ -6764,7 +6765,7 @@
|
|
|
6764
6765
|
loginStep.show = function () {
|
|
6765
6766
|
_this.login.active = 1;
|
|
6766
6767
|
};
|
|
6767
|
-
var sendCodeStep = new LoginStepClass(
|
|
6768
|
+
var sendCodeStep = new LoginStepClass(sendCodeForm_1);
|
|
6768
6769
|
sendCodeStep.show = function () {
|
|
6769
6770
|
_this.login.active = 0;
|
|
6770
6771
|
};
|