ps-toolkit-ui 1.6.91 → 1.6.92
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 +34 -6
- 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/request.class.js +4 -4
- package/esm2015/lib/classes/string.class.js +4 -2
- package/esm2015/lib/components/error/error.component.js +27 -0
- package/esm2015/lib/ps-toolkit-ui.module.js +4 -3
- package/esm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +33 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/string.class.d.ts +3 -1
- package/lib/components/error/error.component.d.ts +9 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.d.ts +1 -0
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -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
|
-
|
|
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('
|
|
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 = '
|
|
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 = '
|
|
1511
|
+
m = 'FormBaseErrorNotRegistered';
|
|
1510
1512
|
}
|
|
1511
1513
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1512
1514
|
m = 'FormBaseErrorExpired';
|
|
@@ -6593,6 +6595,31 @@
|
|
|
6593
6595
|
{ type: PsToolkitUiConfigService }
|
|
6594
6596
|
]; };
|
|
6595
6597
|
|
|
6598
|
+
var ErrorComponent = /** @class */ (function () {
|
|
6599
|
+
function ErrorComponent(config, route) {
|
|
6600
|
+
this.config = config;
|
|
6601
|
+
this.route = route;
|
|
6602
|
+
this.message = this.route.snapshot.paramMap.get('message');
|
|
6603
|
+
var lang = new LangClass(config.currentLang, config.strings);
|
|
6604
|
+
this.l = function (key, v) {
|
|
6605
|
+
if (v === void 0) { v = null; }
|
|
6606
|
+
return lang.get('Public', 'Error', key, v);
|
|
6607
|
+
};
|
|
6608
|
+
}
|
|
6609
|
+
return ErrorComponent;
|
|
6610
|
+
}());
|
|
6611
|
+
ErrorComponent.decorators = [
|
|
6612
|
+
{ type: core.Component, args: [{
|
|
6613
|
+
selector: 'lib-error',
|
|
6614
|
+
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-text\">{{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-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: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}}"]
|
|
6616
|
+
},] }
|
|
6617
|
+
];
|
|
6618
|
+
ErrorComponent.ctorParameters = function () { return [
|
|
6619
|
+
{ type: PsToolkitUiConfigService },
|
|
6620
|
+
{ type: router.ActivatedRoute }
|
|
6621
|
+
]; };
|
|
6622
|
+
|
|
6596
6623
|
var FormFingerComponent = /** @class */ (function () {
|
|
6597
6624
|
function FormFingerComponent() {
|
|
6598
6625
|
this.changeIndex = new core.EventEmitter();
|
|
@@ -7689,7 +7716,7 @@
|
|
|
7689
7716
|
TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
|
|
7690
7717
|
FormTimeComponent, NotfoundComponent, FormFingerComponent, FormVehicleSearchComponent, FormVehicleComponent, FormStarComponent,
|
|
7691
7718
|
SafeStylePipe, LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
|
|
7692
|
-
ClockComponent, ChartComponent, SafeHtmlPipe, FormTagComponent
|
|
7719
|
+
ClockComponent, ChartComponent, SafeHtmlPipe, FormTagComponent, ErrorComponent
|
|
7693
7720
|
],
|
|
7694
7721
|
imports: [
|
|
7695
7722
|
common.CommonModule,
|
|
@@ -7705,7 +7732,7 @@
|
|
|
7705
7732
|
TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
|
|
7706
7733
|
FormTimeComponent, NotfoundComponent, FormFingerComponent, FormVehicleSearchComponent, FormVehicleComponent, FormStarComponent,
|
|
7707
7734
|
LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
|
|
7708
|
-
ClockComponent, ChartComponent, FormTagComponent
|
|
7735
|
+
ClockComponent, ChartComponent, FormTagComponent, ErrorComponent
|
|
7709
7736
|
]
|
|
7710
7737
|
},] }
|
|
7711
7738
|
];
|
|
@@ -8310,6 +8337,7 @@
|
|
|
8310
8337
|
exports.ɵn = ChartComponent;
|
|
8311
8338
|
exports.ɵo = SafeHtmlPipe;
|
|
8312
8339
|
exports.ɵp = FormTagComponent;
|
|
8340
|
+
exports.ɵq = ErrorComponent;
|
|
8313
8341
|
|
|
8314
8342
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8315
8343
|
|