ps-toolkit-ui 0.2.62 → 0.2.65
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 +4 -4
- 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/form/file/form.file.component.js +4 -4
- package/esm2015/lib/components/login/login.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +4 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/styles/base.css +1 -1
|
@@ -3916,7 +3916,7 @@
|
|
|
3916
3916
|
return true;
|
|
3917
3917
|
}
|
|
3918
3918
|
if (_this.inp.allowed != null && _this.inp.value != null && typeof _this.inp.value !== 'string' &&
|
|
3919
|
-
_this.inp.value.map(function (x) { return _this.inp.allowed.includes(x.name.split('.').pop().toLowerCase()); }).filter(function (x) { return !x; }).length > 0) {
|
|
3919
|
+
_this.inp.value.filter(function (x) { return typeof x !== 'string'; }).map(function (x) { return _this.inp.allowed.includes(x.name.split('.').pop().toLowerCase()); }).filter(function (x) { return !x; }).length > 0) {
|
|
3920
3920
|
_this.inp.error = exports.InputError.NotAllowed;
|
|
3921
3921
|
return false;
|
|
3922
3922
|
}
|
|
@@ -3934,7 +3934,7 @@
|
|
|
3934
3934
|
this.inp.data = function () {
|
|
3935
3935
|
if (_this.inp.value && typeof _this.inp.value !== 'string') {
|
|
3936
3936
|
if (!_this.inp.exportPdf) {
|
|
3937
|
-
return _this.inp.value;
|
|
3937
|
+
return _this.inp.value.filter(function (x) { return typeof x !== 'string'; });
|
|
3938
3938
|
}
|
|
3939
3939
|
else {
|
|
3940
3940
|
// const doc = new jsPDF();
|
|
@@ -4015,7 +4015,7 @@
|
|
|
4015
4015
|
$__namespace(this.inputBase.nativeElement).focus();
|
|
4016
4016
|
};
|
|
4017
4017
|
FormFileComponent.prototype.title = function () {
|
|
4018
|
-
if (this.inp.value == null) {
|
|
4018
|
+
if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
|
|
4019
4019
|
return this.inp.l('FileNotSelected');
|
|
4020
4020
|
}
|
|
4021
4021
|
var t = typeof this.inp.value === 'string' ? this.inp.value : this.inp.value.map(function (x) { return typeof x === 'string' ? x : x.name; }).join(', ');
|
|
@@ -6669,7 +6669,7 @@
|
|
|
6669
6669
|
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' : ''));
|
|
6670
6670
|
sendCodeForm_1.subName = 'SendCodeSubTitle';
|
|
6671
6671
|
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);
|
|
6672
|
-
var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, '', this.login.rules);
|
|
6672
|
+
var rules = new InputClass(this.config.environment, this.login.l, 'Rules', null, exports.InputType.Label, 'm-t-10', this.login.rules);
|
|
6673
6673
|
sendCodeForm_1.onSuccess = function () {
|
|
6674
6674
|
loginForm_1.subName = _this.login.l('LoginSmsSubTitle', _this.mobile.data());
|
|
6675
6675
|
_this.mobile.type = exports.InputType.Hidden;
|