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.
Files changed (311) hide show
  1. package/karma.conf.js +32 -0
  2. package/ng-package.json +16 -0
  3. package/package.json +19 -22
  4. package/src/lib/classes/chart.class.ts +140 -0
  5. package/src/lib/classes/enum.class.ts +193 -0
  6. package/src/lib/classes/excel.class.ts +46 -0
  7. package/src/lib/classes/form.class.ts +528 -0
  8. package/src/lib/classes/helper.class.ts +283 -0
  9. package/src/lib/classes/lang.class.ts +32 -0
  10. package/src/lib/classes/login.class.ts +27 -0
  11. package/src/lib/classes/modal.class.ts +59 -0
  12. package/src/lib/classes/permission.class.ts +55 -0
  13. package/src/lib/classes/request.class.ts +255 -0
  14. package/src/lib/classes/safestyle.class.ts +4 -0
  15. package/src/lib/classes/sidebar.class.ts +20 -0
  16. package/src/lib/classes/steps.class.ts +19 -0
  17. package/src/lib/classes/string.class.ts +219 -0
  18. package/src/lib/classes/table.class.ts +228 -0
  19. package/src/lib/components/accordion/accordion.component.css +116 -0
  20. package/src/lib/components/accordion/accordion.component.html +19 -0
  21. package/src/lib/components/accordion/accordion.component.ts +41 -0
  22. package/src/lib/components/alert/alert.component.css +112 -0
  23. package/src/lib/components/alert/alert.component.html +1 -0
  24. package/src/lib/components/alert/alert.component.ts +35 -0
  25. package/src/lib/components/base.component.ts +38 -0
  26. package/src/lib/components/calendar/calendar.component.css +206 -0
  27. package/src/lib/components/calendar/calendar.component.html +36 -0
  28. package/src/lib/components/calendar/calendar.component.ts +99 -0
  29. package/src/lib/components/chart/chart.component.css +24 -0
  30. package/src/lib/components/chart/chart.component.html +6 -0
  31. package/src/lib/components/chart/chart.component.ts +14 -0
  32. package/src/lib/components/clock/clock.component.css +141 -0
  33. package/src/lib/components/clock/clock.component.html +10 -0
  34. package/src/lib/components/clock/clock.component.ts +37 -0
  35. package/src/lib/components/confirm/confirm.component.css +112 -0
  36. package/src/lib/components/confirm/confirm.component.html +1 -0
  37. package/src/lib/components/confirm/confirm.component.ts +47 -0
  38. package/src/lib/components/footer/footer.component.css +46 -0
  39. package/src/lib/components/footer/footer.component.html +9 -0
  40. package/src/lib/components/footer/footer.component.ts +18 -0
  41. package/src/lib/components/form/bank-card/form.bank-card.component.css +115 -0
  42. package/src/lib/components/form/bank-card/form.bank-card.component.html +13 -0
  43. package/src/lib/components/form/bank-card/form.bank-card.component.ts +144 -0
  44. package/src/lib/components/form/button/form.button.component.css +222 -0
  45. package/src/lib/components/form/button/form.button.component.html +16 -0
  46. package/src/lib/components/form/button/form.button.component.ts +65 -0
  47. package/src/lib/components/form/car/form.car.component.css +287 -0
  48. package/src/lib/components/form/car/form.car.component.html +11 -0
  49. package/src/lib/components/form/car/form.car.component.ts +82 -0
  50. package/src/lib/components/form/car/search/form.car.search.component.css +287 -0
  51. package/src/lib/components/form/car/search/form.car.search.component.html +15 -0
  52. package/src/lib/components/form/car/search/form.car.search.component.ts +170 -0
  53. package/src/lib/components/form/checkbox/form.checkbox.component.css +128 -0
  54. package/src/lib/components/form/checkbox/form.checkbox.component.html +8 -0
  55. package/src/lib/components/form/checkbox/form.checkbox.component.ts +64 -0
  56. package/src/lib/components/form/date/form.date.component.css +310 -0
  57. package/src/lib/components/form/date/form.date.component.html +46 -0
  58. package/src/lib/components/form/date/form.date.component.ts +247 -0
  59. package/src/lib/components/form/datetime/form.datetime.component.css +157 -0
  60. package/src/lib/components/form/datetime/form.datetime.component.html +11 -0
  61. package/src/lib/components/form/datetime/form.datetime.component.ts +98 -0
  62. package/src/lib/components/form/file/form.file.component.css +151 -0
  63. package/src/lib/components/form/file/form.file.component.html +12 -0
  64. package/src/lib/components/form/file/form.file.component.ts +130 -0
  65. package/src/lib/components/form/finger/form.finger.component.css +215 -0
  66. package/src/lib/components/form/finger/form.finger.component.html +59 -0
  67. package/src/lib/components/form/finger/form.finger.component.ts +131 -0
  68. package/src/lib/components/form/hidden/form.hidden.component.css +0 -0
  69. package/src/lib/components/form/hidden/form.hidden.component.html +0 -0
  70. package/src/lib/components/form/hidden/form.hidden.component.ts +29 -0
  71. package/src/lib/components/form/icon/form.icon.component.css +108 -0
  72. package/src/lib/components/form/icon/form.icon.component.html +14 -0
  73. package/src/lib/components/form/icon/form.icon.component.ts +73 -0
  74. package/src/lib/components/form/index/form.component.css +89 -0
  75. package/src/lib/components/form/index/form.component.html +35 -0
  76. package/src/lib/components/form/index/form.component.ts +45 -0
  77. package/src/lib/components/form/label/form.label.component.css +45 -0
  78. package/src/lib/components/form/label/form.label.component.html +2 -0
  79. package/src/lib/components/form/label/form.label.component.ts +30 -0
  80. package/src/lib/components/form/plaque/form.plaque.component.css +76 -0
  81. package/src/lib/components/form/plaque/form.plaque.component.html +10 -0
  82. package/src/lib/components/form/plaque/form.plaque.component.ts +178 -0
  83. package/src/lib/components/form/plaque/select/form.plaque.select.component.css +167 -0
  84. package/src/lib/components/form/plaque/select/form.plaque.select.component.html +19 -0
  85. package/src/lib/components/form/plaque/select/form.plaque.select.component.ts +385 -0
  86. package/src/lib/components/form/radio/form.radio.component.css +158 -0
  87. package/src/lib/components/form/radio/form.radio.component.html +16 -0
  88. package/src/lib/components/form/radio/form.radio.component.ts +78 -0
  89. package/src/lib/components/form/select/form.select.component.css +326 -0
  90. package/src/lib/components/form/select/form.select.component.html +16 -0
  91. package/src/lib/components/form/select/form.select.component.ts +358 -0
  92. package/src/lib/components/form/select/item/form.select.item.component.css +59 -0
  93. package/src/lib/components/form/select/item/form.select.item.component.html +10 -0
  94. package/src/lib/components/form/select/item/form.select.item.component.ts +40 -0
  95. package/src/lib/components/form/table/form.table.component.css +50 -0
  96. package/src/lib/components/form/table/form.table.component.html +8 -0
  97. package/src/lib/components/form/table/form.table.component.ts +94 -0
  98. package/src/lib/components/form/textarea/form.textarea.component.css +109 -0
  99. package/src/lib/components/form/textarea/form.textarea.component.html +10 -0
  100. package/src/lib/components/form/textarea/form.textarea.component.ts +76 -0
  101. package/src/lib/components/form/textbox/form.textbox.component.css +296 -0
  102. package/src/lib/components/form/textbox/form.textbox.component.html +13 -0
  103. package/src/lib/components/form/textbox/form.textbox.component.ts +185 -0
  104. package/src/lib/components/form/time/form.time.component.css +205 -0
  105. package/src/lib/components/form/time/form.time.component.html +22 -0
  106. package/src/lib/components/form/time/form.time.component.ts +139 -0
  107. package/src/lib/components/form/tree/form.tree.component.css +109 -0
  108. package/src/lib/components/form/tree/form.tree.component.html +11 -0
  109. package/src/lib/components/form/tree/form.tree.component.ts +98 -0
  110. package/src/lib/components/form/tree/item/form.tree.item.component.css +142 -0
  111. package/src/lib/components/form/tree/item/form.tree.item.component.html +9 -0
  112. package/src/lib/components/form/tree/item/form.tree.item.component.ts +49 -0
  113. package/src/lib/components/header/header.component.css +57 -0
  114. package/src/lib/components/header/header.component.html +5 -0
  115. package/src/lib/components/header/header.component.ts +28 -0
  116. package/src/lib/components/header/sub/sub.header.component.css +62 -0
  117. package/src/lib/components/header/sub/sub.header.component.html +8 -0
  118. package/src/lib/components/header/sub/sub.header.component.ts +11 -0
  119. package/src/lib/components/layout/layout.component.css +300 -0
  120. package/src/lib/components/layout/layout.component.html +20 -0
  121. package/src/lib/components/layout/layout.component.ts +21 -0
  122. package/src/lib/components/loading/loading.component.css +39 -0
  123. package/src/lib/components/loading/loading.component.html +8 -0
  124. package/src/lib/components/loading/loading.component.ts +18 -0
  125. package/src/lib/components/login/login.component.css +389 -0
  126. package/src/lib/components/login/login.component.html +27 -0
  127. package/src/lib/components/login/login.component.ts +145 -0
  128. package/src/lib/components/modal/modal.component.css +60 -0
  129. package/src/lib/components/modal/modal.component.html +12 -0
  130. package/src/lib/components/modal/modal.component.ts +23 -0
  131. package/src/lib/components/notfound/notfound.component.css +134 -0
  132. package/src/lib/components/notfound/notfound.component.html +10 -0
  133. package/src/lib/components/notfound/notfound.component.ts +25 -0
  134. package/src/lib/components/notification/notification.component.css +45 -0
  135. package/src/lib/components/notification/notification.component.html +2 -0
  136. package/src/lib/components/notification/notification.component.ts +11 -0
  137. package/src/lib/components/sidebar/item/sidebar.item.component.css +236 -0
  138. package/src/lib/components/sidebar/item/sidebar.item.component.html +16 -0
  139. package/src/lib/components/sidebar/item/sidebar.item.component.ts +54 -0
  140. package/src/lib/components/sidebar/sidebar.component.css +42 -0
  141. package/src/lib/components/sidebar/sidebar.component.html +10 -0
  142. package/src/lib/components/sidebar/sidebar.component.ts +60 -0
  143. package/src/lib/components/steps/steps.component.css +320 -0
  144. package/src/lib/components/steps/steps.component.html +18 -0
  145. package/src/lib/components/steps/steps.component.ts +44 -0
  146. package/src/lib/components/table/loading/table.loading.component.css +29 -0
  147. package/src/lib/components/table/loading/table.loading.component.html +9 -0
  148. package/src/lib/components/table/loading/table.loading.component.ts +14 -0
  149. package/src/lib/components/table/pagination/table.pagination.component.css +138 -0
  150. package/src/lib/components/table/pagination/table.pagination.component.html +9 -0
  151. package/src/lib/components/table/pagination/table.pagination.component.ts +89 -0
  152. package/src/lib/components/table/report/table.report.component.css +125 -0
  153. package/src/lib/components/table/report/table.report.component.html +19 -0
  154. package/src/lib/components/table/report/table.report.component.ts +238 -0
  155. package/src/lib/components/table/row/table.row.component.css +170 -0
  156. package/src/lib/components/table/row/table.row.component.html +21 -0
  157. package/src/lib/components/table/row/table.row.component.ts +373 -0
  158. package/src/lib/components/table/table.component.css +116 -0
  159. package/src/lib/components/table/table.component.html +62 -0
  160. package/src/lib/components/table/table.component.ts +180 -0
  161. package/src/lib/components/tooltip/tooltip.component.css +159 -0
  162. package/src/lib/components/tooltip/tooltip.component.html +1 -0
  163. package/src/lib/components/tooltip/tooltip.component.ts +15 -0
  164. package/src/lib/ps-toolkit-ui.module.ts +94 -0
  165. package/src/lib/services/config.service.ts +8 -0
  166. package/{public-api.d.ts → src/public-api.ts} +53 -48
  167. package/src/test.ts +26 -0
  168. package/tsconfig.lib.json +25 -0
  169. package/tsconfig.lib.prod.json +10 -0
  170. package/tsconfig.spec.json +17 -0
  171. package/tslint.json +17 -0
  172. package/bundles/ps-toolkit-ui.umd.js +0 -7646
  173. package/bundles/ps-toolkit-ui.umd.js.map +0 -1
  174. package/bundles/ps-toolkit-ui.umd.min.js +0 -2
  175. package/bundles/ps-toolkit-ui.umd.min.js.map +0 -1
  176. package/esm2015/lib/classes/chart.class.js +0 -140
  177. package/esm2015/lib/classes/enum.class.js +0 -187
  178. package/esm2015/lib/classes/form.class.js +0 -481
  179. package/esm2015/lib/classes/helper.class.js +0 -284
  180. package/esm2015/lib/classes/lang.class.js +0 -32
  181. package/esm2015/lib/classes/login.class.js +0 -22
  182. package/esm2015/lib/classes/modal.class.js +0 -52
  183. package/esm2015/lib/classes/permission.class.js +0 -61
  184. package/esm2015/lib/classes/request.class.js +0 -256
  185. package/esm2015/lib/classes/safestyle.class.js +0 -15
  186. package/esm2015/lib/classes/sidebar.class.js +0 -14
  187. package/esm2015/lib/classes/steps.class.js +0 -20
  188. package/esm2015/lib/classes/string.class.js +0 -220
  189. package/esm2015/lib/classes/table.class.js +0 -215
  190. package/esm2015/lib/components/accordion/accordion.component.js +0 -45
  191. package/esm2015/lib/components/alert/alert.component.js +0 -39
  192. package/esm2015/lib/components/base.component.js +0 -45
  193. package/esm2015/lib/components/calendar/calendar.component.js +0 -97
  194. package/esm2015/lib/components/chart/chart.component.js +0 -17
  195. package/esm2015/lib/components/clock/clock.component.js +0 -33
  196. package/esm2015/lib/components/confirm/confirm.component.js +0 -50
  197. package/esm2015/lib/components/footer/footer.component.js +0 -23
  198. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +0 -148
  199. package/esm2015/lib/components/form/button/form.button.component.js +0 -68
  200. package/esm2015/lib/components/form/car/form.car.component.js +0 -84
  201. package/esm2015/lib/components/form/car/search/form.car.search.component.js +0 -172
  202. package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +0 -66
  203. package/esm2015/lib/components/form/date/form.date.component.js +0 -254
  204. package/esm2015/lib/components/form/datetime/form.datetime.component.js +0 -104
  205. package/esm2015/lib/components/form/file/form.file.component.js +0 -133
  206. package/esm2015/lib/components/form/finger/form.finger.component.js +0 -138
  207. package/esm2015/lib/components/form/hidden/form.hidden.component.js +0 -31
  208. package/esm2015/lib/components/form/icon/form.icon.component.js +0 -76
  209. package/esm2015/lib/components/form/index/form.component.js +0 -48
  210. package/esm2015/lib/components/form/label/form.label.component.js +0 -32
  211. package/esm2015/lib/components/form/plaque/form.plaque.component.js +0 -176
  212. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +0 -390
  213. package/esm2015/lib/components/form/radio/form.radio.component.js +0 -79
  214. package/esm2015/lib/components/form/select/form.select.component.js +0 -374
  215. package/esm2015/lib/components/form/select/item/form.select.item.component.js +0 -43
  216. package/esm2015/lib/components/form/table/form.table.component.js +0 -98
  217. package/esm2015/lib/components/form/textarea/form.textarea.component.js +0 -78
  218. package/esm2015/lib/components/form/textbox/form.textbox.component.js +0 -186
  219. package/esm2015/lib/components/form/time/form.time.component.js +0 -145
  220. package/esm2015/lib/components/form/tree/form.tree.component.js +0 -99
  221. package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +0 -48
  222. package/esm2015/lib/components/header/header.component.js +0 -33
  223. package/esm2015/lib/components/header/sub/sub.header.component.js +0 -14
  224. package/esm2015/lib/components/layout/layout.component.js +0 -25
  225. package/esm2015/lib/components/loading/loading.component.js +0 -22
  226. package/esm2015/lib/components/login/login.component.js +0 -148
  227. package/esm2015/lib/components/modal/modal.component.js +0 -25
  228. package/esm2015/lib/components/notfound/notfound.component.js +0 -29
  229. package/esm2015/lib/components/notification/notification.component.js +0 -14
  230. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +0 -53
  231. package/esm2015/lib/components/sidebar/sidebar.component.js +0 -67
  232. package/esm2015/lib/components/steps/steps.component.js +0 -51
  233. package/esm2015/lib/components/table/loading/table.loading.component.js +0 -17
  234. package/esm2015/lib/components/table/pagination/table.pagination.component.js +0 -84
  235. package/esm2015/lib/components/table/report/table.report.component.js +0 -246
  236. package/esm2015/lib/components/table/row/table.row.component.js +0 -379
  237. package/esm2015/lib/components/table/table.component.js +0 -179
  238. package/esm2015/lib/components/tooltip/tooltip.component.js +0 -19
  239. package/esm2015/lib/ps-toolkit-ui.module.js +0 -95
  240. package/esm2015/lib/services/config.service.js +0 -14
  241. package/esm2015/ps-toolkit-ui.js +0 -20
  242. package/esm2015/public-api.js +0 -52
  243. package/fesm2015/ps-toolkit-ui.js +0 -6566
  244. package/fesm2015/ps-toolkit-ui.js.map +0 -1
  245. package/lib/classes/chart.class.d.ts +0 -11
  246. package/lib/classes/enum.class.d.ts +0 -158
  247. package/lib/classes/form.class.d.ts +0 -173
  248. package/lib/classes/helper.class.d.ts +0 -28
  249. package/lib/classes/lang.class.d.ts +0 -5
  250. package/lib/classes/login.class.d.ts +0 -17
  251. package/lib/classes/modal.class.d.ts +0 -19
  252. package/lib/classes/permission.class.d.ts +0 -31
  253. package/lib/classes/request.class.d.ts +0 -12
  254. package/lib/classes/safestyle.class.d.ts +0 -7
  255. package/lib/classes/sidebar.class.d.ts +0 -11
  256. package/lib/classes/steps.class.d.ts +0 -17
  257. package/lib/classes/string.class.d.ts +0 -218
  258. package/lib/classes/table.class.d.ts +0 -69
  259. package/lib/components/accordion/accordion.component.d.ts +0 -7
  260. package/lib/components/alert/alert.component.d.ts +0 -10
  261. package/lib/components/base.component.d.ts +0 -14
  262. package/lib/components/calendar/calendar.component.d.ts +0 -26
  263. package/lib/components/chart/chart.component.d.ts +0 -5
  264. package/lib/components/clock/clock.component.d.ts +0 -11
  265. package/lib/components/confirm/confirm.component.d.ts +0 -14
  266. package/lib/components/footer/footer.component.d.ts +0 -6
  267. package/lib/components/form/bank-card/form.bank-card.component.d.ts +0 -22
  268. package/lib/components/form/button/form.button.component.d.ts +0 -15
  269. package/lib/components/form/car/form.car.component.d.ts +0 -16
  270. package/lib/components/form/car/search/form.car.search.component.d.ts +0 -17
  271. package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -14
  272. package/lib/components/form/date/form.date.component.d.ts +0 -42
  273. package/lib/components/form/datetime/form.datetime.component.d.ts +0 -13
  274. package/lib/components/form/file/form.file.component.d.ts +0 -17
  275. package/lib/components/form/finger/form.finger.component.d.ts +0 -15
  276. package/lib/components/form/hidden/form.hidden.component.d.ts +0 -7
  277. package/lib/components/form/icon/form.icon.component.d.ts +0 -15
  278. package/lib/components/form/index/form.component.d.ts +0 -10
  279. package/lib/components/form/label/form.label.component.d.ts +0 -8
  280. package/lib/components/form/plaque/form.plaque.component.d.ts +0 -22
  281. package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +0 -36
  282. package/lib/components/form/radio/form.radio.component.d.ts +0 -13
  283. package/lib/components/form/select/form.select.component.d.ts +0 -39
  284. package/lib/components/form/select/item/form.select.item.component.d.ts +0 -12
  285. package/lib/components/form/table/form.table.component.d.ts +0 -9
  286. package/lib/components/form/textarea/form.textarea.component.d.ts +0 -13
  287. package/lib/components/form/textbox/form.textbox.component.d.ts +0 -20
  288. package/lib/components/form/time/form.time.component.d.ts +0 -25
  289. package/lib/components/form/tree/form.tree.component.d.ts +0 -16
  290. package/lib/components/form/tree/item/form.tree.item.component.d.ts +0 -17
  291. package/lib/components/header/header.component.d.ts +0 -9
  292. package/lib/components/header/sub/sub.header.component.d.ts +0 -3
  293. package/lib/components/layout/layout.component.d.ts +0 -8
  294. package/lib/components/loading/loading.component.d.ts +0 -5
  295. package/lib/components/login/login.component.d.ts +0 -13
  296. package/lib/components/modal/modal.component.d.ts +0 -9
  297. package/lib/components/notfound/notfound.component.d.ts +0 -8
  298. package/lib/components/notification/notification.component.d.ts +0 -3
  299. package/lib/components/sidebar/item/sidebar.item.component.d.ts +0 -14
  300. package/lib/components/sidebar/sidebar.component.d.ts +0 -19
  301. package/lib/components/steps/steps.component.d.ts +0 -10
  302. package/lib/components/table/loading/table.loading.component.d.ts +0 -5
  303. package/lib/components/table/pagination/table.pagination.component.d.ts +0 -15
  304. package/lib/components/table/report/table.report.component.d.ts +0 -34
  305. package/lib/components/table/row/table.row.component.d.ts +0 -34
  306. package/lib/components/table/table.component.d.ts +0 -40
  307. package/lib/components/tooltip/tooltip.component.d.ts +0 -5
  308. package/lib/ps-toolkit-ui.module.d.ts +0 -4
  309. package/lib/services/config.service.d.ts +0 -6
  310. package/ps-toolkit-ui.d.ts +0 -19
  311. package/ps-toolkit-ui.metadata.json +0 -1
