ps-toolkit-ui 1.6.91 → 1.6.94

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.
@@ -115,6 +115,7 @@
115
115
  },
116
116
  App: {
117
117
  Notfound: 'صفحه مورد نظر یافت نشد',
118
+ Error: 'خطا در سیستم',
118
119
  },
119
120
  Notfound: {
120
121
  Text: 'متاسفانه صفحه مورد نظر شما یافت نشد',
@@ -302,7 +303,8 @@
302
303
  FormErrorUpload: 'خطا در بارگذاری {}',
303
304
  FormError: 'خطا در {}',
304
305
  FormBaseErrorExpired: 'لطفا مجددا وارد شوید',
305
- FormBaseErrorRegistered: 'خطا در تایید کد نرم افزار',
306
+ FormBaseErrorNotRegistered: 'خطا در تایید کد نرم افزار',
307
+ FormBaseErrorExpiredRegistered: 'کد نرم افزار منقضی شده است',
306
308
  ErrorUpload: 'خطا در بارگذاری فایل',
307
309
  FormBaseErrorInvalidParam: 'خطا در اطلاعات ارسال شده',
308
310
  FormBaseErrorTimeOut: 'درخواست شما بیش از حد معمول زمان برده است. لطفا مجددا تلاش کنید',
@@ -1331,7 +1333,7 @@
1331
1333
  else {
1332
1334
  var m = '';
1333
1335
  if (res.status === exports.ResultStatusEnum.NotRegistered) {
1334
- m = form.l('FormBaseErrorRegistered');
1336
+ m = form.l('FormBaseErrorNotRegistered');
1335
1337
  }
1336
1338
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1337
1339
  m = form.l('FormBaseErrorExpired');
@@ -1439,7 +1441,7 @@
1439
1441
  else {
1440
1442
  var m = '';
1441
1443
  if (res.status === exports.ResultStatusEnum.NotRegistered) {
1442
- m = 'FormBaseErrorRegistered';
1444
+ m = 'FormBaseErrorNotRegistered';
1443
1445
  }
1444
1446
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1445
1447
  m = 'FormBaseErrorExpired';
@@ -1506,7 +1508,7 @@
1506
1508
  else {
1507
1509
  var m = '';
1508
1510
  if (res.status === exports.ResultStatusEnum.NotRegistered) {
1509
- m = 'FormBaseErrorRegistered';
1511
+ m = 'FormBaseErrorNotRegistered';
1510
1512
  }
1511
1513
  else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1512
1514
  m = 'FormBaseErrorExpired';
@@ -6593,6 +6595,29 @@
6593
6595
  { type: PsToolkitUiConfigService }
6594
6596
  ]; };
6595
6597
 
6598
+ var ErrorComponent = /** @class */ (function () {
6599
+ function ErrorComponent(config) {
6600
+ this.config = config;
6601
+ this.message = 'not-registered';
6602
+ var lang = new LangClass(config.currentLang, config.strings);
6603
+ this.l = function (key, v) {
6604
+ if (v === void 0) { v = null; }
6605
+ return lang.get('Public', 'Error', key, v);
6606
+ };
6607
+ }
6608
+ return ErrorComponent;
6609
+ }());
6610
+ ErrorComponent.decorators = [
6611
+ { type: core.Component, args: [{
6612
+ selector: 'lib-error',
6613
+ template: "<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"message === 'not-registered'\">\r\n <i class=\"fa-duotone fa-registered error-icon\"></i>\r\n <div class=\"error\">{{l(\"FormBaseErrorNotRegistered\")}}</div>\r\n </div>\r\n <div class=\"error-con\" *ngIf=\"message === 'expired-registered'\">\r\n <i class=\"fa-duotone fa-hourglass-end error-icon\"></i>\r\n <div class=\"error\">{{l(\"FormBaseErrorExpiredRegistered\")}}</div>\r\n </div>\r\n</div>\r\n",
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:60px;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:90px}#Error .error-con .error-icon{font-size:300px;left:-90px}}@media (min-width:400px) and (max-width:499.99px){#Error .error-con{right:5%;width:90%}#Error .error-con .error-text{font-size:110px}#Error .error-con .error-icon{font-size:380px}}@media (min-width:500px) and (max-width:599.99px){#Error .error-con{right:5%;width:90%}#Error .error-con .error-text{font-size:110px}#Error .error-con .error-icon{font-size:380px}}@media (min-width:600px) and (max-width:699.99px){#Error .error-con{right:10%;width:80%}#Error .error-con .error-text{font-size:120px}}"]
6615
+ },] }
6616
+ ];
6617
+ ErrorComponent.ctorParameters = function () { return [
6618
+ { type: PsToolkitUiConfigService }
6619
+ ]; };
6620
+
6596
6621
  var FormFingerComponent = /** @class */ (function () {
6597
6622
  function FormFingerComponent() {
6598
6623
  this.changeIndex = new core.EventEmitter();
@@ -7689,7 +7714,7 @@
7689
7714
  TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
7690
7715
  FormTimeComponent, NotfoundComponent, FormFingerComponent, FormVehicleSearchComponent, FormVehicleComponent, FormStarComponent,
7691
7716
  SafeStylePipe, LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
7692
- ClockComponent, ChartComponent, SafeHtmlPipe, FormTagComponent
7717
+ ClockComponent, ChartComponent, SafeHtmlPipe, FormTagComponent, ErrorComponent
7693
7718
  ],
7694
7719
  imports: [
7695
7720
  common.CommonModule,
@@ -7705,7 +7730,7 @@
7705
7730
  TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
7706
7731
  FormTimeComponent, NotfoundComponent, FormFingerComponent, FormVehicleSearchComponent, FormVehicleComponent, FormStarComponent,
7707
7732
  LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
7708
- ClockComponent, ChartComponent, FormTagComponent
7733
+ ClockComponent, ChartComponent, FormTagComponent, ErrorComponent
7709
7734
  ]
7710
7735
  },] }
7711
7736
  ];
@@ -8242,6 +8267,7 @@
8242
8267
  exports.CurrentDataClass = CurrentDataClass;
8243
8268
  exports.DayClass = DayClass;
8244
8269
  exports.EnumUtils = EnumUtils;
8270
+ exports.ErrorComponent = ErrorComponent;
8245
8271
  exports.FooterComponent = FooterComponent;
8246
8272
  exports.FormBankCardComponent = FormBankCardComponent;
8247
8273
  exports.FormButtonComponent = FormButtonComponent;