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,180 @@
1
+ import {Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
2
+ import {Router} from '@angular/router';
3
+ import {TableClass} from '../../classes/table.class';
4
+ import {InputType, Method, TableCollType, TableOptionType} from '../../classes/enum.class';
5
+ import {InputClass} from '../../classes/form.class';
6
+ import {RequestClass} from '../../classes/request.class';
7
+ import * as $ from 'jquery';
8
+ import {ConfirmComponent} from '../confirm/confirm.component';
9
+ import {ModalClass} from '../../classes/modal.class';
10
+
11
+ @Component({
12
+ selector: 'lib-table',
13
+ templateUrl: './table.component.html',
14
+ styleUrls: ['./table.component.css']
15
+ })
16
+ export class TableComponent implements OnInit{
17
+ @Input()
18
+ table: TableClass;
19
+ @Output()
20
+ changeRows = new EventEmitter<object>();
21
+ get type(): typeof InputType{ return InputType; }
22
+ get tableOptionType(): typeof TableOptionType{ return TableOptionType; }
23
+ get colType(): typeof TableCollType{ return TableCollType; }
24
+ @ViewChild('rows') rows: ElementRef;
25
+ @ViewChild('tableDiv') tableDiv: ElementRef;
26
+ @ViewChild('exportDropDown') exportDropDown: ElementRef;
27
+ @ViewChild('confirm') confirm: ConfirmComponent;
28
+ loadIcon: InputClass;
29
+ sizeIcon: InputClass;
30
+ select: InputClass = null;
31
+ optDelete: InputClass;
32
+ reload: InputClass;
33
+ maximum: InputClass;
34
+ export: InputClass = null;
35
+ constructor(public router: Router) {
36
+ }
37
+ itemsWidth = 0;
38
+ options: InputClass[];
39
+ ngOnInit(): void {
40
+ // if (this.app.isReport){
41
+ // this.table.perPage = -1;
42
+ // this.table.extraButtons = false;
43
+ // this.table.displayLabel = false;
44
+ // this.table.isReport = true;
45
+ // this.table.permissions.Accesses = ['List'];
46
+ // this.table.permissions.Options = [];
47
+ // this.table.cols.forEach(x => x.sort = false);
48
+ // this.table.onLoad = () => {
49
+ // setTimeout(() => {
50
+ // window.print();
51
+ // }, 500);
52
+ // };
53
+ // }
54
+ this.loadIcon = new InputClass(this.table.environment, null, 'LoadIcon');
55
+ this.sizeIcon = new InputClass(this.table.environment, null, 'SizeIcon');
56
+ if (this.table.hasChildren){
57
+ this.table.cols.forEach(x => x.sort = false);
58
+ }
59
+ this.itemsWidth = this.table.cols.reduce((a, {percent}) => a + percent, 0);
60
+ this.reload = new InputClass(this.table.environment, this.table.l, 'Reload', 'fa-duotone fa-sync-alt', InputType.Icon, 'm-h-5');
61
+ this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fa-duotone fa-expand-arrows-alt', InputType.Icon, 'm-h-5');
62
+ this.optDelete = new InputClass(this.table.environment, this.table.l, 'Delete', 'fa-duotone fa-trash', InputType.Icon, 'red h-25 m-h-5 d-ib va-m f-u');
63
+ for (const c of this.table.cols.filter(x => x.withSearch)){
64
+ c.search = new InputClass(this.table.environment, this.table.l, c.name,
65
+ null, c.type === TableCollType.Date ? InputType.Date : InputType.Text, 'h-25 table-search');
66
+ c.search.displayLabel = false;
67
+ c.search.onChange = () => {
68
+ this.table.load();
69
+ };
70
+ }
71
+ if (this.table.sortable){
72
+ this.table.perPage = -1;
73
+ this.table.onLoad = () => {
74
+ this.setSortable();
75
+ };
76
+ }
77
+ this.table.set(this.changeRows);
78
+ if (this.table.searchForm){
79
+ this.table.searchForm.displayLabel = false;
80
+ this.table.searchForm.inputs.forEach(x => {
81
+ x.required = false;
82
+ x.displayLabel = false;
83
+ x.withClear = true;
84
+ x.class = x.class + ' h-30';
85
+ x.onChange = () => {
86
+ this.table.load();
87
+ };
88
+ });
89
+ }
90
+ this.options = this.getOptions();
91
+ this.reload.onClick = () => {
92
+ this.table.load(this.reload);
93
+ };
94
+ this.maximum.onClick = () => {
95
+ $(this.tableDiv.nativeElement).toggleClass('maximum');
96
+ this.maximum.icon = this.maximum.name === 'Minimum' ? 'fa-duotone fa-expand-arrows-alt' : 'fa-duotone fa-compress-arrows-alt';
97
+ this.maximum.name = this.maximum.name === 'Minimum' ? 'Maximum' : 'Minimum';
98
+ };
99
+ this.optDelete.onClick = (i) => {
100
+ if (this.table.form){
101
+ this.table.form.clear();
102
+ }
103
+ const data = {
104
+ ids: this.table.rows.filter(x => x.selected).map(x => x.id)
105
+ };
106
+ this.confirm.show(this.table.l('DeleteConfirm'), this.table.url + '/Delete/' + 0, data, () => {
107
+ this.table.load(null);
108
+ });
109
+ };
110
+ this.table.showConfirm = (l: string, url: string, data, accept: (btn: InputClass) => void) => {
111
+ this.confirm.show(l, url, data, accept);
112
+ };
113
+ }
114
+ allSelected(): boolean{
115
+ return this.table.rows.filter(x => !x.selected).length === 0;
116
+ }
117
+ isSelected(): boolean{
118
+ return this.table.rows.filter(x => x.selected).length > 0;
119
+ }
120
+ selectAll(): void{
121
+ if (this.table.rows.filter(x => !x.selected).length === 0){
122
+ this.table.rows.forEach(x => x.selected = false);
123
+ }else{
124
+ this.table.rows.forEach(x => x.selected = true);
125
+ }
126
+ }
127
+ getOptions(): InputClass[]{
128
+ return [];
129
+ }
130
+ setSortable(): void{
131
+ setTimeout(() => {
132
+ // @ts-ignore
133
+ $(this.rows.nativeElement).sortable({
134
+ axis: 'y',
135
+ items: 'tr',
136
+ update: () => {
137
+ const data = [];
138
+ // @ts-ignore
139
+ $(this.rows.nativeElement).sortable('toArray').forEach(x => data.push(x));
140
+ new RequestClass(this.table.l).send(this.table.url + 'Sort', Method.Post, {Ids: data}, null, () => {
141
+ if (this.table.onSort){
142
+ this.table.onSort();
143
+ }
144
+ });
145
+ }
146
+ }).disableSelection();
147
+ }, 500);
148
+ }
149
+ getRows(): any[]{
150
+ const c = this.table.rows.filter(x => !x.Data.ParentId);
151
+ c.forEach((x, i) => x.RowNum = c.length - i + 1);
152
+ return c;
153
+ }
154
+ // getOptionModals(): InputClass[]{
155
+ // const modals = [];
156
+ // for (const [key, value] of Object.entries(this.table.optionActions)) {
157
+ // if (this.table.optionActions[key].modal){
158
+ // modals.push(this.table.optionActions[key].modal);
159
+ // }
160
+ // }
161
+ // return modals;
162
+ // }
163
+ onChangeRows(e): void{
164
+ return this.changeRows.emit(e);
165
+ }
166
+ onConfirmShow(e): void{
167
+ this.confirm.show(this.table.l('DeleteConfirm'), this.table.url + 'Delete/' + e.id, null, e.accept);
168
+ }
169
+ changeSort(e, s: string): void{
170
+ if ($(e.target).closest('.header-search').hasClass('header-search')){
171
+ return;
172
+ }
173
+ this.table.sortType = this.table.sort === s ? this.table.sortType === 'ASC' ? 'DESC' : 'ASC' : 'ASC';
174
+ this.table.sort = s;
175
+ this.table.load();
176
+ }
177
+ getModals(): ModalClass[]{
178
+ return this.table.optionsActions.filter(x => x instanceof ModalClass);
179
+ }
180
+ }
@@ -0,0 +1,159 @@
1
+ [data-tooltip] {
2
+ width: 100%;
3
+ height: 100%;
4
+ position: relative;
5
+ z-index: 10;
6
+ }
7
+
8
+ /* Positioning and visibility settings of the tooltip */
9
+ [data-tooltip]:before,
10
+ [data-tooltip]:after {
11
+ position: absolute;
12
+ visibility: hidden;
13
+ opacity: 0;
14
+ left: 50%;
15
+ bottom: calc(100% + 5px);
16
+ pointer-events: none;
17
+ transition: 0.2s;
18
+ will-change: transform;
19
+ }
20
+
21
+ /* The actual tooltip with a dynamic width */
22
+ [data-tooltip]:before {
23
+ content: attr(data-tooltip);
24
+ padding: 0 10px;
25
+ line-height: 30px;
26
+ min-width: 50px;
27
+ max-width: 300px;
28
+ width: max-content;
29
+ width: -moz-max-content;
30
+ border-radius: 5px;
31
+ font-size: 13px;
32
+ background-color: var(--black);
33
+ color: #fff;
34
+ text-align: center;
35
+ white-space: pre-wrap;
36
+ z-index: 6;
37
+ transform: translate(-50%, -5px) scale(0.5);
38
+ }
39
+
40
+ /* Tooltip arrow */
41
+ [data-tooltip]:after {
42
+ content: '';
43
+ border-style: solid;
44
+ border-width: 5px 5px 0px 5px;
45
+ border-color: var(--black);
46
+ transition-duration: 0s; /* If the mouse leaves the element,
47
+ the transition effects for the
48
+ tooltip arrow are "turned off" */
49
+ transform-origin: top; /* Orientation setting for the
50
+ slide-down effect */
51
+ transform: translateX(-50%) scaleY(0);
52
+ }
53
+
54
+ /* Tooltip becomes visible at hover */
55
+ [data-tooltip]:hover:before,
56
+ [data-tooltip]:hover:after {
57
+ visibility: visible;
58
+ opacity: 1;
59
+ }
60
+ /* Scales from 0.5 to 1 -> grow effect */
61
+ [data-tooltip]:hover:before {
62
+ transition-delay: 0.3s;
63
+ transform: translate(-50%, -5px) scale(1);
64
+ }
65
+ /* Slide down effect only on mouseenter (NOT on mouseleave) */
66
+ [data-tooltip]:hover:after {
67
+ transition-delay: 0.5s; /* Starting after the grow effect */
68
+ transition-duration: 0.2s;
69
+ transform: translateX(-50%) scaleY(1);
70
+ }
71
+ /*
72
+ That's it.
73
+ */
74
+
75
+
76
+
77
+
78
+
79
+
80
+ /*
81
+ If you want some adjustability
82
+ here are some orientation settings you can use:
83
+ */
84
+
85
+ /* LEFT */
86
+ /* Tooltip + arrow */
87
+ [data-tooltip-location="left"]:before,
88
+ [data-tooltip-location="left"]:after {
89
+ left: auto;
90
+ right: calc(100% + 5px);
91
+ bottom: 50%;
92
+ }
93
+
94
+ /* Tooltip */
95
+ [data-tooltip-location="left"]:before {
96
+ transform: translate(-5px, 50%) scale(0.5);
97
+ }
98
+ [data-tooltip-location="left"]:hover:before {
99
+ transform: translate(-5px, 50%) scale(1);
100
+ }
101
+
102
+ /* Arrow */
103
+ [data-tooltip-location="left"]:after {
104
+ border-width: 5px 0px 5px 5px;
105
+ border-color: transparent transparent transparent rgba(55, 64, 70, 0.9);
106
+ transform-origin: left;
107
+ transform: translateY(50%) scaleX(0);
108
+ }
109
+ [data-tooltip-location="left"]:hover:after {
110
+ transform: translateY(50%) scaleX(1);
111
+ }
112
+
113
+
114
+
115
+ /* RIGHT */
116
+ [data-tooltip-location="right"]:before,
117
+ [data-tooltip-location="right"]:after {
118
+ left: calc(100% + 5px);
119
+ bottom: 50%;
120
+ }
121
+
122
+ [data-tooltip-location="right"]:before {
123
+ transform: translate(5px, 50%) scale(0.5);
124
+ }
125
+ [data-tooltip-location="right"]:hover:before {
126
+ transform: translate(5px, 50%) scale(1);
127
+ }
128
+
129
+ [data-tooltip-location="right"]:after {
130
+ border-width: 5px 5px 5px 0px;
131
+ border-color: transparent rgba(55, 64, 70, 0.9) transparent transparent;
132
+ transform-origin: right;
133
+ transform: translateY(50%) scaleX(0);
134
+ }
135
+ [data-tooltip-location="right"]:hover:after {
136
+ transform: translateY(50%) scaleX(1);
137
+ }
138
+
139
+
140
+
141
+ /* BOTTOM */
142
+ [data-tooltip-location="bottom"]:before,
143
+ [data-tooltip-location="bottom"]:after {
144
+ top: calc(100% + 5px);
145
+ bottom: auto;
146
+ }
147
+
148
+ [data-tooltip-location="bottom"]:before {
149
+ transform: translate(-50%, 5px) scale(0.5);
150
+ }
151
+ [data-tooltip-location="bottom"]:hover:before {
152
+ transform: translate(-50%, 5px) scale(1);
153
+ }
154
+
155
+ [data-tooltip-location="bottom"]:after {
156
+ border-width: 0px 5px 5px 5px;
157
+ border-color: transparent transparent rgba(55, 64, 70, 0.9) transparent;
158
+ transform-origin: bottom;
159
+ }
@@ -0,0 +1 @@
1
+ <div [attr.data-tooltip-location]="position" [attr.data-tooltip]="text"></div>
@@ -0,0 +1,15 @@
1
+ import {Component, Input} from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'lib-tooltip',
5
+ templateUrl: './tooltip.component.html',
6
+ styleUrls: ['./tooltip.component.css']
7
+ })
8
+ export class TooltipComponent{
9
+ @Input()
10
+ text: string;
11
+ @Input()
12
+ position = 'bottom';
13
+ constructor(){
14
+ }
15
+ }
@@ -0,0 +1,94 @@
1
+ import {ModuleWithProviders, NgModule} from '@angular/core';
2
+ import {PsToolkitUiConfigService} from './services/config.service';
3
+ import {AccordionComponent} from './components/accordion/accordion.component';
4
+ import {FooterComponent} from './components/footer/footer.component';
5
+ import {HeaderComponent} from './components/header/header.component';
6
+ import {ModalComponent} from './components/modal/modal.component';
7
+ import {SidebarItemComponent} from './components/sidebar/item/sidebar.item.component';
8
+ import {SidebarComponent} from './components/sidebar/sidebar.component';
9
+ import {StepsComponent} from './components/steps/steps.component';
10
+ import {SubHeaderComponent} from './components/header/sub/sub.header.component';
11
+ import {TableLoadingComponent} from './components/table/loading/table.loading.component';
12
+ import {TablePaginationComponent} from './components/table/pagination/table.pagination.component';
13
+ import {TableRowComponent} from './components/table/row/table.row.component';
14
+ import {TableComponent} from './components/table/table.component';
15
+ import {TooltipComponent} from './components/tooltip/tooltip.component';
16
+ import {FormBankCardComponent} from './components/form/bank-card/form.bank-card.component';
17
+ import {FormButtonComponent} from './components/form/button/form.button.component';
18
+ import {FormCheckboxComponent} from './components/form/checkbox/form.checkbox.component';
19
+ import {FormDateComponent} from './components/form/date/form.date.component';
20
+ import {FormDatetimeComponent} from './components/form/datetime/form.datetime.component';
21
+ import {FormFileComponent} from './components/form/file/form.file.component';
22
+ import {FormIconComponent} from './components/form/icon/form.icon.component';
23
+ import {FormComponent} from './components/form/index/form.component';
24
+ import {FormLabelComponent} from './components/form/label/form.label.component';
25
+ import {FormPlaqueSelectComponent} from './components/form/plaque/select/form.plaque.select.component';
26
+ import {FormPlaqueComponent} from './components/form/plaque/form.plaque.component';
27
+ import {FormRadioComponent} from './components/form/radio/form.radio.component';
28
+ import {FormSelectItemComponent} from './components/form/select/item/form.select.item.component';
29
+ import {FormSelectComponent} from './components/form/select/form.select.component';
30
+ import {FormTableComponent} from './components/form/table/form.table.component';
31
+ import {FormTextareaComponent} from './components/form/textarea/form.textarea.component';
32
+ import {FormTextboxComponent} from './components/form/textbox/form.textbox.component';
33
+ import {FormTimeComponent} from './components/form/time/form.time.component';
34
+ import {FormTreeItemComponent} from './components/form/tree/item/form.tree.item.component';
35
+ import {FormTreeComponent} from './components/form/tree/form.tree.component';
36
+ import {AlertComponent} from './components/alert/alert.component';
37
+ import {ConfirmComponent} from './components/confirm/confirm.component';
38
+ import {NotfoundComponent} from './components/notfound/notfound.component';
39
+ import {FormFingerComponent} from './components/form/finger/form.finger.component';
40
+ import {FormCarSearchComponent} from './components/form/car/search/form.car.search.component';
41
+ import {FormCarComponent} from './components/form/car/form.car.component';
42
+ import {TableReportComponent} from './components/table/report/table.report.component';
43
+ import {RouterModule} from '@angular/router';
44
+ import {FormsModule} from '@angular/forms';
45
+ import {CommonModule} from '@angular/common';
46
+ import {SafeStylePipe} from './classes/safestyle.class';
47
+ import {LoginComponent} from './components/login/login.component';
48
+ import {LoadingComponent} from './components/loading/loading.component';
49
+ import {NotificationComponent} from './components/notification/notification.component';
50
+ import {LayoutComponent} from './components/layout/layout.component';
51
+ import {FormHiddenComponent} from './components/form/hidden/form.hidden.component';
52
+ import {CalendarComponent} from './components/calendar/calendar.component';
53
+ import {ClockComponent} from './components/clock/clock.component';
54
+ import {ChartComponent} from './components/chart/chart.component';
55
+
56
+ @NgModule({
57
+ declarations: [
58
+ FormSelectItemComponent, FormCheckboxComponent, TablePaginationComponent, FormBankCardComponent, SidebarItemComponent, SidebarComponent,
59
+ FormDateComponent, FormPlaqueSelectComponent, TableLoadingComponent, FormTreeItemComponent, FormTextboxComponent, FormTextareaComponent,
60
+ FormIconComponent, FormButtonComponent, FormDatetimeComponent, FormPlaqueComponent, SubHeaderComponent, FooterComponent, StepsComponent,
61
+ FormFileComponent, FormSelectComponent, FormTableComponent, FormLabelComponent, AccordionComponent, FormRadioComponent, HeaderComponent,
62
+ TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
63
+ FormTimeComponent, NotfoundComponent, FormFingerComponent, FormCarSearchComponent, FormCarComponent, TableReportComponent,
64
+ SafeStylePipe, LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
65
+ ClockComponent, ChartComponent
66
+ ],
67
+ imports: [
68
+ CommonModule,
69
+ RouterModule,
70
+ FormsModule
71
+ ],
72
+ providers: [],
73
+ exports: [
74
+ FormSelectItemComponent, FormCheckboxComponent, TablePaginationComponent, FormBankCardComponent, SidebarItemComponent, SidebarComponent,
75
+ FormDateComponent, FormPlaqueSelectComponent, TableLoadingComponent, FormTreeItemComponent, FormTextboxComponent, FormTextareaComponent,
76
+ FormIconComponent, FormButtonComponent, FormDatetimeComponent, FormPlaqueComponent, SubHeaderComponent, FooterComponent, StepsComponent,
77
+ FormFileComponent, FormSelectComponent, FormTableComponent, FormLabelComponent, AccordionComponent, FormRadioComponent, HeaderComponent,
78
+ TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
79
+ FormTimeComponent, NotfoundComponent, FormFingerComponent, FormCarSearchComponent, FormCarComponent, TableReportComponent,
80
+ LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
81
+ ClockComponent, ChartComponent
82
+ ]
83
+ })
84
+ export class PsToolkitUiModule {
85
+ static forRoot(config: any): ModuleWithProviders<PsToolkitUiModule> {
86
+ return {
87
+ ngModule: PsToolkitUiModule,
88
+ providers: [
89
+ {provide: PsToolkitUiConfigService, useValue: config }
90
+ ]
91
+ };
92
+ }
93
+ }
94
+
@@ -0,0 +1,8 @@
1
+ import {Inject} from '@angular/core';
2
+
3
+ export class PsToolkitUiConfigService{
4
+ constructor(@Inject('environment') public environment: any,
5
+ @Inject('strings') public strings: any,
6
+ @Inject('currentLang') public currentLang: string) {
7
+ }
8
+ }
@@ -1,48 +1,53 @@
1
- export * from './lib/ps-toolkit-ui.module';
2
- export * from './lib/components/accordion/accordion.component';
3
- export * from './lib/components/alert/alert.component';
4
- export * from './lib/components/confirm/confirm.component';
5
- export * from './lib/components/footer/footer.component';
6
- export * from './lib/components/form/bank-card/form.bank-card.component';
7
- export * from './lib/components/form/button/form.button.component';
8
- export * from './lib/components/form/car/search/form.car.search.component';
9
- export * from './lib/components/form/car/form.car.component';
10
- export * from './lib/components/form/checkbox/form.checkbox.component';
11
- export * from './lib/components/form/date/form.date.component';
12
- export * from './lib/components/form/datetime/form.datetime.component';
13
- export * from './lib/components/form/file/form.file.component';
14
- export * from './lib/components/form/finger/form.finger.component';
15
- export * from './lib/components/form/icon/form.icon.component';
16
- export * from './lib/components/form/index/form.component';
17
- export * from './lib/components/form/label/form.label.component';
18
- export * from './lib/components/form/plaque/select/form.plaque.select.component';
19
- export * from './lib/components/form/plaque/form.plaque.component';
20
- export * from './lib/components/form/radio/form.radio.component';
21
- export * from './lib/components/form/select/form.select.component';
22
- export * from './lib/components/form/table/form.table.component';
23
- export * from './lib/components/form/textarea/form.textarea.component';
24
- export * from './lib/components/form/textbox/form.textbox.component';
25
- export * from './lib/components/form/time/form.time.component';
26
- export * from './lib/components/form/tree/form.tree.component';
27
- export * from './lib/components/header/sub/sub.header.component';
28
- export * from './lib/components/header/header.component';
29
- export * from './lib/components/modal/modal.component';
30
- export * from './lib/components/notfound/notfound.component';
31
- export * from './lib/components/sidebar/sidebar.component';
32
- export * from './lib/components/steps/steps.component';
33
- export * from './lib/components/table/table.component';
34
- export * from './lib/components/tooltip/tooltip.component';
35
- export * from './lib/components/layout/layout.component';
36
- export * from './lib/components/loading/loading.component';
37
- export * from './lib/components/base.component';
38
- export * from './lib/classes/login.class';
39
- export * from './lib/classes/enum.class';
40
- export * from './lib/classes/form.class';
41
- export * from './lib/classes/helper.class';
42
- export * from './lib/classes/lang.class';
43
- export * from './lib/classes/modal.class';
44
- export * from './lib/classes/permission.class';
45
- export * from './lib/classes/request.class';
46
- export * from './lib/classes/sidebar.class';
47
- export * from './lib/classes/steps.class';
48
- export * from './lib/classes/table.class';
1
+ /*
2
+ * Public API Surface of ps-toolkit-ui
3
+ */
4
+
5
+ export * from './lib/ps-toolkit-ui.module';
6
+ export * from './lib/components/accordion/accordion.component';
7
+ export * from './lib/components/alert/alert.component';
8
+ export * from './lib/components/confirm/confirm.component';
9
+ export * from './lib/components/footer/footer.component';
10
+ export * from './lib/components/form/bank-card/form.bank-card.component';
11
+ export * from './lib/components/form/button/form.button.component';
12
+ export * from './lib/components/form/car/search/form.car.search.component';
13
+ export * from './lib/components/form/car/form.car.component';
14
+ export * from './lib/components/form/checkbox/form.checkbox.component';
15
+ export * from './lib/components/form/date/form.date.component';
16
+ export * from './lib/components/form/datetime/form.datetime.component';
17
+ export * from './lib/components/form/file/form.file.component';
18
+ export * from './lib/components/form/finger/form.finger.component';
19
+ export * from './lib/components/form/icon/form.icon.component';
20
+ export * from './lib/components/form/index/form.component';
21
+ export * from './lib/components/form/label/form.label.component';
22
+ export * from './lib/components/form/plaque/select/form.plaque.select.component';
23
+ export * from './lib/components/form/plaque/form.plaque.component';
24
+ export * from './lib/components/form/radio/form.radio.component';
25
+ export * from './lib/components/form/select/form.select.component';
26
+ export * from './lib/components/form/table/form.table.component';
27
+ export * from './lib/components/form/textarea/form.textarea.component';
28
+ export * from './lib/components/form/textbox/form.textbox.component';
29
+ export * from './lib/components/form/time/form.time.component';
30
+ export * from './lib/components/form/tree/form.tree.component';
31
+ export * from './lib/components/header/sub/sub.header.component';
32
+ export * from './lib/components/header/header.component';
33
+ export * from './lib/components/modal/modal.component';
34
+ export * from './lib/components/notfound/notfound.component';
35
+ export * from './lib/components/sidebar/sidebar.component';
36
+ export * from './lib/components/steps/steps.component';
37
+ export * from './lib/components/table/table.component';
38
+ export * from './lib/components/tooltip/tooltip.component';
39
+ export * from './lib/components/layout/layout.component';
40
+ export * from './lib/components/loading/loading.component';
41
+ export * from './lib/components/base.component';
42
+ export * from './lib/classes/login.class';
43
+ export * from './lib/classes/enum.class';
44
+ export * from './lib/classes/form.class';
45
+ export * from './lib/classes/helper.class';
46
+ export * from './lib/classes/lang.class';
47
+ export * from './lib/classes/modal.class';
48
+ export * from './lib/classes/permission.class';
49
+ export * from './lib/classes/request.class';
50
+ export * from './lib/classes/sidebar.class';
51
+ export * from './lib/classes/steps.class';
52
+ export * from './lib/classes/table.class';
53
+ export * from './lib/classes/chart.class';
package/src/test.ts ADDED
@@ -0,0 +1,26 @@
1
+ // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
+
3
+ import 'zone.js/dist/zone';
4
+ import 'zone.js/dist/zone-testing';
5
+ import { getTestBed } from '@angular/core/testing';
6
+ import {
7
+ BrowserDynamicTestingModule,
8
+ platformBrowserDynamicTesting
9
+ } from '@angular/platform-browser-dynamic/testing';
10
+
11
+ declare const require: {
12
+ context(path: string, deep?: boolean, filter?: RegExp): {
13
+ keys(): string[];
14
+ <T>(id: string): T;
15
+ };
16
+ };
17
+
18
+ // First, initialize the Angular testing environment.
19
+ getTestBed().initTestEnvironment(
20
+ BrowserDynamicTestingModule,
21
+ platformBrowserDynamicTesting()
22
+ );
23
+ // Then we find all the tests.
24
+ const context = require.context('./', true, /\.spec\.ts$/);
25
+ // And load the modules.
26
+ context.keys().map(context);
@@ -0,0 +1,25 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/lib",
6
+ "target": "es2015",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "types": [],
11
+ "lib": [
12
+ "dom",
13
+ "es2018"
14
+ ]
15
+ },
16
+ "angularCompilerOptions": {
17
+ "skipTemplateCodegen": true,
18
+ "strictMetadataEmit": true,
19
+ "enableResourceInlining": true
20
+ },
21
+ "exclude": [
22
+ "src/test.ts",
23
+ "**/*.spec.ts"
24
+ ]
25
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "enableIvy": false
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/spec",
6
+ "types": [
7
+ "jasmine"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts"
12
+ ],
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }