tin-spa 2.13.15 → 9.1.0

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 (375) hide show
  1. package/README.md +2 -2
  2. package/bundles/tin-spa.umd.js +6694 -0
  3. package/bundles/tin-spa.umd.js.map +1 -0
  4. package/bundles/tin-spa.umd.min.js +16 -0
  5. package/bundles/tin-spa.umd.min.js.map +1 -0
  6. package/esm2015/lib/classes/Classes.js +254 -0
  7. package/esm2015/lib/classes/TinCore.js +137 -0
  8. package/esm2015/lib/components/activity/activity.component.js +92 -0
  9. package/esm2015/lib/components/attach/attach.component.js +181 -0
  10. package/esm2015/lib/components/change-password/change-password.component.js +179 -0
  11. package/esm2015/lib/components/check/check.component.js +69 -0
  12. package/esm2015/lib/components/chips/chips.component.js +107 -0
  13. package/esm2015/lib/components/create-account/create-account.component.js +160 -0
  14. package/esm2015/lib/components/date/date.component.js +66 -0
  15. package/esm2015/lib/components/datetime/datetime.component.js +57 -0
  16. package/esm2015/lib/components/filter/filter.component.js +64 -0
  17. package/esm2015/lib/components/html/html.component.js +102 -0
  18. package/esm2015/lib/components/label/label.component.js +117 -0
  19. package/esm2015/lib/components/loader/loader.component.js +53 -0
  20. package/esm2015/lib/components/login/login.component.js +240 -0
  21. package/esm2015/lib/components/logs/logs.component.js +195 -0
  22. package/esm2015/lib/components/message/messageDialog.component.js +142 -0
  23. package/esm2015/lib/components/money/currency-input-mask.directive.js +187 -0
  24. package/esm2015/lib/components/money/currency-input-mask.module.js +30 -0
  25. package/esm2015/lib/components/money/money.component.js +152 -0
  26. package/esm2015/lib/components/nav-menu/nav-menu.component.js +204 -0
  27. package/esm2015/lib/components/option/option.component.js +129 -0
  28. package/esm2015/lib/components/profile/profile.component.js +198 -0
  29. package/esm2015/lib/components/recover-account/recover-account.component.js +74 -0
  30. package/esm2015/lib/components/roles/addRoleDialog.component.js +132 -0
  31. package/esm2015/lib/components/roles/roles.component.js +211 -0
  32. package/esm2015/lib/components/select/select.component.js +133 -0
  33. package/esm2015/lib/components/settings/settings.component.js +118 -0
  34. package/esm2015/lib/components/signup/signup.component.js +139 -0
  35. package/esm2015/lib/components/steps/steps.component.js +114 -0
  36. package/esm2015/lib/components/table/table.component.js +375 -0
  37. package/esm2015/lib/components/text/text.component.js +240 -0
  38. package/esm2015/lib/components/tiles/tiles.component.js +95 -0
  39. package/esm2015/lib/components/timeout/timeout.component.js +133 -0
  40. package/esm2015/lib/components/tin-spa.component.js +26 -0
  41. package/esm2015/lib/components/users/users.component.js +373 -0
  42. package/esm2015/lib/components/viewer/viewer.component.js +92 -0
  43. package/esm2015/lib/components/viewer/viewerDialog.component.js +131 -0
  44. package/esm2015/lib/dnd.directive.js +56 -0
  45. package/esm2015/lib/modules/spa-admin.module.js +81 -0
  46. package/esm2015/lib/modules/spa-index.module.js +58 -0
  47. package/esm2015/lib/modules/spa-mat.module.js +68 -0
  48. package/esm2015/lib/modules/spa-user.module.js +55 -0
  49. package/esm2015/lib/services/auth.service.js +142 -0
  50. package/esm2015/lib/services/data.service.js +111 -0
  51. package/esm2015/lib/services/export.service.js +29 -0
  52. package/esm2015/lib/services/http.service.js +79 -0
  53. package/esm2015/lib/services/loader-interceptor.service.js +77 -0
  54. package/esm2015/lib/services/loader.service.js +17 -0
  55. package/esm2015/lib/services/log.service.js +76 -0
  56. package/esm2015/lib/services/message.service.js +52 -0
  57. package/esm2015/lib/services/storage.service.js +43 -0
  58. package/esm2015/lib/services/tin-spa.service.js +14 -0
  59. package/esm2015/lib/tin-spa.module.js +156 -0
  60. package/esm2015/public-api.js +56 -0
  61. package/esm2015/tin-spa.js +5 -0
  62. package/esm5/lib/classes/Classes.js +313 -0
  63. package/esm5/lib/classes/TinCore.js +164 -0
  64. package/esm5/lib/components/activity/activity.component.js +94 -0
  65. package/esm5/lib/components/attach/attach.component.js +195 -0
  66. package/esm5/lib/components/change-password/change-password.component.js +182 -0
  67. package/esm5/lib/components/check/check.component.js +71 -0
  68. package/esm5/lib/components/chips/chips.component.js +110 -0
  69. package/esm5/lib/components/create-account/create-account.component.js +163 -0
  70. package/esm5/lib/components/date/date.component.js +68 -0
  71. package/esm5/lib/components/datetime/datetime.component.js +59 -0
  72. package/esm5/lib/components/filter/filter.component.js +66 -0
  73. package/esm5/lib/components/html/html.component.js +104 -0
  74. package/esm5/lib/components/label/label.component.js +119 -0
  75. package/esm5/lib/components/loader/loader.component.js +56 -0
  76. package/esm5/lib/components/login/login.component.js +244 -0
  77. package/esm5/lib/components/logs/logs.component.js +198 -0
  78. package/esm5/lib/components/message/messageDialog.component.js +144 -0
  79. package/esm5/lib/components/money/currency-input-mask.directive.js +193 -0
  80. package/esm5/lib/components/money/currency-input-mask.module.js +34 -0
  81. package/esm5/lib/components/money/money.component.js +154 -0
  82. package/esm5/lib/components/nav-menu/nav-menu.component.js +207 -0
  83. package/esm5/lib/components/option/option.component.js +131 -0
  84. package/esm5/lib/components/profile/profile.component.js +203 -0
  85. package/esm5/lib/components/recover-account/recover-account.component.js +77 -0
  86. package/esm5/lib/components/roles/addRoleDialog.component.js +135 -0
  87. package/esm5/lib/components/roles/roles.component.js +218 -0
  88. package/esm5/lib/components/select/select.component.js +136 -0
  89. package/esm5/lib/components/settings/settings.component.js +122 -0
  90. package/esm5/lib/components/signup/signup.component.js +142 -0
  91. package/esm5/lib/components/steps/steps.component.js +128 -0
  92. package/esm5/lib/components/table/table.component.js +378 -0
  93. package/esm5/lib/components/text/text.component.js +244 -0
  94. package/esm5/lib/components/tiles/tiles.component.js +97 -0
  95. package/esm5/lib/components/timeout/timeout.component.js +136 -0
  96. package/esm5/lib/components/tin-spa.component.js +25 -0
  97. package/esm5/lib/components/users/users.component.js +380 -0
  98. package/esm5/lib/components/viewer/viewer.component.js +94 -0
  99. package/esm5/lib/components/viewer/viewerDialog.component.js +133 -0
  100. package/esm5/lib/dnd.directive.js +58 -0
  101. package/esm5/lib/modules/spa-admin.module.js +85 -0
  102. package/esm5/lib/modules/spa-index.module.js +62 -0
  103. package/esm5/lib/modules/spa-mat.module.js +72 -0
  104. package/esm5/lib/modules/spa-user.module.js +59 -0
  105. package/esm5/lib/services/auth.service.js +145 -0
  106. package/esm5/lib/services/data.service.js +113 -0
  107. package/esm5/lib/services/export.service.js +31 -0
  108. package/esm5/lib/services/http.service.js +81 -0
  109. package/esm5/lib/services/loader-interceptor.service.js +80 -0
  110. package/esm5/lib/services/loader.service.js +19 -0
  111. package/esm5/lib/services/log.service.js +114 -0
  112. package/esm5/lib/services/message.service.js +54 -0
  113. package/esm5/lib/services/storage.service.js +76 -0
  114. package/esm5/lib/services/tin-spa.service.js +17 -0
  115. package/esm5/lib/tin-spa.module.js +160 -0
  116. package/esm5/public-api.js +56 -0
  117. package/esm5/tin-spa.js +5 -0
  118. package/fesm2015/tin-spa.js +6204 -0
  119. package/fesm2015/tin-spa.js.map +1 -0
  120. package/fesm5/tin-spa.js +6453 -0
  121. package/fesm5/tin-spa.js.map +1 -0
  122. package/lib/classes/Classes.d.ts +228 -375
  123. package/lib/classes/TinCore.d.ts +11 -43
  124. package/lib/components/activity/activity.component.d.ts +2 -2
  125. package/lib/components/attach/attach.component.d.ts +27 -15
  126. package/lib/{pages → components}/change-password/change-password.component.d.ts +4 -4
  127. package/lib/components/check/check.component.d.ts +3 -8
  128. package/lib/components/chips/chips.component.d.ts +2 -2
  129. package/lib/{pages → components}/create-account/create-account.component.d.ts +4 -8
  130. package/lib/components/date/date.component.d.ts +12 -24
  131. package/lib/components/datetime/datetime.component.d.ts +2 -6
  132. package/lib/components/filter/filter.component.d.ts +2 -7
  133. package/lib/components/html/html.component.d.ts +10 -11
  134. package/lib/components/label/label.component.d.ts +2 -4
  135. package/lib/components/loader/loader.component.d.ts +2 -2
  136. package/lib/components/login/login.component.d.ts +32 -0
  137. package/lib/components/logs/logs.component.d.ts +18 -0
  138. package/lib/components/message/messageDialog.component.d.ts +2 -2
  139. package/lib/components/money/currency-input-mask.directive.d.ts +2 -2
  140. package/lib/components/money/currency-input-mask.module.d.ts +2 -3
  141. package/lib/components/money/money.component.d.ts +3 -13
  142. package/lib/components/nav-menu/nav-menu.component.d.ts +4 -22
  143. package/lib/components/option/option.component.d.ts +3 -14
  144. package/lib/{pages → components}/profile/profile.component.d.ts +4 -6
  145. package/lib/{pages → components}/recover-account/recover-account.component.d.ts +3 -3
  146. package/lib/components/roles/addRoleDialog.component.d.ts +22 -0
  147. package/lib/components/roles/roles.component.d.ts +30 -0
  148. package/lib/components/select/select.component.d.ts +20 -20
  149. package/lib/{pages → components}/settings/settings.component.d.ts +3 -3
  150. package/lib/{pages → components}/signup/signup.component.d.ts +4 -4
  151. package/lib/components/steps/steps.component.d.ts +10 -19
  152. package/lib/components/table/table.component.d.ts +21 -84
  153. package/lib/components/text/text.component.d.ts +14 -36
  154. package/lib/components/tiles/tiles.component.d.ts +7 -21
  155. package/lib/components/timeout/timeout.component.d.ts +24 -0
  156. package/lib/components/tin-spa.component.d.ts +6 -3
  157. package/lib/{pages → components}/users/users.component.d.ts +18 -11
  158. package/lib/components/viewer/viewer.component.d.ts +5 -11
  159. package/lib/components/viewer/viewerDialog.component.d.ts +4 -6
  160. package/lib/dnd.directive.d.ts +11 -0
  161. package/lib/modules/spa-admin.module.d.ts +10 -10
  162. package/lib/modules/spa-index.module.d.ts +7 -8
  163. package/lib/modules/spa-mat.module.d.ts +2 -8
  164. package/lib/modules/spa-user.module.d.ts +6 -6
  165. package/lib/services/auth.service.d.ts +4 -16
  166. package/lib/services/data.service.d.ts +38 -0
  167. package/lib/services/export.service.d.ts +6 -2
  168. package/lib/services/http.service.d.ts +2 -2
  169. package/lib/services/loader-interceptor.service.d.ts +3 -4
  170. package/lib/services/loader.service.d.ts +2 -2
  171. package/lib/services/log.service.d.ts +3 -3
  172. package/lib/services/message.service.d.ts +3 -4
  173. package/lib/services/storage.service.d.ts +2 -2
  174. package/lib/services/tin-spa.service.d.ts +2 -2
  175. package/lib/tin-spa.module.d.ts +34 -83
  176. package/package.json +16 -24
  177. package/public-api.d.ts +16 -47
  178. package/esm2020/lib/classes/Classes.mjs +0 -112
  179. package/esm2020/lib/classes/LibClasses.mjs +0 -180
  180. package/esm2020/lib/classes/TinCore.mjs +0 -568
  181. package/esm2020/lib/components/activity/activity.component.mjs +0 -24
  182. package/esm2020/lib/components/alert/alert.component.mjs +0 -43
  183. package/esm2020/lib/components/attach/attach.component.mjs +0 -102
  184. package/esm2020/lib/components/capsules/capsules.component.mjs +0 -63
  185. package/esm2020/lib/components/cards/cards.component.mjs +0 -103
  186. package/esm2020/lib/components/check/check.component.mjs +0 -67
  187. package/esm2020/lib/components/chips/chips.component.mjs +0 -58
  188. package/esm2020/lib/components/date/date.component.mjs +0 -103
  189. package/esm2020/lib/components/datetime/datetime.component.mjs +0 -55
  190. package/esm2020/lib/components/email/email.component.mjs +0 -133
  191. package/esm2020/lib/components/filter/filter.component.mjs +0 -58
  192. package/esm2020/lib/components/form/form.component.mjs +0 -296
  193. package/esm2020/lib/components/html/html.component.mjs +0 -34
  194. package/esm2020/lib/components/label/label.component.mjs +0 -31
  195. package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +0 -68
  196. package/esm2020/lib/components/loader/loader.component.mjs +0 -25
  197. package/esm2020/lib/components/message/messageDialog.component.mjs +0 -33
  198. package/esm2020/lib/components/money/currency-input-mask.directive.mjs +0 -185
  199. package/esm2020/lib/components/money/currency-input-mask.module.mjs +0 -28
  200. package/esm2020/lib/components/money/money.component.mjs +0 -137
  201. package/esm2020/lib/components/multi-select/multi-select.component.mjs +0 -165
  202. package/esm2020/lib/components/multi-text/multi-text.component.mjs +0 -208
  203. package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +0 -88
  204. package/esm2020/lib/components/notes/notes.component.mjs +0 -62
  205. package/esm2020/lib/components/number/number.component.mjs +0 -131
  206. package/esm2020/lib/components/option/option.component.mjs +0 -92
  207. package/esm2020/lib/components/page/page.component.mjs +0 -101
  208. package/esm2020/lib/components/search/search.component.mjs +0 -36
  209. package/esm2020/lib/components/select/select.component.mjs +0 -75
  210. package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +0 -87
  211. package/esm2020/lib/components/select-common/select-common.component.mjs +0 -206
  212. package/esm2020/lib/components/select-internal/select-internal.component.mjs +0 -75
  213. package/esm2020/lib/components/select-lite/select-lite.component.mjs +0 -18
  214. package/esm2020/lib/components/statuses/statuses.component.mjs +0 -44
  215. package/esm2020/lib/components/steps/steps.component.mjs +0 -112
  216. package/esm2020/lib/components/suffix/suffix.component.mjs +0 -70
  217. package/esm2020/lib/components/table/detailsDialog.component.mjs +0 -406
  218. package/esm2020/lib/components/table/table.component.mjs +0 -440
  219. package/esm2020/lib/components/table-action/table-action.component.mjs +0 -80
  220. package/esm2020/lib/components/table-header/table-header.component.mjs +0 -148
  221. package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +0 -406
  222. package/esm2020/lib/components/table-internal/table-internal.component.mjs +0 -441
  223. package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +0 -404
  224. package/esm2020/lib/components/table-lite/table-lite.component.mjs +0 -441
  225. package/esm2020/lib/components/table-row/table-row.component.mjs +0 -93
  226. package/esm2020/lib/components/tabs/tabs.component.mjs +0 -74
  227. package/esm2020/lib/components/text/text.component.mjs +0 -255
  228. package/esm2020/lib/components/tiles/tiles.component.mjs +0 -99
  229. package/esm2020/lib/components/tin-spa.component.mjs +0 -19
  230. package/esm2020/lib/components/viewer/viewer.component.mjs +0 -83
  231. package/esm2020/lib/components/viewer/viewerDialog.component.mjs +0 -95
  232. package/esm2020/lib/modules/admin/admin-routing.module.mjs +0 -71
  233. package/esm2020/lib/modules/admin/admin.module.mjs +0 -26
  234. package/esm2020/lib/modules/index/index-routing.module.mjs +0 -27
  235. package/esm2020/lib/modules/index/index.module.mjs +0 -26
  236. package/esm2020/lib/modules/spa-admin.module.mjs +0 -71
  237. package/esm2020/lib/modules/spa-index.module.mjs +0 -54
  238. package/esm2020/lib/modules/spa-mat.module.mjs +0 -84
  239. package/esm2020/lib/modules/spa-user.module.mjs +0 -47
  240. package/esm2020/lib/modules/user/user-routing.module.mjs +0 -23
  241. package/esm2020/lib/modules/user/user.module.mjs +0 -26
  242. package/esm2020/lib/pages/accounts/accountDialog.component.mjs +0 -56
  243. package/esm2020/lib/pages/accounts/accounts.component.mjs +0 -70
  244. package/esm2020/lib/pages/app-models/app-models.component.mjs +0 -56
  245. package/esm2020/lib/pages/approvals/approvals.component.mjs +0 -19
  246. package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +0 -165
  247. package/esm2020/lib/pages/bug/bug.component.mjs +0 -14
  248. package/esm2020/lib/pages/change-password/change-password.component.mjs +0 -92
  249. package/esm2020/lib/pages/create-account/create-account.component.mjs +0 -110
  250. package/esm2020/lib/pages/customers/customers.component.mjs +0 -21
  251. package/esm2020/lib/pages/departments/departments.component.mjs +0 -22
  252. package/esm2020/lib/pages/employees/employees.component.mjs +0 -20
  253. package/esm2020/lib/pages/grades/grades.component.mjs +0 -14
  254. package/esm2020/lib/pages/inventory/inventory.component.mjs +0 -99
  255. package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +0 -53
  256. package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +0 -71
  257. package/esm2020/lib/pages/login/login.component.mjs +0 -166
  258. package/esm2020/lib/pages/logs/logs.component.mjs +0 -42
  259. package/esm2020/lib/pages/membership/membership.component.mjs +0 -44
  260. package/esm2020/lib/pages/notifications/notifications.component.mjs +0 -90
  261. package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +0 -113
  262. package/esm2020/lib/pages/plans/plans.component.mjs +0 -44
  263. package/esm2020/lib/pages/positions/positions.component.mjs +0 -21
  264. package/esm2020/lib/pages/profile/profile.component.mjs +0 -94
  265. package/esm2020/lib/pages/recover-account/recover-account.component.mjs +0 -46
  266. package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +0 -60
  267. package/esm2020/lib/pages/roles/roles.component.mjs +0 -151
  268. package/esm2020/lib/pages/settings/settings.component.mjs +0 -54
  269. package/esm2020/lib/pages/signup/signup.component.mjs +0 -50
  270. package/esm2020/lib/pages/suppliers/suppliers.component.mjs +0 -22
  271. package/esm2020/lib/pages/tasks/tasks.component.mjs +0 -86
  272. package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +0 -228
  273. package/esm2020/lib/pages/tenants/tenants.component.mjs +0 -47
  274. package/esm2020/lib/pages/transactions/transactDialog.component.mjs +0 -80
  275. package/esm2020/lib/pages/transactions/transactions.component.mjs +0 -101
  276. package/esm2020/lib/pages/users/users.component.mjs +0 -167
  277. package/esm2020/lib/pages/welcome/welcome.component.mjs +0 -86
  278. package/esm2020/lib/pipes/camelToWords.pipe.mjs +0 -17
  279. package/esm2020/lib/select-context.directive.mjs +0 -23
  280. package/esm2020/lib/services/auth.service.mjs +0 -175
  281. package/esm2020/lib/services/button.service.mjs +0 -162
  282. package/esm2020/lib/services/condition.service.mjs +0 -32
  283. package/esm2020/lib/services/csv.service.mjs +0 -49
  284. package/esm2020/lib/services/datalib.service.mjs +0 -860
  285. package/esm2020/lib/services/dialog.service.mjs +0 -125
  286. package/esm2020/lib/services/export.service.mjs +0 -16
  287. package/esm2020/lib/services/http.service.mjs +0 -79
  288. package/esm2020/lib/services/loader-interceptor.service.mjs +0 -86
  289. package/esm2020/lib/services/loader.service.mjs +0 -17
  290. package/esm2020/lib/services/log.service.mjs +0 -77
  291. package/esm2020/lib/services/message.service.mjs +0 -59
  292. package/esm2020/lib/services/notifications.service.mjs +0 -33
  293. package/esm2020/lib/services/storage.service.mjs +0 -34
  294. package/esm2020/lib/services/table-config.service.mjs +0 -78
  295. package/esm2020/lib/services/tin-spa.service.mjs +0 -14
  296. package/esm2020/lib/tin-spa.module.mjs +0 -225
  297. package/esm2020/public-api.mjs +0 -90
  298. package/esm2020/tin-spa.mjs +0 -5
  299. package/fesm2015/tin-spa.mjs +0 -11736
  300. package/fesm2015/tin-spa.mjs.map +0 -1
  301. package/fesm2020/tin-spa.mjs +0 -11738
  302. package/fesm2020/tin-spa.mjs.map +0 -1
  303. package/lib/classes/LibClasses.d.ts +0 -173
  304. package/lib/components/alert/alert.component.d.ts +0 -15
  305. package/lib/components/capsules/capsules.component.d.ts +0 -26
  306. package/lib/components/cards/cards.component.d.ts +0 -39
  307. package/lib/components/email/email.component.d.ts +0 -40
  308. package/lib/components/form/form.component.d.ts +0 -47
  309. package/lib/components/list-dialog/list-dialog.component.d.ts +0 -23
  310. package/lib/components/multi-select/multi-select.component.d.ts +0 -47
  311. package/lib/components/multi-text/multi-text.component.d.ts +0 -56
  312. package/lib/components/notes/notes.component.d.ts +0 -19
  313. package/lib/components/number/number.component.d.ts +0 -41
  314. package/lib/components/page/page.component.d.ts +0 -38
  315. package/lib/components/search/search.component.d.ts +0 -15
  316. package/lib/components/select-bitwise/select-bitwise.component.d.ts +0 -31
  317. package/lib/components/select-common/select-common.component.d.ts +0 -53
  318. package/lib/components/select-internal/select-internal.component.d.ts +0 -23
  319. package/lib/components/select-lite/select-lite.component.d.ts +0 -8
  320. package/lib/components/statuses/statuses.component.d.ts +0 -12
  321. package/lib/components/suffix/suffix.component.d.ts +0 -23
  322. package/lib/components/table/detailsDialog.component.d.ts +0 -86
  323. package/lib/components/table-action/table-action.component.d.ts +0 -25
  324. package/lib/components/table-header/table-header.component.d.ts +0 -46
  325. package/lib/components/table-internal/detailsDialog-internal.component.d.ts +0 -86
  326. package/lib/components/table-internal/table-internal.component.d.ts +0 -91
  327. package/lib/components/table-lite/detailsDialog-lite.component.d.ts +0 -86
  328. package/lib/components/table-lite/table-lite.component.d.ts +0 -91
  329. package/lib/components/table-row/table-row.component.d.ts +0 -31
  330. package/lib/components/tabs/tabs.component.d.ts +0 -32
  331. package/lib/modules/admin/admin-routing.module.d.ts +0 -7
  332. package/lib/modules/admin/admin.module.d.ts +0 -9
  333. package/lib/modules/index/index-routing.module.d.ts +0 -7
  334. package/lib/modules/index/index.module.d.ts +0 -9
  335. package/lib/modules/user/user-routing.module.d.ts +0 -7
  336. package/lib/modules/user/user.module.d.ts +0 -9
  337. package/lib/pages/accounts/accountDialog.component.d.ts +0 -27
  338. package/lib/pages/accounts/accounts.component.d.ts +0 -25
  339. package/lib/pages/app-models/app-models.component.d.ts +0 -15
  340. package/lib/pages/approvals/approvals.component.d.ts +0 -10
  341. package/lib/pages/approvals-config/approvals-config.component.d.ts +0 -24
  342. package/lib/pages/bug/bug.component.d.ts +0 -8
  343. package/lib/pages/customers/customers.component.d.ts +0 -12
  344. package/lib/pages/departments/departments.component.d.ts +0 -14
  345. package/lib/pages/employees/employees.component.d.ts +0 -12
  346. package/lib/pages/grades/grades.component.d.ts +0 -8
  347. package/lib/pages/inventory/inventory.component.d.ts +0 -25
  348. package/lib/pages/inventory/quantityDialog.component.d.ts +0 -23
  349. package/lib/pages/invitations-table/invitations-table.component.d.ts +0 -19
  350. package/lib/pages/login/login.component.d.ts +0 -46
  351. package/lib/pages/logs/logs.component.d.ts +0 -14
  352. package/lib/pages/membership/membership.component.d.ts +0 -13
  353. package/lib/pages/notifications/notifications.component.d.ts +0 -16
  354. package/lib/pages/notifications-config/notifications-config.component.d.ts +0 -17
  355. package/lib/pages/plans/plans.component.d.ts +0 -13
  356. package/lib/pages/positions/positions.component.d.ts +0 -12
  357. package/lib/pages/roles/addRoleDialog.component.d.ts +0 -24
  358. package/lib/pages/roles/roles.component.d.ts +0 -42
  359. package/lib/pages/suppliers/suppliers.component.d.ts +0 -14
  360. package/lib/pages/tasks/tasks.component.d.ts +0 -27
  361. package/lib/pages/tenant-settings/tenant-settings.component.d.ts +0 -47
  362. package/lib/pages/tenants/tenants.component.d.ts +0 -17
  363. package/lib/pages/transactions/transactDialog.component.d.ts +0 -26
  364. package/lib/pages/transactions/transactions.component.d.ts +0 -31
  365. package/lib/pages/welcome/welcome.component.d.ts +0 -25
  366. package/lib/pipes/camelToWords.pipe.d.ts +0 -7
  367. package/lib/select-context.directive.d.ts +0 -10
  368. package/lib/services/button.service.d.ts +0 -30
  369. package/lib/services/condition.service.d.ts +0 -10
  370. package/lib/services/csv.service.d.ts +0 -10
  371. package/lib/services/datalib.service.d.ts +0 -125
  372. package/lib/services/dialog.service.d.ts +0 -20
  373. package/lib/services/notifications.service.d.ts +0 -12
  374. package/lib/services/table-config.service.d.ts +0 -17
  375. /package/{index.d.ts → tin-spa.d.ts} +0 -0
