ps-toolkit-ui 0.0.210 → 0.0.211
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/karma.conf.js +32 -0
- package/ng-package.json +16 -0
- package/package.json +19 -22
- package/src/lib/classes/chart.class.ts +140 -0
- package/src/lib/classes/enum.class.ts +193 -0
- package/src/lib/classes/excel.class.ts +46 -0
- package/src/lib/classes/form.class.ts +528 -0
- package/src/lib/classes/helper.class.ts +283 -0
- package/src/lib/classes/lang.class.ts +32 -0
- package/src/lib/classes/login.class.ts +27 -0
- package/src/lib/classes/modal.class.ts +59 -0
- package/src/lib/classes/permission.class.ts +55 -0
- package/src/lib/classes/request.class.ts +255 -0
- package/src/lib/classes/safestyle.class.ts +4 -0
- package/src/lib/classes/sidebar.class.ts +20 -0
- package/src/lib/classes/steps.class.ts +19 -0
- package/src/lib/classes/string.class.ts +219 -0
- package/src/lib/classes/table.class.ts +228 -0
- package/src/lib/components/accordion/accordion.component.css +116 -0
- package/src/lib/components/accordion/accordion.component.html +19 -0
- package/src/lib/components/accordion/accordion.component.ts +41 -0
- package/src/lib/components/alert/alert.component.css +112 -0
- package/src/lib/components/alert/alert.component.html +1 -0
- package/src/lib/components/alert/alert.component.ts +35 -0
- package/src/lib/components/base.component.ts +38 -0
- package/src/lib/components/calendar/calendar.component.css +206 -0
- package/src/lib/components/calendar/calendar.component.html +36 -0
- package/src/lib/components/calendar/calendar.component.ts +99 -0
- package/src/lib/components/chart/chart.component.css +24 -0
- package/src/lib/components/chart/chart.component.html +6 -0
- package/src/lib/components/chart/chart.component.ts +14 -0
- package/src/lib/components/clock/clock.component.css +141 -0
- package/src/lib/components/clock/clock.component.html +10 -0
- package/src/lib/components/clock/clock.component.ts +37 -0
- package/src/lib/components/confirm/confirm.component.css +112 -0
- package/src/lib/components/confirm/confirm.component.html +1 -0
- package/src/lib/components/confirm/confirm.component.ts +47 -0
- package/src/lib/components/footer/footer.component.css +46 -0
- package/src/lib/components/footer/footer.component.html +9 -0
- package/src/lib/components/footer/footer.component.ts +18 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.css +115 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.html +13 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.ts +144 -0
- package/src/lib/components/form/button/form.button.component.css +222 -0
- package/src/lib/components/form/button/form.button.component.html +16 -0
- package/src/lib/components/form/button/form.button.component.ts +65 -0
- package/src/lib/components/form/car/form.car.component.css +287 -0
- package/src/lib/components/form/car/form.car.component.html +11 -0
- package/src/lib/components/form/car/form.car.component.ts +82 -0
- package/src/lib/components/form/car/search/form.car.search.component.css +287 -0
- package/src/lib/components/form/car/search/form.car.search.component.html +15 -0
- package/src/lib/components/form/car/search/form.car.search.component.ts +170 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.css +128 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.html +8 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.ts +64 -0
- package/src/lib/components/form/date/form.date.component.css +310 -0
- package/src/lib/components/form/date/form.date.component.html +46 -0
- package/src/lib/components/form/date/form.date.component.ts +247 -0
- package/src/lib/components/form/datetime/form.datetime.component.css +157 -0
- package/src/lib/components/form/datetime/form.datetime.component.html +11 -0
- package/src/lib/components/form/datetime/form.datetime.component.ts +98 -0
- package/src/lib/components/form/file/form.file.component.css +151 -0
- package/src/lib/components/form/file/form.file.component.html +12 -0
- package/src/lib/components/form/file/form.file.component.ts +130 -0
- package/src/lib/components/form/finger/form.finger.component.css +215 -0
- package/src/lib/components/form/finger/form.finger.component.html +59 -0
- package/src/lib/components/form/finger/form.finger.component.ts +131 -0
- package/src/lib/components/form/hidden/form.hidden.component.css +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.html +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.ts +29 -0
- package/src/lib/components/form/icon/form.icon.component.css +108 -0
- package/src/lib/components/form/icon/form.icon.component.html +14 -0
- package/src/lib/components/form/icon/form.icon.component.ts +73 -0
- package/src/lib/components/form/index/form.component.css +89 -0
- package/src/lib/components/form/index/form.component.html +35 -0
- package/src/lib/components/form/index/form.component.ts +45 -0
- package/src/lib/components/form/label/form.label.component.css +45 -0
- package/src/lib/components/form/label/form.label.component.html +2 -0
- package/src/lib/components/form/label/form.label.component.ts +30 -0
- package/src/lib/components/form/plaque/form.plaque.component.css +76 -0
- package/src/lib/components/form/plaque/form.plaque.component.html +10 -0
- package/src/lib/components/form/plaque/form.plaque.component.ts +178 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.css +167 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.html +19 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.ts +385 -0
- package/src/lib/components/form/radio/form.radio.component.css +158 -0
- package/src/lib/components/form/radio/form.radio.component.html +16 -0
- package/src/lib/components/form/radio/form.radio.component.ts +78 -0
- package/src/lib/components/form/select/form.select.component.css +326 -0
- package/src/lib/components/form/select/form.select.component.html +16 -0
- package/src/lib/components/form/select/form.select.component.ts +358 -0
- package/src/lib/components/form/select/item/form.select.item.component.css +59 -0
- package/src/lib/components/form/select/item/form.select.item.component.html +10 -0
- package/src/lib/components/form/select/item/form.select.item.component.ts +40 -0
- package/src/lib/components/form/table/form.table.component.css +50 -0
- package/src/lib/components/form/table/form.table.component.html +8 -0
- package/src/lib/components/form/table/form.table.component.ts +94 -0
- package/src/lib/components/form/textarea/form.textarea.component.css +109 -0
- package/src/lib/components/form/textarea/form.textarea.component.html +10 -0
- package/src/lib/components/form/textarea/form.textarea.component.ts +76 -0
- package/src/lib/components/form/textbox/form.textbox.component.css +296 -0
- package/src/lib/components/form/textbox/form.textbox.component.html +13 -0
- package/src/lib/components/form/textbox/form.textbox.component.ts +185 -0
- package/src/lib/components/form/time/form.time.component.css +205 -0
- package/src/lib/components/form/time/form.time.component.html +22 -0
- package/src/lib/components/form/time/form.time.component.ts +139 -0
- package/src/lib/components/form/tree/form.tree.component.css +109 -0
- package/src/lib/components/form/tree/form.tree.component.html +11 -0
- package/src/lib/components/form/tree/form.tree.component.ts +98 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.css +142 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.html +9 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.ts +49 -0
- package/src/lib/components/header/header.component.css +57 -0
- package/src/lib/components/header/header.component.html +5 -0
- package/src/lib/components/header/header.component.ts +28 -0
- package/src/lib/components/header/sub/sub.header.component.css +62 -0
- package/src/lib/components/header/sub/sub.header.component.html +8 -0
- package/src/lib/components/header/sub/sub.header.component.ts +11 -0
- package/src/lib/components/layout/layout.component.css +300 -0
- package/src/lib/components/layout/layout.component.html +20 -0
- package/src/lib/components/layout/layout.component.ts +21 -0
- package/src/lib/components/loading/loading.component.css +39 -0
- package/src/lib/components/loading/loading.component.html +8 -0
- package/src/lib/components/loading/loading.component.ts +18 -0
- package/src/lib/components/login/login.component.css +389 -0
- package/src/lib/components/login/login.component.html +27 -0
- package/src/lib/components/login/login.component.ts +145 -0
- package/src/lib/components/modal/modal.component.css +60 -0
- package/src/lib/components/modal/modal.component.html +12 -0
- package/src/lib/components/modal/modal.component.ts +23 -0
- package/src/lib/components/notfound/notfound.component.css +134 -0
- package/src/lib/components/notfound/notfound.component.html +10 -0
- package/src/lib/components/notfound/notfound.component.ts +25 -0
- package/src/lib/components/notification/notification.component.css +45 -0
- package/src/lib/components/notification/notification.component.html +2 -0
- package/src/lib/components/notification/notification.component.ts +11 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.css +236 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.html +16 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.ts +54 -0
- package/src/lib/components/sidebar/sidebar.component.css +42 -0
- package/src/lib/components/sidebar/sidebar.component.html +10 -0
- package/src/lib/components/sidebar/sidebar.component.ts +60 -0
- package/src/lib/components/steps/steps.component.css +320 -0
- package/src/lib/components/steps/steps.component.html +18 -0
- package/src/lib/components/steps/steps.component.ts +44 -0
- package/src/lib/components/table/loading/table.loading.component.css +29 -0
- package/src/lib/components/table/loading/table.loading.component.html +9 -0
- package/src/lib/components/table/loading/table.loading.component.ts +14 -0
- package/src/lib/components/table/pagination/table.pagination.component.css +138 -0
- package/src/lib/components/table/pagination/table.pagination.component.html +9 -0
- package/src/lib/components/table/pagination/table.pagination.component.ts +89 -0
- package/src/lib/components/table/report/table.report.component.css +125 -0
- package/src/lib/components/table/report/table.report.component.html +19 -0
- package/src/lib/components/table/report/table.report.component.ts +238 -0
- package/src/lib/components/table/row/table.row.component.css +170 -0
- package/src/lib/components/table/row/table.row.component.html +21 -0
- package/src/lib/components/table/row/table.row.component.ts +373 -0
- package/src/lib/components/table/table.component.css +116 -0
- package/src/lib/components/table/table.component.html +62 -0
- package/src/lib/components/table/table.component.ts +180 -0
- package/src/lib/components/tooltip/tooltip.component.css +159 -0
- package/src/lib/components/tooltip/tooltip.component.html +1 -0
- package/src/lib/components/tooltip/tooltip.component.ts +15 -0
- package/src/lib/ps-toolkit-ui.module.ts +94 -0
- package/src/lib/services/config.service.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +53 -48
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/ps-toolkit-ui.umd.js +0 -7646
- package/bundles/ps-toolkit-ui.umd.js.map +0 -1
- package/bundles/ps-toolkit-ui.umd.min.js +0 -2
- package/bundles/ps-toolkit-ui.umd.min.js.map +0 -1
- package/esm2015/lib/classes/chart.class.js +0 -140
- package/esm2015/lib/classes/enum.class.js +0 -187
- package/esm2015/lib/classes/form.class.js +0 -481
- package/esm2015/lib/classes/helper.class.js +0 -284
- package/esm2015/lib/classes/lang.class.js +0 -32
- package/esm2015/lib/classes/login.class.js +0 -22
- package/esm2015/lib/classes/modal.class.js +0 -52
- package/esm2015/lib/classes/permission.class.js +0 -61
- package/esm2015/lib/classes/request.class.js +0 -256
- package/esm2015/lib/classes/safestyle.class.js +0 -15
- package/esm2015/lib/classes/sidebar.class.js +0 -14
- package/esm2015/lib/classes/steps.class.js +0 -20
- package/esm2015/lib/classes/string.class.js +0 -220
- package/esm2015/lib/classes/table.class.js +0 -215
- package/esm2015/lib/components/accordion/accordion.component.js +0 -45
- package/esm2015/lib/components/alert/alert.component.js +0 -39
- package/esm2015/lib/components/base.component.js +0 -45
- package/esm2015/lib/components/calendar/calendar.component.js +0 -97
- package/esm2015/lib/components/chart/chart.component.js +0 -17
- package/esm2015/lib/components/clock/clock.component.js +0 -33
- package/esm2015/lib/components/confirm/confirm.component.js +0 -50
- package/esm2015/lib/components/footer/footer.component.js +0 -23
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +0 -148
- package/esm2015/lib/components/form/button/form.button.component.js +0 -68
- package/esm2015/lib/components/form/car/form.car.component.js +0 -84
- package/esm2015/lib/components/form/car/search/form.car.search.component.js +0 -172
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +0 -66
- package/esm2015/lib/components/form/date/form.date.component.js +0 -254
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +0 -104
- package/esm2015/lib/components/form/file/form.file.component.js +0 -133
- package/esm2015/lib/components/form/finger/form.finger.component.js +0 -138
- package/esm2015/lib/components/form/hidden/form.hidden.component.js +0 -31
- package/esm2015/lib/components/form/icon/form.icon.component.js +0 -76
- package/esm2015/lib/components/form/index/form.component.js +0 -48
- package/esm2015/lib/components/form/label/form.label.component.js +0 -32
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +0 -176
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +0 -390
- package/esm2015/lib/components/form/radio/form.radio.component.js +0 -79
- package/esm2015/lib/components/form/select/form.select.component.js +0 -374
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +0 -43
- package/esm2015/lib/components/form/table/form.table.component.js +0 -98
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +0 -78
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +0 -186
- package/esm2015/lib/components/form/time/form.time.component.js +0 -145
- package/esm2015/lib/components/form/tree/form.tree.component.js +0 -99
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +0 -48
- package/esm2015/lib/components/header/header.component.js +0 -33
- package/esm2015/lib/components/header/sub/sub.header.component.js +0 -14
- package/esm2015/lib/components/layout/layout.component.js +0 -25
- package/esm2015/lib/components/loading/loading.component.js +0 -22
- package/esm2015/lib/components/login/login.component.js +0 -148
- package/esm2015/lib/components/modal/modal.component.js +0 -25
- package/esm2015/lib/components/notfound/notfound.component.js +0 -29
- package/esm2015/lib/components/notification/notification.component.js +0 -14
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +0 -53
- package/esm2015/lib/components/sidebar/sidebar.component.js +0 -67
- package/esm2015/lib/components/steps/steps.component.js +0 -51
- package/esm2015/lib/components/table/loading/table.loading.component.js +0 -17
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +0 -84
- package/esm2015/lib/components/table/report/table.report.component.js +0 -246
- package/esm2015/lib/components/table/row/table.row.component.js +0 -379
- package/esm2015/lib/components/table/table.component.js +0 -179
- package/esm2015/lib/components/tooltip/tooltip.component.js +0 -19
- package/esm2015/lib/ps-toolkit-ui.module.js +0 -95
- package/esm2015/lib/services/config.service.js +0 -14
- package/esm2015/ps-toolkit-ui.js +0 -20
- package/esm2015/public-api.js +0 -52
- package/fesm2015/ps-toolkit-ui.js +0 -6566
- package/fesm2015/ps-toolkit-ui.js.map +0 -1
- package/lib/classes/chart.class.d.ts +0 -11
- package/lib/classes/enum.class.d.ts +0 -158
- package/lib/classes/form.class.d.ts +0 -173
- package/lib/classes/helper.class.d.ts +0 -28
- package/lib/classes/lang.class.d.ts +0 -5
- package/lib/classes/login.class.d.ts +0 -17
- package/lib/classes/modal.class.d.ts +0 -19
- package/lib/classes/permission.class.d.ts +0 -31
- package/lib/classes/request.class.d.ts +0 -12
- package/lib/classes/safestyle.class.d.ts +0 -7
- package/lib/classes/sidebar.class.d.ts +0 -11
- package/lib/classes/steps.class.d.ts +0 -17
- package/lib/classes/string.class.d.ts +0 -218
- package/lib/classes/table.class.d.ts +0 -69
- package/lib/components/accordion/accordion.component.d.ts +0 -7
- package/lib/components/alert/alert.component.d.ts +0 -10
- package/lib/components/base.component.d.ts +0 -14
- package/lib/components/calendar/calendar.component.d.ts +0 -26
- package/lib/components/chart/chart.component.d.ts +0 -5
- package/lib/components/clock/clock.component.d.ts +0 -11
- package/lib/components/confirm/confirm.component.d.ts +0 -14
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/form/bank-card/form.bank-card.component.d.ts +0 -22
- package/lib/components/form/button/form.button.component.d.ts +0 -15
- package/lib/components/form/car/form.car.component.d.ts +0 -16
- package/lib/components/form/car/search/form.car.search.component.d.ts +0 -17
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -14
- package/lib/components/form/date/form.date.component.d.ts +0 -42
- package/lib/components/form/datetime/form.datetime.component.d.ts +0 -13
- package/lib/components/form/file/form.file.component.d.ts +0 -17
- package/lib/components/form/finger/form.finger.component.d.ts +0 -15
- package/lib/components/form/hidden/form.hidden.component.d.ts +0 -7
- package/lib/components/form/icon/form.icon.component.d.ts +0 -15
- package/lib/components/form/index/form.component.d.ts +0 -10
- package/lib/components/form/label/form.label.component.d.ts +0 -8
- package/lib/components/form/plaque/form.plaque.component.d.ts +0 -22
- package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +0 -36
- package/lib/components/form/radio/form.radio.component.d.ts +0 -13
- package/lib/components/form/select/form.select.component.d.ts +0 -39
- package/lib/components/form/select/item/form.select.item.component.d.ts +0 -12
- package/lib/components/form/table/form.table.component.d.ts +0 -9
- package/lib/components/form/textarea/form.textarea.component.d.ts +0 -13
- package/lib/components/form/textbox/form.textbox.component.d.ts +0 -20
- package/lib/components/form/time/form.time.component.d.ts +0 -25
- package/lib/components/form/tree/form.tree.component.d.ts +0 -16
- package/lib/components/form/tree/item/form.tree.item.component.d.ts +0 -17
- package/lib/components/header/header.component.d.ts +0 -9
- package/lib/components/header/sub/sub.header.component.d.ts +0 -3
- package/lib/components/layout/layout.component.d.ts +0 -8
- package/lib/components/loading/loading.component.d.ts +0 -5
- package/lib/components/login/login.component.d.ts +0 -13
- package/lib/components/modal/modal.component.d.ts +0 -9
- package/lib/components/notfound/notfound.component.d.ts +0 -8
- package/lib/components/notification/notification.component.d.ts +0 -3
- package/lib/components/sidebar/item/sidebar.item.component.d.ts +0 -14
- package/lib/components/sidebar/sidebar.component.d.ts +0 -19
- package/lib/components/steps/steps.component.d.ts +0 -10
- package/lib/components/table/loading/table.loading.component.d.ts +0 -5
- package/lib/components/table/pagination/table.pagination.component.d.ts +0 -15
- package/lib/components/table/report/table.report.component.d.ts +0 -34
- package/lib/components/table/row/table.row.component.d.ts +0 -34
- package/lib/components/table/table.component.d.ts +0 -40
- package/lib/components/tooltip/tooltip.component.d.ts +0 -5
- package/lib/ps-toolkit-ui.module.d.ts +0 -4
- package/lib/services/config.service.d.ts +0 -6
- package/ps-toolkit-ui.d.ts +0 -19
- package/ps-toolkit-ui.metadata.json +0 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import {FormClass, InputClass} from './form.class';
|
|
2
|
+
import {InputError, InputType, Method, ResultStatusEnum} from './enum.class';
|
|
3
|
+
import {TableClass} from './table.class';
|
|
4
|
+
import {HelperClass} from './helper.class';
|
|
5
|
+
import * as $ from 'jquery';
|
|
6
|
+
|
|
7
|
+
export class RequestClass {
|
|
8
|
+
constructor(public environment = null, public l: (k, v?) => string = null) {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
postForm(form: FormClass, onSubmit = null): void {
|
|
12
|
+
if (!form.check()) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (form.onBeforeSubmit && !form.onBeforeSubmit()){
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const btns = form.inputs.filter(x => x.type === InputType.Submit);
|
|
19
|
+
for (const btn of btns){
|
|
20
|
+
if (btn.loading){
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
btn.loading = true;
|
|
24
|
+
}
|
|
25
|
+
if (onSubmit){
|
|
26
|
+
for (const btn of btns){
|
|
27
|
+
btn.loading = false;
|
|
28
|
+
}
|
|
29
|
+
onSubmit(form.data());
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.getClient(form.url, form.method, form.data(),
|
|
33
|
+
(res) => {
|
|
34
|
+
if (res.status === ResultStatusEnum.Success) {
|
|
35
|
+
if (form.onSuccess) {
|
|
36
|
+
form.onSuccess(res.result);
|
|
37
|
+
}
|
|
38
|
+
if (form.onSuccessBase) {
|
|
39
|
+
form.onSuccessBase(res.result);
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
let m = '';
|
|
43
|
+
if (res.status === ResultStatusEnum.Unauthorized) {
|
|
44
|
+
m = form.l('FormBaseErrorExpired');
|
|
45
|
+
} else if (res.status === ResultStatusEnum.NotAccess) {
|
|
46
|
+
m = form.l('FormBaseErrorPermission');
|
|
47
|
+
} else {
|
|
48
|
+
if (typeof res.message === 'string'){
|
|
49
|
+
const am = res.message.split(':');
|
|
50
|
+
m = form.l(am[0], am.length > 1 ? am.slice(1) : null);
|
|
51
|
+
}else{
|
|
52
|
+
// tslint:disable-next-line:forin
|
|
53
|
+
for (const msg in res.message) {
|
|
54
|
+
// noinspection JSUnfilteredForInLoop
|
|
55
|
+
m = form.l(msg, res.message[msg]);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
let f = false;
|
|
59
|
+
if (res.result != null){
|
|
60
|
+
// tslint:disable-next-line:forin
|
|
61
|
+
for (const err in res.result) {
|
|
62
|
+
// noinspection JSUnfilteredForInLoop
|
|
63
|
+
const i = form.inputs.find(x => x.name === err);
|
|
64
|
+
if (i){
|
|
65
|
+
// noinspection JSUnfilteredForInLoop
|
|
66
|
+
i.error = InputError[InputError[res.result[err]]];
|
|
67
|
+
if (!f){
|
|
68
|
+
i.focus();
|
|
69
|
+
f = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (m) {
|
|
76
|
+
HelperClass.addNotification(m);
|
|
77
|
+
}
|
|
78
|
+
if (form.onFailed) {
|
|
79
|
+
form.onFailed(res.message);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
for (const btn of btns){
|
|
83
|
+
btn.loading = false;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
(res) => {
|
|
87
|
+
HelperClass.addNotification(form.l('Error'));
|
|
88
|
+
if (form.onFailed) {
|
|
89
|
+
form.onFailed('Error');
|
|
90
|
+
}
|
|
91
|
+
for (const btn of btns){
|
|
92
|
+
btn.loading = false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
table(table: TableClass, btn: InputClass = null): void {
|
|
99
|
+
if (table.searchForm && !table.searchForm.check()) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
table.loading = true;
|
|
103
|
+
if (btn){
|
|
104
|
+
if (btn.loading){
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
btn.loading = true;
|
|
108
|
+
}
|
|
109
|
+
this.getClient(table.getUrl(), table.method, table.searchData(),
|
|
110
|
+
(res) => {
|
|
111
|
+
if (res.status === ResultStatusEnum.Success) {
|
|
112
|
+
table.rows = res.result.List;
|
|
113
|
+
table.count = res.result.Count;
|
|
114
|
+
if (table.onLoad){
|
|
115
|
+
table.onLoad();
|
|
116
|
+
}
|
|
117
|
+
if (btn){
|
|
118
|
+
btn.loading = false;
|
|
119
|
+
}
|
|
120
|
+
table.loading = false;
|
|
121
|
+
} else {
|
|
122
|
+
let m = '';
|
|
123
|
+
if (res.status === ResultStatusEnum.Unauthorized) {
|
|
124
|
+
m = 'FormBaseErrorExpired';
|
|
125
|
+
} else if (res.status === ResultStatusEnum.NotAccess) {
|
|
126
|
+
m = 'FormBaseErrorPermission';
|
|
127
|
+
} else {
|
|
128
|
+
if (typeof res.message === 'string'){
|
|
129
|
+
m = res.message;
|
|
130
|
+
}else{
|
|
131
|
+
// tslint:disable-next-line:forin
|
|
132
|
+
for (const msg in res.message) {
|
|
133
|
+
// noinspection JSUnfilteredForInLoop
|
|
134
|
+
m = table.l(msg, res.message[msg]);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (m) {
|
|
139
|
+
HelperClass.addNotification(table.l(m));
|
|
140
|
+
}
|
|
141
|
+
table.rows = [];
|
|
142
|
+
table.count = 0;
|
|
143
|
+
table.page = 1;
|
|
144
|
+
if (btn){
|
|
145
|
+
btn.loading = false;
|
|
146
|
+
}
|
|
147
|
+
table.loading = false;
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
(res) => {
|
|
151
|
+
table.rows = [];
|
|
152
|
+
table.count = 0;
|
|
153
|
+
table.page = 1;
|
|
154
|
+
if (btn){
|
|
155
|
+
btn.loading = false;
|
|
156
|
+
}
|
|
157
|
+
table.loading = false;
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
send(url: string, method: Method, data: any, btn: InputClass = null, success: (result) => void = null,
|
|
162
|
+
failure: (message) => void = null): void {
|
|
163
|
+
if (btn){
|
|
164
|
+
if (btn.loading){
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
btn.loading = true;
|
|
168
|
+
}
|
|
169
|
+
if (data === null){
|
|
170
|
+
data = new FormData();
|
|
171
|
+
}
|
|
172
|
+
this.getClient(url, method, data,
|
|
173
|
+
(res) => {
|
|
174
|
+
if (res.status === ResultStatusEnum.Success) {
|
|
175
|
+
if (success) {
|
|
176
|
+
success(res.result);
|
|
177
|
+
}
|
|
178
|
+
if (btn){
|
|
179
|
+
btn.loading = false;
|
|
180
|
+
}
|
|
181
|
+
} else {
|
|
182
|
+
let m = '';
|
|
183
|
+
if (res.status === ResultStatusEnum.Unauthorized) {
|
|
184
|
+
m = 'FormBaseErrorExpired';
|
|
185
|
+
} else if (res.status === ResultStatusEnum.NotAccess) {
|
|
186
|
+
m = 'FormBaseErrorPermission';
|
|
187
|
+
} else {
|
|
188
|
+
if (typeof res.message === 'string'){
|
|
189
|
+
m = res.message;
|
|
190
|
+
}else{
|
|
191
|
+
// tslint:disable-next-line:forin
|
|
192
|
+
for (const msg in res.message) {
|
|
193
|
+
// noinspection JSUnfilteredForInLoop
|
|
194
|
+
m = this.l(msg, res.message[msg]);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (m) {
|
|
199
|
+
HelperClass.addNotification(this.l(m));
|
|
200
|
+
}
|
|
201
|
+
if (failure) {
|
|
202
|
+
failure(res.message);
|
|
203
|
+
}
|
|
204
|
+
if (btn){
|
|
205
|
+
btn.loading = false;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
(res) => {
|
|
210
|
+
if (failure) {
|
|
211
|
+
failure('Error');
|
|
212
|
+
}
|
|
213
|
+
if (btn){
|
|
214
|
+
btn.loading = false;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
getClient(url: string, method: Method, data: any, done, fail): void{
|
|
220
|
+
const token = HelperClass.getCookie('Authorization');
|
|
221
|
+
let settings;
|
|
222
|
+
if (data instanceof FormData){
|
|
223
|
+
settings = {
|
|
224
|
+
url: this.environment.apiUrl + url,
|
|
225
|
+
method: Method[method].toString(),
|
|
226
|
+
processData: false,
|
|
227
|
+
contentType: false,
|
|
228
|
+
data,
|
|
229
|
+
headers: token == null ? {} : { Authorization: token }
|
|
230
|
+
};
|
|
231
|
+
}else{
|
|
232
|
+
settings = {
|
|
233
|
+
url: this.environment.apiUrl + url,
|
|
234
|
+
method: Method[method].toString(),
|
|
235
|
+
dataType: 'json',
|
|
236
|
+
contentType: 'application/json; charset=utf-8',
|
|
237
|
+
data: data !== null && data !== {} ? JSON.stringify(data) : null,
|
|
238
|
+
headers: token == null ? {} : { Authorization: token, Accept: 'application/json' }
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
const request = $.ajax(settings);
|
|
242
|
+
request.done((response) => {
|
|
243
|
+
if (!this.environment.production){
|
|
244
|
+
console.log('%c' + Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
|
|
245
|
+
}
|
|
246
|
+
done(response);
|
|
247
|
+
});
|
|
248
|
+
request.fail((response) => {
|
|
249
|
+
if (!this.environment.production){
|
|
250
|
+
console.log('%c' + Method[method].toString() + ' : ' + url, 'background: #8c413a; color: white', response);
|
|
251
|
+
}
|
|
252
|
+
fail(response);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {Pipe, PipeTransform} from '@angular/core';
|
|
2
|
+
import {DomSanitizer} from '@angular/platform-browser';
|
|
3
|
+
|
|
4
|
+
@Pipe({ name: 'safeStyle' }) export class SafeStylePipe implements PipeTransform { constructor(private sanitizer: DomSanitizer) { } transform(value) { return this.sanitizer.bypassSecurityTrustStyle(value); } }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class SidebarClass {
|
|
2
|
+
constructor(l: (k, v?) => string, name: string, controller: string, action: string, icon: string, children: SidebarClass[] = [],
|
|
3
|
+
count = 0) {
|
|
4
|
+
this.l = l;
|
|
5
|
+
this.controller = controller;
|
|
6
|
+
this.action = action;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.icon = icon;
|
|
9
|
+
this.count = count;
|
|
10
|
+
this.children = children;
|
|
11
|
+
}
|
|
12
|
+
l: (k, v?) => string;
|
|
13
|
+
controller: string;
|
|
14
|
+
action: string;
|
|
15
|
+
name: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
count = 0;
|
|
18
|
+
children: SidebarClass[];
|
|
19
|
+
active = false;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {FormClass} from './form.class';
|
|
2
|
+
|
|
3
|
+
export class StepsClass {
|
|
4
|
+
constructor(l: (k, v?) => string) {
|
|
5
|
+
this.l = l;
|
|
6
|
+
}
|
|
7
|
+
l: (k, v?) => string;
|
|
8
|
+
items: StepsItemClass[] = [];
|
|
9
|
+
activeAll = false;
|
|
10
|
+
}
|
|
11
|
+
export class StepsItemClass {
|
|
12
|
+
constructor(public name: string, public icon: string, public url: string = null, public active: boolean = false) {
|
|
13
|
+
this.title = name;
|
|
14
|
+
}
|
|
15
|
+
title: string;
|
|
16
|
+
description: string = null;
|
|
17
|
+
onClick: (item) => void = null;
|
|
18
|
+
onDelete: (item) => void = null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
export const strings = {
|
|
2
|
+
fa: {
|
|
3
|
+
Public: {
|
|
4
|
+
Header: {
|
|
5
|
+
Logout: 'خروج'
|
|
6
|
+
},
|
|
7
|
+
Login: {
|
|
8
|
+
ReSendCodeDes: '(ارسال مجدد)',
|
|
9
|
+
Code: 'کد تایید',
|
|
10
|
+
Base: 'نام سایت',
|
|
11
|
+
BaseDesc: 'توضیحات سایت',
|
|
12
|
+
SendCode: 'ورود',
|
|
13
|
+
SendCodeSubTitle: 'برای ورود شماره همراه خود را وارد کنید',
|
|
14
|
+
LoginSms: 'تایید شماره همراه',
|
|
15
|
+
LoginSmsSubTitle: 'کد ارسال شده به شماره همراه {} را وارد کنید',
|
|
16
|
+
LoginPassword: 'ورود',
|
|
17
|
+
LoginPasswordSubTitle: 'برای ورود نام کاربری و کلمه عبور خود را وارد کنید',
|
|
18
|
+
Register: 'ثبت کد تایید نرم افزار',
|
|
19
|
+
DeviceId: 'کد نرم افزار: {}',
|
|
20
|
+
Copy: 'کپی',
|
|
21
|
+
},
|
|
22
|
+
Footer: {
|
|
23
|
+
Copyright: 'تمامی حقوق این وبسایت برای پارت سیلیکون محفوظ است.',
|
|
24
|
+
CreatorDesc: 'طراحی و توسعه',
|
|
25
|
+
CreatorCom: 'پارت سیلیکون'
|
|
26
|
+
},
|
|
27
|
+
App: {
|
|
28
|
+
Notfound: 'صفحه مورد نظر یافت نشد',
|
|
29
|
+
},
|
|
30
|
+
Notfound: {
|
|
31
|
+
Text: 'متاسفانه صفحه مورد نظر شما یافت نشد',
|
|
32
|
+
Back: 'بازگشت'
|
|
33
|
+
},
|
|
34
|
+
Version: 'نسخه {}',
|
|
35
|
+
Download: 'دریافت فایل',
|
|
36
|
+
IranCode: 'ایران کد',
|
|
37
|
+
TrackingCode: 'کد رهگیری',
|
|
38
|
+
Plaque: 'پلاک',
|
|
39
|
+
DriverName: 'نام راننده',
|
|
40
|
+
Name: 'نام',
|
|
41
|
+
Title: 'عنوان',
|
|
42
|
+
Text: 'متن',
|
|
43
|
+
Date: 'تاریخ',
|
|
44
|
+
Time: 'زمان',
|
|
45
|
+
Row: 'ردیف',
|
|
46
|
+
LoginTitle: 'ورود',
|
|
47
|
+
SendCode: 'ارسال کد',
|
|
48
|
+
Username: 'نام کاربری',
|
|
49
|
+
GetReport: 'چاپ',
|
|
50
|
+
Count: 'تعداد',
|
|
51
|
+
Choose: 'انتخاب',
|
|
52
|
+
Payable: 'مبلغ قابل پرداخت : {} ریال</br><span class="f-s-20">تایید و انتقال به درگاه پرداخت</span>',
|
|
53
|
+
PayableLoading: '<span class="l-h-60">تایید و انتقال به درگاه پرداخت</span>',
|
|
54
|
+
Processing: 'پردازش',
|
|
55
|
+
PDate: 'تاریخ',
|
|
56
|
+
SeeMore: 'نمایش بیشتر ...',
|
|
57
|
+
Alert: 'هشدار',
|
|
58
|
+
AccessDenied: 'عدم دسترسی',
|
|
59
|
+
Image: 'تصویر',
|
|
60
|
+
Grade: 'پایه تحصیلی',
|
|
61
|
+
Close: 'بستن',
|
|
62
|
+
Desc: 'توضیحات',
|
|
63
|
+
Admin: 'ادمین',
|
|
64
|
+
Print: 'گزارش',
|
|
65
|
+
Password: 'کلمه عبور',
|
|
66
|
+
RePassword: 'تکرار کلمه عبور',
|
|
67
|
+
PassportLetter: 'حرف',
|
|
68
|
+
Passport: 'گذرنامه',
|
|
69
|
+
List: 'لیست',
|
|
70
|
+
Priority: 'اولویت',
|
|
71
|
+
PassportImage: 'تصویر گذرنامه',
|
|
72
|
+
PassportExpireDate: 'تاریخ انقضاء گذرنامه',
|
|
73
|
+
PassportPlace: 'محل صدور گذرنامه',
|
|
74
|
+
NationalCode: 'کدملی',
|
|
75
|
+
LicenseNum: 'شماره گواهی نامه',
|
|
76
|
+
BankCard: 'شماره کارت بانکی',
|
|
77
|
+
VehicleType: 'نوع وسیله نقلیه',
|
|
78
|
+
Gender: 'جنسیت',
|
|
79
|
+
Male: 'مرد',
|
|
80
|
+
FeMale: 'زن',
|
|
81
|
+
Accept: 'تایید',
|
|
82
|
+
Insert: 'افزودن',
|
|
83
|
+
Update: 'ویرایش',
|
|
84
|
+
Delete: 'حذف',
|
|
85
|
+
Subset: 'زیرمجموعه',
|
|
86
|
+
Other: 'سایر',
|
|
87
|
+
Rial: 'ریال',
|
|
88
|
+
ChooseMonth: 'انتخاب ماه',
|
|
89
|
+
FullName: 'نام کامل',
|
|
90
|
+
FirstName: 'نام',
|
|
91
|
+
Backup: 'بک آپ',
|
|
92
|
+
LastName: 'نام خانوادگی',
|
|
93
|
+
OperationSuccessful: 'عملیات با موفقیت انجام شد',
|
|
94
|
+
Reject: 'رد کردن',
|
|
95
|
+
Code: 'کد تایید',
|
|
96
|
+
InvalidRequest: 'درخواست شما نامعتبر است',
|
|
97
|
+
ChangeNotAllow: 'امکان ایجاد تغییرات وجود ندارد',
|
|
98
|
+
Confirm: 'تاییدیه',
|
|
99
|
+
Search: 'جستجو',
|
|
100
|
+
Yes: 'بله',
|
|
101
|
+
No: 'خیر',
|
|
102
|
+
Email: 'پست الکترونیک',
|
|
103
|
+
Mobile: 'شماره همراه',
|
|
104
|
+
Mobile2: 'شماره همراه 2',
|
|
105
|
+
Phone: 'شماره تلفن منزل',
|
|
106
|
+
Address: 'آدرس',
|
|
107
|
+
Add: 'افزودن',
|
|
108
|
+
Edit: 'ویرایش',
|
|
109
|
+
VerifyCode: 'تایید کد',
|
|
110
|
+
Status: 'وضعیت',
|
|
111
|
+
Show: 'نمایش',
|
|
112
|
+
Step: 'وضعیت',
|
|
113
|
+
Pending: 'در حال بررسی',
|
|
114
|
+
Accepted: 'تایید شده',
|
|
115
|
+
Canceled: 'انصراف',
|
|
116
|
+
Rejected: 'رد شده : {}',
|
|
117
|
+
Answered: 'پاسخ داده شده',
|
|
118
|
+
FromDate: 'از تاریخ',
|
|
119
|
+
ToDate: 'تا تاریخ',
|
|
120
|
+
Package: 'اشتراک',
|
|
121
|
+
CodeInvalid: 'کد تایید نامعتبر است',
|
|
122
|
+
CodeExpired: 'کد تایید منقضی شده است',
|
|
123
|
+
Price: 'قیمت',
|
|
124
|
+
Description: 'توضیحات',
|
|
125
|
+
Photo: 'تصویر',
|
|
126
|
+
Select: 'انتخاب',
|
|
127
|
+
NextStep: 'مرحله بعد',
|
|
128
|
+
PreviousStep: 'مرحله قبل',
|
|
129
|
+
UploadFiles: 'بارگذاری مدارک',
|
|
130
|
+
NamadTitle: 'نماد',
|
|
131
|
+
Options: 'امکانات',
|
|
132
|
+
Process: 'پردازش',
|
|
133
|
+
NotfoundTitle: 'موردی یافت نشد',
|
|
134
|
+
PermissionDenied: 'عدم دسترسی',
|
|
135
|
+
PerPage: 'تعداد نمایش در هر صفحه',
|
|
136
|
+
Save: 'ذخیره',
|
|
137
|
+
Cancel: 'انصراف',
|
|
138
|
+
UserDeActive: 'نام کاربری غیر فعال شده است',
|
|
139
|
+
DeleteConfirm: 'آیا از حذف این مورد مطمئن هستید ؟',
|
|
140
|
+
ChooseFiles: 'انتخاب فایل ها',
|
|
141
|
+
CodeNotExpired: 'کد تایید ارسال شده منقضی نشده است',
|
|
142
|
+
ChooseFile: 'انتخاب فایل',
|
|
143
|
+
FileNotSelected: 'فایلی انتخاب نشده است',
|
|
144
|
+
FileSelected: '{} فایل انتخاب شده ({})',
|
|
145
|
+
Selected: 'انتخاب شده',
|
|
146
|
+
Limit: 'محدودیت',
|
|
147
|
+
Today: 'امروز : {}',
|
|
148
|
+
SendCodeLimit: 'محدودیت در ارسال کد',
|
|
149
|
+
SendCodeError: 'خطا در ارسال کد',
|
|
150
|
+
CodeNotFound: 'کد تایید ارسال نشده است',
|
|
151
|
+
Total: 'جمع کل',
|
|
152
|
+
Month1: 'فروردین',
|
|
153
|
+
Month2: 'اردیبهشت',
|
|
154
|
+
Month3: 'خرداد',
|
|
155
|
+
Month4: 'تیر',
|
|
156
|
+
Month5: 'مرداد',
|
|
157
|
+
Month6: 'شهریور',
|
|
158
|
+
Month7: 'مهر',
|
|
159
|
+
Month8: 'آبان',
|
|
160
|
+
Month9: 'آذر',
|
|
161
|
+
Month10: 'دی',
|
|
162
|
+
Month11: 'بهمن',
|
|
163
|
+
Month12: 'اسفند',
|
|
164
|
+
Day: 'روز',
|
|
165
|
+
HourP: '{} ساعت',
|
|
166
|
+
MinuteP: '{} دقیقه',
|
|
167
|
+
Hour: 'ساعت',
|
|
168
|
+
Minute: 'دقیقه',
|
|
169
|
+
AFew: 'چند لحظه',
|
|
170
|
+
Ago: 'پیش',
|
|
171
|
+
Later: 'دیگر',
|
|
172
|
+
LessThanMinute: 'کمتر از یک دقیقه',
|
|
173
|
+
Finished: 'پایان یافته',
|
|
174
|
+
Reload: 'بارگیری مجدد',
|
|
175
|
+
Maximum: 'بزرگ نمایی',
|
|
176
|
+
Minimum: 'کوچک نمایی',
|
|
177
|
+
Export: 'خروجی',
|
|
178
|
+
Send: 'ارسال',
|
|
179
|
+
And: ' و ',
|
|
180
|
+
UsernamePasswordInvalid: 'نام کاربری یا کلمه عبور اشتباه است',
|
|
181
|
+
DbUpdateException: 'امکان حذف رکورد مورد نظر به دلیل استفاده شدن در سامانه وجود ندارد',
|
|
182
|
+
// tslint:disable-next-line
|
|
183
|
+
LoadingDot: '<span class="dot-spinner black"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
184
|
+
LoadingDotWhite: '<span class="dot-spinner white"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
185
|
+
Loading: 'در حال {} <span class="dot-spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
186
|
+
LoadingComp: 'در حال {} <span class="dot-spinner comp"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
187
|
+
LoadingEmpty: '<span class="dot-spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
188
|
+
LoadingTable: '<i class="fas fa-spin fa-spinner m-l-5-p icon"></i> در حال {} <span class="dot-spinner black"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
|
|
189
|
+
LoadingText: 'در حال {}',
|
|
190
|
+
Waiting: 'انتظار',
|
|
191
|
+
Required: 'را وارد کنید',
|
|
192
|
+
Invalid: 'نامعتبر است',
|
|
193
|
+
FormErrorRequired: '{} را وارد کنید',
|
|
194
|
+
FormErrorInvalid: '{} نامعتبر است',
|
|
195
|
+
FormErrorLength: 'طول {} باید {} کاراکتر باشد',
|
|
196
|
+
FormErrorMinLength: 'طول {} باید حداقل {} کاراکتر باشد',
|
|
197
|
+
FormErrorMaxLength: 'طول {} باید حداکثر {} کاراکتر باشد',
|
|
198
|
+
FormErrorMinAmount: 'مقدار {} باید حداقل {} باشد',
|
|
199
|
+
FormErrorMaxAmount: 'مقدار {} باید حداکثر {} باشد',
|
|
200
|
+
FormErrorExpired: '{} منقضی شده است',
|
|
201
|
+
FormErrorWrong: '{} اشتباه است',
|
|
202
|
+
FormErrorNotMatch: '{} با تکرار آن مطابقت ندارد',
|
|
203
|
+
FormErrorExist: '{} در سامانه ثبت شده است',
|
|
204
|
+
FormErrorNotExist: '{} در سامانه ثبت نشده است',
|
|
205
|
+
FormErrorNotAllowed: 'نوع فایل {} نامعتبر است ({})',
|
|
206
|
+
FormErrorMaxContent: 'حجم فایل {} نباید بیشتر از {}KB باشد',
|
|
207
|
+
FormErrorUpload: 'خطا در بارگذاری {}',
|
|
208
|
+
FormError: 'خطا در {}',
|
|
209
|
+
FormBaseErrorExpired: 'لطفا مجددا وارد شوید',
|
|
210
|
+
FormBaseErrorRegistered: 'خطا در تایید کد نرم افزار',
|
|
211
|
+
ErrorUpload: 'خطا در بارگذاری فایل',
|
|
212
|
+
FormBaseErrorInvalidParam: 'خطا در اطلاعات ارسال شده',
|
|
213
|
+
FormBaseErrorTimeOut: 'درخواست شما بیش از حد معمول زمان برده است. لطفا مجددا تلاش کنید',
|
|
214
|
+
FormBaseErrorPermission: 'عدم دسترسی',
|
|
215
|
+
PaymentError: 'خطا در اتصال به درگاه بانکی',
|
|
216
|
+
Error: 'متاسفانه در سیستم خطایی به وجود آمده است. لطفا مجددا تلاش کنید',
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|