ps-toolkit-ui 0.0.211 → 0.0.212

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 (311) hide show
  1. package/bundles/ps-toolkit-ui.umd.js +7812 -0
  2. package/bundles/ps-toolkit-ui.umd.js.map +1 -0
  3. package/bundles/ps-toolkit-ui.umd.min.js +2 -0
  4. package/bundles/ps-toolkit-ui.umd.min.js.map +1 -0
  5. package/esm2015/lib/classes/chart.class.js +140 -0
  6. package/esm2015/lib/classes/enum.class.js +187 -0
  7. package/esm2015/lib/classes/form.class.js +481 -0
  8. package/esm2015/lib/classes/helper.class.js +284 -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 +61 -0
  13. package/esm2015/lib/classes/request.class.js +256 -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 +220 -0
  18. package/esm2015/lib/classes/table.class.js +215 -0
  19. package/esm2015/lib/components/accordion/accordion.component.js +45 -0
  20. package/esm2015/lib/components/alert/alert.component.js +39 -0
  21. package/esm2015/lib/components/base.component.js +45 -0
  22. package/esm2015/lib/components/calendar/calendar.component.js +97 -0
  23. package/esm2015/lib/components/chart/chart.component.js +17 -0
  24. package/esm2015/lib/components/clock/clock.component.js +33 -0
  25. package/esm2015/lib/components/confirm/confirm.component.js +50 -0
  26. package/esm2015/lib/components/footer/footer.component.js +23 -0
  27. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +148 -0
  28. package/esm2015/lib/components/form/button/form.button.component.js +68 -0
  29. package/esm2015/lib/components/form/car/form.car.component.js +84 -0
  30. package/esm2015/lib/components/form/car/search/form.car.search.component.js +172 -0
  31. package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +66 -0
  32. package/esm2015/lib/components/form/date/form.date.component.js +254 -0
  33. package/esm2015/lib/components/form/datetime/form.datetime.component.js +104 -0
  34. package/esm2015/lib/components/form/file/form.file.component.js +133 -0
  35. package/esm2015/lib/components/form/finger/form.finger.component.js +138 -0
  36. package/esm2015/lib/components/form/hidden/form.hidden.component.js +31 -0
  37. package/esm2015/lib/components/form/icon/form.icon.component.js +76 -0
  38. package/esm2015/lib/components/form/index/form.component.js +48 -0
  39. package/esm2015/lib/components/form/label/form.label.component.js +32 -0
  40. package/esm2015/lib/components/form/plaque/form.plaque.component.js +176 -0
  41. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +390 -0
  42. package/esm2015/lib/components/form/radio/form.radio.component.js +79 -0
  43. package/esm2015/lib/components/form/select/form.select.component.js +374 -0
  44. package/esm2015/lib/components/form/select/item/form.select.item.component.js +43 -0
  45. package/esm2015/lib/components/form/table/form.table.component.js +98 -0
  46. package/esm2015/lib/components/form/textarea/form.textarea.component.js +78 -0
  47. package/esm2015/lib/components/form/textbox/form.textbox.component.js +186 -0
  48. package/esm2015/lib/components/form/time/form.time.component.js +145 -0
  49. package/esm2015/lib/components/form/tree/form.tree.component.js +99 -0
  50. package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +48 -0
  51. package/esm2015/lib/components/header/header.component.js +33 -0
  52. package/esm2015/lib/components/header/sub/sub.header.component.js +14 -0
  53. package/esm2015/lib/components/layout/layout.component.js +25 -0
  54. package/esm2015/lib/components/loading/loading.component.js +22 -0
  55. package/esm2015/lib/components/login/login.component.js +148 -0
  56. package/esm2015/lib/components/modal/modal.component.js +25 -0
  57. package/esm2015/lib/components/notfound/notfound.component.js +29 -0
  58. package/esm2015/lib/components/notification/notification.component.js +14 -0
  59. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +53 -0
  60. package/esm2015/lib/components/sidebar/sidebar.component.js +67 -0
  61. package/esm2015/lib/components/steps/steps.component.js +51 -0
  62. package/esm2015/lib/components/table/loading/table.loading.component.js +17 -0
  63. package/esm2015/lib/components/table/pagination/table.pagination.component.js +84 -0
  64. package/esm2015/lib/components/table/report/table.report.component.js +246 -0
  65. package/esm2015/lib/components/table/row/table.row.component.js +379 -0
  66. package/esm2015/lib/components/table/table.component.js +179 -0
  67. package/esm2015/lib/components/tooltip/tooltip.component.js +19 -0
  68. package/esm2015/lib/ps-toolkit-ui.module.js +95 -0
  69. package/esm2015/lib/services/config.service.js +14 -0
  70. package/esm2015/ps-toolkit-ui.js +20 -0
  71. package/esm2015/public-api.js +53 -0
  72. package/fesm2015/ps-toolkit-ui.js +6706 -0
  73. package/fesm2015/ps-toolkit-ui.js.map +1 -0
  74. package/lib/classes/chart.class.d.ts +11 -0
  75. package/lib/classes/enum.class.d.ts +158 -0
  76. package/lib/classes/form.class.d.ts +173 -0
  77. package/lib/classes/helper.class.d.ts +28 -0
  78. package/lib/classes/lang.class.d.ts +5 -0
  79. package/lib/classes/login.class.d.ts +17 -0
  80. package/lib/classes/modal.class.d.ts +19 -0
  81. package/lib/classes/permission.class.d.ts +31 -0
  82. package/lib/classes/request.class.d.ts +12 -0
  83. package/lib/classes/safestyle.class.d.ts +7 -0
  84. package/lib/classes/sidebar.class.d.ts +11 -0
  85. package/lib/classes/steps.class.d.ts +17 -0
  86. package/lib/classes/string.class.d.ts +218 -0
  87. package/lib/classes/table.class.d.ts +69 -0
  88. package/lib/components/accordion/accordion.component.d.ts +7 -0
  89. package/lib/components/alert/alert.component.d.ts +10 -0
  90. package/lib/components/base.component.d.ts +14 -0
  91. package/lib/components/calendar/calendar.component.d.ts +26 -0
  92. package/lib/components/chart/chart.component.d.ts +5 -0
  93. package/lib/components/clock/clock.component.d.ts +11 -0
  94. package/lib/components/confirm/confirm.component.d.ts +14 -0
  95. package/lib/components/footer/footer.component.d.ts +6 -0
  96. package/lib/components/form/bank-card/form.bank-card.component.d.ts +22 -0
  97. package/lib/components/form/button/form.button.component.d.ts +15 -0
  98. package/lib/components/form/car/form.car.component.d.ts +16 -0
  99. package/lib/components/form/car/search/form.car.search.component.d.ts +17 -0
  100. package/lib/components/form/checkbox/form.checkbox.component.d.ts +14 -0
  101. package/lib/components/form/date/form.date.component.d.ts +42 -0
  102. package/lib/components/form/datetime/form.datetime.component.d.ts +13 -0
  103. package/lib/components/form/file/form.file.component.d.ts +17 -0
  104. package/lib/components/form/finger/form.finger.component.d.ts +15 -0
  105. package/lib/components/form/hidden/form.hidden.component.d.ts +7 -0
  106. package/lib/components/form/icon/form.icon.component.d.ts +15 -0
  107. package/lib/components/form/index/form.component.d.ts +10 -0
  108. package/lib/components/form/label/form.label.component.d.ts +8 -0
  109. package/lib/components/form/plaque/form.plaque.component.d.ts +22 -0
  110. package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +36 -0
  111. package/lib/components/form/radio/form.radio.component.d.ts +13 -0
  112. package/lib/components/form/select/form.select.component.d.ts +39 -0
  113. package/lib/components/form/select/item/form.select.item.component.d.ts +12 -0
  114. package/lib/components/form/table/form.table.component.d.ts +9 -0
  115. package/lib/components/form/textarea/form.textarea.component.d.ts +13 -0
  116. package/lib/components/form/textbox/form.textbox.component.d.ts +20 -0
  117. package/lib/components/form/time/form.time.component.d.ts +25 -0
  118. package/lib/components/form/tree/form.tree.component.d.ts +16 -0
  119. package/lib/components/form/tree/item/form.tree.item.component.d.ts +17 -0
  120. package/lib/components/header/header.component.d.ts +9 -0
  121. package/lib/components/header/sub/sub.header.component.d.ts +3 -0
  122. package/lib/components/layout/layout.component.d.ts +8 -0
  123. package/lib/components/loading/loading.component.d.ts +5 -0
  124. package/lib/components/login/login.component.d.ts +13 -0
  125. package/lib/components/modal/modal.component.d.ts +9 -0
  126. package/lib/components/notfound/notfound.component.d.ts +8 -0
  127. package/lib/components/notification/notification.component.d.ts +3 -0
  128. package/lib/components/sidebar/item/sidebar.item.component.d.ts +14 -0
  129. package/lib/components/sidebar/sidebar.component.d.ts +19 -0
  130. package/lib/components/steps/steps.component.d.ts +10 -0
  131. package/lib/components/table/loading/table.loading.component.d.ts +5 -0
  132. package/lib/components/table/pagination/table.pagination.component.d.ts +15 -0
  133. package/lib/components/table/report/table.report.component.d.ts +34 -0
  134. package/lib/components/table/row/table.row.component.d.ts +34 -0
  135. package/lib/components/table/table.component.d.ts +40 -0
  136. package/lib/components/tooltip/tooltip.component.d.ts +5 -0
  137. package/lib/ps-toolkit-ui.module.d.ts +4 -0
  138. package/lib/services/config.service.d.ts +6 -0
  139. package/package.json +23 -19
  140. package/ps-toolkit-ui.d.ts +19 -0
  141. package/ps-toolkit-ui.metadata.json +1 -0
  142. package/{src/public-api.ts → public-api.d.ts} +49 -53
  143. package/karma.conf.js +0 -32
  144. package/ng-package.json +0 -16
  145. package/src/lib/classes/chart.class.ts +0 -140
  146. package/src/lib/classes/enum.class.ts +0 -193
  147. package/src/lib/classes/excel.class.ts +0 -46
  148. package/src/lib/classes/form.class.ts +0 -528
  149. package/src/lib/classes/helper.class.ts +0 -283
  150. package/src/lib/classes/lang.class.ts +0 -32
  151. package/src/lib/classes/login.class.ts +0 -27
  152. package/src/lib/classes/modal.class.ts +0 -59
  153. package/src/lib/classes/permission.class.ts +0 -55
  154. package/src/lib/classes/request.class.ts +0 -255
  155. package/src/lib/classes/safestyle.class.ts +0 -4
  156. package/src/lib/classes/sidebar.class.ts +0 -20
  157. package/src/lib/classes/steps.class.ts +0 -19
  158. package/src/lib/classes/string.class.ts +0 -219
  159. package/src/lib/classes/table.class.ts +0 -228
  160. package/src/lib/components/accordion/accordion.component.css +0 -116
  161. package/src/lib/components/accordion/accordion.component.html +0 -19
  162. package/src/lib/components/accordion/accordion.component.ts +0 -41
  163. package/src/lib/components/alert/alert.component.css +0 -112
  164. package/src/lib/components/alert/alert.component.html +0 -1
  165. package/src/lib/components/alert/alert.component.ts +0 -35
  166. package/src/lib/components/base.component.ts +0 -38
  167. package/src/lib/components/calendar/calendar.component.css +0 -206
  168. package/src/lib/components/calendar/calendar.component.html +0 -36
  169. package/src/lib/components/calendar/calendar.component.ts +0 -99
  170. package/src/lib/components/chart/chart.component.css +0 -24
  171. package/src/lib/components/chart/chart.component.html +0 -6
  172. package/src/lib/components/chart/chart.component.ts +0 -14
  173. package/src/lib/components/clock/clock.component.css +0 -141
  174. package/src/lib/components/clock/clock.component.html +0 -10
  175. package/src/lib/components/clock/clock.component.ts +0 -37
  176. package/src/lib/components/confirm/confirm.component.css +0 -112
  177. package/src/lib/components/confirm/confirm.component.html +0 -1
  178. package/src/lib/components/confirm/confirm.component.ts +0 -47
  179. package/src/lib/components/footer/footer.component.css +0 -46
  180. package/src/lib/components/footer/footer.component.html +0 -9
  181. package/src/lib/components/footer/footer.component.ts +0 -18
  182. package/src/lib/components/form/bank-card/form.bank-card.component.css +0 -115
  183. package/src/lib/components/form/bank-card/form.bank-card.component.html +0 -13
  184. package/src/lib/components/form/bank-card/form.bank-card.component.ts +0 -144
  185. package/src/lib/components/form/button/form.button.component.css +0 -222
  186. package/src/lib/components/form/button/form.button.component.html +0 -16
  187. package/src/lib/components/form/button/form.button.component.ts +0 -65
  188. package/src/lib/components/form/car/form.car.component.css +0 -287
  189. package/src/lib/components/form/car/form.car.component.html +0 -11
  190. package/src/lib/components/form/car/form.car.component.ts +0 -82
  191. package/src/lib/components/form/car/search/form.car.search.component.css +0 -287
  192. package/src/lib/components/form/car/search/form.car.search.component.html +0 -15
  193. package/src/lib/components/form/car/search/form.car.search.component.ts +0 -170
  194. package/src/lib/components/form/checkbox/form.checkbox.component.css +0 -128
  195. package/src/lib/components/form/checkbox/form.checkbox.component.html +0 -8
  196. package/src/lib/components/form/checkbox/form.checkbox.component.ts +0 -64
  197. package/src/lib/components/form/date/form.date.component.css +0 -310
  198. package/src/lib/components/form/date/form.date.component.html +0 -46
  199. package/src/lib/components/form/date/form.date.component.ts +0 -247
  200. package/src/lib/components/form/datetime/form.datetime.component.css +0 -157
  201. package/src/lib/components/form/datetime/form.datetime.component.html +0 -11
  202. package/src/lib/components/form/datetime/form.datetime.component.ts +0 -98
  203. package/src/lib/components/form/file/form.file.component.css +0 -151
  204. package/src/lib/components/form/file/form.file.component.html +0 -12
  205. package/src/lib/components/form/file/form.file.component.ts +0 -130
  206. package/src/lib/components/form/finger/form.finger.component.css +0 -215
  207. package/src/lib/components/form/finger/form.finger.component.html +0 -59
  208. package/src/lib/components/form/finger/form.finger.component.ts +0 -131
  209. package/src/lib/components/form/hidden/form.hidden.component.css +0 -0
  210. package/src/lib/components/form/hidden/form.hidden.component.html +0 -0
  211. package/src/lib/components/form/hidden/form.hidden.component.ts +0 -29
  212. package/src/lib/components/form/icon/form.icon.component.css +0 -108
  213. package/src/lib/components/form/icon/form.icon.component.html +0 -14
  214. package/src/lib/components/form/icon/form.icon.component.ts +0 -73
  215. package/src/lib/components/form/index/form.component.css +0 -89
  216. package/src/lib/components/form/index/form.component.html +0 -35
  217. package/src/lib/components/form/index/form.component.ts +0 -45
  218. package/src/lib/components/form/label/form.label.component.css +0 -45
  219. package/src/lib/components/form/label/form.label.component.html +0 -2
  220. package/src/lib/components/form/label/form.label.component.ts +0 -30
  221. package/src/lib/components/form/plaque/form.plaque.component.css +0 -76
  222. package/src/lib/components/form/plaque/form.plaque.component.html +0 -10
  223. package/src/lib/components/form/plaque/form.plaque.component.ts +0 -178
  224. package/src/lib/components/form/plaque/select/form.plaque.select.component.css +0 -167
  225. package/src/lib/components/form/plaque/select/form.plaque.select.component.html +0 -19
  226. package/src/lib/components/form/plaque/select/form.plaque.select.component.ts +0 -385
  227. package/src/lib/components/form/radio/form.radio.component.css +0 -158
  228. package/src/lib/components/form/radio/form.radio.component.html +0 -16
  229. package/src/lib/components/form/radio/form.radio.component.ts +0 -78
  230. package/src/lib/components/form/select/form.select.component.css +0 -326
  231. package/src/lib/components/form/select/form.select.component.html +0 -16
  232. package/src/lib/components/form/select/form.select.component.ts +0 -358
  233. package/src/lib/components/form/select/item/form.select.item.component.css +0 -59
  234. package/src/lib/components/form/select/item/form.select.item.component.html +0 -10
  235. package/src/lib/components/form/select/item/form.select.item.component.ts +0 -40
  236. package/src/lib/components/form/table/form.table.component.css +0 -50
  237. package/src/lib/components/form/table/form.table.component.html +0 -8
  238. package/src/lib/components/form/table/form.table.component.ts +0 -94
  239. package/src/lib/components/form/textarea/form.textarea.component.css +0 -109
  240. package/src/lib/components/form/textarea/form.textarea.component.html +0 -10
  241. package/src/lib/components/form/textarea/form.textarea.component.ts +0 -76
  242. package/src/lib/components/form/textbox/form.textbox.component.css +0 -296
  243. package/src/lib/components/form/textbox/form.textbox.component.html +0 -13
  244. package/src/lib/components/form/textbox/form.textbox.component.ts +0 -185
  245. package/src/lib/components/form/time/form.time.component.css +0 -205
  246. package/src/lib/components/form/time/form.time.component.html +0 -22
  247. package/src/lib/components/form/time/form.time.component.ts +0 -139
  248. package/src/lib/components/form/tree/form.tree.component.css +0 -109
  249. package/src/lib/components/form/tree/form.tree.component.html +0 -11
  250. package/src/lib/components/form/tree/form.tree.component.ts +0 -98
  251. package/src/lib/components/form/tree/item/form.tree.item.component.css +0 -142
  252. package/src/lib/components/form/tree/item/form.tree.item.component.html +0 -9
  253. package/src/lib/components/form/tree/item/form.tree.item.component.ts +0 -49
  254. package/src/lib/components/header/header.component.css +0 -57
  255. package/src/lib/components/header/header.component.html +0 -5
  256. package/src/lib/components/header/header.component.ts +0 -28
  257. package/src/lib/components/header/sub/sub.header.component.css +0 -62
  258. package/src/lib/components/header/sub/sub.header.component.html +0 -8
  259. package/src/lib/components/header/sub/sub.header.component.ts +0 -11
  260. package/src/lib/components/layout/layout.component.css +0 -300
  261. package/src/lib/components/layout/layout.component.html +0 -20
  262. package/src/lib/components/layout/layout.component.ts +0 -21
  263. package/src/lib/components/loading/loading.component.css +0 -39
  264. package/src/lib/components/loading/loading.component.html +0 -8
  265. package/src/lib/components/loading/loading.component.ts +0 -18
  266. package/src/lib/components/login/login.component.css +0 -389
  267. package/src/lib/components/login/login.component.html +0 -27
  268. package/src/lib/components/login/login.component.ts +0 -145
  269. package/src/lib/components/modal/modal.component.css +0 -60
  270. package/src/lib/components/modal/modal.component.html +0 -12
  271. package/src/lib/components/modal/modal.component.ts +0 -23
  272. package/src/lib/components/notfound/notfound.component.css +0 -134
  273. package/src/lib/components/notfound/notfound.component.html +0 -10
  274. package/src/lib/components/notfound/notfound.component.ts +0 -25
  275. package/src/lib/components/notification/notification.component.css +0 -45
  276. package/src/lib/components/notification/notification.component.html +0 -2
  277. package/src/lib/components/notification/notification.component.ts +0 -11
  278. package/src/lib/components/sidebar/item/sidebar.item.component.css +0 -236
  279. package/src/lib/components/sidebar/item/sidebar.item.component.html +0 -16
  280. package/src/lib/components/sidebar/item/sidebar.item.component.ts +0 -54
  281. package/src/lib/components/sidebar/sidebar.component.css +0 -42
  282. package/src/lib/components/sidebar/sidebar.component.html +0 -10
  283. package/src/lib/components/sidebar/sidebar.component.ts +0 -60
  284. package/src/lib/components/steps/steps.component.css +0 -320
  285. package/src/lib/components/steps/steps.component.html +0 -18
  286. package/src/lib/components/steps/steps.component.ts +0 -44
  287. package/src/lib/components/table/loading/table.loading.component.css +0 -29
  288. package/src/lib/components/table/loading/table.loading.component.html +0 -9
  289. package/src/lib/components/table/loading/table.loading.component.ts +0 -14
  290. package/src/lib/components/table/pagination/table.pagination.component.css +0 -138
  291. package/src/lib/components/table/pagination/table.pagination.component.html +0 -9
  292. package/src/lib/components/table/pagination/table.pagination.component.ts +0 -89
  293. package/src/lib/components/table/report/table.report.component.css +0 -125
  294. package/src/lib/components/table/report/table.report.component.html +0 -19
  295. package/src/lib/components/table/report/table.report.component.ts +0 -238
  296. package/src/lib/components/table/row/table.row.component.css +0 -170
  297. package/src/lib/components/table/row/table.row.component.html +0 -21
  298. package/src/lib/components/table/row/table.row.component.ts +0 -373
  299. package/src/lib/components/table/table.component.css +0 -116
  300. package/src/lib/components/table/table.component.html +0 -62
  301. package/src/lib/components/table/table.component.ts +0 -180
  302. package/src/lib/components/tooltip/tooltip.component.css +0 -159
  303. package/src/lib/components/tooltip/tooltip.component.html +0 -1
  304. package/src/lib/components/tooltip/tooltip.component.ts +0 -15
  305. package/src/lib/ps-toolkit-ui.module.ts +0 -94
  306. package/src/lib/services/config.service.ts +0 -8
  307. package/src/test.ts +0 -26
  308. package/tsconfig.lib.json +0 -25
  309. package/tsconfig.lib.prod.json +0 -10
  310. package/tsconfig.spec.json +0 -17
  311. package/tslint.json +0 -17
