ps-toolkit-ui 1.8.20 → 1.8.21
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 +7 -7
- 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/components/error/error.component.js +8 -9
- package/fesm2015/ps-toolkit-ui.js +8 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/error/error.component.d.ts +2 -4
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
2
|
import { PsToolkitUiConfigService } from '../../services/config.service';
|
|
3
3
|
import { LangClass } from '../../classes/lang.class';
|
|
4
|
-
import { ActivatedRoute } from '@angular/router';
|
|
5
4
|
export class ErrorComponent {
|
|
6
|
-
constructor(config
|
|
5
|
+
constructor(config) {
|
|
7
6
|
this.config = config;
|
|
8
|
-
this.route = route;
|
|
9
|
-
this.message = this.route.snapshot.paramMap.get('message');
|
|
10
7
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
11
8
|
this.l = (key, v = null) => {
|
|
12
9
|
return lang.get('Public', 'Error', key, v);
|
|
@@ -16,12 +13,14 @@ export class ErrorComponent {
|
|
|
16
13
|
ErrorComponent.decorators = [
|
|
17
14
|
{ type: Component, args: [{
|
|
18
15
|
selector: 'lib-error',
|
|
19
|
-
template: "<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"
|
|
16
|
+
template: "<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",
|
|
20
17
|
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%}}"]
|
|
21
18
|
},] }
|
|
22
19
|
];
|
|
23
20
|
ErrorComponent.ctorParameters = () => [
|
|
24
|
-
{ type: PsToolkitUiConfigService }
|
|
25
|
-
{ type: ActivatedRoute }
|
|
21
|
+
{ type: PsToolkitUiConfigService }
|
|
26
22
|
];
|
|
27
|
-
|
|
23
|
+
ErrorComponent.propDecorators = {
|
|
24
|
+
error: [{ type: Input }]
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJy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V9IGZyb20gJy4uLy4uL3NlcnZpY2VzL2NvbmZpZy5zZXJ2aWNlJztcclxuaW1wb3J0IHtMYW5nQ2xhc3N9IGZyb20gJy4uLy4uL2NsYXNzZXMvbGFuZy5jbGFzcyc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICAgIHNlbGVjdG9yOiAnbGliLWVycm9yJyxcclxuICAgIHRlbXBsYXRlVXJsOiAnLi9lcnJvci5jb21wb25lbnQuaHRtbCcsXHJcbiAgICBzdHlsZVVybHM6IFsnLi9lcnJvci5jb21wb25lbnQuY3NzJ11cclxufSlcclxuZXhwb3J0IGNsYXNzIEVycm9yQ29tcG9uZW50IHtcclxuICBASW5wdXQoKVxyXG4gIGVycm9yOiBzdHJpbmc7XHJcbiAgbDogKGssIHY/KSA9PiBzdHJpbmc7XHJcbiAgY29uc3RydWN0b3IocHVibGljIGNvbmZpZzogUHNUb29sa2l0VWlDb25maWdTZXJ2aWNlKXtcclxuICAgIGNvbnN0IGxhbmcgPSBuZXcgTGFuZ0NsYXNzKGNvbmZpZy5jdXJyZW50TGFuZywgY29uZmlnLnN0cmluZ3MpO1xyXG4gICAgdGhpcy5sID0gKGtleTogc3RyaW5nLCB2ID0gbnVsbCk6IHN0cmluZyA9PiB7XHJcbiAgICAgIHJldHVybiBsYW5nLmdldCgnUHVibGljJywgJ0Vycm9yJywga2V5LCB2KTtcclxuICAgIH07XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -4,7 +4,7 @@ import { ajax, param } from 'jquery';
|
|
|
4
4
|
import { merge, get, set, cloneDeep } from 'lodash';
|
|
5
5
|
import * as moment from 'jalali-moment';
|
|
6
6
|
import { now } from 'jalali-moment';
|
|
7
|
-
import { NavigationEnd, Router,
|
|
7
|
+
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
|
8
8
|
import 'jquery-ui-dist/jquery-ui';
|
|
9
9
|
import { FormsModule } from '@angular/forms';
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
@@ -5714,10 +5714,8 @@ NotfoundComponent.ctorParameters = () => [
|
|
|
5714
5714
|
];
|
|
5715
5715
|
|
|
5716
5716
|
class ErrorComponent {
|
|
5717
|
-
constructor(config
|
|
5717
|
+
constructor(config) {
|
|
5718
5718
|
this.config = config;
|
|
5719
|
-
this.route = route;
|
|
5720
|
-
this.message = this.route.snapshot.paramMap.get('message');
|
|
5721
5719
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
5722
5720
|
this.l = (key, v = null) => {
|
|
5723
5721
|
return lang.get('Public', 'Error', key, v);
|
|
@@ -5727,14 +5725,16 @@ class ErrorComponent {
|
|
|
5727
5725
|
ErrorComponent.decorators = [
|
|
5728
5726
|
{ type: Component, args: [{
|
|
5729
5727
|
selector: 'lib-error',
|
|
5730
|
-
template: "<div id=\"Error\">\r\n <div class=\"error-con\" *ngIf=\"
|
|
5728
|
+
template: "<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",
|
|
5731
5729
|
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%}}"]
|
|
5732
5730
|
},] }
|
|
5733
5731
|
];
|
|
5734
5732
|
ErrorComponent.ctorParameters = () => [
|
|
5735
|
-
{ type: PsToolkitUiConfigService }
|
|
5736
|
-
|
|
5737
|
-
|
|
5733
|
+
{ type: PsToolkitUiConfigService }
|
|
5734
|
+
];
|
|
5735
|
+
ErrorComponent.propDecorators = {
|
|
5736
|
+
error: [{ type: Input }]
|
|
5737
|
+
};
|
|
5738
5738
|
|
|
5739
5739
|
class FormFingerComponent {
|
|
5740
5740
|
constructor() {
|