@@ -0,0 +1,207 @@
1
+ import { AppConfig } from './../../classes/Classes';
2
+ import { Component, Input } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/router";
5
+ import * as i2 from "../../services/auth.service";
6
+ import * as i3 from "@angular/common";
7
+ import * as i4 from "@angular/material/button";
8
+ import * as i5 from "@angular/material/icon";
9
+ import * as i6 from "@angular/material/menu";
10
+ function NavMenuComponent_header_0_img_3_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵelement(0, "img", 8);
12
+ } if (rf & 2) {
13
+ var ctx_r1 = i0.ɵɵnextContext(2);
14
+ i0.ɵɵproperty("src", ctx_r1.appConfig.logo, i0.ɵɵsanitizeUrl);
15
+ } }
16
+ function NavMenuComponent_header_0_div_8_div_14_button_1_Template(rf, ctx) { if (rf & 1) {
17
+ var _r13 = i0.ɵɵgetCurrentView();
18
+ i0.ɵɵelementStart(0, "button", 19);
19
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); var item_r5 = i0.ɵɵnextContext().$implicit; var ctx_r11 = i0.ɵɵnextContext(3); return ctx_r11.redirectTo(item_r5.link); });
20
+ i0.ɵɵtext(1);
21
+ i0.ɵɵelementEnd();
22
+ } if (rf & 2) {
23
+ var item_r5 = i0.ɵɵnextContext().$implicit;
24
+ i0.ɵɵadvance(1);
25
+ i0.ɵɵtextInterpolate(item_r5.display);
26
+ } }
27
+ function NavMenuComponent_header_0_div_8_div_14_button_2_Template(rf, ctx) { if (rf & 1) {
28
+ var _r17 = i0.ɵɵgetCurrentView();
29
+ i0.ɵɵelementStart(0, "button", 19);
30
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); var item_r5 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.redirectTo(item_r5.link); });
31
+ i0.ɵɵtext(1);
32
+ i0.ɵɵelementEnd();
33
+ } if (rf & 2) {
34
+ var item_r5 = i0.ɵɵnextContext().$implicit;
35
+ i0.ɵɵadvance(1);
36
+ i0.ɵɵtextInterpolate(item_r5.display);
37
+ } }
38
+ function NavMenuComponent_header_0_div_8_div_14_button_3_Template(rf, ctx) { if (rf & 1) {
39
+ i0.ɵɵelementStart(0, "button", 20);
40
+ i0.ɵɵtext(1);
41
+ i0.ɵɵelementEnd();
42
+ } if (rf & 2) {
43
+ var item_r5 = i0.ɵɵnextContext().$implicit;
44
+ var _r9 = i0.ɵɵreference(5);
45
+ i0.ɵɵproperty("matMenuTriggerFor", _r9);
46
+ i0.ɵɵadvance(1);
47
+ i0.ɵɵtextInterpolate(item_r5.display);
48
+ } }
49
+ function NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template(rf, ctx) { if (rf & 1) {
50
+ var _r24 = i0.ɵɵgetCurrentView();
51
+ i0.ɵɵelementStart(0, "button", 22);
52
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); var subItem_r20 = i0.ɵɵnextContext().$implicit; var ctx_r22 = i0.ɵɵnextContext(4); return ctx_r22.redirectTo(subItem_r20.link); });
53
+ i0.ɵɵtext(1);
54
+ i0.ɵɵelementEnd();
55
+ } if (rf & 2) {
56
+ var subItem_r20 = i0.ɵɵnextContext().$implicit;
57
+ i0.ɵɵadvance(1);
58
+ i0.ɵɵtextInterpolate(subItem_r20.display);
59
+ } }
60
+ function NavMenuComponent_header_0_div_8_div_14_div_6_Template(rf, ctx) { if (rf & 1) {
61
+ i0.ɵɵelementStart(0, "div");
62
+ i0.ɵɵtemplate(1, NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template, 2, 1, "button", 21);
63
+ i0.ɵɵelementEnd();
64
+ } if (rf & 2) {
65
+ var subItem_r20 = ctx.$implicit;
66
+ var ctx_r10 = i0.ɵɵnextContext(4);
67
+ i0.ɵɵadvance(1);
68
+ i0.ɵɵproperty("ngIf", ctx_r10.myRole[subItem_r20.name] && subItem_r20.showMenu);
69
+ } }
70
+ function NavMenuComponent_header_0_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
71
+ i0.ɵɵelementStart(0, "div");
72
+ i0.ɵɵtemplate(1, NavMenuComponent_header_0_div_8_div_14_button_1_Template, 2, 1, "button", 16);
73
+ i0.ɵɵtemplate(2, NavMenuComponent_header_0_div_8_div_14_button_2_Template, 2, 1, "button", 16);
74
+ i0.ɵɵtemplate(3, NavMenuComponent_header_0_div_8_div_14_button_3_Template, 2, 2, "button", 17);
75
+ i0.ɵɵelementStart(4, "mat-menu", null, 18);
76
+ i0.ɵɵtemplate(6, NavMenuComponent_header_0_div_8_div_14_div_6_Template, 2, 1, "div", 15);
77
+ i0.ɵɵelementEnd();
78
+ i0.ɵɵelementEnd();
79
+ } if (rf & 2) {
80
+ var item_r5 = ctx.$implicit;
81
+ var ctx_r4 = i0.ɵɵnextContext(3);
82
+ i0.ɵɵadvance(1);
83
+ i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && !item_r5.capSubItems && item_r5.showMenu);
84
+ i0.ɵɵadvance(1);
85
+ i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && item_r5.capSubItems && item_r5.showMenu && item_r5.ignoreSubsDisplay);
86
+ i0.ɵɵadvance(1);
87
+ i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && item_r5.capSubItems && item_r5.showMenu && !item_r5.ignoreSubsDisplay);
88
+ i0.ɵɵadvance(3);
89
+ i0.ɵɵproperty("ngForOf", item_r5.capSubItems);
90
+ } }
91
+ var _c0 = function (a0) { return { show: a0 }; };
92
+ function NavMenuComponent_header_0_div_8_Template(rf, ctx) { if (rf & 1) {
93
+ var _r27 = i0.ɵɵgetCurrentView();
94
+ i0.ɵɵelementStart(0, "div", 9);
95
+ i0.ɵɵelementStart(1, "button", 10);
96
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r27); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.redirectTo("login"); });
97
+ i0.ɵɵelementStart(2, "mat-icon");
98
+ i0.ɵɵtext(3, "logout");
99
+ i0.ɵɵelementEnd();
100
+ i0.ɵɵelementEnd();
101
+ i0.ɵɵelementStart(4, "button", 11);
102
+ i0.ɵɵelementStart(5, "mat-icon");
103
+ i0.ɵɵtext(6, "account_circle");
104
+ i0.ɵɵelementEnd();
105
+ i0.ɵɵtext(7);
106
+ i0.ɵɵelementEnd();
107
+ i0.ɵɵelementStart(8, "mat-menu", null, 12);
108
+ i0.ɵɵelementStart(10, "button", 13);
109
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r27); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.redirectTo("home/user/profile"); });
110
+ i0.ɵɵtext(11, "Profile");
111
+ i0.ɵɵelementEnd();
112
+ i0.ɵɵelementStart(12, "button", 14);
113
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r27); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.redirectTo("login"); });
114
+ i0.ɵɵtext(13, "Log Off");
115
+ i0.ɵɵelementEnd();
116
+ i0.ɵɵelementEnd();
117
+ i0.ɵɵtemplate(14, NavMenuComponent_header_0_div_8_div_14_Template, 7, 4, "div", 15);
118
+ i0.ɵɵelementEnd();
119
+ } if (rf & 2) {
120
+ var _r3 = i0.ɵɵreference(9);
121
+ var ctx_r2 = i0.ɵɵnextContext(2);
122
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0, ctx_r2.isExpanded));
123
+ i0.ɵɵadvance(4);
124
+ i0.ɵɵproperty("matMenuTriggerFor", _r3);
125
+ i0.ɵɵadvance(3);
126
+ i0.ɵɵtextInterpolate1(" \u00A0", ctx_r2.loggedUserFullName, "");
127
+ i0.ɵɵadvance(7);
128
+ i0.ɵɵproperty("ngForOf", ctx_r2.appConfig.capItems);
129
+ } }
130
+ function NavMenuComponent_header_0_Template(rf, ctx) { if (rf & 1) {
131
+ var _r31 = i0.ɵɵgetCurrentView();
132
+ i0.ɵɵelementStart(0, "header");
133
+ i0.ɵɵelementStart(1, "nav", 1);
134
+ i0.ɵɵelementStart(2, "div", 2);
135
+ i0.ɵɵtemplate(3, NavMenuComponent_header_0_img_3_Template, 1, 1, "img", 3);
136
+ i0.ɵɵelementStart(4, "div", 4);
137
+ i0.ɵɵtext(5);
138
+ i0.ɵɵelementEnd();
139
+ i0.ɵɵelementStart(6, "button", 5);
140
+ i0.ɵɵlistener("click", function NavMenuComponent_header_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r31); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.toggle(); });
141
+ i0.ɵɵelement(7, "span", 6);
142
+ i0.ɵɵelementEnd();
143
+ i0.ɵɵtemplate(8, NavMenuComponent_header_0_div_8_Template, 15, 6, "div", 7);
144
+ i0.ɵɵelementEnd();
145
+ i0.ɵɵelementEnd();
146
+ i0.ɵɵelementEnd();
147
+ } if (rf & 2) {
148
+ var ctx_r0 = i0.ɵɵnextContext();
149
+ i0.ɵɵadvance(3);
150
+ i0.ɵɵproperty("ngIf", ctx_r0.appConfig.logo != "");
151
+ i0.ɵɵadvance(2);
152
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.appConfig.appName, " ");
153
+ i0.ɵɵadvance(1);
154
+ i0.ɵɵattribute("aria-expanded", ctx_r0.isExpanded);
155
+ i0.ɵɵadvance(2);
156
+ i0.ɵɵproperty("ngIf", ctx_r0.myRole);
157
+ } }
158
+ var NavMenuComponent = /** @class */ (function () {
159
+ function NavMenuComponent(router, authService) {
160
+ this.router = router;
161
+ this.authService = authService;
162
+ this.isExpanded = false;
163
+ this.appConfig = new AppConfig();
164
+ }
165
+ NavMenuComponent.prototype.ngOnInit = function () {
166
+ var _this = this;
167
+ this.authService.loggedUserFullName.subscribe(function (user) { return _this.loggedUserFullName = user; });
168
+ this.authService.myRoleObserv.subscribe(function (rol) { return _this.myRole = rol; });
169
+ this.authService.loggedinObserv.subscribe(function (obj) { return _this.loggedin = obj; });
170
+ };
171
+ NavMenuComponent.prototype.collapse = function () {
172
+ this.isExpanded = false;
173
+ };
174
+ NavMenuComponent.prototype.toggle = function () {
175
+ this.isExpanded = !this.isExpanded;
176
+ };
177
+ // logoff() {
178
+ // // this.authService.updateloggedin(false);
179
+ // // this.authService.updateRole(new Role());
180
+ // this.router.navigate(["login"]);
181
+ // // this.storageService.clear();
182
+ // }
183
+ NavMenuComponent.prototype.redirectTo = function (link) {
184
+ if (link != "") {
185
+ this.router.navigate([link]);
186
+ }
187
+ };
188
+ NavMenuComponent.ɵfac = function NavMenuComponent_Factory(t) { return new (t || NavMenuComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AuthService)); };
189
+ NavMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavMenuComponent, selectors: [["spa-nav-menu"]], inputs: { appConfig: "appConfig" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "toolbar", "navbar", "navbar-expand-sm", "navbar-toggleable-sm", "navbar-light", "border-bottom", "box-shadow", "mb-3", 2, "padding-right", "10px"], [1, "container-fluid", 2, "padding-right", "0px"], ["style", "height: 50px; margin-right: 2em", 3, "src", 4, "ngIf"], [2, "font-size", "20px"], ["type", "button", "data-toggle", "collapse", "data-target", ".navbar-collapse", "aria-label", "Toggle navigation", 1, "navbar-toggler", 3, "click"], [1, "navbar-toggler-icon"], ["class", "navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse stack-top", "style", "margin-right: 0px;", 3, "ngClass", 4, "ngIf"], [2, "height", "50px", "margin-right", "2em", 3, "src"], [1, "navbar-collapse", "collapse", "d-sm-inline-flex", "flex-sm-row-reverse", "stack-top", 2, "margin-right", "0px", 3, "ngClass"], ["mat-icon-button", "", 3, "click"], ["id", "btnUser", "mat-button", "", 2, "margin-left", "2em", 3, "matMenuTriggerFor"], ["profileMenu", "matMenu"], ["id", "btnProfile", "mat-menu-item", "", 3, "click"], ["id", "btnLogOff", "mat-menu-item", "", 3, "click"], [4, "ngFor", "ngForOf"], ["id", "btnMenu", "mat-button", "", 3, "click", 4, "ngIf"], ["id", "btnMenu", "mat-button", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["adminMenu", "matMenu"], ["id", "btnMenu", "mat-button", "", 3, "click"], ["id", "btnMenu", "mat-button", "", 3, "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click", 4, "ngIf"], ["mat-menu-item", "", 3, "click"]], template: function NavMenuComponent_Template(rf, ctx) { if (rf & 1) {
190
+ i0.ɵɵtemplate(0, NavMenuComponent_header_0_Template, 9, 4, "header", 0);
191
+ } if (rf & 2) {
192
+ i0.ɵɵproperty("ngIf", ctx.loggedin);
193
+ } }, directives: [i3.NgIf, i3.NgClass, i4.MatButton, i5.MatIcon, i6.MatMenuTrigger, i6._MatMenu, i6.MatMenuItem, i3.NgForOf], styles: ["a.navbar-brand[_ngcontent-%COMP%]{white-space:normal;text-align:center;word-break:break-all}html[_ngcontent-%COMP%]{font-size:14px}@media (min-width:768px){html[_ngcontent-%COMP%]{font-size:16px}}.box-shadow[_ngcontent-%COMP%]{box-shadow:0 .25rem .75rem rgba(0,0,0,.05)}.toolbar[_ngcontent-%COMP%]{height:60px;display:flex;align-items:center;background-color:#03a;color:#fff;font-weight:600}.stack-top[_ngcontent-%COMP%]{z-index:9;margin:20px}"] });
194
+ return NavMenuComponent;
195
+ }());
196
+ export { NavMenuComponent };
197
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NavMenuComponent, [{
198
+ type: Component,
199
+ args: [{
200
+ selector: 'spa-nav-menu',
201
+ templateUrl: './nav-menu.component.html',
202
+ styleUrls: ['./nav-menu.component.css']
203
+ }]
204
+ }], function () { return [{ type: i1.Router }, { type: i2.AuthService }]; }, { appConfig: [{
205
+ type: Input
206
+ }] }); })();
207
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL25hdi1tZW51L25hdi1tZW51LmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL25hdi1tZW51L25hdi1tZW51LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7O0lDSW5ELHlCQUdBOzs7SUFIZ0MsNkRBQXNCOzs7O0lBZ0NoRCxrQ0FBZ0k7SUFBaEMsdVFBQStCO0lBQUMsWUFBZ0I7SUFBQSxpQkFBUzs7O0lBQXpCLGVBQWdCO0lBQWhCLHFDQUFnQjs7OztJQUdoSixrQ0FBeUo7SUFBaEMsdVFBQStCO0lBQUMsWUFBZ0I7SUFBQSxpQkFBUzs7O0lBQXpCLGVBQWdCO0lBQWhCLHFDQUFnQjs7O0lBR3pLLGtDQUEwSjtJQUFBLFlBQWdCO0lBQUEsaUJBQVM7Ozs7SUFBekQsdUNBQStCO0lBQUMsZUFBZ0I7SUFBaEIscUNBQWdCOzs7O0lBUXRLLGtDQUEwRztJQUFuQyxxUkFBa0M7SU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nU+XHJcblxyXG4gICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICA8L25hdj5cclxuPC9oZWFkZXI+XHJcbiJdfQ==
@@ -0,0 +1,131 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/material/checkbox";
4
+ import * as i2 from "@angular/forms";
5
+ import * as i3 from "@angular/material/form-field";
6
+ import * as i4 from "@angular/material/input";
7
+ import * as i5 from "@angular/common";
8
+ import * as i6 from "@angular/material/select";
9
+ import * as i7 from "@angular/material/core";
10
+ function OptionComponent_mat_form_field_4_Template(rf, ctx) { if (rf & 1) {
11
+ var _r3 = i0.ɵɵgetCurrentView();
12
+ i0.ɵɵelementStart(0, "mat-form-field", 5);
13
+ i0.ɵɵelementStart(1, "mat-label");
14
+ i0.ɵɵtext(2);
15
+ i0.ɵɵelementEnd();
16
+ i0.ɵɵelementStart(3, "input", 6);
17
+ i0.ɵɵlistener("ngModelChange", function OptionComponent_mat_form_field_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r3); var ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.value = $event; })("change", function OptionComponent_mat_form_field_4_Template_input_change_3_listener() { i0.ɵɵrestoreView(_r3); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.changed(); })("keyup.enter", function OptionComponent_mat_form_field_4_Template_input_keyup_enter_3_listener() { i0.ɵɵrestoreView(_r3); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.changed(); });
18
+ i0.ɵɵelementEnd();
19
+ i0.ɵɵelementEnd();
20
+ } if (rf & 2) {
21
+ var ctx_r0 = i0.ɵɵnextContext();
22
+ i0.ɵɵadvance(2);
23
+ i0.ɵɵtextInterpolate(ctx_r0.display);
24
+ i0.ɵɵadvance(1);
25
+ i0.ɵɵproperty("ngModel", ctx_r0.value)("placeholder", "Enter " + ctx_r0.display);
26
+ } }
27
+ function OptionComponent_mat_form_field_5_mat_option_4_Template(rf, ctx) { if (rf & 1) {
28
+ i0.ɵɵelementStart(0, "mat-option", 10);
29
+ i0.ɵɵtext(1);
30
+ i0.ɵɵelementEnd();
31
+ } if (rf & 2) {
32
+ var row_r7 = ctx.$implicit;
33
+ var ctx_r6 = i0.ɵɵnextContext(2);
34
+ i0.ɵɵproperty("value", row_r7[ctx_r6.optionValue]);
35
+ i0.ɵɵadvance(1);
36
+ i0.ɵɵtextInterpolate1(" ", row_r7[ctx_r6.optionDisplay], " ");
37
+ } }
38
+ function OptionComponent_mat_form_field_5_Template(rf, ctx) { if (rf & 1) {
39
+ var _r9 = i0.ɵɵgetCurrentView();
40
+ i0.ɵɵelementStart(0, "mat-form-field", 7);
41
+ i0.ɵɵelementStart(1, "mat-label");
42
+ i0.ɵɵtext(2);
43
+ i0.ɵɵelementEnd();
44
+ i0.ɵɵelementStart(3, "mat-select", 8);
45
+ i0.ɵɵlistener("valueChange", function OptionComponent_mat_form_field_5_Template_mat_select_valueChange_3_listener($event) { i0.ɵɵrestoreView(_r9); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.value = $event; })("selectionChange", function OptionComponent_mat_form_field_5_Template_mat_select_selectionChange_3_listener() { i0.ɵɵrestoreView(_r9); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.changed(); });
46
+ i0.ɵɵtemplate(4, OptionComponent_mat_form_field_5_mat_option_4_Template, 2, 2, "mat-option", 9);
47
+ i0.ɵɵelementEnd();
48
+ i0.ɵɵelementEnd();
49
+ } if (rf & 2) {
50
+ var ctx_r1 = i0.ɵɵnextContext();
51
+ i0.ɵɵadvance(2);
52
+ i0.ɵɵtextInterpolate(ctx_r1.display);
53
+ i0.ɵɵadvance(1);
54
+ i0.ɵɵproperty("value", ctx_r1.value)("placeholder", "Select " + ctx_r1.display)("disabled", ctx_r1.readonly);
55
+ i0.ɵɵadvance(1);
56
+ i0.ɵɵproperty("ngForOf", ctx_r1.options);
57
+ } }
58
+ var OptionComponent = /** @class */ (function () {
59
+ function OptionComponent() {
60
+ this.optionValue = "";
61
+ this.optionDisplay = "";
62
+ this.readonly = false;
63
+ this.value = "";
64
+ this.display = "";
65
+ this.show = false;
66
+ this.valueChange = new EventEmitter();
67
+ this.enterPress = new EventEmitter();
68
+ }
69
+ OptionComponent.prototype.ngOnInit = function () {
70
+ this.OGValue = this.value;
71
+ };
72
+ OptionComponent.prototype.changed = function () {
73
+ this.valueChange.emit(this.value);
74
+ };
75
+ OptionComponent.prototype.enterPressed = function () {
76
+ this.valueChange.emit();
77
+ };
78
+ OptionComponent.prototype.resetValue = function () {
79
+ this.value = this.OGValue;
80
+ this.changed();
81
+ };
82
+ OptionComponent.ɵfac = function OptionComponent_Factory(t) { return new (t || OptionComponent)(); };
83
+ OptionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: OptionComponent, selectors: [["spa-option"]], inputs: { options: "options", optionValue: "optionValue", optionDisplay: "optionDisplay", readonly: "readonly", value: "value", display: "display", show: "show" }, outputs: { valueChange: "valueChange", enterPress: "enterPress" }, decls: 6, vars: 4, consts: [["color", "primary", "labelPosition", "after", 2, "margin-right", "5px", 3, "ngModel", "ngModelChange", "change"], [2, "margin-right", "10px", "width", "0px"], ["matInput", ""], ["style", "margin-right:30px", 4, "ngIf"], ["style", "margin-right: 20px;", "floatLabel", "always", "width", "100", 4, "ngIf"], [2, "margin-right", "30px"], ["matInput", "", "width", "100", "autocomplete", "off", 3, "ngModel", "placeholder", "ngModelChange", "change", "keyup.enter"], ["floatLabel", "always", "width", "100", 2, "margin-right", "20px"], [3, "value", "placeholder", "disabled", "valueChange", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function OptionComponent_Template(rf, ctx) { if (rf & 1) {
84
+ i0.ɵɵelementStart(0, "mat-checkbox", 0);
85
+ i0.ɵɵlistener("ngModelChange", function OptionComponent_Template_mat_checkbox_ngModelChange_0_listener($event) { return ctx.show = $event; })("change", function OptionComponent_Template_mat_checkbox_change_0_listener() { return ctx.resetValue(); });
86
+ i0.ɵɵtext(1);
87
+ i0.ɵɵelementEnd();
88
+ i0.ɵɵelementStart(2, "mat-form-field", 1);
89
+ i0.ɵɵelement(3, "input", 2);
90
+ i0.ɵɵelementEnd();
91
+ i0.ɵɵtemplate(4, OptionComponent_mat_form_field_4_Template, 4, 3, "mat-form-field", 3);
92
+ i0.ɵɵtemplate(5, OptionComponent_mat_form_field_5_Template, 5, 5, "mat-form-field", 4);
93
+ } if (rf & 2) {
94
+ i0.ɵɵproperty("ngModel", ctx.show);
95
+ i0.ɵɵadvance(1);
96
+ i0.ɵɵtextInterpolate(ctx.display);
97
+ i0.ɵɵadvance(3);
98
+ i0.ɵɵproperty("ngIf", ctx.show && !ctx.options);
99
+ i0.ɵɵadvance(1);
100
+ i0.ɵɵproperty("ngIf", ctx.show && ctx.options);
101
+ } }, directives: [i1.MatCheckbox, i2.NgControlStatus, i2.NgModel, i3.MatFormField, i4.MatInput, i5.NgIf, i3.MatLabel, i2.DefaultValueAccessor, i6.MatSelect, i5.NgForOf, i7.MatOption], styles: [""] });
102
+ return OptionComponent;
103
+ }());
104
+ export { OptionComponent };
105
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(OptionComponent, [{
106
+ type: Component,
107
+ args: [{
108
+ selector: 'spa-option',
109
+ templateUrl: './option.component.html',
110
+ styleUrls: ['./option.component.css']
111
+ }]
112
+ }], function () { return []; }, { options: [{
113
+ type: Input
114
+ }], optionValue: [{
115
+ type: Input
116
+ }], optionDisplay: [{
117
+ type: Input
118
+ }], readonly: [{
119
+ type: Input
120
+ }], value: [{
121
+ type: Input
122
+ }], display: [{
123
+ type: Input
124
+ }], show: [{
125
+ type: Input
126
+ }], valueChange: [{
127
+ type: Output
128
+ }], enterPress: [{
129
+ type: Output
130
+ }] }); })();
131
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0a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mVkXT1cImZhbHNlXCIgWyh2YWx1ZSldPVwidmFsdWVcIiA+PC9zcGEtdGV4dD4gLS0+XHJcblxyXG4iXX0=
@@ -0,0 +1,203 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { AppConfig, Profile } from '../../classes/Classes';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./../../services/data.service";
5
+ import * as i2 from "./../../services/message.service";
6
+ import * as i3 from "../../services/http.service";
7
+ import * as i4 from "@angular/router";
8
+ import * as i5 from "./../../services/auth.service";
9
+ import * as i6 from "@angular/material/icon";
10
+ import * as i7 from "@angular/material/form-field";
11
+ import * as i8 from "../text/text.component";
12
+ import * as i9 from "../select/select.component";
13
+ import * as i10 from "@angular/common";
14
+ import * as i11 from "@angular/material/button";
15
+ function ProfileComponent_button_24_Template(rf, ctx) { if (rf & 1) {
16
+ var _r4 = i0.ɵɵgetCurrentView();
17
+ i0.ɵɵelementStart(0, "button", 20);
18
+ i0.ɵɵlistener("click", function ProfileComponent_button_24_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.updateProfile(); });
19
+ i0.ɵɵtext(1, "Update Profile");
20
+ i0.ɵɵelementEnd();
21
+ } if (rf & 2) {
22
+ var ctx_r0 = i0.ɵɵnextContext();
23
+ i0.ɵɵproperty("disabled", ctx_r0.isProcessing);
24
+ } }
25
+ function ProfileComponent_a_26_Template(rf, ctx) { if (rf & 1) {
26
+ var _r6 = i0.ɵɵgetCurrentView();
27
+ i0.ɵɵelementStart(0, "a", 21);
28
+ i0.ɵɵlistener("click", function ProfileComponent_a_26_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.gotoUsers(); });
29
+ i0.ɵɵtext(1, "User Manager");
30
+ i0.ɵɵelementEnd();
31
+ } }
32
+ function ProfileComponent_a_27_Template(rf, ctx) { if (rf & 1) {
33
+ var _r8 = i0.ɵɵgetCurrentView();
34
+ i0.ɵɵelementStart(0, "a", 22);
35
+ i0.ɵɵlistener("click", function ProfileComponent_a_27_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r8); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.changePassword(); });
36
+ i0.ɵɵtext(1, "Change Password");
37
+ i0.ɵɵelementEnd();
38
+ } }
39
+ var ProfileComponent = /** @class */ (function () {
40
+ function ProfileComponent(dataService, messageService, httpService, router, authService) {
41
+ this.dataService = dataService;
42
+ this.messageService = messageService;
43
+ this.httpService = httpService;
44
+ this.router = router;
45
+ this.authService = authService;
46
+ this.appConfig = new AppConfig();
47
+ this.selfProfile = false;
48
+ this.profile = new Profile();
49
+ }
50
+ ProfileComponent.prototype.ngOnInit = function () {
51
+ this.myRole = this.authService.currentRoleSource.value;
52
+ if (this.dataService.tmpProfileuserName == "") {
53
+ this.loadProfile(this.authService.currentUser);
54
+ }
55
+ else {
56
+ this.loadProfile(this.dataService.tmpProfileuserName);
57
+ this.dataService.tmpProfileuserName = "";
58
+ }
59
+ };
60
+ ProfileComponent.prototype.loadProfile = function (userName) {
61
+ var _this = this;
62
+ var action = "all";
63
+ this.dataService.GetUserByID(userName).subscribe(function (apiResponse) {
64
+ _this.profile = apiResponse[0];
65
+ if (_this.profile.userName.toLocaleLowerCase() == _this.authService.currentUser.toLocaleLowerCase()) {
66
+ _this.selfProfile = true;
67
+ }
68
+ _this.loadRoles();
69
+ console.log(_this.profile);
70
+ }, function (error) {
71
+ _this.isProcessing = false;
72
+ _this.messageService.toast(_this.httpService.Error(error));
73
+ });
74
+ };
75
+ ProfileComponent.prototype.loadRoles = function () {
76
+ var _this = this;
77
+ this.dataService.GetRole("all", "").subscribe(function (apiResponse) {
78
+ _this.roles = apiResponse;
79
+ console.log(_this.roles);
80
+ }, function (error) {
81
+ _this.isProcessing = false;
82
+ _this.messageService.toast(_this.httpService.Error(error));
83
+ });
84
+ };
85
+ ProfileComponent.prototype.changePassword = function () {
86
+ this.dataService.tmpProfileuserName = this.profile.userName;
87
+ this.router.navigate(["home/user/change-password"]);
88
+ };
89
+ ProfileComponent.prototype.gotoUsers = function () {
90
+ this.router.navigate(["home/admin/users"]);
91
+ };
92
+ ProfileComponent.prototype.update = function () {
93
+ };
94
+ ProfileComponent.prototype.updateProfile = function () {
95
+ var _this = this;
96
+ this.isProcessing = true;
97
+ // console.log(this.profile)
98
+ // return
99
+ this.dataService.UpdateUser(this.profile).subscribe(function (apiResponse) {
100
+ _this.isProcessing = false;
101
+ if (apiResponse.success) {
102
+ _this.messageService.toast("Profile Updated");
103
+ }
104
+ else {
105
+ _this.messageService.toast("Error: " + apiResponse.message);
106
+ }
107
+ }, function (error) {
108
+ _this.messageService.toast("Connection failed ");
109
+ _this.isProcessing = false;
110
+ });
111
+ };
112
+ ProfileComponent.ɵfac = function ProfileComponent_Factory(t) { return new (t || ProfileComponent)(i0.ɵɵdirectiveInject(i1.DataServiceLib), i0.ɵɵdirectiveInject(i2.MessageService), i0.ɵɵdirectiveInject(i3.HttpService), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(i5.AuthService)); };
113
+ ProfileComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ProfileComponent, selectors: [["spa-profile"]], inputs: { appConfig: "appConfig" }, decls: 28, vars: 15, consts: [[1, "container"], [1, "row", "mt-3", 2, "font-size", "14px"], [1, "col-2", "mt-3"], [1, "tin-input"], [1, "col"], [2, "font-size", "70px"], ["id", "lbluserName", 2, "font-size", "14px"], [1, "col-8", "mt-3"], [1, "tin-input", 2, "width", "70%"], [1, "tin-input-row"], ["id", "txtFirstName", "display", "First Name", 3, "value", "readonly", "valueChange"], ["id", "txtLastName", "display", "Last Name", 3, "value", "readonly", "valueChange"], ["id", "txtAuth", "display", "Authentication", 3, "value", "readonly", "valueChange"], ["id", "txtEmail", "display", "Email", 3, "value", "readonly", "valueChange"], ["id", "cboRole", "display", "Role", "optionDisplay", "roleName", "optionValue", "roleID", 3, "options", "value", "readonly", "valueChange"], [1, "tin-input-row", "mt-2"], ["id", "btnUpdate", "mat-raised-button", "", "color", "primary", 3, "disabled", "click", 4, "ngIf"], [1, "col-2", "mt-4"], ["mat-button", "", "id", "lnkUserManager", "style", "margin-left: 1em", 3, "click", 4, "ngIf"], ["mat-button", "", "id", "lnkChangePassword", "style", "margin-left: 1em", 3, "click", 4, "ngIf"], ["id", "btnUpdate", "mat-raised-button", "", "color", "primary", 3, "disabled", "click"], ["mat-button", "", "id", "lnkUserManager", 2, "margin-left", "1em", 3, "click"], ["mat-button", "", "id", "lnkChangePassword", 2, "margin-left", "1em", 3, "click"]], template: function ProfileComponent_Template(rf, ctx) { if (rf & 1) {
114
+ i0.ɵɵelementStart(0, "div", 0);
115
+ i0.ɵɵelementStart(1, "div", 1);
116
+ i0.ɵɵelementStart(2, "div", 2);
117
+ i0.ɵɵelementStart(3, "div", 3);
118
+ i0.ɵɵelementStart(4, "div", 4);
119
+ i0.ɵɵelementStart(5, "mat-icon", 5);
120
+ i0.ɵɵtext(6, "account_circle");
121
+ i0.ɵɵelementEnd();
122
+ i0.ɵɵelementEnd();
123
+ i0.ɵɵelementStart(7, "div", 4);
124
+ i0.ɵɵelementStart(8, "mat-label", 6);
125
+ i0.ɵɵtext(9);
126
+ i0.ɵɵelementEnd();
127
+ i0.ɵɵelementEnd();
128
+ i0.ɵɵelementEnd();
129
+ i0.ɵɵelementEnd();
130
+ i0.ɵɵelementStart(10, "div", 7);
131
+ i0.ɵɵelementStart(11, "div", 8);
132
+ i0.ɵɵelementStart(12, "div", 9);
133
+ i0.ɵɵelementStart(13, "div", 4);
134
+ i0.ɵɵelementStart(14, "spa-text", 10);
135
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_14_listener($event) { return ctx.profile.firstName = $event; });
136
+ i0.ɵɵelementEnd();
137
+ i0.ɵɵelementEnd();
138
+ i0.ɵɵelementStart(15, "div", 4);
139
+ i0.ɵɵelementStart(16, "spa-text", 11);
140
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_16_listener($event) { return ctx.profile.lastName = $event; });
141
+ i0.ɵɵelementEnd();
142
+ i0.ɵɵelementEnd();
143
+ i0.ɵɵelementEnd();
144
+ i0.ɵɵelementStart(17, "div", 4);
145
+ i0.ɵɵelementStart(18, "spa-text", 12);
146
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_18_listener($event) { return ctx.profile.authType = $event; });
147
+ i0.ɵɵelementEnd();
148
+ i0.ɵɵelementEnd();
149
+ i0.ɵɵelementStart(19, "div", 4);
150
+ i0.ɵɵelementStart(20, "spa-text", 13);
151
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_20_listener($event) { return ctx.profile.email = $event; });
152
+ i0.ɵɵelementEnd();
153
+ i0.ɵɵelementEnd();
154
+ i0.ɵɵelementStart(21, "div", 4);
155
+ i0.ɵɵelementStart(22, "spa-select", 14);
156
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_select_valueChange_22_listener($event) { return ctx.profile.roleID = $event; });
157
+ i0.ɵɵelementEnd();
158
+ i0.ɵɵelementEnd();
159
+ i0.ɵɵelementStart(23, "div", 15);
160
+ i0.ɵɵtemplate(24, ProfileComponent_button_24_Template, 2, 1, "button", 16);
161
+ i0.ɵɵelementEnd();
162
+ i0.ɵɵelementEnd();
163
+ i0.ɵɵelementEnd();
164
+ i0.ɵɵelementStart(25, "div", 17);
165
+ i0.ɵɵtemplate(26, ProfileComponent_a_26_Template, 2, 0, "a", 18);
166
+ i0.ɵɵtemplate(27, ProfileComponent_a_27_Template, 2, 0, "a", 19);
167
+ i0.ɵɵelementEnd();
168
+ i0.ɵɵelementEnd();
169
+ i0.ɵɵelementEnd();
170
+ } if (rf & 2) {
171
+ i0.ɵɵadvance(9);
172
+ i0.ɵɵtextInterpolate(ctx.profile == null ? null : ctx.profile.userName);
173
+ i0.ɵɵadvance(5);
174
+ i0.ɵɵproperty("value", ctx.profile.firstName)("readonly", ctx.selfProfile);
175
+ i0.ɵɵadvance(2);
176
+ i0.ɵɵproperty("value", ctx.profile.lastName)("readonly", ctx.selfProfile);
177
+ i0.ɵɵadvance(2);
178
+ i0.ɵɵproperty("value", ctx.profile.authType)("readonly", true);
179
+ i0.ɵɵadvance(2);
180
+ i0.ɵɵproperty("value", ctx.profile.email)("readonly", ctx.selfProfile);
181
+ i0.ɵɵadvance(2);
182
+ i0.ɵɵproperty("options", ctx.roles)("value", ctx.profile.roleID)("readonly", ctx.selfProfile);
183
+ i0.ɵɵadvance(2);
184
+ i0.ɵɵproperty("ngIf", !ctx.selfProfile);
185
+ i0.ɵɵadvance(2);
186
+ i0.ɵɵproperty("ngIf", !ctx.selfProfile);
187
+ i0.ɵɵadvance(1);
188
+ i0.ɵɵproperty("ngIf", (ctx.selfProfile || ctx.myRole[ctx.dataService.capUsers.name]) && ctx.profile.authType == "local");
189
+ } }, directives: [i6.MatIcon, i7.MatLabel, i8.TextComponent, i9.SelectComponent, i10.NgIf, i11.MatButton, i11.MatAnchor], styles: [""] });
190
+ return ProfileComponent;
191
+ }());
192
+ export { ProfileComponent };
193
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ProfileComponent, [{
194
+ type: Component,
195
+ args: [{
196
+ selector: 'spa-profile',
197
+ templateUrl: './profile.component.html',
198
+ styleUrls: ['./profile.component.css']
199
+ }]
200
+ }], function () { return [{ type: i1.DataServiceLib }, { type: i2.MessageService }, { type: i3.HttpService }, { type: i4.Router }, { type: i5.AuthService }]; }, { appConfig: [{
201
+ type: Input
202
+ }] }); })();
203
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly90aW4tc3BhLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcHJvZmlsZS9wcm9maWxlLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3Byb2Zp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