@@ -1,389 +0,0 @@
1
- #Login {
2
- position: relative;
3
- width: 100%;
4
- float: right;
5
- border-radius: 5px;
6
- display: table;
7
- background-color: white;
8
- height: 100vh;
9
- }
10
-
11
- #Login .form-c {
12
- display: table-cell;
13
- width: 50%;
14
- vertical-align: middle;
15
- position: relative;
16
- z-index: 2;
17
- box-shadow: 19px 0 35px -7px rgba(0,0,0,.05);
18
- }
19
-
20
- #Login .about-c {
21
- display: table-cell;
22
- width: 50%;
23
- height: 100%;
24
- vertical-align: middle;
25
- }
26
-
27
- #Login .form {
28
- width: 70%;
29
- margin: 0 auto;
30
- }
31
-
32
- #Login .about {
33
- width: 100%;
34
- position: relative;
35
- float: right;
36
- border-radius: 0 5px 5px 0;
37
- }
38
-
39
- #Login .about .info {
40
- width: 100%;
41
- position: relative;
42
- float: right;
43
- z-index: 2;
44
- border-radius: 0 5px 5px 0;
45
- }
46
-
47
- #Login .triangles {
48
- position: absolute;
49
- width: 100%;
50
- height: 100%;
51
- overflow: hidden;
52
- z-index: 1;
53
- border-radius: 0 5px 5px 0;
54
- }
55
-
56
- #Login .triangles .triangle {
57
- position: absolute;
58
- color: var(--base);
59
- opacity: 0.2;
60
- }
61
-
62
- #Login .triangles .triangle-1 {
63
- font-size: 656px;
64
- top: -10px;
65
- right: -50px;
66
- }
67
-
68
- #Login .triangles .triangle-2 {
69
- font-size: 1000px;
70
- top: 80px;
71
- right: -60px;
72
- }
73
-
74
- #Login .triangles .triangle-3 {
75
- font-size: 900px;
76
- top: -347px;
77
- right: -46px;
78
- }
79
-
80
- #Login .about .logo {
81
- height: 200px;
82
- width: 200px;
83
- background-position: center center;
84
- background-repeat: no-repeat;
85
- background-size: cover;
86
- margin: 0 auto;
87
- position: relative;
88
- }
89
-
90
- #Login .about .title {
91
- width: 100%;
92
- float: right;
93
- text-align: center;
94
- font-size: 25px;
95
- height: 40px;
96
- line-height: 40px;
97
- font-family: VazirBold;
98
- position: relative;
99
- margin-top: 20px;
100
- font-weight: bolder;
101
- }
102
- #Login .about .sub-title {
103
- float: right;
104
- text-align: center;
105
- font-size: 12px;
106
- line-height: 30px;
107
- position: relative;
108
- padding: 20px;
109
- width: 80%;
110
- margin-right: 10%;
111
- font-family: VazirLight;
112
- }
113
-
114
- #Login .form .title {
115
- width: 100%;
116
- margin-top: 30px;
117
- float: right;
118
- text-align: center;
119
- font-size: 25px;
120
- height: 50px;
121
- line-height: 50px;
122
- font-family: VazirBold;
123
- margin-bottom: 10px;
124
- }
125
-
126
- #Login .form .sub-title {
127
- width: 100%;
128
- float: right;
129
- color: var(--black-88);
130
- text-align: center;
131
- font-size: 12px;
132
- height: 30px;
133
- line-height: 30px;
134
- font-family: VazirLight;
135
- }
136
-
137
- #Login .form .title i {
138
- font-size: 30px;
139
- color: var(--base);
140
- margin-left: 5px;
141
- position: relative;
142
- top: 7px;
143
- left: 5px;
144
- }
145
-
146
- ::ng-deep #Login .form .title{
147
- width: 100%;
148
- margin-top: 30px;
149
- float: right;
150
- text-align: center;
151
- font-size: 25px;
152
- height: 50px;
153
- line-height: 50px;
154
- font-family: VazirBold;
155
- margin-bottom: 10px;
156
- }
157
- ::ng-deep #Login .form .sub-title{
158
- margin-bottom: 20px;
159
- text-align: center;
160
- }
161
-
162
- ::ng-deep #Login .form .sub-title:after{
163
- background-image: none !important;
164
- }
165
- @media (max-width: 399.98px) {
166
- #Login {
167
- padding: 20px 0;
168
- }
169
- #Login {
170
- display: unset;
171
- width: 90%;
172
- margin-right: 5%;
173
- }
174
- #Login .form-c{
175
- display: unset;
176
- width: 100%;
177
- }
178
- #Login .about-c{
179
- display: unset;
180
- width: 100%;
181
- float: right;
182
- height: 80px;
183
- }
184
- #Login .about, #Login .triangles, #Login .about .info{
185
- border-radius: 5px 5px 0 0;
186
- }
187
- #Login .form{
188
- width: 90%;
189
- }
190
- #Login .about .info{
191
- padding: 10px 5px 5px 5px;
192
- }
193
- #Login .about .logo{
194
- display: inline-block;
195
- float: right;
196
- margin: unset;
197
- margin-right: 10%;
198
- width: 80px;
199
- height: 80px;
200
- }
201
- #Login .about .title{
202
- display: inline-block;
203
- width: calc(80% - 80px);
204
- line-height: 80px;
205
- height: 80px;
206
- }
207
- }
208
-
209
- @media (min-width: 400px) and (max-width: 499.98px) {
210
- #Login {
211
- padding: 50px 0;
212
- }
213
- #Login {
214
- display: unset;
215
- width: 80%;
216
- margin-right: 10%;
217
- }
218
- #Login .form-c{
219
- display: unset;
220
- width: 100%;
221
- float: right;
222
- }
223
- #Login .about-c{
224
- display: unset;
225
- width: 100%;
226
- float: right;
227
- height: 100px;
228
- }
229
- #Login .about, #Login .triangles, #Login .about .info{
230
- border-radius: 5px 5px 0 0;
231
- }
232
- #Login .form{
233
- width: 80%;
234
- float: right;
235
- margin-right: 10%;
236
- }
237
- #Login .about .info{
238
- padding: 10px;
239
- }
240
- #Login .about .logo{
241
- display: inline-block;
242
- float: right;
243
- margin: unset;
244
- margin-right: 10%;
245
- width: 100px;
246
- height: 100px;
247
- }
248
- #Login .about .title{
249
- display: inline-block;
250
- width: calc(80% - 100px);
251
- line-height: 100px;
252
- height: 100px;
253
- }
254
- }
255
-
256
- @media (min-width: 500px) and (max-width: 599.98px) {
257
- #Login {
258
- padding: 50px 0;
259
- }
260
- #Login {
261
- display: unset;
262
- width: 80%;
263
- margin-right: 10%;
264
- }
265
- #Login .form-c{
266
- display: unset;
267
- width: 100%;
268
- float: right;
269
- }
270
- #Login .about-c{
271
- display: unset;
272
- width: 100%;
273
- float: right;
274
- height: 100px;
275
- }
276
- #Login .about, #Login .triangles, #Login .about .info{
277
- border-radius: 5px 5px 0 0;
278
- }
279
- #Login .form{
280
- width: 70%;
281
- float: right;
282
- margin-right: 15%;
283
- }
284
- #Login .about .info{
285
- padding: 10px;
286
- }
287
- #Login .about .logo{
288
- display: inline-block;
289
- float: right;
290
- margin: unset;
291
- margin-right: 10%;
292
- width: 100px;
293
- height: 100px;
294
- }
295
- #Login .about .title{
296
- display: inline-block;
297
- width: calc(80% - 100px);
298
- line-height: 100px;
299
- height: 100px;
300
- }
301
- }
302
-
303
- @media (min-width: 600px) and (max-width: 699.98px) {
304
- #Login {
305
- padding: 50px 0;
306
- }
307
- #Login {
308
- display: unset;
309
- width: 80%;
310
- margin-right: 10%;
311
- }
312
- #Login .form-c{
313
- display: unset;
314
- width: 100%;
315
- float: right;
316
- }
317
- #Login .about-c{
318
- display: unset;
319
- width: 100%;
320
- float: right;
321
- height: 100px;
322
- }
323
- #Login .about, #Login .triangles, #Login .about .info{
324
- border-radius: 5px 5px 0 0;
325
- }
326
- #Login .form{
327
- width: 70%;
328
- float: right;
329
- margin-right: 15%;
330
- }
331
- #Login .about .info{
332
- padding: 10px;
333
- }
334
- #Login .about .logo{
335
- display: inline-block;
336
- float: right;
337
- margin: unset;
338
- margin-right: 10%;
339
- width: 100px;
340
- height: 100px;
341
- }
342
- #Login .about .title{
343
- display: inline-block;
344
- width: calc(80% - 100px);
345
- line-height: 100px;
346
- height: 100px;
347
- }
348
- }
349
-
350
- @media (min-width: 700px) and (max-width: 799.98px) {
351
- #Login {
352
- padding: 50px 0;
353
- }
354
- #Login {
355
- width: 90%;
356
- margin-right: 5%;
357
- }
358
- }
359
-
360
- @media (min-width: 800px) and (max-width: 899.98px) {
361
- #Login {
362
- width: 80%;
363
- margin-right: 10%;
364
- }
365
- }
366
-
367
- @media (min-width: 900px) and (max-width: 999.98px) {
368
- #Login {
369
- width: 80%;
370
- margin-right: 10%;
371
- }
372
- }
373
-
374
- @media (min-width: 1000px) and (max-width: 1099.98px) {
375
- #Login {
376
- width: 70%;
377
- margin-right: 15%;
378
- }
379
- }
380
-
381
- @media (min-width: 1100px) and (max-width: 1199.98px) {
382
- #Login {
383
- width: 70%;
384
- margin-right: 15%;
385
- }
386
- }
387
-
388
- @media (min-width: 1200px) {
389
- }
@@ -1,27 +0,0 @@
1
- <div id="Login">
2
- <div class="triangles">
3
- <i class="triangle triangle-1 fas fa-caret-left"></i>
4
- <i class="triangle triangle-2 fas fa-caret-left"></i>
5
- <i class="triangle triangle-3 fas fa-caret-left"></i>
6
- </div>
7
- <div class="about-c">
8
- <div class="about">
9
- <div class="info">
10
- <div class="logo"></div>
11
- <div class="title">
12
- {{ l('Base') }}
13
- </div>
14
- <div class="sub-title">
15
- {{ l('BaseDesc') }}
16
- </div>
17
- </div>
18
- </div>
19
- </div>
20
- <div class="form-c">
21
- <ng-container *ngFor="let step of login.steps; let i = index">
22
- <div class="form" *ngIf="i === login.active">
23
- <lib-form [form]=step.form></lib-form>
24
- </div>
25
- </ng-container>
26
- </div>
27
- </div>
@@ -1,145 +0,0 @@
1
- import {Component, Input, OnInit} from '@angular/core';
2
- import {LangClass} from '../../classes/lang.class';
3
- import {LoginClass, LoginStepClass} from '../../classes/login.class';
4
- import {FormClass, InputClass, Progress} from '../../classes/form.class';
5
- import {InputError, InputType, Method} from '../../classes/enum.class';
6
- import {RequestClass} from '../../classes/request.class';
7
- import {HelperClass} from '../../classes/helper.class';
8
- import {PsToolkitUiConfigService} from '../../services/config.service';
9
-
10
- @Component({
11
- selector: 'lib-login',
12
- templateUrl: './login.component.html',
13
- styleUrls: ['./login.component.css']
14
- })
15
- export class LoginComponent implements OnInit{
16
- @Input()
17
- login: LoginClass;
18
- mobile: InputClass;
19
- username: InputClass;
20
- l: (k, v?) => string;
21
- constructor(public config: PsToolkitUiConfigService){
22
- const lang = new LangClass(config.currentLang, config.strings);
23
- this.l = (key: string, v = null): string => {
24
- return lang.get('Public', 'Login', key, v);
25
- };
26
- }
27
- ngOnInit(): void {
28
- if (this.login.type === 'Sms'){
29
- const sendCodeForm = new FormClass(this.config.environment, this.l, 'SendCode', true, this.login.sendCodeUrl, 'p-h-50');
30
- const sendCode = new InputClass(this.config.environment, this.l, 'SendCode', 'fa-duotone fa-paper-plane', InputType.Submit);
31
- sendCodeForm.subName = 'SendCodeSubTitle';
32
- this.mobile = new InputClass(this.config.environment, this.l, 'Mobile',
33
- 'fa-duotone fa-mobile-alt', InputType.Mobile, 'm-b-10 h-45', '', true, 4, 50);
34
- sendCodeForm.onSuccess = () => {
35
- loginForm.subName = this.l('LoginSmsSubTitle', this.mobile.data());
36
- this.mobile.type = InputType.Hidden;
37
- code.progress.start();
38
- this.login.steps[1].show();
39
- setTimeout(() => {
40
- code.focus();
41
- }, 100);
42
- };
43
- sendCodeForm.inputs = [
44
- this.mobile,
45
- sendCode
46
- ];
47
- sendCode.onClick = () => {
48
- sendCodeForm.submit();
49
- };
50
- const loginForm = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
51
- loginForm.subName = this.l('LoginSmsSubTitle', '');
52
- loginForm.onSuccess = (result) => {
53
- this.login.setCookie(result);
54
- if (this.login.steps.length > 2 && result.CurrentUser === null){
55
- this.login.steps[2].show(result.StepData);
56
- } else {
57
- this.login.onSuccess(result);
58
- }
59
- };
60
- loginForm.onFailed = (msg) => {
61
- code.clear();
62
- this.mobile.error = InputError.NotExist;
63
- this.mobile.type = InputType.Mobile;
64
- setTimeout(() => {
65
- this.mobile.focus();
66
- }, 100);
67
- this.login.steps[0].show();
68
- };
69
- const code = new InputClass(this.config.environment, this.l, 'Code',
70
- 'fa-duotone fa-unlock-alt', InputType.Number, 'm-b-10 h-45', null, true, 1111, 9999);
71
- const labelResend = new InputClass(this.config.environment, this.l, 'ReSendCodeDes',
72
- null, InputType.Label, 'comp resend-code');
73
- code.progress = new Progress(120);
74
- code.progress.onStart = () => {
75
- labelResend.value = null;
76
- };
77
- code.progress.onEnd = () => {
78
- labelResend.value = 'ReSendCodeDes';
79
- };
80
- labelResend.onClick = () => {
81
- labelResend.name = '(' + this.l('LoadingComp', 'Send') + ')';
82
- new RequestClass(this.config.environment).send(this.login.reSendCodeUrl, Method.Post, loginForm.data(), null, () => {
83
- labelResend.name = 'ReSendCodeDes';
84
- code.progress.start();
85
- }, (error) => {
86
- HelperClass.addNotification(this.l(error));
87
- labelResend.name = 'ReSendCodeDes';
88
- });
89
- };
90
- const login = new InputClass(this.config.environment, this.l, 'LoginSms', 'fa-duotone fa-sign-in-alt', InputType.Submit);
91
- loginForm.inputs = [
92
- this.mobile,
93
- code,
94
- labelResend,
95
- login
96
- ];
97
- login.onClick = () => {
98
- loginForm.submit();
99
- };
100
- const loginStep = new LoginStepClass(loginForm);
101
- loginStep.show = () => {
102
- this.login.active = 1;
103
- };
104
- const sendCodeStep = new LoginStepClass(sendCodeForm);
105
- sendCodeStep.show = () => {
106
- this.login.active = 0;
107
- };
108
- this.login.steps.unshift(loginStep);
109
- this.login.steps.unshift(sendCodeStep);
110
- setTimeout(() => {
111
- this.mobile.focus();
112
- }, 100);
113
- } else if (this.login.type === 'Password'){
114
- const loginForm = new FormClass(this.config.environment, this.l, 'LoginPassword', true, this.login.loginUrl, 'p-h-50');
115
- loginForm.subName = 'LoginPasswordSubTitle';
116
- const login = new InputClass(this.config.environment, this.l, 'LoginPassword', 'fa-duotone fa-sign-in-alt', InputType.Submit);
117
- loginForm.onSuccess = (result) => {
118
- this.login.setCookie(result);
119
- if (this.login.steps.length > 1 && result.CurrentUser === null){
120
- this.login.steps[1].show(result.StepData);
121
- } else {
122
- this.login.onSuccess(result);
123
- }
124
- };
125
- this.username = new InputClass(this.config.environment, this.l, 'Username',
126
- 'fa-duotone fa-user', InputType.Text, 'm-b-10 h-45', '', true, 4, 50);
127
- loginForm.inputs = [
128
- this.username,
129
- new InputClass(this.config.environment, this.l, 'Password', 'fa-duotone fa-key', InputType.Password, 'm-b-10 h-45', '', true, 5, 50),
130
- login
131
- ];
132
- login.onClick = () => {
133
- loginForm.submit();
134
- };
135
- const loginStep = new LoginStepClass(loginForm);
136
- loginStep.show = () => {
137
- this.login.active = 0;
138
- };
139
- this.login.steps.unshift(loginStep);
140
- setTimeout(() => {
141
- this.username.focus();
142
- }, 100);
143
- }
144
- }
145
- }
@@ -1,60 +0,0 @@
1
- .modal{
2
- display: none;
3
- position: fixed;
4
- overflow-y: auto;
5
- top: 0;
6
- right: 0;
7
- width: 100%;
8
- height: 100%;
9
- background-color: var(--black-t-44);
10
- z-index: 999;
11
- }
12
- .modal .content{
13
- float: right;
14
- width: 40%;
15
- margin: 50px 30%;
16
- background-color: white;
17
- border-radius: 5px;
18
- box-shadow: var(--box-shadow-modal);
19
- z-index: 2;
20
- position: relative;
21
- }
22
- .modal .content .header{
23
- float: right;
24
- width: 100%;
25
- position: relative;
26
- text-align: center;
27
- }
28
- .modal .content .header .title{
29
- height: 40px;
30
- width: 100%;
31
- line-height: 40px;
32
- float: left;
33
- font-family: VazirBold;
34
- font-size: 18px;
35
- }
36
- ::ng-deep .modal .content > lib-form-button .form-input-con.button{
37
- position: absolute;
38
- left: -25px;
39
- top: -10px;
40
- z-index: 5;
41
- }
42
- .modal .content .body{
43
- float: right;
44
- width: 100%;
45
- position: relative;
46
- }
47
- .modal .content .footer{
48
- float: right;
49
- width: 100%;
50
- background-color: var(--base-22);
51
- height: 50px;
52
- }
53
- .modal .content .footer:before{
54
- content:"";
55
- border: 0;
56
- height: 1px;
57
- width: 100%;
58
- float: right;
59
- background-image: linear-gradient(to right, rgba(51, 51, 51, 0), rgba(51, 51, 51, 0.25), rgba(51, 51, 51, 0));
60
- }
@@ -1,12 +0,0 @@
1
- <div [id]="modal.id + 'Modal'" class="modal">
2
- <div [className]="(modal.class ? modal.class : '') + ' content'">
3
- <lib-form-button [inp]="close"></lib-form-button>
4
- <div class="body">
5
- <ng-content></ng-content>
6
- <lib-form *ngIf="modal.form != null && modal.firstForm" [form]="modal.form"></lib-form>
7
- <lib-table *ngIf="modal.table != null" [table]="modal.table"></lib-table>
8
- <lib-form *ngIf="modal.form != null && !modal.firstForm" [form]="modal.form"></lib-form>
9
- <lib-accordion *ngIf="modal.accordion != null" [accordion]="modal.accordion"></lib-accordion>
10
- </div>
11
- </div>
12
- </div>
@@ -1,23 +0,0 @@
1
- import {Component, Input, OnInit} from '@angular/core';
2
- import {ModalClass} from '../../classes/modal.class';
3
- import {InputClass} from '../../classes/form.class';
4
- import {InputType} from '../../classes/enum.class';
5
-
6
- @Component({
7
- selector: 'lib-modal',
8
- templateUrl: './modal.component.html',
9
- styleUrls: ['./modal.component.css']
10
- })
11
- export class ModalComponent implements OnInit{
12
- @Input()
13
- modal: ModalClass;
14
- close: InputClass;
15
- constructor(){
16
- }
17
- ngOnInit(): void {
18
- this.close = new InputClass(this.modal.environment, this.modal.l, null, 'fa-duotone fa-times', InputType.Icon, 'w-u h-30 red');
19
- this.close.onClick = () => {
20
- this.modal.hide();
21
- };
22
- }
23
- }