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,375 @@
1
+ import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
2
+ import { MatTableDataSource } from '@angular/material/table';
3
+ import { ActionResponse, Operator, TableColumnType } from '../../classes/Classes';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@angular/material/paginator";
7
+ import * as i3 from "@angular/material/button";
8
+ import * as i4 from "@angular/material/form-field";
9
+ import * as i5 from "@angular/material/input";
10
+ import * as i6 from "@angular/forms";
11
+ import * as i7 from "@angular/material/tooltip";
12
+ import * as i8 from "@angular/material/icon";
13
+ import * as i9 from "@angular/material/table";
14
+ const _c0 = ["tablePaginator"];
15
+ function TableComponent_div_1_button_2_Template(rf, ctx) { if (rf & 1) {
16
+ const _r6 = i0.ɵɵgetCurrentView();
17
+ i0.ɵɵelementStart(0, "button", 8);
18
+ i0.ɵɵlistener("click", function TableComponent_div_1_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.create(); });
19
+ i0.ɵɵtext(1);
20
+ i0.ɵɵelementEnd();
21
+ } if (rf & 2) {
22
+ const ctx_r3 = i0.ɵɵnextContext(2);
23
+ i0.ɵɵproperty("disabled", !ctx_r3.config.create.enabled);
24
+ i0.ɵɵadvance(1);
25
+ i0.ɵɵtextInterpolate(ctx_r3.config.create.display);
26
+ } }
27
+ function TableComponent_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
28
+ const _r8 = i0.ɵɵgetCurrentView();
29
+ i0.ɵɵelementStart(0, "div", 9);
30
+ i0.ɵɵelementStart(1, "mat-form-field", 10);
31
+ i0.ɵɵelementStart(2, "mat-label");
32
+ i0.ɵɵtext(3, "Filter");
33
+ i0.ɵɵelementEnd();
34
+ i0.ɵɵelementStart(4, "input", 11);
35
+ i0.ɵɵlistener("ngModelChange", function TableComponent_div_1_div_3_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7._filterText = $event; })("keyup", function TableComponent_div_1_div_3_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.applyFilter($event.target.value); });
36
+ i0.ɵɵelementEnd();
37
+ i0.ɵɵelementEnd();
38
+ i0.ɵɵelementStart(5, "button", 12);
39
+ i0.ɵɵlistener("click", function TableComponent_div_1_div_3_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.load(); });
40
+ i0.ɵɵelementStart(6, "mat-icon", 13);
41
+ i0.ɵɵtext(7, "refresh");
42
+ i0.ɵɵelementEnd();
43
+ i0.ɵɵelementEnd();
44
+ i0.ɵɵelementEnd();
45
+ } if (rf & 2) {
46
+ const ctx_r4 = i0.ɵɵnextContext(2);
47
+ i0.ɵɵadvance(4);
48
+ i0.ɵɵproperty("ngModel", ctx_r4._filterText);
49
+ } }
50
+ function TableComponent_div_1_Template(rf, ctx) { if (rf & 1) {
51
+ i0.ɵɵelementStart(0, "div", 4);
52
+ i0.ɵɵelementStart(1, "div", 5);
53
+ i0.ɵɵtemplate(2, TableComponent_div_1_button_2_Template, 2, 2, "button", 6);
54
+ i0.ɵɵelementEnd();
55
+ i0.ɵɵtemplate(3, TableComponent_div_1_div_3_Template, 8, 1, "div", 7);
56
+ i0.ɵɵelementEnd();
57
+ } if (rf & 2) {
58
+ const ctx_r0 = i0.ɵɵnextContext();
59
+ i0.ɵɵadvance(2);
60
+ i0.ɵɵproperty("ngIf", ctx_r0.config.create);
61
+ i0.ɵɵadvance(1);
62
+ i0.ɵɵproperty("ngIf", ctx_r0.config.enableFilter);
63
+ } }
64
+ function TableComponent_div_2_ng_container_2_th_1_Template(rf, ctx) { if (rf & 1) {
65
+ i0.ɵɵelementStart(0, "th", 24);
66
+ i0.ɵɵtext(1);
67
+ i0.ɵɵelementEnd();
68
+ } if (rf & 2) {
69
+ const col_r16 = i0.ɵɵnextContext().$implicit;
70
+ i0.ɵɵadvance(1);
71
+ i0.ɵɵtextInterpolate1(" ", col_r16.display, " ");
72
+ } }
73
+ function TableComponent_div_2_ng_container_2_td_2_div_1_Template(rf, ctx) { if (rf & 1) {
74
+ i0.ɵɵelementStart(0, "div");
75
+ i0.ɵɵtext(1);
76
+ i0.ɵɵelementEnd();
77
+ } if (rf & 2) {
78
+ const row_r21 = i0.ɵɵnextContext().$implicit;
79
+ const col_r16 = i0.ɵɵnextContext().$implicit;
80
+ i0.ɵɵadvance(1);
81
+ i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], "");
82
+ } }
83
+ const _c1 = function (a0) { return { "color": a0 }; };
84
+ function TableComponent_div_2_ng_container_2_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
85
+ i0.ɵɵelementStart(0, "div", 29);
86
+ i0.ɵɵtext(1);
87
+ i0.ɵɵelementEnd();
88
+ } if (rf & 2) {
89
+ const row_r21 = i0.ɵɵnextContext().$implicit;
90
+ const col_r16 = i0.ɵɵnextContext().$implicit;
91
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c1, col_r16.color.name));
92
+ i0.ɵɵadvance(1);
93
+ i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], " ");
94
+ } }
95
+ function TableComponent_div_2_ng_container_2_td_2_div_3_Template(rf, ctx) { if (rf & 1) {
96
+ i0.ɵɵelementStart(0, "div");
97
+ i0.ɵɵtext(1);
98
+ i0.ɵɵelementEnd();
99
+ } if (rf & 2) {
100
+ const row_r21 = i0.ɵɵnextContext().$implicit;
101
+ const col_r16 = i0.ɵɵnextContext().$implicit;
102
+ i0.ɵɵadvance(1);
103
+ i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], " ");
104
+ } }
105
+ function TableComponent_div_2_ng_container_2_td_2_div_4_Template(rf, ctx) { if (rf & 1) {
106
+ i0.ɵɵelementStart(0, "div");
107
+ i0.ɵɵtext(1);
108
+ i0.ɵɵpipe(2, "date");
109
+ i0.ɵɵelementEnd();
110
+ } if (rf & 2) {
111
+ const row_r21 = i0.ɵɵnextContext().$implicit;
112
+ const col_r16 = i0.ɵɵnextContext().$implicit;
113
+ i0.ɵɵadvance(1);
114
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, row_r21[col_r16.name], "dd/MM/yyyy"), "");
115
+ } }
116
+ function TableComponent_div_2_ng_container_2_td_2_div_5_Template(rf, ctx) { if (rf & 1) {
117
+ i0.ɵɵelementStart(0, "div");
118
+ i0.ɵɵtext(1);
119
+ i0.ɵɵpipe(2, "date");
120
+ i0.ɵɵelementEnd();
121
+ } if (rf & 2) {
122
+ const row_r21 = i0.ɵɵnextContext().$implicit;
123
+ const col_r16 = i0.ɵɵnextContext().$implicit;
124
+ i0.ɵɵadvance(1);
125
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, row_r21[col_r16.name], "dd/MM/yyyy HH:mm"), "");
126
+ } }
127
+ function TableComponent_div_2_ng_container_2_td_2_ng_container_6_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
128
+ i0.ɵɵelementStart(0, "mat-icon", 31);
129
+ i0.ɵɵtext(1);
130
+ i0.ɵɵelementEnd();
131
+ } if (rf & 2) {
132
+ const icon_r38 = i0.ɵɵnextContext().$implicit;
133
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(3, _c1, icon_r38.color))("matTooltip", icon_r38.hint);
134
+ i0.ɵɵadvance(1);
135
+ i0.ɵɵtextInterpolate1(" ", icon_r38.name, " ");
136
+ } }
137
+ function TableComponent_div_2_ng_container_2_td_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
138
+ i0.ɵɵelementContainerStart(0);
139
+ i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_td_2_ng_container_6_mat_icon_1_Template, 2, 5, "mat-icon", 30);
140
+ i0.ɵɵelementContainerEnd();
141
+ } if (rf & 2) {
142
+ const icon_r38 = ctx.$implicit;
143
+ const row_r21 = i0.ɵɵnextContext().$implicit;
144
+ const col_r16 = i0.ɵɵnextContext().$implicit;
145
+ const ctx_r27 = i0.ɵɵnextContext(2);
146
+ i0.ɵɵadvance(1);
147
+ i0.ɵɵproperty("ngIf", col_r16.type == ctx_r27.colType.Icon && ctx_r27.test(row_r21[icon_r38.field], icon_r38.operator, icon_r38.value));
148
+ } }
149
+ function TableComponent_div_2_ng_container_2_td_2_Template(rf, ctx) { if (rf & 1) {
150
+ i0.ɵɵelementStart(0, "td", 25);
151
+ i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_td_2_div_1_Template, 2, 1, "div", 26);
152
+ i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_td_2_div_2_Template, 2, 4, "div", 27);
153
+ i0.ɵɵtemplate(3, TableComponent_div_2_ng_container_2_td_2_div_3_Template, 2, 1, "div", 26);
154
+ i0.ɵɵtemplate(4, TableComponent_div_2_ng_container_2_td_2_div_4_Template, 3, 4, "div", 26);
155
+ i0.ɵɵtemplate(5, TableComponent_div_2_ng_container_2_td_2_div_5_Template, 3, 4, "div", 26);
156
+ i0.ɵɵtemplate(6, TableComponent_div_2_ng_container_2_td_2_ng_container_6_Template, 2, 1, "ng-container", 28);
157
+ i0.ɵɵelementEnd();
158
+ } if (rf & 2) {
159
+ const row_r21 = ctx.$implicit;
160
+ const col_r16 = i0.ɵɵnextContext().$implicit;
161
+ const ctx_r19 = i0.ɵɵnextContext(2);
162
+ i0.ɵɵadvance(1);
163
+ i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color == null);
164
+ i0.ɵɵadvance(1);
165
+ i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color != null && ctx_r19.test(row_r21[col_r16.color.field], col_r16.color.operator, col_r16.color.value));
166
+ i0.ɵɵadvance(1);
167
+ i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color != null && !ctx_r19.test(row_r21[col_r16.color.field], col_r16.color.operator, col_r16.color.value));
168
+ i0.ɵɵadvance(1);
169
+ i0.ɵɵproperty("ngIf", col_r16.type == ctx_r19.colType.Date);
170
+ i0.ɵɵadvance(1);
171
+ i0.ɵɵproperty("ngIf", col_r16.type == ctx_r19.colType.DateTime);
172
+ i0.ɵɵadvance(1);
173
+ i0.ɵɵproperty("ngForOf", col_r16.icons);
174
+ } }
175
+ function TableComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
176
+ i0.ɵɵelementContainerStart(0, 22);
177
+ i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_th_1_Template, 2, 1, "th", 18);
178
+ i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_td_2_Template, 7, 6, "td", 23);
179
+ i0.ɵɵelementContainerEnd();
180
+ } if (rf & 2) {
181
+ const col_r16 = ctx.$implicit;
182
+ i0.ɵɵproperty("matColumnDef", col_r16.name);
183
+ } }
184
+ function TableComponent_div_2_th_4_Template(rf, ctx) { if (rf & 1) {
185
+ i0.ɵɵelementStart(0, "th", 24);
186
+ i0.ɵɵtext(1, " Action ");
187
+ i0.ɵɵelementEnd();
188
+ } }
189
+ function TableComponent_div_2_td_5_ng_container_1_button_1_Template(rf, ctx) { if (rf & 1) {
190
+ const _r50 = i0.ɵɵgetCurrentView();
191
+ i0.ɵɵelementStart(0, "button", 33);
192
+ i0.ɵɵlistener("click", function TableComponent_div_2_td_5_ng_container_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r50); const act_r46 = i0.ɵɵnextContext().$implicit; const row_r44 = i0.ɵɵnextContext().$implicit; const ctx_r48 = i0.ɵɵnextContext(2); return ctx_r48.do(act_r46.name, row_r44); });
193
+ i0.ɵɵelementStart(1, "mat-icon");
194
+ i0.ɵɵtext(2);
195
+ i0.ɵɵelementEnd();
196
+ i0.ɵɵelementEnd();
197
+ } if (rf & 2) {
198
+ const act_r46 = i0.ɵɵnextContext().$implicit;
199
+ const row_r44 = i0.ɵɵnextContext().$implicit;
200
+ i0.ɵɵproperty("disabled", act_r46.disable && row_r44[act_r46.disable.field] == act_r46.disable.value)("color", act_r46.color == null ? "primary" : act_r46.color)("matTooltip", act_r46.hint);
201
+ i0.ɵɵadvance(2);
202
+ i0.ɵɵtextInterpolate(act_r46.icon);
203
+ } }
204
+ function TableComponent_div_2_td_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
205
+ i0.ɵɵelementContainerStart(0);
206
+ i0.ɵɵtemplate(1, TableComponent_div_2_td_5_ng_container_1_button_1_Template, 3, 4, "button", 32);
207
+ i0.ɵɵelementContainerEnd();
208
+ } if (rf & 2) {
209
+ const act_r46 = ctx.$implicit;
210
+ const row_r44 = i0.ɵɵnextContext().$implicit;
211
+ i0.ɵɵadvance(1);
212
+ i0.ɵɵproperty("ngIf", act_r46.disappear && row_r44[act_r46.disappear.field] != act_r46.disappear.value || !act_r46.disappear);
213
+ } }
214
+ function TableComponent_div_2_td_5_Template(rf, ctx) { if (rf & 1) {
215
+ i0.ɵɵelementStart(0, "td", 25);
216
+ i0.ɵɵtemplate(1, TableComponent_div_2_td_5_ng_container_1_Template, 2, 1, "ng-container", 28);
217
+ i0.ɵɵelementEnd();
218
+ } if (rf & 2) {
219
+ const ctx_r13 = i0.ɵɵnextContext(2);
220
+ i0.ɵɵstyleMap(ctx_r13.styleString + ";padding-right: 0px;");
221
+ i0.ɵɵadvance(1);
222
+ i0.ɵɵproperty("ngForOf", ctx_r13.config.actions);
223
+ } }
224
+ function TableComponent_div_2_tr_6_Template(rf, ctx) { if (rf & 1) {
225
+ i0.ɵɵelement(0, "tr", 34);
226
+ } }
227
+ const _c2 = function (a0) { return { "make-gray": a0 }; };
228
+ function TableComponent_div_2_tr_7_Template(rf, ctx) { if (rf & 1) {
229
+ i0.ɵɵelement(0, "tr", 35);
230
+ } if (rf & 2) {
231
+ const row_r55 = ctx.$implicit;
232
+ const ctx_r15 = i0.ɵɵnextContext(2);
233
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c2, row_r55[ctx_r15.config.greyout.field] == ctx_r15.config.greyout.value));
234
+ } }
235
+ function TableComponent_div_2_Template(rf, ctx) { if (rf & 1) {
236
+ i0.ɵɵelementStart(0, "div", 14);
237
+ i0.ɵɵelementStart(1, "table", 15);
238
+ i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_Template, 3, 1, "ng-container", 16);
239
+ i0.ɵɵelementContainerStart(3, 17);
240
+ i0.ɵɵtemplate(4, TableComponent_div_2_th_4_Template, 2, 0, "th", 18);
241
+ i0.ɵɵtemplate(5, TableComponent_div_2_td_5_Template, 2, 3, "td", 19);
242
+ i0.ɵɵelementContainerEnd();
243
+ i0.ɵɵtemplate(6, TableComponent_div_2_tr_6_Template, 1, 0, "tr", 20);
244
+ i0.ɵɵtemplate(7, TableComponent_div_2_tr_7_Template, 1, 3, "tr", 21);
245
+ i0.ɵɵelementEnd();
246
+ i0.ɵɵelementEnd();
247
+ } if (rf & 2) {
248
+ const ctx_r1 = i0.ɵɵnextContext();
249
+ i0.ɵɵadvance(1);
250
+ i0.ɵɵproperty("dataSource", ctx_r1.data);
251
+ i0.ɵɵadvance(1);
252
+ i0.ɵɵproperty("ngForOf", ctx_r1.config.columns);
253
+ i0.ɵɵadvance(4);
254
+ i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns);
255
+ i0.ɵɵadvance(1);
256
+ i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
257
+ } }
258
+ const _c3 = function () { return [10, 50, 100]; };
259
+ export class TableComponent {
260
+ constructor() {
261
+ this.dataChange = new EventEmitter();
262
+ this.buttonClick = new EventEmitter();
263
+ this.loadClick = new EventEmitter();
264
+ this.createClick = new EventEmitter();
265
+ this.colType = TableColumnType;
266
+ this.op = Operator;
267
+ this.displayedColumns = [];
268
+ this._filterText = "";
269
+ }
270
+ ngOnInit() {
271
+ this.config.columns.forEach(element => {
272
+ this.displayedColumns.push(element.name);
273
+ });
274
+ this.displayedColumns.push("Action");
275
+ this.styleString = `width: ${50 * this.config.actions.length}px`;
276
+ }
277
+ ngOnChanges() {
278
+ this.data = new MatTableDataSource(this.data);
279
+ this.data.paginator = this.tablePaginator;
280
+ this.applyFilter(this._filterText);
281
+ }
282
+ applyFilter(filterValue) {
283
+ this.data.filter = filterValue.trim().toLowerCase();
284
+ }
285
+ do(name, item) {
286
+ let resp = new ActionResponse();
287
+ resp.name = name;
288
+ resp.value = item;
289
+ this.buttonClick.emit(resp);
290
+ }
291
+ create() {
292
+ this.createClick.emit();
293
+ }
294
+ load() {
295
+ this.loadClick.emit();
296
+ }
297
+ test(a, op, b) {
298
+ if (op == Operator.Equal) {
299
+ if (a == b) {
300
+ return true;
301
+ }
302
+ else {
303
+ return false;
304
+ }
305
+ }
306
+ if (op == Operator.Greater) {
307
+ if (a > b) {
308
+ return true;
309
+ }
310
+ else {
311
+ return false;
312
+ }
313
+ }
314
+ if (op == Operator.Less) {
315
+ if (a < b) {
316
+ return true;
317
+ }
318
+ else {
319
+ return false;
320
+ }
321
+ }
322
+ if (op == Operator.NotEqual) {
323
+ if (a != b) {
324
+ return true;
325
+ }
326
+ else {
327
+ return false;
328
+ }
329
+ }
330
+ }
331
+ }
332
+ TableComponent.ɵfac = function TableComponent_Factory(t) { return new (t || TableComponent)(); };
333
+ TableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TableComponent, selectors: [["spa-table"]], viewQuery: function TableComponent_Query(rf, ctx) { if (rf & 1) {
334
+ i0.ɵɵviewQuery(_c0, true);
335
+ } if (rf & 2) {
336
+ var _t;
337
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tablePaginator = _t.first);
338
+ } }, inputs: { config: "config", data: "data" }, outputs: { dataChange: "dataChange", buttonClick: "buttonClick", loadClick: "loadClick", createClick: "createClick" }, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 4, consts: [["class", "row justify-content-between", "style", "padding-bottom: 10px", 4, "ngIf"], ["class", "mat-elevation-z8", 4, "ngIf"], ["showFirstLastButtons", "", 3, "pageSizeOptions"], ["tablePaginator", ""], [1, "row", "justify-content-between", 2, "padding-bottom", "10px"], [1, "col"], ["mat-raised-button", "", "color", "primary", 3, "disabled", "click", 4, "ngIf"], ["class", "col d-flex justify-content-end", 4, "ngIf"], ["mat-raised-button", "", "color", "primary", 3, "disabled", "click"], [1, "col", "d-flex", "justify-content-end"], [2, "font-size", "12px", "margin-right", "5px"], ["matInput", "", "placeholder", "Enter Filter text", "autocomplete", "off", 3, "ngModel", "ngModelChange", "keyup"], ["mat-mini-fab", "", "color", "primary", "matTooltip", "refresh data", "matTooltipPosition", "right", 2, "margin-top", "5px", 3, "click"], [1, "refreshIcon"], [1, "mat-elevation-z8"], ["mat-table", "", 3, "dataSource"], [3, "matColumnDef", 4, "ngFor", "ngForOf"], ["matColumnDef", "Action"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "style", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 3, "ngClass", 4, "matRowDef", "matRowDefColumns"], [3, "matColumnDef"], ["mat-cell", "", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", ""], [4, "ngIf"], [3, "ngStyle", 4, "ngIf"], [4, "ngFor", "ngForOf"], [3, "ngStyle"], ["matTooltipPosition", "above", 3, "ngStyle", "matTooltip", 4, "ngIf"], ["matTooltipPosition", "above", 3, "ngStyle", "matTooltip"], ["mat-mini-fab", "", "matTooltipPosition", "above", "style", "margin-right:5px", 3, "disabled", "color", "matTooltip", "click", 4, "ngIf"], ["mat-mini-fab", "", "matTooltipPosition", "above", 2, "margin-right", "5px", 3, "disabled", "color", "matTooltip", "click"], ["mat-header-row", ""], ["mat-row", "", 3, "ngClass"]], template: function TableComponent_Template(rf, ctx) { if (rf & 1) {
339
+ i0.ɵɵelementStart(0, "div");
340
+ i0.ɵɵtemplate(1, TableComponent_div_1_Template, 4, 2, "div", 0);
341
+ i0.ɵɵtemplate(2, TableComponent_div_2_Template, 8, 4, "div", 1);
342
+ i0.ɵɵelement(3, "mat-paginator", 2, 3);
343
+ i0.ɵɵelementEnd();
344
+ } if (rf & 2) {
345
+ i0.ɵɵadvance(1);
346
+ i0.ɵɵproperty("ngIf", ctx.config.create.enabled || ctx.config.enableFilter);
347
+ i0.ɵɵadvance(1);
348
+ i0.ɵɵproperty("ngIf", ctx.data);
349
+ i0.ɵɵadvance(1);
350
+ i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(3, _c3));
351
+ } }, directives: [i1.NgIf, i2.MatPaginator, i3.MatButton, i4.MatFormField, i4.MatLabel, i5.MatInput, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, i7.MatTooltip, i8.MatIcon, i9.MatTable, i1.NgForOf, i9.MatColumnDef, i9.MatHeaderCellDef, i9.MatCellDef, i9.MatHeaderRowDef, i9.MatRowDef, i9.MatHeaderCell, i9.MatCell, i1.NgStyle, i9.MatHeaderRow, i9.MatRow, i1.NgClass], pipes: [i1.DatePipe], styles: [".mat-mini-fab[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mini-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;margin-top:-3px}.make-gray[_ngcontent-%COMP%]{background-color:#d3d3d3}"] });
352
+ /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TableComponent, [{
353
+ type: Component,
354
+ args: [{
355
+ selector: 'spa-table',
356
+ templateUrl: './table.component.html',
357
+ styleUrls: ['./table.component.css']
358
+ }]
359
+ }], function () { return []; }, { config: [{
360
+ type: Input
361
+ }], data: [{
362
+ type: Input
363
+ }], dataChange: [{
364
+ type: Output
365
+ }], buttonClick: [{
366
+ type: Output
367
+ }], loadClick: [{
368
+ type: Output
369
+ }], createClick: [{
370
+ type: Output
371
+ }], tablePaginator: [{
372
+ type: ViewChild,
373
+ args: ['tablePaginator']
374
+ }] }); })();
375
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3RhYmxlL3RhYmxlLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3RhYmxlL3RhYmxlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsUUFBUSxFQUFFLGVBQWUsRUFBZSxNQUFNLHVCQUF1QixDQUFDOzs7Ozs7Ozs7Ozs7OztJQ0MvRixpQ0FBdUg7SUFBbkIsd0xBQWtCO0lBQUMsWUFBeUI7SUFBQSxpQkFBUzs7O0lBQTNILHdEQUFtQztJQUFzRCxlQUF5QjtJQUF6QixrREFBeUI7Ozs7SUFFL0ksOEJBQ0Q7SUFBQSwwQ0FDQTtJQUFBLGlDQUFXO0lBQUEsc0JBQU07SUFBQSxpQkFBWTtJQUM3QixpQ0FDQTtJQURnQixzTkFBeUIscU1BQUE7SUFBekMsaUJBQ0E7SUFBQSxpQkFBaUI7SUFDakIsa0NBQWtJO0lBQTdGLHFMQUFnQjtJQUE2RSxvQ0FBOEI7SUFBQSx1Q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0dG9uQ2xpY2suZW1pdChyZXNwKTtcclxuICB9XHJcblxyXG5cclxuICBjcmVhdGUoKXtcclxuICAgIHRoaXMuY3JlYXRlQ2xpY2suZW1pdCgpO1xyXG4gIH1cclxuXHJcbiAgbG9hZCgpe1xyXG4gICAgdGhpcy5sb2FkQ2xpY2suZW1pdCgpO1xyXG4gIH1cclxuXHJcbiAgdGVzdChhOmFueSwgb3A6IE9wZXJhdG9yLCBiOiBhbnkpe1xyXG5cclxuICAgIGlmIChvcCA9PSBPcGVyYXRvci5FcXVhbCl7XHJcbiAgICAgIGlmIChhID09IGIpe1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9ZWxzZXtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgIH1cclxuXHJcbiAgICB9XHJcblxyXG4gICAgaWYgKG9wID09IE9wZXJhdG9yLkdyZWF0ZXIpIHtcclxuICAgICAgaWYgKGEgPiBiKSB7XHJcbiAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICB9XHJcblxyXG4gICAgfVxyXG5cclxuICAgIGlmIChvcCA9PSBPcGVyYXRvci5MZXNzKSB7XHJcbiAgICAgIGlmIChhIDwgYikge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgfVxyXG5cclxuICAgIH1cclxuXHJcbiAgICBpZiAob3AgPT0gT3BlcmF0b3IuTm90RXF1YWwpIHtcclxuICAgICAgaWYgKGEgIT0gYikge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgfVxyXG5cclxuICAgIH1cclxuXHJcblxyXG5cclxuICB9XHJcblxyXG59XHJcblxyXG5cclxuXHJcbiIsIjxk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C9NTS95eXl5IEhIOm1tJ319PC9kaXY+XHJcblxyXG5cclxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCBpY29uIG9mIGNvbC5pY29ucztcIj5cclxuICAgICAgICAgIDwhLS0gPG1hdC1pY29uICpuZ0lmPVwiY29sLnR5cGU9PWNvbFR5cGUuSWNvbiAmJiBpY29uLm9wZXJhdG9yPT1vcC5FcXVhbCAmJiByb3dbaWNvbi5maWVsZF09PWljb24udmFsdWVcIlxyXG4gICAgICAgICAgICBbbmdTdHlsZV09XCJ7J2NvbG9yJzppY29uLmNvbG9yfVwiXHJcbiAgICAgICAgICAgIFttYXRUb29sdGlwXT1cImljb24uaGludFwiIG1hdFRvb2x0aXBQb3NpdGlvbj1cImFib3ZlXCI+XHJcbiAgICAgICAgICAgIHt7aWNvbi5uYW1lfX1cclxuICAgICAgICAgIDwvbWF0LWljb24+XHJcblxyXG4gICAgICAgICAgPG1hdC1pY29uICpuZ0lmPVwiY29sLnR5cGU9PWNvbFR5cGUuSWNvbiAmJiBpY29uLm9wZXJhdG9yPT1vcC5HcmVhdGVyICYmIHJvd1tpY29uLmZpZWxkXT5pY29uLnZhbHVlXCJcclxuICAgICAgICAgICAgW25nU3R5bGVdPVwieydjb2xvcic6aWNvbi5jb2xvcn1cIlxyXG4gICAgICAgICAgICBbbWF0VG9vbHRpcF09XCJpY29uLmhpbnRcIiBtYXRUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiPlxyXG4gICAgICAgICAgICB7e2ljb24ubmFtZX19XHJcbiAgICAgICAgICA8L21hdC1pY29uPlxyXG5cclxuICAgICAgICAgIDxtYXQtaWNvbiAqbmdJZj1cImNvbC50eXBlPT1jb2xUeXBlLkljb24gJiYgaWNvbi5vcGVyYXRvcj09b3AuTGVzcyAmJiByb3dbaWNvbi5maWVsZF08aWNvbi52YWx1ZVwiXHJcbiAgICAgICAgICAgIFtuZ1N0eWxlXT1cInsnY29sb3InOmljb24uY29sb3J9XCJcclxuICAgICAgICAgICAgW21hdFRvb2x0aXBdPVwiaWNvbi5oaW50XCIgbWF0VG9vbHRpcFBvc2l0aW9uPVwiYWJvdmVcIj5cclxuICAgICAgICAgICAge3tpY29uLm5hbWV9fVxyXG4gICAgICAgICAgPC9tYXQtaWNvbj5cclxuICAgICAgICAgIDxtYXQtaWNvbiAqbmdJZj1cImNvbC50eXBlPT1jb2xUeXBlLkljb24gJiYgaWNvbi5vcGVyYXRvcj09b3AuTm90RXF1YWwgJiYgcm93W2ljb24uZmllbGRdIT1pY29uLnZhbHVlXCJcclxuICAgICAgICAgICAgW25nU3R5bGVdPVwieydjb2xvcic6aWNvbi5jb2xvcn1cIlxyXG4gICAgICAgICAgICBbbWF0VG9vbHRpcF09XCJpY29uLmhpbnRcIiBtYXRUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiPlxyXG4gICAgICAgICAgICB7e2ljb24ubmFtZX19XHJcbiAgICAgICAgICA8L21hdC1pY29uPiAtLT5cclxuXHJcbiAgICAgICAgICA8bWF0LWljb24gKm5nSWY9XCJjb2wudHlwZT09Y29sVHlwZS5JY29uICYmIHRlc3Qocm93W2ljb24uZmllbGRdLGljb24ub3BlcmF0b3IsaWNvbi52YWx1ZSlcIlxyXG4gICAgICAgICAgICBbbmdTdHlsZV09XCJ7J2NvbG9yJzppY29uLmNvbG9yfVwiXHJcbiAgICAgICAgICAgIFttYXRUb29sdGlwXT1cImljb24uaGludFwiIG1hdFRvb2x0aXBQb3NpdGlvbj1cImFib3ZlXCI+XHJcbiAgICAgICAgICAgIHt7aWNvbi5uYW1lfX1cclxuICAgICAgICAgIDwvbWF0LWljb24+XHJcblxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgPC90ZD5cclxuXHJcbiAgICA8L25nLWNvbnRhaW5lcj5cclxuXHJcblxyXG5cclxuXHJcbiAgICA8bmctY29udGFpbmVyIG1hdENvbHVtbkRlZj1cIkFjdGlvblwiPlxyXG5cclxuICAgICAgPHRoIG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