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,204 @@
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
+ const 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
+ const _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); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r11 = i0.ɵɵnextContext(3); return ctx_r11.redirectTo(item_r5.link); });
20
+ i0.ɵɵtext(1);
21
+ i0.ɵɵelementEnd();
22
+ } if (rf & 2) {
23
+ const 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
+ const _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); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.redirectTo(item_r5.link); });
31
+ i0.ɵɵtext(1);
32
+ i0.ɵɵelementEnd();
33
+ } if (rf & 2) {
34
+ const 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
+ const item_r5 = i0.ɵɵnextContext().$implicit;
44
+ const _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
+ const _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); const subItem_r20 = i0.ɵɵnextContext().$implicit; const ctx_r22 = i0.ɵɵnextContext(4); return ctx_r22.redirectTo(subItem_r20.link); });
53
+ i0.ɵɵtext(1);
54
+ i0.ɵɵelementEnd();
55
+ } if (rf & 2) {
56
+ const 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
+ const subItem_r20 = ctx.$implicit;
66
+ const 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
+ const item_r5 = ctx.$implicit;
81
+ const 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
+ const _c0 = function (a0) { return { show: a0 }; };
92
+ function NavMenuComponent_header_0_div_8_Template(rf, ctx) { if (rf & 1) {
93
+ const _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); const 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); const 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); const 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
+ const _r3 = i0.ɵɵreference(9);
121
+ const 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
+ const _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); const 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
+ const 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
+ export class NavMenuComponent {
159
+ constructor(router, authService) {
160
+ this.router = router;
161
+ this.authService = authService;
162
+ this.isExpanded = false;
163
+ this.appConfig = new AppConfig();
164
+ }
165
+ ngOnInit() {
166
+ this.authService.loggedUserFullName.subscribe(user => this.loggedUserFullName = user);
167
+ this.authService.myRoleObserv.subscribe(rol => this.myRole = rol);
168
+ this.authService.loggedinObserv.subscribe(obj => this.loggedin = obj);
169
+ }
170
+ collapse() {
171
+ this.isExpanded = false;
172
+ }
173
+ toggle() {
174
+ this.isExpanded = !this.isExpanded;
175
+ }
176
+ // logoff() {
177
+ // // this.authService.updateloggedin(false);
178
+ // // this.authService.updateRole(new Role());
179
+ // this.router.navigate(["login"]);
180
+ // // this.storageService.clear();
181
+ // }
182
+ redirectTo(link) {
183
+ if (link != "") {
184
+ this.router.navigate([link]);
185
+ }
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
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NavMenuComponent, [{
195
+ type: Component,
196
+ args: [{
197
+ selector: 'spa-nav-menu',
198
+ templateUrl: './nav-menu.component.html',
199
+ styleUrls: ['./nav-menu.component.css']
200
+ }]
201
+ }], function () { return [{ type: i1.Router }, { type: i2.AuthService }]; }, { appConfig: [{
202
+ type: Input
203
+ }] }); })();
204
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL25hdi1tZW51L25hdi1tZW51LmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL25hdi1tZW51L25hdi1tZW51LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7O0lDSW5ELHlCQUdBOzs7SUFIZ0MsNkRBQXNCOzs7O0lBZ0NoRCxrQ0FBZ0k7SUFBaEMsMlFBQStCO0lBQUMsWUFBZ0I7SUFBQSxpQkFBUzs7O0lBQXpCLGVBQWdCO0lBQWhCLHFDQUFnQjs7OztJQUdoSixrQ0FBeUo7SUFBaEMsMlFBQStCO0lBQUMsWUFBZ0I7SUFBQSxpQkFBUzs7O0lBQXpCLGVBQWdCO0lBQWhCLHFDQUFnQjs7O0lBR3pLLGtDQUEwSjtJQUFBLFlBQWdCO0lBQUEsaUJBQVM7Ozs7SUFBekQsdUNBQStCO0lBQUMsZUFBZ0I7SUFBaEIscUNBQWdCOzs7O0lBUXRLLGtDQUEwRztJQUFuQyx5UkFBa0M7SUFBQyxZQUFtQjtJQUFBLGlCQUFTOzs7SUFBNUIsZUFBbUI7SUFBbkIseUNBQW1COzs7SUFGL0gsMkJBRUU7SUFBQSxvR0FBMEc7SUFFNUcsaUJBQU07Ozs7SUFGSSxlQUFnRDtJQUFo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1lbnUgSXRlbSB3aXRoIFN1YiBpdGVtcyB0byBkaXNwbGF5LS0+XHJcbiAgICAgICAgICAgIDxidXR0b24gaWQ9XCJidG5NZW51XCIgKm5nSWY9XCJteVJvbGVbaXRlbS5uYW1lXSAmJiBpdGVtLmNhcFN1Ykl0ZW1zICYmIGl0ZW0uc2hvd01lbnUgJiYgIWl0ZW0uaWdub3JlU3Vic0Rpc3BsYXlcIiBtYXQtYnV0dG9uIFttYXRNZW51VHJpZ2dlckZvcl09XCJhZG1pbk1lbnVcIj57e2l0ZW0uZGlzcGxheX19PC9idXR0b24+XHJcblxyXG5cclxuICAgICAgICAgICAgPCEtLSBTdWIgTWVudSBJdGVtcyAtLT5cclxuICAgICAgICAgICAgPG1hdC1tZW51ICNhZG1pbk1lbnU9XCJtYXRNZW51XCI+XHJcblxyXG4gICAgICAgICAgICAgIDxkaXYgKm5nRm9yPVwibGV0IHN1Ykl0ZW0gb2YgaXRlbS5jYXBTdWJJdGVtc1wiPlxyXG5cclxuICAgICAgICAgICAgICAgIDxidXR0b24gKm5nSWY9XCJteVJvbGVbc3ViSXRlbS5uYW1lXSAmJiBzdWJJdGVtLnNob3dNZW51XCIgbWF0LW1lbnUtaXRlbSAoY2xpY2spPVwicmVkaXJlY3RUbyhzdWJJdGVtLmxpbmspXCI+e3tzdWJJdGVtLmRpc3BsYXl9fTwvYnV0dG9uPlxyXG5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgIDwvbWF0LW1lbnU+XHJcblxyXG4gICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICA8L25hdj5cclxuPC9oZWFkZXI+XHJcbiJdfQ==
@@ -0,0 +1,129 @@
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
+ const _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); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.value = $event; })("change", function OptionComponent_mat_form_field_4_Template_input_change_3_listener() { i0.ɵɵrestoreView(_r3); const 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); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.changed(); });
18
+ i0.ɵɵelementEnd();
19
+ i0.ɵɵelementEnd();
20
+ } if (rf & 2) {
21
+ const 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
+ const row_r7 = ctx.$implicit;
33
+ const 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
+ const _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); const 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); const 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
+ const 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
+ export class OptionComponent {
59
+ constructor() {
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
+ ngOnInit() {
70
+ this.OGValue = this.value;
71
+ }
72
+ changed() {
73
+ this.valueChange.emit(this.value);
74
+ }
75
+ enterPressed() {
76
+ this.valueChange.emit();
77
+ }
78
+ resetValue() {
79
+ this.value = this.OGValue;
80
+ this.changed();
81
+ }
82
+ }
83
+ OptionComponent.ɵfac = function OptionComponent_Factory(t) { return new (t || OptionComponent)(); };
84
+ 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) {
85
+ i0.ɵɵelementStart(0, "mat-checkbox", 0);
86
+ 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(); });
87
+ i0.ɵɵtext(1);
88
+ i0.ɵɵelementEnd();
89
+ i0.ɵɵelementStart(2, "mat-form-field", 1);
90
+ i0.ɵɵelement(3, "input", 2);
91
+ i0.ɵɵelementEnd();
92
+ i0.ɵɵtemplate(4, OptionComponent_mat_form_field_4_Template, 4, 3, "mat-form-field", 3);
93
+ i0.ɵɵtemplate(5, OptionComponent_mat_form_field_5_Template, 5, 5, "mat-form-field", 4);
94
+ } if (rf & 2) {
95
+ i0.ɵɵproperty("ngModel", ctx.show);
96
+ i0.ɵɵadvance(1);
97
+ i0.ɵɵtextInterpolate(ctx.display);
98
+ i0.ɵɵadvance(3);
99
+ i0.ɵɵproperty("ngIf", ctx.show && !ctx.options);
100
+ i0.ɵɵadvance(1);
101
+ i0.ɵɵproperty("ngIf", ctx.show && ctx.options);
102
+ } }, directives: [i1.MatCheckbox, i2.NgControlStatus, i2.NgModel, i3.MatFormField, i4.MatInput, i5.NgIf, i3.MatLabel, i2.DefaultValueAccessor, i6.MatSelect, i5.NgForOf, i7.MatOption], styles: [""] });
103
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(OptionComponent, [{
104
+ type: Component,
105
+ args: [{
106
+ selector: 'spa-option',
107
+ templateUrl: './option.component.html',
108
+ styleUrls: ['./option.component.css']
109
+ }]
110
+ }], function () { return []; }, { options: [{
111
+ type: Input
112
+ }], optionValue: [{
113
+ type: Input
114
+ }], optionDisplay: [{
115
+ type: Input
116
+ }], readonly: [{
117
+ type: Input
118
+ }], value: [{
119
+ type: Input
120
+ }], display: [{
121
+ type: Input
122
+ }], show: [{
123
+ type: Input
124
+ }], valueChange: [{
125
+ type: Output
126
+ }], enterPress: [{
127
+ type: Output
128
+ }] }); })();
129
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Rpbi1zcGEvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9vcHRpb24vb3B0aW9uLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL29wdGlvbi9vcHRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7Ozs7SUNTL0UseUNBQ0E7SUF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HJcbiAgPG1hdC1zZWxlY3QgWyh2YWx1ZSldPVwidmFsdWVcIiAoc2VsZWN0aW9uQ2hhbmdlKT1cImNoYW5nZWQoKVwiIFtwbGFjZWhvbGRlcl09XCInU2VsZWN0ICcgKyBkaXNwbGF5XCIgW2Rpc2FibGVkXT1cInJlYWRvbmx5XCIgPlxyXG4gICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IHJvdyBvZiBvcHRpb25zXCIgW3ZhbHVlXT1cInJvd1tvcHRpb25WYWx1ZV1cIj5cclxuICAgICAge3tyb3dbb3B0aW9uRGlzcGxheV19fVxyXG4gICAgPC9tYXQtb3B0aW9uPlxyXG4gIDwvbWF0LXNlbGVjdD5cclxuPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbjwhLS0gPHNwYS10ZXh0ICpuZ0lmPVwic2hvd1wiIHN0eWxlPVwibWFyZ2luLXJpZ2h0OjMwcHhcIiBbZGlzcGxheV09XCInRW50ZXIgJyArIGRpc3BsYXlcIiAoZW50ZXJQcmVzcyk9XCJlbnRlclByZXNzZWQoKVwiICh2YWx1ZUNoYW5nZSk9XCJjaGFuZ2VkKCRldmVudC50YXJnZXQudmFsdWUpXCIgd2lkdGg9XCIxMDBcIiBbcmVxdWlyZWRdPVwiZmFsc2VcIiBbKHZhbHVlKV09XCJ2YWx1ZVwiID48L3NwYS10ZXh0PiAtLT5cclxuXHJcbiJdfQ==
@@ -0,0 +1,198 @@
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
+ const _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); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.updateProfile(); });
19
+ i0.ɵɵtext(1, "Update Profile");
20
+ i0.ɵɵelementEnd();
21
+ } if (rf & 2) {
22
+ const ctx_r0 = i0.ɵɵnextContext();
23
+ i0.ɵɵproperty("disabled", ctx_r0.isProcessing);
24
+ } }
25
+ function ProfileComponent_a_26_Template(rf, ctx) { if (rf & 1) {
26
+ const _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); const 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
+ const _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); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.changePassword(); });
36
+ i0.ɵɵtext(1, "Change Password");
37
+ i0.ɵɵelementEnd();
38
+ } }
39
+ export class ProfileComponent {
40
+ constructor(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
+ ngOnInit() {
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
+ loadProfile(userName) {
61
+ let action = "all";
62
+ this.dataService.GetUserByID(userName).subscribe((apiResponse) => {
63
+ this.profile = apiResponse[0];
64
+ if (this.profile.userName.toLocaleLowerCase() == this.authService.currentUser.toLocaleLowerCase()) {
65
+ this.selfProfile = true;
66
+ }
67
+ this.loadRoles();
68
+ console.log(this.profile);
69
+ }, (error) => {
70
+ this.isProcessing = false;
71
+ this.messageService.toast(this.httpService.Error(error));
72
+ });
73
+ }
74
+ loadRoles() {
75
+ this.dataService.GetRole("all", "").subscribe((apiResponse) => {
76
+ this.roles = apiResponse;
77
+ console.log(this.roles);
78
+ }, (error) => {
79
+ this.isProcessing = false;
80
+ this.messageService.toast(this.httpService.Error(error));
81
+ });
82
+ }
83
+ changePassword() {
84
+ this.dataService.tmpProfileuserName = this.profile.userName;
85
+ this.router.navigate(["home/user/change-password"]);
86
+ }
87
+ gotoUsers() {
88
+ this.router.navigate(["home/admin/users"]);
89
+ }
90
+ update() {
91
+ }
92
+ updateProfile() {
93
+ this.isProcessing = true;
94
+ // console.log(this.profile)
95
+ // return
96
+ this.dataService.UpdateUser(this.profile).subscribe((apiResponse) => {
97
+ this.isProcessing = false;
98
+ if (apiResponse.success) {
99
+ this.messageService.toast("Profile Updated");
100
+ }
101
+ else {
102
+ this.messageService.toast("Error: " + apiResponse.message);
103
+ }
104
+ }, (error) => {
105
+ this.messageService.toast("Connection failed ");
106
+ this.isProcessing = false;
107
+ });
108
+ }
109
+ }
110
+ 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)); };
111
+ 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) {
112
+ i0.ɵɵelementStart(0, "div", 0);
113
+ i0.ɵɵelementStart(1, "div", 1);
114
+ i0.ɵɵelementStart(2, "div", 2);
115
+ i0.ɵɵelementStart(3, "div", 3);
116
+ i0.ɵɵelementStart(4, "div", 4);
117
+ i0.ɵɵelementStart(5, "mat-icon", 5);
118
+ i0.ɵɵtext(6, "account_circle");
119
+ i0.ɵɵelementEnd();
120
+ i0.ɵɵelementEnd();
121
+ i0.ɵɵelementStart(7, "div", 4);
122
+ i0.ɵɵelementStart(8, "mat-label", 6);
123
+ i0.ɵɵtext(9);
124
+ i0.ɵɵelementEnd();
125
+ i0.ɵɵelementEnd();
126
+ i0.ɵɵelementEnd();
127
+ i0.ɵɵelementEnd();
128
+ i0.ɵɵelementStart(10, "div", 7);
129
+ i0.ɵɵelementStart(11, "div", 8);
130
+ i0.ɵɵelementStart(12, "div", 9);
131
+ i0.ɵɵelementStart(13, "div", 4);
132
+ i0.ɵɵelementStart(14, "spa-text", 10);
133
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_14_listener($event) { return ctx.profile.firstName = $event; });
134
+ i0.ɵɵelementEnd();
135
+ i0.ɵɵelementEnd();
136
+ i0.ɵɵelementStart(15, "div", 4);
137
+ i0.ɵɵelementStart(16, "spa-text", 11);
138
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_16_listener($event) { return ctx.profile.lastName = $event; });
139
+ i0.ɵɵelementEnd();
140
+ i0.ɵɵelementEnd();
141
+ i0.ɵɵelementEnd();
142
+ i0.ɵɵelementStart(17, "div", 4);
143
+ i0.ɵɵelementStart(18, "spa-text", 12);
144
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_18_listener($event) { return ctx.profile.authType = $event; });
145
+ i0.ɵɵelementEnd();
146
+ i0.ɵɵelementEnd();
147
+ i0.ɵɵelementStart(19, "div", 4);
148
+ i0.ɵɵelementStart(20, "spa-text", 13);
149
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_text_valueChange_20_listener($event) { return ctx.profile.email = $event; });
150
+ i0.ɵɵelementEnd();
151
+ i0.ɵɵelementEnd();
152
+ i0.ɵɵelementStart(21, "div", 4);
153
+ i0.ɵɵelementStart(22, "spa-select", 14);
154
+ i0.ɵɵlistener("valueChange", function ProfileComponent_Template_spa_select_valueChange_22_listener($event) { return ctx.profile.roleID = $event; });
155
+ i0.ɵɵelementEnd();
156
+ i0.ɵɵelementEnd();
157
+ i0.ɵɵelementStart(23, "div", 15);
158
+ i0.ɵɵtemplate(24, ProfileComponent_button_24_Template, 2, 1, "button", 16);
159
+ i0.ɵɵelementEnd();
160
+ i0.ɵɵelementEnd();
161
+ i0.ɵɵelementEnd();
162
+ i0.ɵɵelementStart(25, "div", 17);
163
+ i0.ɵɵtemplate(26, ProfileComponent_a_26_Template, 2, 0, "a", 18);
164
+ i0.ɵɵtemplate(27, ProfileComponent_a_27_Template, 2, 0, "a", 19);
165
+ i0.ɵɵelementEnd();
166
+ i0.ɵɵelementEnd();
167
+ i0.ɵɵelementEnd();
168
+ } if (rf & 2) {
169
+ i0.ɵɵadvance(9);
170
+ i0.ɵɵtextInterpolate(ctx.profile == null ? null : ctx.profile.userName);
171
+ i0.ɵɵadvance(5);
172
+ i0.ɵɵproperty("value", ctx.profile.firstName)("readonly", ctx.selfProfile);
173
+ i0.ɵɵadvance(2);
174
+ i0.ɵɵproperty("value", ctx.profile.lastName)("readonly", ctx.selfProfile);
175
+ i0.ɵɵadvance(2);
176
+ i0.ɵɵproperty("value", ctx.profile.authType)("readonly", true);
177
+ i0.ɵɵadvance(2);
178
+ i0.ɵɵproperty("value", ctx.profile.email)("readonly", ctx.selfProfile);
179
+ i0.ɵɵadvance(2);
180
+ i0.ɵɵproperty("options", ctx.roles)("value", ctx.profile.roleID)("readonly", ctx.selfProfile);
181
+ i0.ɵɵadvance(2);
182
+ i0.ɵɵproperty("ngIf", !ctx.selfProfile);
183
+ i0.ɵɵadvance(2);
184
+ i0.ɵɵproperty("ngIf", !ctx.selfProfile);
185
+ i0.ɵɵadvance(1);
186
+ i0.ɵɵproperty("ngIf", (ctx.selfProfile || ctx.myRole[ctx.dataService.capUsers.name]) && ctx.profile.authType == "local");
187
+ } }, directives: [i6.MatIcon, i7.MatLabel, i8.TextComponent, i9.SelectComponent, i10.NgIf, i11.MatButton, i11.MatAnchor], styles: [""] });
188
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ProfileComponent, [{
189
+ type: Component,
190
+ args: [{
191
+ selector: 'spa-profile',
192
+ templateUrl: './profile.component.html',
193
+ styleUrls: ['./profile.component.css']
194
+ }]
195
+ }], function () { return [{ type: i1.DataServiceLib }, { type: i2.MessageService }, { type: i3.HttpService }, { type: i4.Router }, { type: i5.AuthService }]; }, { appConfig: [{
196
+ type: Input
197
+ }] }); })();
198
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly90aW4tc3BhLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcHJvZmlsZS9wcm9maWxlLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3Byb2ZpbGUvcHJvZmlsZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE9BQU8sRUFBRSxNQUFNLHVCQUF1QixDQUFDOzs7Ozs7Ozs7Ozs7Ozs7SUNvRGpELGtDQUFtSTtJQUEzQiwyTEFBeUI7SUFBRSw4QkFBYztJQUFBLGlCQUFTOzs7SUFBNUUsOENBQXlCOzs7O0lBVzNHLDZCQUF3RztJQUF2Qiw2S0FBcUI7SUFBRSw0QkFBWTtJQUFBLGlCQUFJOzs7O0lBQ3hILDZCQUFrTDtJQUE1QixrTEFBMEI7SUFBRSwrQkFBZTtJQUFBLGlCQUFJOztBRHREM00sTUFBTSxPQUFPLGdCQUFnQjtJQUUzQixZQUFtQixXQUEyQixFQUFVLGNBQThCLEVBQVUsV0FBd0IsRUFBVSxNQUFjLEVBQVUsV0FBd0I7UUFBL0osZ0JBQVcsR0FBWCxXQUF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