ps-toolkit-ui 1.6.94 → 1.6.97
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 +17 -5
- 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 +9 -6
- package/fesm2015/ps-toolkit-ui.js +18 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +2 -1
- package/lib/components/error/error.component.d.ts +3 -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
|
}
|
|
@@ -6596,9 +6606,10 @@
|
|
|
6596
6606
|
]; };
|
|
6597
6607
|
|
|
6598
6608
|
var ErrorComponent = /** @class */ (function () {
|
|
6599
|
-
function ErrorComponent(config) {
|
|
6609
|
+
function ErrorComponent(config, route) {
|
|
6600
6610
|
this.config = config;
|
|
6601
|
-
this.
|
|
6611
|
+
this.route = route;
|
|
6612
|
+
this.message = this.route.snapshot.paramMap.get('message');
|
|
6602
6613
|
var lang = new LangClass(config.currentLang, config.strings);
|
|
6603
6614
|
this.l = function (key, v) {
|
|
6604
6615
|
if (v === void 0) { v = null; }
|
|
@@ -6610,12 +6621,13 @@
|
|
|
6610
6621
|
ErrorComponent.decorators = [
|
|
6611
6622
|
{ type: core.Component, args: [{
|
|
6612
6623
|
selector: 'lib-error',
|
|
6613
|
-
template: "<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"message === '
|
|
6614
|
-
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:
|
|
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",
|
|
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%}}"]
|
|
6615
6626
|
},] }
|
|
6616
6627
|
];
|
|
6617
6628
|
ErrorComponent.ctorParameters = function () { return [
|
|
6618
|
-
{ type: PsToolkitUiConfigService }
|
|
6629
|
+
{ type: PsToolkitUiConfigService },
|
|
6630
|
+
{ type: router.ActivatedRoute }
|
|
6619
6631
|
]; };
|
|
6620
6632
|
|
|
6621
6633
|
var FormFingerComponent = /** @class */ (function () {
|