ps-toolkit-ui 1.3.30 → 1.3.31
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 +2 -2
- 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 +3 -3
- package/fesm2015/ps-toolkit-ui.js +2 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -6702,12 +6702,12 @@
|
|
|
6702
6702
|
}
|
|
6703
6703
|
LoginComponent.prototype.ngOnInit = function () {
|
|
6704
6704
|
var _this = this;
|
|
6705
|
+
var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, 'm-t-10', this.login.rules);
|
|
6705
6706
|
if (this.login.type === 'Sms') {
|
|
6706
6707
|
var sendCodeForm_1 = new FormClass(this.config.environment, this.login.l, 'SendCode', true, this.login.sendCodeUrl);
|
|
6707
6708
|
var sendCode = new InputClass(this.config.environment, this.login.l, 'SendCode', 'fa-duotone fa-paper-plane', exports.InputType.Submit, 'h-45' + (this.loginTemplate === 'Simple' ? ' primary' : ''));
|
|
6708
6709
|
sendCodeForm_1.subName = 'SendCodeSubTitle';
|
|
6709
6710
|
this.mobile = new InputClass(this.config.environment, this.login.l, 'Mobile', 'fa-duotone fa-mobile-alt', exports.InputType.Mobile, 'm-b-20 h-45', '', true, 4, 50);
|
|
6710
|
-
var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, 'm-t-10', this.login.rules);
|
|
6711
6711
|
sendCodeForm_1.onSuccess = function () {
|
|
6712
6712
|
loginForm_1.subName = _this.login.l('LoginSmsSubTitle', _this.mobile.data());
|
|
6713
6713
|
_this.mobile.type = exports.InputType.Hidden;
|
|
@@ -6817,7 +6817,7 @@
|
|
|
6817
6817
|
this.username,
|
|
6818
6818
|
password,
|
|
6819
6819
|
login
|
|
6820
|
-
];
|
|
6820
|
+
].concat(this.login.rules != null ? [rules] : []);
|
|
6821
6821
|
login.onClick = function () {
|
|
6822
6822
|
loginForm_2.submit();
|
|
6823
6823
|
};
|