ps-toolkit-ui 1.8.19 → 1.8.22

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.
@@ -306,6 +306,7 @@
306
306
  FormBaseErrorExpired: 'لطفا مجددا وارد شوید',
307
307
  FormBaseErrorNotRegistered: 'خطا در تایید کد نرم افزار',
308
308
  FormBaseErrorExpiredRegistered: 'کد نرم افزار منقضی شده است',
309
+ FormBaseErrorInvalidIp: 'آی‌پی شما نامعتبر است',
309
310
  ErrorUpload: 'خطا در بارگذاری فایل',
310
311
  FormBaseErrorInvalidParam: 'خطا در اطلاعات ارسال شده',
311
312
  FormBaseErrorTimeOut: 'درخواست شما بیش از حد معمول زمان برده است. لطفا مجددا تلاش کنید',
@@ -846,6 +847,7 @@
846
847
  ResultStatusEnum[ResultStatusEnum["NotAccess"] = 3] = "NotAccess";
847
848
  ResultStatusEnum[ResultStatusEnum["NotRegistered"] = 4] = "NotRegistered";
848
849
  ResultStatusEnum[ResultStatusEnum["ExpiredRegistered"] = 5] = "ExpiredRegistered";
850
+ ResultStatusEnum[ResultStatusEnum["InvalidIp"] = 6] = "InvalidIp";
849
851
  })(exports.ResultStatusEnum || (exports.ResultStatusEnum = {}));
850
852
  (function (PermissionTypeEnum) {
851
853
  PermissionTypeEnum[PermissionTypeEnum["Form"] = -1] = "Form";
@@ -1344,6 +1346,9 @@
1344
1346
  else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
1345
1347
  m = form.l('FormBaseErrorExpiredRegistered');
1346
1348
  }
1349
+ else if (res.status === exports.ResultStatusEnum.InvalidIp) {
1350
+ m = form.l('FormBaseErrorInvalidIp');
1351
+ }
1347
1352
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1348
1353
  m = form.l('FormBaseErrorExpired');
1349
1354
  }
@@ -1455,6 +1460,9 @@
1455
1460
  else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
1456
1461
  m = 'FormBaseErrorExpiredRegistered';
1457
1462
  }
1463
+ else if (res.status === exports.ResultStatusEnum.InvalidIp) {
1464
+ m = 'FormBaseErrorInvalidIp';
1465
+ }
1458
1466
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1459
1467
  m = 'FormBaseErrorExpired';
1460
1468
  }
@@ -1525,6 +1533,9 @@
1525
1533
  else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
1526
1534
  m = 'FormBaseErrorExpiredRegistered';
1527
1535
  }
1536
+ else if (res.status === exports.ResultStatusEnum.InvalidIp) {
1537
+ m = 'FormBaseErrorInvalidIp';
1538
+ }
1528
1539
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1529
1540
  m = 'FormBaseErrorExpired';
1530
1541
  }
@@ -6553,10 +6564,8 @@
6553
6564
  ]; };
6554
6565
 
6555
6566
  var ErrorComponent = /** @class */ (function () {
6556
- function ErrorComponent(config, route) {
6567
+ function ErrorComponent(config) {
6557
6568
  this.config = config;
6558
- this.route = route;
6559
- this.message = this.route.snapshot.paramMap.get('message');
6560
6569
  var lang = new LangClass(config.currentLang, config.strings);
6561
6570
  this.l = function (key, v) {
6562
6571
  if (v === void 0) { v = null; }
@@ -6568,14 +6577,16 @@
6568
6577
  ErrorComponent.decorators = [
6569
6578
  { type: core.Component, args: [{
6570
6579
  selector: 'lib-error',
6571
- 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",
6580
+ template: "<lib-header></lib-header>\r\n<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"error === 'FormBaseErrorNotRegistered'\">\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=\"error === 'FormBaseErrorExpiredRegistered'\">\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 class=\"error-con\" *ngIf=\"error === 'FormBaseErrorInvalidIp'\">\r\n <i class=\"fa-duotone fa-laptop-mobile error-icon\"></i>\r\n <div class=\"error-text\">{{l(\"FormBaseErrorInvalidIp\")}}</div>\r\n </div>\r\n</div>\r\n",
6572
6581
  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-size:30px;font-weight:700;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%}}"]
6573
6582
  },] }
6574
6583
  ];
6575
6584
  ErrorComponent.ctorParameters = function () { return [
6576
- { type: PsToolkitUiConfigService },
6577
- { type: router.ActivatedRoute }
6578
- ]; };
6585
+ { type: PsToolkitUiConfigService }
6586
+ ]; };
6587
+ ErrorComponent.propDecorators = {
6588
+ error: [{ type: core.Input }]
6589
+ };
6579
6590
 
6580
6591
  var FormFingerComponent = /** @class */ (function () {
6581
6592
  function FormFingerComponent() {