ps-toolkit-ui 1.3.95 → 1.3.98
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 -17
- 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/lang.class.js +3 -3
- package/esm2015/lib/classes/string.class.js +7 -7
- package/esm2015/lib/components/alert/alert.component.js +2 -2
- package/esm2015/lib/components/calendar/calendar.component.js +2 -2
- package/esm2015/lib/components/confirm/confirm.component.js +2 -2
- package/esm2015/lib/components/footer/footer.component.js +2 -2
- package/esm2015/lib/components/header/header.component.js +2 -2
- package/esm2015/lib/components/loading/loading.component.js +2 -2
- package/esm2015/lib/components/notfound/notfound.component.js +2 -2
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +2 -2
- package/esm2015/lib/components/sidebar/sidebar.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +17 -17
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/string.class.d.ts +6 -6
- package/package.json +1 -1
|
@@ -68,11 +68,11 @@ AccordionComponent.propDecorators = {
|
|
|
68
68
|
|
|
69
69
|
const strings = {
|
|
70
70
|
fa: {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
public: {
|
|
72
|
+
header: {
|
|
73
73
|
Logout: 'خروج'
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
login: {
|
|
76
76
|
ReSendCodeDes: '<span class="c-secondary c-p">ارسال مجدد</span>',
|
|
77
77
|
ReSendCodeRemain: '<div class="ltr d-ib va-m"><div class="t-c d-ib w-20-p f-l">{}</div><div class="t-c d-ib w-5-p f-l">:</div><div class="t-c d-ib w-20-p f-l">{}</div></div><div class="d-ib va-m">مانده تا دریافت مجدد کد</div>',
|
|
78
78
|
Code: 'کد تایید',
|
|
@@ -88,15 +88,15 @@ const strings = {
|
|
|
88
88
|
DeviceId: 'کد نرم افزار: {}',
|
|
89
89
|
Copy: 'کپی',
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
footer: {
|
|
92
92
|
Copyright: 'تمامی حقوق این وبسایت برای پارت سیلیکون محفوظ است.',
|
|
93
93
|
CreatorDesc: 'طراحی و توسعه',
|
|
94
94
|
CreatorCom: 'پارت سیلیکون'
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
app: {
|
|
97
97
|
Notfound: 'صفحه مورد نظر یافت نشد',
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
notfound: {
|
|
100
100
|
Text: 'متاسفانه صفحه مورد نظر شما یافت نشد',
|
|
101
101
|
Back: 'بازگشت'
|
|
102
102
|
},
|
|
@@ -304,10 +304,10 @@ class LangClass {
|
|
|
304
304
|
}
|
|
305
305
|
let cv = get(this.lang, area ? `${area}.${c}.${k}` : `${c}.${k}`);
|
|
306
306
|
if (!cv) {
|
|
307
|
-
cv = get(this.lang, `
|
|
307
|
+
cv = get(this.lang, `public.${c}.${k}`);
|
|
308
308
|
}
|
|
309
309
|
if (!cv) {
|
|
310
|
-
cv = get(this.lang, `
|
|
310
|
+
cv = get(this.lang, `public.${k}`);
|
|
311
311
|
}
|
|
312
312
|
if (!cv) {
|
|
313
313
|
return k;
|
|
@@ -331,7 +331,7 @@ class FooterComponent {
|
|
|
331
331
|
this.config = config;
|
|
332
332
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
333
333
|
this.l = (key, v = null) => {
|
|
334
|
-
return lang.get('
|
|
334
|
+
return lang.get('public', 'footer', key, v);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -1517,7 +1517,7 @@ class HeaderComponent {
|
|
|
1517
1517
|
this.logout = new EventEmitter();
|
|
1518
1518
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
1519
1519
|
const l = (key, v = null) => {
|
|
1520
|
-
return lang.get('
|
|
1520
|
+
return lang.get('public', 'header', key, v);
|
|
1521
1521
|
};
|
|
1522
1522
|
this.logoutInp = new InputClass(config.environment, l, 'Logout', 'fa-duotone fa-right-from-bracket', InputType.Button, 'grey h-30 p-0');
|
|
1523
1523
|
this.logoutInp.onClick = () => {
|
|
@@ -1569,7 +1569,7 @@ class SidebarItemComponent {
|
|
|
1569
1569
|
this.config = config;
|
|
1570
1570
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
1571
1571
|
this.l = (key, v = null) => {
|
|
1572
|
-
return lang.get('
|
|
1572
|
+
return lang.get('sublic', 'Sidebar', key, v);
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
1575
|
openClose(e) {
|
|
@@ -1638,7 +1638,7 @@ class SidebarComponent {
|
|
|
1638
1638
|
this.sidebar = [];
|
|
1639
1639
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
1640
1640
|
this.l = (key, v = null) => {
|
|
1641
|
-
return lang.get('
|
|
1641
|
+
return lang.get('public', 'sidebar', key, v);
|
|
1642
1642
|
};
|
|
1643
1643
|
router.events.subscribe(event => {
|
|
1644
1644
|
if (event instanceof NavigationEnd) {
|
|
@@ -5377,7 +5377,7 @@ class AlertComponent {
|
|
|
5377
5377
|
this.config = config;
|
|
5378
5378
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
5379
5379
|
const l = (key, v = null) => {
|
|
5380
|
-
return lang.get('
|
|
5380
|
+
return lang.get('public', 'alert', key, v);
|
|
5381
5381
|
};
|
|
5382
5382
|
this.alert = new ModalClass(config.environment, l, 'Alert');
|
|
5383
5383
|
this.alert.form = new FormClass(config.environment, l, 'Alert');
|
|
@@ -5410,7 +5410,7 @@ class ConfirmComponent {
|
|
|
5410
5410
|
this.config = config;
|
|
5411
5411
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
5412
5412
|
this.l = (key, v = null) => {
|
|
5413
|
-
return lang.get('
|
|
5413
|
+
return lang.get('public', 'confirm', key, v);
|
|
5414
5414
|
};
|
|
5415
5415
|
}
|
|
5416
5416
|
ngOnInit() {
|
|
@@ -5454,7 +5454,7 @@ class NotfoundComponent {
|
|
|
5454
5454
|
this.config = config;
|
|
5455
5455
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
5456
5456
|
this.l = (key, v = null) => {
|
|
5457
|
-
return lang.get('
|
|
5457
|
+
return lang.get('public', 'notfound', key, v);
|
|
5458
5458
|
};
|
|
5459
5459
|
this.back = new InputClass(config.environment, this.l, 'Back', 'fa-duotone fa-arrow-right', InputType.Button, '');
|
|
5460
5460
|
this.back.onClick = () => {
|
|
@@ -6080,7 +6080,7 @@ class LoadingComponent {
|
|
|
6080
6080
|
constructor(config) {
|
|
6081
6081
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
6082
6082
|
this.l = (key, v = null) => {
|
|
6083
|
-
return lang.get('
|
|
6083
|
+
return lang.get('public', null, key, v);
|
|
6084
6084
|
};
|
|
6085
6085
|
}
|
|
6086
6086
|
}
|
|
@@ -6169,7 +6169,7 @@ class CalendarComponent {
|
|
|
6169
6169
|
this.days = [];
|
|
6170
6170
|
const lang = new LangClass(config.currentLang, config.strings);
|
|
6171
6171
|
this.l = (key, v = null) => {
|
|
6172
|
-
return lang.get('
|
|
6172
|
+
return lang.get('public', null, key, v);
|
|
6173
6173
|
};
|
|
6174
6174
|
this.months = [this.l('Month1'), this.l('Month2'), this.l('Month3'), this.l('Month4'), this.l('Month5'), this.l('Month6'), this.l('Month7'), this.l('Month8'), this.l('Month9'), this.l('Month10'), this.l('Month11'), this.l('Month12')];
|
|
6175
6175
|
this.setActive(moment());
|