@@ -0,0 +1,206 @@
1
+ #Calendar {
2
+ float: right;
3
+ width: 100%;
4
+ background-color: white;
5
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
6
+ border-radius: 5px;
7
+ z-index: 4;
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -khtml-user-select: none;
11
+ -ms-user-select: none;
12
+ position: relative;
13
+ }
14
+ #Calendar > .title {
15
+ float: right;
16
+ width: 100%;
17
+ text-align: center;
18
+ line-height: 30px;
19
+ font-family: VazirBold;
20
+ }
21
+
22
+ #Calendar .days-con {
23
+ float: right;
24
+ width: 100%;
25
+ }
26
+
27
+ #Calendar .header {
28
+ float: right;
29
+ width: 100%;
30
+ background: var(--black-33);
31
+ }
32
+
33
+ #Calendar .header .previous-month, #Calendar .header .next-month {
34
+ float: right;
35
+ width: 30px;
36
+ height: 30px;
37
+ line-height: 30px;
38
+ cursor: pointer;
39
+ font-size: 15px;
40
+ text-align: center;
41
+ }
42
+
43
+ #Calendar .header .previous-month:hover, #Calendar .header .next-month:hover {
44
+ background: var(--black-33);
45
+ }
46
+
47
+ #Calendar .header .title {
48
+ float: right;
49
+ width: calc(100% - 60px);
50
+ height: 30px;
51
+ font-size: 12px;
52
+ text-align: center;
53
+ font-family: VazirBold;
54
+ }
55
+
56
+ #Calendar .header .header-item {
57
+ float: right;
58
+ height: 20px;
59
+ line-height: 20px;
60
+ margin-top: 5px;
61
+ margin-right: 5px;
62
+ text-align: center;
63
+ background-color: white;
64
+ box-shadow: var(--box-shadow);
65
+ border-radius: 5px;
66
+ cursor: pointer;
67
+ }
68
+
69
+ #Calendar .header .header-item:hover {
70
+ background-color: var(--base-11);
71
+ }
72
+
73
+ #Calendar .header .header-item.year {
74
+ width: calc(40% - 10px);
75
+ }
76
+
77
+ #Calendar .header .header-item.month {
78
+ width: calc(60% - 10px);
79
+ }
80
+
81
+ #Calendar .days-con .day-names {
82
+ float: right;
83
+ width: 100%;
84
+ font-size: 12px;
85
+ text-align: center;
86
+ font-family: VazirLight;
87
+ position: relative;
88
+ }
89
+
90
+ #Calendar .days-con .day-names .item-con {
91
+ float: right;
92
+ width: calc(100% / 7);
93
+ padding-top: calc(100% / 7);
94
+ position: relative;
95
+ }
96
+
97
+ #Calendar .days-con .day-names .item-con .item {
98
+ position: absolute;
99
+ top: 0;
100
+ right: 0;
101
+ width: 100%;
102
+ height: 100%;
103
+ justify-content: center;
104
+ align-items: center;
105
+ display: flex;
106
+ font-size: 11px;
107
+ }
108
+
109
+ #Calendar .days-con .days {
110
+ float: right;
111
+ width: 100%;
112
+ font-size: 12px;
113
+ text-align: center;
114
+ overflow: hidden;
115
+ border-radius: 5px;
116
+ }
117
+
118
+ #Calendar .days-con .days .item-con {
119
+ float: right;
120
+ width: calc(100% / 7);
121
+ padding-top: calc(100% / 7);
122
+ position: relative;
123
+ cursor: pointer;
124
+ }
125
+
126
+ #Calendar .days-con .days .item-con.not-in-month {
127
+ cursor: default;
128
+ opacity: 0.5;
129
+ }
130
+
131
+ #Calendar .days-con .days .item-con:hover {
132
+ background-color: var(--black-33);
133
+ }
134
+
135
+ #Calendar .days-con .days .item-con.not-in-month:hover {
136
+ background-color: unset;
137
+ }
138
+
139
+ #Calendar .days-con .days .item-con.today {
140
+ background-color: var(--comp);
141
+ color: white;
142
+ }
143
+
144
+ #Calendar .days-con .days .item-con.today.not-in-month:hover {
145
+ background-color: var(--black-33);
146
+ }
147
+
148
+
149
+ #Calendar .days-con .days .item-con .item{
150
+ width: 100%;
151
+ height: 100%;
152
+ top: 0;
153
+ right: 0;
154
+ position: absolute;
155
+ justify-content: center;
156
+ align-items: center;
157
+ display: flex;
158
+ font-size: 11px;
159
+ }
160
+ #Calendar .months-con {
161
+ float: right;
162
+ width: 100%;
163
+ height: 325px;
164
+ }
165
+
166
+ #Calendar .months-con .month {
167
+ float: right;
168
+ width: calc(100% / 3);
169
+ height: calc(325px / 4);
170
+ line-height: calc(325px / 4);
171
+ font-size: 13px;
172
+ text-align: center;
173
+ cursor: pointer;
174
+ }
175
+
176
+ #Calendar .months-con .month:hover {
177
+ background-color: var(--black-33);
178
+ }
179
+
180
+ #Calendar .months-con .month.selected {
181
+ background-color: var(--black-33);
182
+ }
183
+
184
+
185
+ #Calendar .years-con {
186
+ float: right;
187
+ width: 100%;
188
+ }
189
+
190
+ #Calendar .years-con .year {
191
+ float: right;
192
+ width: calc(100% / 4);
193
+ height: calc(325px / 5);
194
+ line-height: calc(325px / 5);
195
+ font-size: 13px;
196
+ text-align: center;
197
+ cursor: pointer;
198
+ }
199
+
200
+ #Calendar .years-con .year:hover {
201
+ background-color: var(--black-33);
202
+ }
203
+
204
+ #Calendar .years-con .year.selected {
205
+ background-color: var(--black-33);
206
+ }
@@ -0,0 +1,36 @@
1
+ <div id="Calendar">
2
+ <div class="header">
3
+ <i (click)="add(state === 'day' || state === 'month' ? -1 : -20)" class="fas fa-angle-right previous-month"></i>
4
+ <div class="title">
5
+ <div (click)="state === 'day' && changeState('month')" class="month header-item">
6
+ {{getActiveMonth()}}
7
+ </div>
8
+ <div (click)="(state === 'day' || state === 'month') && changeState('year')" class="year header-item">
9
+ {{active.format('jYYYY')}}
10
+ </div>
11
+ </div>
12
+ <i (click)="add(state === 'day' || state === 'month' ? 1 : 20)" class="fas fa-angle-left next-month"></i>
13
+ </div>
14
+ <div [style]="state === 'day' ? {} : {display: 'none'}" class="days-con">
15
+ <div class="day-names underline">
16
+ <div class="item-con"><div class="item">ش</div></div>
17
+ <div class="item-con"><div class="item">ی</div></div>
18
+ <div class="item-con"><div class="item">د</div></div>
19
+ <div class="item-con"><div class="item">س</div></div>
20
+ <div class="item-con"><div class="item">چ</div></div>
21
+ <div class="item-con"><div class="item">پ</div></div>
22
+ <div class="item-con"><div class="item">ج</div></div>
23
+ </div>
24
+ <div class="days">
25
+ <div [className]="'item-con not-in-month' + (d.today ? ' today' : '')" *ngFor="let d of previousDays"><div class="item">{{d.day}}</div></div>
26
+ <div [className]="'item-con' + (d.today ? ' today' : '') + (d.selected ? ' selected' : '')" *ngFor="let d of days"><div class="item">{{d.day}}</div></div>
27
+ <div [className]="'item-con not-in-month' + (d.today ? ' today' : '')" *ngFor="let d of nextDays"><div class="item">{{d.day}}</div></div>
28
+ </div>
29
+ </div>
30
+ <div [style]="state === 'month' ? {} : {display: 'none'}" class="months-con">
31
+ <div [className]="(i + 1 == active.format('jM') ? 'selected ' : '') + 'month'" (click)="changeMonth(i + 1)" *ngFor="let m of months; let i = index">{{m}}</div>
32
+ </div>
33
+ <div [style]="state === 'year' ? {} : {display: 'none'}" class="years-con">
34
+ <div [className]="(y == active.format('jYYYY') ? 'selected ' : '') + 'year'" (click)="changeYear(y)" *ngFor="let y of getYears()">{{y}}</div>
35
+ </div>
36
+ </div>
@@ -0,0 +1,99 @@
1
+ import {Component} from '@angular/core';
2
+ import {DayClass} from '../../classes/form.class';
3
+ import * as moment from 'jalali-moment';
4
+ import {PsToolkitUiConfigService} from '../../services/config.service';
5
+ import {LangClass} from '../../classes/lang.class';
6
+
7
+ @Component({
8
+ selector: 'lib-calendar',
9
+ templateUrl: './calendar.component.html',
10
+ styleUrls: ['./calendar.component.css']
11
+ })
12
+ export class CalendarComponent {
13
+ state = 'day';
14
+ months = [];
15
+ active: moment.Moment;
16
+ previousDays: DayClass[] = [];
17
+ nextDays: DayClass[] = [];
18
+ days: DayClass[] = [];
19
+ todayDay: number;
20
+ todayMonth: number;
21
+ todayYear: number;
22
+ l: (k, v?) => string;
23
+ constructor(public config: PsToolkitUiConfigService){
24
+ const lang = new LangClass(config.currentLang, config.strings);
25
+ this.l = (key: string, v = null): string => {
26
+ return lang.get('Public', null, key, v);
27
+ };
28
+ this.months = [this.l('Month1'), this.l('Month2'), this.l('Month3'), this.l('Month4'), this.l('Month5'), this.l('Month6'), this.l('Month7'), this.l('Month8'), this.l('Month9'), this.l('Month10'), this.l('Month11'), this.l('Month12')];
29
+ this.setActive(moment());
30
+ }
31
+
32
+ changeState(s: string): void{
33
+ this.state = s;
34
+ }
35
+ getYears(): number[]{
36
+ const y = parseInt(this.active.format('jYYYY'), 10);
37
+ const sy = y - (y % 20);
38
+ return Array.from({length: 20}, (x, i) => sy + i);
39
+ }
40
+ getActiveMonth(): string{
41
+ return this.months[parseInt(this.active.format('jM'), 10) - 1];
42
+ }
43
+ add(c: number): void{
44
+ this.active.add(c, this.state === 'day' ? 'month' : 'year');
45
+ this.setDate();
46
+ }
47
+ changeMonth(c: number): void{
48
+ this.active = moment(this.active.format('jYYYY') + '/' + ('0' + c).slice(-2) + '/' + this.active.format('jDD HH:mm:ss'), 'jYYYY/jMM/jDD HH:mm:ss');
49
+ this.setDate();
50
+ this.changeState('day');
51
+ }
52
+ changeYear(c: number): void{
53
+ this.active = moment(('000' + c).slice(-4) + '/' + this.active.format('jMM/jDD HH:mm:ss'), 'jYYYY/jMM/jDD HH:mm:ss');
54
+ this.setDate();
55
+ this.changeState('month');
56
+ }
57
+
58
+ setDate(): void{
59
+ const n = this.active.clone();
60
+ const countDayInMonth = n.daysInMonth();
61
+ const startWeek = parseInt(n.startOf('month').format('d'), 10);
62
+ const previousMonth = n.subtract(1, 'month');
63
+ const countDayInPreviousMonth = previousMonth.daysInMonth();
64
+ const nextMonth = n.add(2, 'month');
65
+ const previousDays: DayClass[] = [];
66
+ const nextDays = [];
67
+ const days = [];
68
+ if (startWeek !== 6){
69
+ for (let i = countDayInPreviousMonth - startWeek; i <= countDayInPreviousMonth; i++){
70
+ previousDays.push(new DayClass(i, this.isToday(previousMonth, i), false));
71
+ }
72
+ }
73
+ for (let i = 1; i <= countDayInMonth; i++){
74
+ days.push(new DayClass(i, this.isToday(this.active, i), false));
75
+ }
76
+ const end = (days.length + previousDays.length) % 7;
77
+ if (end !== 0){
78
+ for (let i = 1; i <= 7 - end; i++){
79
+ nextDays.push(new DayClass(i, this.isToday(nextMonth, i), false));
80
+ }
81
+ }
82
+ this.previousDays = previousDays;
83
+ this.nextDays = nextDays;
84
+ this.days = days;
85
+ }
86
+
87
+ isToday(m: moment.Moment, d: number): boolean{
88
+ const month = parseInt(m.format('jMM'), 10);
89
+ const year = parseInt(m.format('jYYYY'), 10);
90
+ return year === this.todayYear && month === this.todayMonth && d === this.todayDay;
91
+ }
92
+ setActive(m): void{
93
+ this.active = m;
94
+ this.todayDay = parseInt(this.active.format('jDD'), 10);
95
+ this.todayMonth = parseInt(this.active.format('jMM'), 10);
96
+ this.todayYear = parseInt(this.active.format('jYYYY'), 10);
97
+ this.setDate();
98
+ }
99
+ }
@@ -0,0 +1,24 @@
1
+ .chart-con{
2
+ float: right;
3
+ width: 100%;
4
+ direction: ltr;
5
+ position: relative;
6
+ }
7
+ .chart-con .loading{
8
+ position: absolute;
9
+ top: 0;
10
+ right: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ z-index: 9;
14
+ background-color: white;
15
+ }
16
+ .chart-con .loading .text {
17
+ position: absolute;
18
+ height: 40px;
19
+ line-height: 40px;
20
+ width: 100%;
21
+ text-align: center;
22
+ font-family: VazirBold;
23
+ top: calc(50% - 20px);
24
+ }
@@ -0,0 +1,6 @@
1
+ <div class="chart-con" [style]="chart.style">
2
+ <div *ngIf="chart.loading" class="loading">
3
+ <div class="text" [innerHTML]="chart.l('LoadingTable', 'Processing')"></div>
4
+ </div>
5
+ <div style="height: 100%" [id]="this.chart.name + 'Chart'"></div>
6
+ </div>
@@ -0,0 +1,14 @@
1
+ import {Component, Input} from '@angular/core';
2
+ import {ChartClass} from '../../classes/chart.class';
3
+
4
+ @Component({
5
+ selector: 'lib-chart',
6
+ templateUrl: './chart.component.html',
7
+ styleUrls: ['./chart.component.css']
8
+ })
9
+ export class ChartComponent {
10
+ @Input()
11
+ chart: ChartClass;
12
+ constructor(){
13
+ }
14
+ }
@@ -0,0 +1,141 @@
1
+ #ClockCon {
2
+ width: 10em;
3
+ height: 10em;
4
+ float: right;
5
+ position: relative;
6
+ }
7
+
8
+ #ClockCon #clock {
9
+ position: relative;
10
+ width: 10em;
11
+ height: 10em;
12
+ line-height: 1.5em;
13
+ border: 0.0625em solid var(--black-33);
14
+ border-radius: 50%;
15
+ box-shadow: inset 0.125em 0.25em 0.5em var(--black-33), -0.25em -0.5em 0.5em var(--black-33), 0 0 0.0625em 0.5em var(--black-33), 0 0 0.0625em 0.5625em var(--black-33), 0.125em 0.25em 0.5em 0.5em var(--black-33);
16
+ transform: scale(0.9);
17
+ background-color: white;
18
+ }
19
+
20
+ #ClockCon #clock *,
21
+ #ClockCon #clock *:before,
22
+ #ClockCon #clock *:after {
23
+ box-sizing: border-box;
24
+ background-clip: padding-box;
25
+ }
26
+
27
+ #ClockCon #clock:before,
28
+ #ClockCon #clock:after,
29
+ #ClockCon #clock b:before,
30
+ #ClockCon #clock b:after {
31
+ position: absolute;
32
+ width: 1.5em;
33
+ text-align: center;
34
+ }
35
+
36
+ #ClockCon #clock b {
37
+ position: absolute;
38
+ top: 4.25em;
39
+ width: 100%;
40
+ }
41
+
42
+ #ClockCon #clock:before,
43
+ #ClockCon #clock:after {
44
+ left: 4.25em;
45
+ }
46
+
47
+ #ClockCon #clock:before {
48
+ content: "12";
49
+ top: 0;
50
+ }
51
+
52
+ #ClockCon #clock:after {
53
+ content: "6";
54
+ bottom: 0;
55
+ }
56
+
57
+ #ClockCon #clock b:before {
58
+ left: 0;
59
+ content: "9";
60
+ }
61
+
62
+ #ClockCon #clock b:after {
63
+ right: 0;
64
+ content: "3";
65
+ }
66
+
67
+ #ClockCon #clock span {
68
+ position: absolute;
69
+ top: 0;
70
+ left: 4.9375em;
71
+ width: 0.125em;
72
+ height: 100%;
73
+ }
74
+
75
+ #ClockCon #clock span + span {
76
+ transform: rotate(90deg);
77
+ }
78
+
79
+ #ClockCon #clock i,
80
+ #ClockCon #clock span:before,
81
+ #ClockCon #clock span:after {
82
+ position: absolute;
83
+ top: 0.5em;
84
+ left: 0;
85
+ width: 100%;
86
+ height: 9em;
87
+ }
88
+
89
+ #ClockCon #clock span:before,
90
+ #ClockCon #clock span:after {
91
+ content: "";
92
+ border-style: solid;
93
+ border-color: #000;
94
+ border-width: 0.5em 0;
95
+ transform: rotate(30deg);
96
+ }
97
+
98
+ #ClockCon #clock span:after {
99
+ transform: rotate(60deg);
100
+ }
101
+
102
+ #ClockCon #clock i {
103
+ z-index: 2;
104
+ left: 4.85em;
105
+ width: 0.3em;
106
+ background-color: #000;
107
+ border: solid transparent;
108
+ border-width: 0 0 3em;
109
+ border-radius: 40%;
110
+ }
111
+
112
+ #ClockCon #clock i:first-of-type {
113
+ border-width: 1.5em 0 3em;
114
+ }
115
+
116
+ #ClockCon #clock i:last-of-type {
117
+ background-color: var(--comp);
118
+ }
119
+
120
+ #ClockCon #clock i:last-of-type:before,
121
+ #ClockCon #clock i:last-of-type:after {
122
+ content: "";
123
+ position: absolute;
124
+ border-radius: 50%;
125
+ }
126
+
127
+ #ClockCon #clock i:last-of-type:before {
128
+ top: 4em;
129
+ left: -0.375em;
130
+ width: 1em;
131
+ height: 1em;
132
+ background: #000;
133
+ }
134
+
135
+ #ClockCon #clock i:last-of-type:after {
136
+ top: 4.25em;
137
+ left: -0.125em;
138
+ width: 0.5em;
139
+ height: 0.5em;
140
+ background: #ABC;
141
+ }
@@ -0,0 +1,10 @@
1
+ <div id="ClockCon">
2
+ <div id="clock">
3
+ <b></b>
4
+ <span></span>
5
+ <span></span>
6
+ <i id="hour"></i>
7
+ <i id="minute"></i>
8
+ <i id="second"></i>
9
+ </div>
10
+ </div>
@@ -0,0 +1,37 @@
1
+ import {Component, ElementRef, Input, OnDestroy, OnInit, ViewChild} from '@angular/core';
2
+ import * as moment from 'jalali-moment';
3
+
4
+ @Component({
5
+ selector: 'lib-clock',
6
+ templateUrl: './clock.component.html',
7
+ styleUrls: ['./clock.component.css']
8
+ })
9
+ export class ClockComponent implements OnInit, OnDestroy{
10
+ clockInterval;
11
+ @ViewChild('clock') clock: ElementRef;
12
+ active: moment.Moment;
13
+ constructor(){
14
+ this.active = moment();
15
+ }
16
+ ngOnInit(): void{
17
+ this.clockInterval = setInterval(() => {
18
+ this.clockUpdate();
19
+ }, 1000);
20
+ }
21
+ ngOnDestroy(): void{
22
+ clearInterval(this.clockInterval);
23
+ }
24
+
25
+ clockUpdate(): void{
26
+ this.active = this.active.add(1, 'second');
27
+ document.getElementById('hour').style.transform = 'rotate(' + (
28
+ this.active.get('hour') * 30 + (Math.floor(this.active.get('minute') / 12) * 6)
29
+ ) + 'deg)';
30
+ document.getElementById('minute').style.transform = 'rotate(' + (
31
+ this.active.get('minute') * 6
32
+ ) + 'deg)';
33
+ document.getElementById('second').style.transform = 'rotate(' + (
34
+ this.active.get('second') * 6
35
+ ) + 'deg)';
36
+ }
37
+ }
@@ -0,0 +1,112 @@
1
+ .accordion {
2
+ float: right;
3
+ width: 100%;
4
+ padding: 20px;
5
+ background-color: white;
6
+ border-radius: 5px;
7
+ position: relative;
8
+ min-height: 300px !important;
9
+ }
10
+
11
+ .accordion > .loading{
12
+ position: absolute;
13
+ background-color: white;
14
+ top: 0;
15
+ right: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ text-align: center;
19
+ border-radius: 5px;
20
+ z-index: 4;
21
+ }
22
+
23
+ .accordion > .loading .text {
24
+ position: absolute;
25
+ height: 35px;
26
+ line-height: 35px;
27
+ width: 100%;
28
+ text-align: center;
29
+ font-family: VazirBold;
30
+ top: calc(50% - 20px);
31
+ }
32
+ ::ng-deep .accordion > .loading .icon {
33
+ font-size: 20px !important;
34
+ line-height: 30px;
35
+ position: relative;
36
+ top: 5px;
37
+ margin-left: 5px;
38
+ }
39
+ .accordion > .title{
40
+ float: right;
41
+ width: 100%;
42
+ height: 30px;
43
+ line-height: 30px;
44
+ font-family: VazirBold;
45
+ font-size: 16px;
46
+ text-align: center;
47
+ margin-bottom: 10px;
48
+ position: relative;
49
+ }
50
+ .accordion .accordion-item{
51
+ float: right;
52
+ width: 100%;
53
+ margin-bottom: 10px;
54
+ position: relative;
55
+ }
56
+ .accordion .accordion-item .header{
57
+ float: right;
58
+ width: 100%;
59
+ -webkit-user-select: none;
60
+ -moz-user-select: none;
61
+ -khtml-user-select: none;
62
+ -ms-user-select: none;
63
+ position: relative;
64
+ }
65
+ .accordion .accordion-item .title{
66
+ float: right;
67
+ width: 100%;
68
+ height: 30px;
69
+ line-height: 30px;
70
+ background-color: var(--base);
71
+ border-radius: 5px;
72
+ text-align: center;
73
+ font-size: 12px;
74
+ cursor: pointer;
75
+ color: white;
76
+ }
77
+ .accordion .accordion-item .title:hover{
78
+ background-color: var(--base-dark);
79
+ }
80
+ .accordion .accordion-item .header .icon{
81
+ position: absolute;
82
+ top: 0;
83
+ right: 0;
84
+ width: 30px;
85
+ height: 30px;
86
+ line-height: 29px;
87
+ text-align: center;
88
+ color: white;
89
+ cursor: pointer;
90
+ font-size: 18px;
91
+ }
92
+ .accordion .accordion-item .header .delete-icon{
93
+ position: absolute;
94
+ top: 0;
95
+ left: 0;
96
+ width: 30px;
97
+ height: 30px;
98
+ line-height: 29px;
99
+ text-align: center;
100
+ color: white;
101
+ cursor: pointer;
102
+ font-size: 18px;
103
+ }
104
+ .accordion .accordion-item .content{
105
+ display: none;
106
+ float: right;
107
+ width: 100%;
108
+ padding: 10px;
109
+ }
110
+ .accordion .accordion-item-con:first-of-type .content{
111
+ display: block;
112
+ }
@@ -0,0 +1 @@
1
+ <lib-modal *ngIf="confirm" [modal]="confirm"></lib-modal>