ps-toolkit-ui 1.6.95 → 1.6.98
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 +12 -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/classes/enum.class.js +2 -1
- package/esm2015/lib/classes/request.class.js +10 -1
- package/esm2015/lib/components/error/error.component.js +1 -1
- package/esm2015/lib/components/form/finger/form.finger.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +12 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +2 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -843,6 +843,7 @@
|
|
|
843
843
|
ResultStatusEnum[ResultStatusEnum["Unauthorized"] = 2] = "Unauthorized";
|
|
844
844
|
ResultStatusEnum[ResultStatusEnum["NotAccess"] = 3] = "NotAccess";
|
|
845
845
|
ResultStatusEnum[ResultStatusEnum["NotRegistered"] = 4] = "NotRegistered";
|
|
846
|
+
ResultStatusEnum[ResultStatusEnum["ExpiredRegistered"] = 5] = "ExpiredRegistered";
|
|
846
847
|
})(exports.ResultStatusEnum || (exports.ResultStatusEnum = {}));
|
|
847
848
|
(function (PermissionTypeEnum) {
|
|
848
849
|
PermissionTypeEnum[PermissionTypeEnum["Form"] = -1] = "Form";
|
|
@@ -1335,6 +1336,9 @@
|
|
|
1335
1336
|
if (res.status === exports.ResultStatusEnum.NotRegistered) {
|
|
1336
1337
|
m = form.l('FormBaseErrorNotRegistered');
|
|
1337
1338
|
}
|
|
1339
|
+
else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
|
|
1340
|
+
m = form.l('FormBaseErrorExpiredRegistered');
|
|
1341
|
+
}
|
|
1338
1342
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1339
1343
|
m = form.l('FormBaseErrorExpired');
|
|
1340
1344
|
}
|
|
@@ -1443,6 +1447,9 @@
|
|
|
1443
1447
|
if (res.status === exports.ResultStatusEnum.NotRegistered) {
|
|
1444
1448
|
m = 'FormBaseErrorNotRegistered';
|
|
1445
1449
|
}
|
|
1450
|
+
else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
|
|
1451
|
+
m = 'FormBaseErrorExpiredRegistered';
|
|
1452
|
+
}
|
|
1446
1453
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1447
1454
|
m = 'FormBaseErrorExpired';
|
|
1448
1455
|
}
|
|
@@ -1510,6 +1517,9 @@
|
|
|
1510
1517
|
if (res.status === exports.ResultStatusEnum.NotRegistered) {
|
|
1511
1518
|
m = 'FormBaseErrorNotRegistered';
|
|
1512
1519
|
}
|
|
1520
|
+
else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
|
|
1521
|
+
m = 'FormBaseErrorExpiredRegistered';
|
|
1522
|
+
}
|
|
1513
1523
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1514
1524
|
m = 'FormBaseErrorExpired';
|
|
1515
1525
|
}
|
|
@@ -6612,7 +6622,7 @@
|
|
|
6612
6622
|
{ type: core.Component, args: [{
|
|
6613
6623
|
selector: 'lib-error',
|
|
6614
6624
|
template: "<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"message === 'notregistered'\">\r\n <i class=\"fa-duotone fa-registered error-icon\"></i>\r\n <div class=\"error-text\">{{l(\"FormBaseErrorNotRegistered\")}}</div>\r\n </div>\r\n <div class=\"error-con\" *ngIf=\"message === 'expiredregistered'\">\r\n <i class=\"fa-duotone fa-hourglass-end error-icon\"></i>\r\n <div class=\"error-text\">{{l(\"FormBaseErrorExpiredRegistered\")}}</div>\r\n </div>\r\n</div>\r\n",
|
|
6615
|
-
styles: ["#Error{align-items:center;background-color:#fff;display:flex;float:right;justify-content:center;min-height:calc(100vh - 125px);position:relative;width:100%}#Error .error-con{border-radius:var(--border-radius-base);float:right;height:100%;width:100%}#Error .error-con .error-text{float:right;font-family:VazirBold;font-size:30px;height:100px;line-height:120px;position:relative;text-align:center;width:100%;z-index:2}#Error .error-con .error-icon{color:var(--
|
|
6625
|
+
styles: ["#Error{align-items:center;background-color:#fff;display:flex;float:right;justify-content:center;min-height:calc(100vh - 125px);position:relative;width:100%}#Error .error-con{border-radius:var(--border-radius-base);float:right;height:100%;width:100%}#Error .error-con .error-text{float:right;font-family:VazirBold;font-size:30px;height:100px;line-height:120px;position:relative;text-align:center;width:100%;z-index:2}#Error .error-con .error-icon{color:var(--base-white);float:right;font-size:150px;text-align:center;width:100%}@media (max-width:399.99px){#Error .error-con{right:5%;width:90%}#Error .error-con .error-text{font-size:25px}#Error .error-con .error-icon{font-size:170px}}@media (min-width:400px) and (max-width:499.99px){#Error .error-con{right:5%;width:90%}#Error .error-con .error-text{font-size:25px}#Error .error-con .error-icon{font-size:170px}}@media (min-width:500px) and (max-width:599.99px){#Error .error-con{right:5%;width:90%}#Error .error-con .error-icon{font-size:200px}}@media (min-width:600px) and (max-width:699.99px){#Error .error-con{right:10%;width:80%}}"]
|
|
6616
6626
|
},] }
|
|
6617
6627
|
];
|
|
6618
6628
|
ErrorComponent.ctorParameters = function () { return [
|
|
@@ -6737,7 +6747,7 @@
|
|
|
6737
6747
|
}
|
|
6738
6748
|
else if (evt.data.startsWith('Error')) {
|
|
6739
6749
|
_this.inp.value[f] = null;
|
|
6740
|
-
HelperClass.addNotification(evt.data);
|
|
6750
|
+
HelperClass.addNotification(_this.inp.l(evt.data));
|
|
6741
6751
|
}
|
|
6742
6752
|
else {
|
|
6743
6753
|
var r = JSON.parse(evt.data);
|