ps-toolkit-ui 0.0.1

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.
Files changed (162) hide show
  1. package/README.md +24 -0
  2. package/bundles/ps-toolkit-ui.umd.js +7344 -0
  3. package/bundles/ps-toolkit-ui.umd.js.map +1 -0
  4. package/bundles/ps-toolkit-ui.umd.min.js +2 -0
  5. package/bundles/ps-toolkit-ui.umd.min.js.map +1 -0
  6. package/esm2015/lib/classes/enum.class.js +162 -0
  7. package/esm2015/lib/classes/form.class.js +467 -0
  8. package/esm2015/lib/classes/helper.class.js +275 -0
  9. package/esm2015/lib/classes/lang.class.js +32 -0
  10. package/esm2015/lib/classes/login.class.js +22 -0
  11. package/esm2015/lib/classes/modal.class.js +52 -0
  12. package/esm2015/lib/classes/permission.class.js +29 -0
  13. package/esm2015/lib/classes/request.class.js +255 -0
  14. package/esm2015/lib/classes/safestyle.class.js +15 -0
  15. package/esm2015/lib/classes/sidebar.class.js +14 -0
  16. package/esm2015/lib/classes/steps.class.js +20 -0
  17. package/esm2015/lib/classes/string.class.js +203 -0
  18. package/esm2015/lib/classes/table.class.js +278 -0
  19. package/esm2015/lib/components/accordion/accordion.component.js +45 -0
  20. package/esm2015/lib/components/alert/alert.component.js +41 -0
  21. package/esm2015/lib/components/base.component.js +55 -0
  22. package/esm2015/lib/components/confirm/confirm.component.js +50 -0
  23. package/esm2015/lib/components/footer/footer.component.js +23 -0
  24. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +148 -0
  25. package/esm2015/lib/components/form/button/form.button.component.js +68 -0
  26. package/esm2015/lib/components/form/car/form.car.component.js +84 -0
  27. package/esm2015/lib/components/form/car/search/form.car.search.component.js +173 -0
  28. package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +66 -0
  29. package/esm2015/lib/components/form/date/form.date.component.js +256 -0
  30. package/esm2015/lib/components/form/datetime/form.datetime.component.js +104 -0
  31. package/esm2015/lib/components/form/file/form.file.component.js +133 -0
  32. package/esm2015/lib/components/form/finger/form.finger.component.js +138 -0
  33. package/esm2015/lib/components/form/icon/form.icon.component.js +76 -0
  34. package/esm2015/lib/components/form/index/form.component.js +48 -0
  35. package/esm2015/lib/components/form/label/form.label.component.js +31 -0
  36. package/esm2015/lib/components/form/plaque/form.plaque.component.js +176 -0
  37. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +390 -0
  38. package/esm2015/lib/components/form/radio/form.radio.component.js +79 -0
  39. package/esm2015/lib/components/form/select/form.select.component.js +369 -0
  40. package/esm2015/lib/components/form/select/item/form.select.item.component.js +43 -0
  41. package/esm2015/lib/components/form/table/form.table.component.js +98 -0
  42. package/esm2015/lib/components/form/textarea/form.textarea.component.js +78 -0
  43. package/esm2015/lib/components/form/textbox/form.textbox.component.js +186 -0
  44. package/esm2015/lib/components/form/time/form.time.component.js +145 -0
  45. package/esm2015/lib/components/form/tree/form.tree.component.js +93 -0
  46. package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +48 -0
  47. package/esm2015/lib/components/header/header.component.js +28 -0
  48. package/esm2015/lib/components/header/sub/sub.header.component.js +14 -0
  49. package/esm2015/lib/components/layout/layout.component.js +23 -0
  50. package/esm2015/lib/components/loading/loading.component.js +22 -0
  51. package/esm2015/lib/components/login/login.component.js +145 -0
  52. package/esm2015/lib/components/modal/modal.component.js +25 -0
  53. package/esm2015/lib/components/notfound/notfound.component.js +29 -0
  54. package/esm2015/lib/components/notification/notification.component.js +14 -0
  55. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +53 -0
  56. package/esm2015/lib/components/sidebar/sidebar.component.js +65 -0
  57. package/esm2015/lib/components/steps/steps.component.js +51 -0
  58. package/esm2015/lib/components/table/loading/table.loading.component.js +17 -0
  59. package/esm2015/lib/components/table/pagination/table.pagination.component.js +84 -0
  60. package/esm2015/lib/components/table/report/table.report.component.js +245 -0
  61. package/esm2015/lib/components/table/row/table.row.component.js +274 -0
  62. package/esm2015/lib/components/table/table.component.js +207 -0
  63. package/esm2015/lib/components/tooltip/tooltip.component.js +19 -0
  64. package/esm2015/lib/ps-toolkit-ui.module.js +89 -0
  65. package/esm2015/lib/services/config.service.js +14 -0
  66. package/esm2015/ps-toolkit-ui.js +16 -0
  67. package/esm2015/public-api.js +52 -0
  68. package/fesm2015/ps-toolkit-ui.js +6277 -0
  69. package/fesm2015/ps-toolkit-ui.js.map +1 -0
  70. package/lib/classes/enum.class.d.ts +137 -0
  71. package/lib/classes/form.class.d.ts +173 -0
  72. package/lib/classes/helper.class.d.ts +26 -0
  73. package/lib/classes/lang.class.d.ts +5 -0
  74. package/lib/classes/login.class.d.ts +17 -0
  75. package/lib/classes/modal.class.d.ts +19 -0
  76. package/lib/classes/permission.class.d.ts +19 -0
  77. package/lib/classes/request.class.d.ts +12 -0
  78. package/lib/classes/safestyle.class.d.ts +7 -0
  79. package/lib/classes/sidebar.class.d.ts +11 -0
  80. package/lib/classes/steps.class.d.ts +17 -0
  81. package/lib/classes/string.class.d.ts +201 -0
  82. package/lib/classes/table.class.d.ts +67 -0
  83. package/lib/components/accordion/accordion.component.d.ts +7 -0
  84. package/lib/components/alert/alert.component.d.ts +10 -0
  85. package/lib/components/base.component.d.ts +12 -0
  86. package/lib/components/confirm/confirm.component.d.ts +14 -0
  87. package/lib/components/footer/footer.component.d.ts +6 -0
  88. package/lib/components/form/bank-card/form.bank-card.component.d.ts +22 -0
  89. package/lib/components/form/button/form.button.component.d.ts +15 -0
  90. package/lib/components/form/car/form.car.component.d.ts +16 -0
  91. package/lib/components/form/car/search/form.car.search.component.d.ts +18 -0
  92. package/lib/components/form/checkbox/form.checkbox.component.d.ts +14 -0
  93. package/lib/components/form/date/form.date.component.d.ts +41 -0
  94. package/lib/components/form/datetime/form.datetime.component.d.ts +13 -0
  95. package/lib/components/form/file/form.file.component.d.ts +17 -0
  96. package/lib/components/form/finger/form.finger.component.d.ts +15 -0
  97. package/lib/components/form/icon/form.icon.component.d.ts +15 -0
  98. package/lib/components/form/index/form.component.d.ts +10 -0
  99. package/lib/components/form/label/form.label.component.d.ts +8 -0
  100. package/lib/components/form/plaque/form.plaque.component.d.ts +22 -0
  101. package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +36 -0
  102. package/lib/components/form/radio/form.radio.component.d.ts +13 -0
  103. package/lib/components/form/select/form.select.component.d.ts +39 -0
  104. package/lib/components/form/select/item/form.select.item.component.d.ts +12 -0
  105. package/lib/components/form/table/form.table.component.d.ts +9 -0
  106. package/lib/components/form/textarea/form.textarea.component.d.ts +13 -0
  107. package/lib/components/form/textbox/form.textbox.component.d.ts +20 -0
  108. package/lib/components/form/time/form.time.component.d.ts +25 -0
  109. package/lib/components/form/tree/form.tree.component.d.ts +16 -0
  110. package/lib/components/form/tree/item/form.tree.item.component.d.ts +17 -0
  111. package/lib/components/header/header.component.d.ts +7 -0
  112. package/lib/components/header/sub/sub.header.component.d.ts +3 -0
  113. package/lib/components/layout/layout.component.d.ts +6 -0
  114. package/lib/components/loading/loading.component.d.ts +5 -0
  115. package/lib/components/login/login.component.d.ts +13 -0
  116. package/lib/components/modal/modal.component.d.ts +9 -0
  117. package/lib/components/notfound/notfound.component.d.ts +7 -0
  118. package/lib/components/notification/notification.component.d.ts +3 -0
  119. package/lib/components/sidebar/item/sidebar.item.component.d.ts +14 -0
  120. package/lib/components/sidebar/sidebar.component.d.ts +18 -0
  121. package/lib/components/steps/steps.component.d.ts +10 -0
  122. package/lib/components/table/loading/table.loading.component.d.ts +5 -0
  123. package/lib/components/table/pagination/table.pagination.component.d.ts +15 -0
  124. package/lib/components/table/report/table.report.component.d.ts +34 -0
  125. package/lib/components/table/row/table.row.component.d.ts +36 -0
  126. package/lib/components/table/table.component.d.ts +39 -0
  127. package/lib/components/tooltip/tooltip.component.d.ts +5 -0
  128. package/lib/ps-toolkit-ui.module.d.ts +4 -0
  129. package/lib/services/config.service.d.ts +6 -0
  130. package/package.json +22 -0
  131. package/ps-toolkit-ui.d.ts +15 -0
  132. package/ps-toolkit-ui.metadata.json +1 -0
  133. package/public-api.d.ts +48 -0
  134. package/src/assets/fonts/Vazir.eot +0 -0
  135. package/src/assets/fonts/Vazir.ttf +0 -0
  136. package/src/assets/fonts/Vazir.woff +0 -0
  137. package/src/assets/fonts/Vazir.woff2 +0 -0
  138. package/src/assets/fonts/VazirBlack.eot +0 -0
  139. package/src/assets/fonts/VazirBlack.ttf +0 -0
  140. package/src/assets/fonts/VazirBlack.woff +0 -0
  141. package/src/assets/fonts/VazirBlack.woff2 +0 -0
  142. package/src/assets/fonts/VazirBold.eot +0 -0
  143. package/src/assets/fonts/VazirBold.ttf +0 -0
  144. package/src/assets/fonts/VazirBold.woff +0 -0
  145. package/src/assets/fonts/VazirBold.woff2 +0 -0
  146. package/src/assets/fonts/VazirLight.eot +0 -0
  147. package/src/assets/fonts/VazirLight.ttf +0 -0
  148. package/src/assets/fonts/VazirLight.woff +0 -0
  149. package/src/assets/fonts/VazirLight.woff2 +0 -0
  150. package/src/assets/fonts/VazirMedium.eot +0 -0
  151. package/src/assets/fonts/VazirMedium.ttf +0 -0
  152. package/src/assets/fonts/VazirMedium.woff +0 -0
  153. package/src/assets/fonts/VazirMedium.woff2 +0 -0
  154. package/src/assets/fonts/VazirThin.eot +0 -0
  155. package/src/assets/fonts/VazirThin.ttf +0 -0
  156. package/src/assets/fonts/VazirThin.woff +0 -0
  157. package/src/assets/fonts/VazirThin.woff2 +0 -0
  158. package/src/assets/images/partsilicon.png +0 -0
  159. package/src/assets/images/plaque.png +0 -0
  160. package/src/assets/images/plaque_m.png +0 -0
  161. package/src/assets/scripts/base.js +26 -0
  162. package/src/assets/styles/base.css +259 -0
@@ -0,0 +1,137 @@
1
+ export declare class EnumUtils {
2
+ static getValues(enumObj: any): any[];
3
+ static getKeyByValue(enumObj: any, v: any): any[];
4
+ static getKeys(enumObj: any): any[];
5
+ static getKeysAndValues(enumObj: any): any[];
6
+ }
7
+ export declare enum InputError {
8
+ Required = "Required",
9
+ Invalid = "Invalid",
10
+ Length = "Length",
11
+ MinLength = "MinLength",
12
+ MaxLength = "MaxLength",
13
+ MinAmount = "MinAmount",
14
+ MaxAmount = "MaxAmount",
15
+ Expired = "Expired",
16
+ Error = "Error",
17
+ NotMatch = "NotMatch",
18
+ NotAllowed = "NotAllowed",
19
+ MaxContent = "MaxContent",
20
+ Exist = "Exist",
21
+ NotExist = "NotExist",
22
+ Wrong = "Wrong",
23
+ Upload = "Upload"
24
+ }
25
+ export declare enum InputType {
26
+ Text = 0,
27
+ Password = 1,
28
+ Mobile = 2,
29
+ Phone = 3,
30
+ Email = 4,
31
+ NationalCode = 5,
32
+ PostalCode = 6,
33
+ Sheba = 7,
34
+ Number = 8,
35
+ Select = 9,
36
+ SelectSearch = 10,
37
+ SelectAutoComplete = 11,
38
+ Date = 12,
39
+ Time = 13,
40
+ DateTime = 14,
41
+ Check = 15,
42
+ TextArea = 16,
43
+ Label = 17,
44
+ Button = 18,
45
+ Submit = 19,
46
+ Icon = 20,
47
+ File = 21,
48
+ Url = 22,
49
+ Price = 23,
50
+ Radio = 24,
51
+ Tree = 25,
52
+ Plaque = 26,
53
+ PlaqueM = 27,
54
+ SelectAutoCompletePlaque = 28,
55
+ SelectAutoCompletePlaqueM = 29,
56
+ BankCard = 30,
57
+ Constant = 31,
58
+ Hidden = 32,
59
+ Table = 33,
60
+ CarSearch = 34,
61
+ Car = 35,
62
+ Finger = 36
63
+ }
64
+ export declare enum OperationEnum {
65
+ All = -1,
66
+ Insert = 1,
67
+ Update = 2,
68
+ Delete = 3
69
+ }
70
+ export declare enum Method {
71
+ Get = 0,
72
+ Post = 1,
73
+ Delete = 2,
74
+ Put = 3,
75
+ Options = 4,
76
+ Patch = 5
77
+ }
78
+ export declare enum TableCollType {
79
+ Text = 0,
80
+ Date = 1,
81
+ Time = 2,
82
+ DateTime = 3,
83
+ DateDif = 4,
84
+ DateRemain = 5,
85
+ Url = 6,
86
+ Image = 7,
87
+ Function = 8,
88
+ Price = 9,
89
+ Plaque = 10,
90
+ PlaqueText = 11,
91
+ FileSize = 12,
92
+ Bool = 13
93
+ }
94
+ export declare enum UserType {
95
+ All = 0,
96
+ Admin = 1,
97
+ User = 2
98
+ }
99
+ export declare enum StatusEnum {
100
+ All = -1,
101
+ Active = 0,
102
+ DeActive = 1,
103
+ Delete = 2,
104
+ Report = 3
105
+ }
106
+ export declare enum PaymentStatusEnum {
107
+ All = 0,
108
+ Success = 100,
109
+ NOK = 102,
110
+ Request = 103,
111
+ Notfound = 104,
112
+ NotRequest = 105,
113
+ NotfoundPackage = 106
114
+ }
115
+ export declare enum ResultStatusEnum {
116
+ Failed = 0,
117
+ Success = 1,
118
+ Unauthorized = 2,
119
+ NotAccess = 3
120
+ }
121
+ export declare enum PermissionTypeEnum {
122
+ Form = -1,
123
+ Access = 0,
124
+ OptionLink = 1,
125
+ OptionLinkNewTab = 2,
126
+ OptionReport = 3,
127
+ OptionFile = 4,
128
+ OptionModal = 5,
129
+ OptionConfirm = 6
130
+ }
131
+ export declare enum VehicleType {
132
+ Car = 1,
133
+ Motorcycle = 2,
134
+ Airplane = 3,
135
+ Train = 4,
136
+ Ship = 5
137
+ }
@@ -0,0 +1,173 @@
1
+ import { InputError, InputType, Method } from './enum.class';
2
+ import { TableClass } from './table.class';
3
+ import { ModalClass } from './modal.class';
4
+ export declare class Progress {
5
+ constructor(secs: number);
6
+ secs: number;
7
+ remainSecs: number;
8
+ percent: number;
9
+ interVal: any;
10
+ onEnd: () => void;
11
+ onStart: () => void;
12
+ start: () => void;
13
+ }
14
+ export declare class FormClass {
15
+ constructor(environment: any, l: (k: any, v?: any) => string, name?: string, permission?: boolean, url?: string, cls?: string);
16
+ l: (k: any, v?: any) => string;
17
+ permission: boolean;
18
+ environment: any;
19
+ name: string;
20
+ subName: string;
21
+ id: string;
22
+ class: string;
23
+ baseUrl: string;
24
+ url: string;
25
+ method: Method;
26
+ loading: boolean;
27
+ style: {};
28
+ onTop: boolean;
29
+ displayLabel: boolean;
30
+ inputs: InputClass[];
31
+ onSuccessBase: (result: any) => void;
32
+ onSuccess: (result: any) => void;
33
+ onFailed: (result: any) => void;
34
+ onLoad: (result: any) => void;
35
+ onBeforeSubmit: () => boolean;
36
+ onHideModal: () => void;
37
+ loadData(url: any): void;
38
+ submit(onSubmit?: any): void;
39
+ check(): boolean;
40
+ clear(): void;
41
+ clearInputs(): void;
42
+ setButtons(formOnTop: any, edit: boolean, id?: any): void;
43
+ addButtons(name?: string, cls?: string, clear?: boolean, onSubmit?: any): void;
44
+ data(d?: any): any;
45
+ json(d?: any): {};
46
+ setData(d: any): void;
47
+ }
48
+ export declare class InputClass {
49
+ constructor(environment: any, l: (k: any, v?: any) => string, name: string, icon?: string, type?: InputType, cls?: string, value?: any, required?: boolean, minLength?: number, maxLength?: number);
50
+ environment: any;
51
+ l: (k: any, v?: any) => string;
52
+ name: string;
53
+ url: any;
54
+ urlNewTab: boolean;
55
+ loadingName: string;
56
+ placeholder: string;
57
+ id: string;
58
+ icon: string;
59
+ class: string;
60
+ description: string;
61
+ type: InputType;
62
+ value: any;
63
+ search: any;
64
+ default: any;
65
+ required: boolean;
66
+ disabled: boolean;
67
+ inEditDisabled: boolean;
68
+ inEditVisible: boolean;
69
+ displayLabel: boolean;
70
+ withClear: boolean;
71
+ minLength: number;
72
+ maxLength: number;
73
+ error: InputError;
74
+ loading: boolean;
75
+ button: any;
76
+ onClickButton: () => void;
77
+ progress: Progress;
78
+ onClick: (btn: any) => void;
79
+ onKeyUp: (inp: any) => void;
80
+ onKeyDown: (e: any) => void;
81
+ options: OptionClass[];
82
+ match: InputClass;
83
+ rel: InputClass;
84
+ relUrl: string;
85
+ condition: any;
86
+ table: TableClass;
87
+ style: {};
88
+ position: string;
89
+ onChange: (v: any, e?: any) => void;
90
+ hover: number;
91
+ visible: boolean;
92
+ exportPdf: boolean;
93
+ open: boolean;
94
+ multiple: boolean;
95
+ onlyChild: boolean;
96
+ allowed: any;
97
+ row: any;
98
+ rows: any[];
99
+ index: number;
100
+ level: any;
101
+ modal: ModalClass;
102
+ nameFun: (r: any) => void;
103
+ onFocusOut: (e: any) => void;
104
+ focus(changeIndex?: boolean): void;
105
+ changeType: (t: InputType) => void;
106
+ setValue: (v: any, isEdit: any) => void;
107
+ setSearch: (v: any) => void;
108
+ clear: () => void;
109
+ focusOut: () => void;
110
+ data: () => any;
111
+ isValid: () => boolean;
112
+ load(u?: any, done?: () => void): void;
113
+ setOptions(r: any): void;
114
+ getOptions(r: any, p: any, tree?: boolean): OptionClass[];
115
+ getRows(r: any, p: any): TreeRowClass[];
116
+ getLabel(): string;
117
+ }
118
+ export declare class OptionClass {
119
+ constructor(name: string, value: string, options?: OptionClass[], cls?: string);
120
+ option: any;
121
+ search: string;
122
+ class: string;
123
+ name: string;
124
+ value: string;
125
+ index: number;
126
+ show: boolean;
127
+ selected: boolean;
128
+ parent: OptionClass;
129
+ options: OptionClass[];
130
+ loading: boolean;
131
+ }
132
+ export declare class DayClass {
133
+ constructor(day: number, today: boolean, selected: boolean);
134
+ day: number;
135
+ today: boolean;
136
+ selected: boolean;
137
+ }
138
+ export declare class TreeRowClass {
139
+ constructor(name: string, value: string, selected?: boolean, children?: TreeRowClass[]);
140
+ name: string;
141
+ value: string;
142
+ selected: boolean;
143
+ parent: TreeRowClass;
144
+ children: TreeRowClass[];
145
+ toggle(): void;
146
+ check(c?: TreeRowClass): void;
147
+ unCheck(c?: TreeRowClass): void;
148
+ checkChildren(): void;
149
+ checkParent(p?: TreeRowClass): void;
150
+ unCheckParent(p?: TreeRowClass): void;
151
+ }
152
+ export declare class AccordionClass {
153
+ constructor(l: (k: any, v?: any) => string, name: string, cls: string, rows: AccordionRowClass[]);
154
+ l: (k: any, v?: any) => string;
155
+ name: string;
156
+ class: string;
157
+ rows: AccordionRowClass[];
158
+ hasDelete: boolean;
159
+ displayLabel: boolean;
160
+ loading: boolean;
161
+ onDelete: (row: any) => void;
162
+ check(): boolean;
163
+ }
164
+ export declare class AccordionRowClass {
165
+ constructor(id: string, name: string, form?: FormClass, table?: TableClass);
166
+ id: string;
167
+ name: string;
168
+ show: boolean;
169
+ form: FormClass;
170
+ table: TableClass;
171
+ toggle(): void;
172
+ open(): void;
173
+ }
@@ -0,0 +1,26 @@
1
+ import { InputClass } from './form.class';
2
+ export declare class HelperClass {
3
+ static getLabel(inp: InputClass): string;
4
+ static nationalCodeValid(c: any): boolean;
5
+ static iso7064Mod97_10(iban: any): number;
6
+ static shebaValid(str: any): boolean;
7
+ static postalCodeValid(c: any): boolean;
8
+ static random(length: any, upper?: boolean, lower?: boolean, num?: boolean): string;
9
+ static setCookie(name: any, value: any, days: any): void;
10
+ static getCookie(name: any): string;
11
+ static eraseCookie(name: any): void;
12
+ static getDateDif(l: any, dt: string): string;
13
+ static getRowEnum(l: any, e: any, dt: any): string;
14
+ static getDateRemain(l: any, dt: string): string;
15
+ static getDate(dt: string): string;
16
+ static getTime(dt: any): string;
17
+ static getDateTime(dt: string): string;
18
+ static getFileSize(bytes: number): string;
19
+ static getPDate(l: any, s: any): string;
20
+ static clone<T>(v: T): T;
21
+ static cloneJson(inp: any): any;
22
+ static getName(n: any): string;
23
+ static addNotification(m: any): void;
24
+ static checkCartDigit(code: any): boolean;
25
+ static getData(key: any, state: any, parent: any): any;
26
+ }
@@ -0,0 +1,5 @@
1
+ export declare class LangClass {
2
+ lang: {};
3
+ constructor(d: string, strings: {});
4
+ get(area: any, c: any, k: any, v?: any): string;
5
+ }
@@ -0,0 +1,17 @@
1
+ import { FormClass } from './form.class';
2
+ export declare class LoginClass {
3
+ constructor(type: string);
4
+ type: string;
5
+ steps: LoginStepClass[];
6
+ active: number;
7
+ onSuccess: (result: any) => void;
8
+ sendCodeUrl: string;
9
+ reSendCodeUrl: string;
10
+ loginUrl: string;
11
+ setCookie(r: any): void;
12
+ }
13
+ export declare class LoginStepClass {
14
+ constructor(form: FormClass);
15
+ form: FormClass;
16
+ show(result?: any): void;
17
+ }
@@ -0,0 +1,19 @@
1
+ import { AccordionClass, FormClass } from './form.class';
2
+ import { TableClass } from './table.class';
3
+ export declare class ModalClass {
4
+ constructor(environment: any, l: (k: any, v?: any) => string, name: string, cls?: string);
5
+ environment: any;
6
+ l: (k: any, v?: any) => string;
7
+ name: string;
8
+ id: string;
9
+ class: string;
10
+ relatedId: null;
11
+ form: FormClass;
12
+ firstForm: boolean;
13
+ table: TableClass;
14
+ accordion: AccordionClass;
15
+ onShow: () => void;
16
+ onHide: () => void;
17
+ show(): void;
18
+ hide(): void;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { PermissionTypeEnum } from './enum.class';
2
+ import { ModalClass } from './modal.class';
3
+ export declare class PermissionClass {
4
+ Name: string;
5
+ Icon: string;
6
+ Type: PermissionTypeEnum;
7
+ Area: string;
8
+ Controller: string;
9
+ Action: string;
10
+ Children: PermissionClass[];
11
+ Accesses: PermissionClass[];
12
+ constructor(Name?: string, Icon?: string, Type?: PermissionTypeEnum, Area?: string, Controller?: string, Action?: string, Children?: PermissionClass[], Accesses?: PermissionClass[]);
13
+ Modal: ModalClass;
14
+ RelatedId: string;
15
+ hasAccess(a: string): boolean;
16
+ hasOption(a: string): boolean;
17
+ getOptions(): PermissionClass[];
18
+ getUrl(): string;
19
+ }
@@ -0,0 +1,12 @@
1
+ import { FormClass, InputClass } from './form.class';
2
+ import { Method } from './enum.class';
3
+ import { TableClass } from './table.class';
4
+ export declare class RequestClass {
5
+ environment: any;
6
+ l: (k: any, v?: any) => string;
7
+ constructor(environment?: any, l?: (k: any, v?: any) => string);
8
+ postForm(form: FormClass, onSubmit?: any): void;
9
+ table(table: TableClass, btn?: InputClass): void;
10
+ send(url: string, method: Method, data: any, btn?: InputClass, success?: (result: any) => void, failure?: (message: any) => void): void;
11
+ getClient(url: string, method: Method, data: any, done: any, fail: any): void;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ export declare class SafeStylePipe implements PipeTransform {
4
+ private sanitizer;
5
+ constructor(sanitizer: DomSanitizer);
6
+ transform(value: any): import("@angular/platform-browser").SafeStyle;
7
+ }
@@ -0,0 +1,11 @@
1
+ export declare class SidebarClass {
2
+ constructor(l: (k: any, v?: any) => string, name: string, controller: string, action: string, icon: string, children?: SidebarClass[], count?: number);
3
+ l: (k: any, v?: any) => string;
4
+ controller: string;
5
+ action: string;
6
+ name: string;
7
+ icon: string;
8
+ count: number;
9
+ children: SidebarClass[];
10
+ active: boolean;
11
+ }
@@ -0,0 +1,17 @@
1
+ export declare class StepsClass {
2
+ constructor(l: (k: any, v?: any) => string);
3
+ l: (k: any, v?: any) => string;
4
+ items: StepsItemClass[];
5
+ activeAll: boolean;
6
+ }
7
+ export declare class StepsItemClass {
8
+ name: string;
9
+ icon: string;
10
+ url: string;
11
+ active: boolean;
12
+ constructor(name: string, icon: string, url?: string, active?: boolean);
13
+ title: string;
14
+ description: string;
15
+ onClick: (item: any) => void;
16
+ onDelete: (item: any) => void;
17
+ }
@@ -0,0 +1,201 @@
1
+ export declare const strings: {
2
+ fa: {
3
+ Public: {
4
+ Header: {
5
+ Logout: string;
6
+ };
7
+ Login: {
8
+ ReSendCodeDes: string;
9
+ Code: string;
10
+ Base: string;
11
+ BaseDesc: string;
12
+ SendCode: string;
13
+ SendCodeSubTitle: string;
14
+ LoginSms: string;
15
+ LoginSmsSubTitle: string;
16
+ LoginPassword: string;
17
+ LoginPasswordSubTitle: string;
18
+ Register: string;
19
+ DeviceId: string;
20
+ Copy: string;
21
+ };
22
+ Footer: {
23
+ Copyright: string;
24
+ CreatorDesc: string;
25
+ CreatorCom: string;
26
+ };
27
+ App: {
28
+ Notfound: string;
29
+ };
30
+ Notfound: {
31
+ Text: string;
32
+ Back: string;
33
+ };
34
+ Version: string;
35
+ Download: string;
36
+ IranCode: string;
37
+ TrackingCode: string;
38
+ Plaque: string;
39
+ DriverName: string;
40
+ Name: string;
41
+ Title: string;
42
+ Text: string;
43
+ Date: string;
44
+ Time: string;
45
+ Row: string;
46
+ LoginTitle: string;
47
+ SendCode: string;
48
+ Username: string;
49
+ GetReport: string;
50
+ Count: string;
51
+ Choose: string;
52
+ Payable: string;
53
+ PayableLoading: string;
54
+ Processing: string;
55
+ PDate: string;
56
+ SeeMore: string;
57
+ Alert: string;
58
+ AccessDenied: string;
59
+ Image: string;
60
+ Grade: string;
61
+ Desc: string;
62
+ Admin: string;
63
+ Print: string;
64
+ Password: string;
65
+ RePassword: string;
66
+ PassportLetter: string;
67
+ Passport: string;
68
+ Priority: string;
69
+ PassportImage: string;
70
+ PassportExpireDate: string;
71
+ PassportPlace: string;
72
+ NationalCode: string;
73
+ LicenseNum: string;
74
+ BankCard: string;
75
+ VehicleType: string;
76
+ Gender: string;
77
+ Male: string;
78
+ FeMale: string;
79
+ Accept: string;
80
+ Insert: string;
81
+ Update: string;
82
+ Delete: string;
83
+ Subset: string;
84
+ Other: string;
85
+ Rial: string;
86
+ ChooseMonth: string;
87
+ FullName: string;
88
+ FirstName: string;
89
+ LastName: string;
90
+ Reject: string;
91
+ Code: string;
92
+ InvalidRequest: string;
93
+ ChangeNotAllow: string;
94
+ Confirm: string;
95
+ Search: string;
96
+ Yes: string;
97
+ No: string;
98
+ Email: string;
99
+ Mobile: string;
100
+ Mobile2: string;
101
+ Phone: string;
102
+ Address: string;
103
+ Add: string;
104
+ Edit: string;
105
+ VerifyCode: string;
106
+ Status: string;
107
+ Show: string;
108
+ Step: string;
109
+ Pending: string;
110
+ Accepted: string;
111
+ Canceled: string;
112
+ Rejected: string;
113
+ Answered: string;
114
+ FromDate: string;
115
+ ToDate: string;
116
+ Package: string;
117
+ CodeInvalid: string;
118
+ CodeExpired: string;
119
+ Price: string;
120
+ Description: string;
121
+ Photo: string;
122
+ Select: string;
123
+ NextStep: string;
124
+ PreviousStep: string;
125
+ UploadFiles: string;
126
+ NamadTitle: string;
127
+ Options: string;
128
+ Process: string;
129
+ NotfoundTitle: string;
130
+ PermissionDenied: string;
131
+ PerPage: string;
132
+ Save: string;
133
+ Cancel: string;
134
+ UserDeActive: string;
135
+ DeleteMessage: string;
136
+ ChooseFiles: string;
137
+ CodeNotExpired: string;
138
+ ChooseFile: string;
139
+ FileNotSelected: string;
140
+ FileSelected: string;
141
+ Selected: string;
142
+ Limit: string;
143
+ SendCodeLimit: string;
144
+ SendCodeError: string;
145
+ CodeNotFound: string;
146
+ Total: string;
147
+ Day: string;
148
+ HourP: string;
149
+ MinuteP: string;
150
+ Hour: string;
151
+ Minute: string;
152
+ AFew: string;
153
+ Ago: string;
154
+ Later: string;
155
+ LessThanMinute: string;
156
+ Finished: string;
157
+ Reload: string;
158
+ Maximum: string;
159
+ Minimum: string;
160
+ Export: string;
161
+ Send: string;
162
+ And: string;
163
+ UsernamePasswordInvalid: string;
164
+ DbUpdateException: string;
165
+ LoadingDot: string;
166
+ LoadingDotWhite: string;
167
+ Loading: string;
168
+ LoadingYellow: string;
169
+ LoadingEmpty: string;
170
+ LoadingTable: string;
171
+ LoadingText: string;
172
+ Waiting: string;
173
+ Required: string;
174
+ Invalid: string;
175
+ FormErrorRequired: string;
176
+ FormErrorInvalid: string;
177
+ FormErrorLength: string;
178
+ FormErrorMinLength: string;
179
+ FormErrorMaxLength: string;
180
+ FormErrorMinAmount: string;
181
+ FormErrorMaxAmount: string;
182
+ FormErrorExpired: string;
183
+ FormErrorWrong: string;
184
+ FormErrorNotMatch: string;
185
+ FormErrorExist: string;
186
+ FormErrorNotExist: string;
187
+ FormErrorNotAllowed: string;
188
+ FormErrorMaxContent: string;
189
+ FormErrorUpload: string;
190
+ FormError: string;
191
+ FormBaseErrorExpired: string;
192
+ FormBaseErrorRegistered: string;
193
+ ErrorUpload: string;
194
+ FormBaseErrorInvalidParam: string;
195
+ FormBaseErrorTimeOut: string;
196
+ FormBaseErrorPermission: string;
197
+ PaymentError: string;
198
+ Error: string;
199
+ };
200
+ };
201
+ };