taxtank-core 0.33.2 → 0.33.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) hide show
  1. package/common/src/db/enums/user/user-roles.enum.d.ts +1 -0
  2. package/common/src/services/mixpanel.service.d.ts +1 -0
  3. package/esm2022/common/src/common.module.mjs +7 -5
  4. package/esm2022/common/src/db/enums/user/user-roles.enum.mjs +2 -1
  5. package/esm2022/common/src/interceptors/interceptors.module.mjs +5 -5
  6. package/esm2022/common/src/interceptors/jwt-interceptor.mjs +6 -6
  7. package/esm2022/common/src/services/auth/auth.service.mjs +6 -6
  8. package/esm2022/common/src/services/auth/jwt.service.mjs +4 -4
  9. package/esm2022/common/src/services/mixpanel.service.mjs +13 -7
  10. package/esm2022/public-api.mjs +2 -3
  11. package/esm2022/src/lib/collections/bank-transaction.collection.mjs +2 -2
  12. package/esm2022/src/lib/collections/chat/chat.collection.mjs +1 -19
  13. package/esm2022/src/lib/collections/client-movement.collection.mjs +5 -4
  14. package/esm2022/src/lib/collections/client.collection.mjs +1 -1
  15. package/esm2022/src/lib/collections/collection-dictionary.mjs +4 -1
  16. package/esm2022/src/lib/collections/collection.mjs +14 -3
  17. package/esm2022/src/lib/collections/firm/employee-invite.collection.mjs +10 -0
  18. package/esm2022/src/lib/collections/firm/employee.collection.mjs +18 -0
  19. package/esm2022/src/lib/collections/firm/index.mjs +3 -0
  20. package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +2 -2
  21. package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
  22. package/esm2022/src/lib/collections/index.mjs +3 -2
  23. package/esm2022/src/lib/collections/property/property-valuation.collection.mjs +11 -1
  24. package/esm2022/src/lib/collections/report/property/property-report-item-depreciation.collection.mjs +2 -2
  25. package/esm2022/src/lib/collections/report/property/property-report-item-transaction.collection.mjs +2 -2
  26. package/esm2022/src/lib/collections/report/property/property-report-item.collection.mjs +1 -1
  27. package/esm2022/src/lib/collections/tax-review.collection.mjs +1 -7
  28. package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +4 -1
  29. package/esm2022/src/lib/collections/user/user.collection.mjs +4 -0
  30. package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +13 -1
  31. package/esm2022/src/lib/core.module.mjs +7 -6
  32. package/esm2022/src/lib/db/Enums/bank/bank-connection-status.enum.mjs +2 -1
  33. package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.mjs +2 -2
  34. package/esm2022/src/lib/db/Enums/firm/employee-invite-role.enum.mjs +6 -0
  35. package/esm2022/src/lib/db/Enums/firm/firm-type.enum.mjs +6 -0
  36. package/esm2022/src/lib/db/Enums/firm/index.mjs +3 -0
  37. package/esm2022/src/lib/db/Enums/holding/holding-type-exchange-list.enum.mjs +6 -5
  38. package/esm2022/src/lib/db/Enums/index.mjs +3 -1
  39. package/esm2022/src/lib/db/Enums/user/gender.enum.mjs +14 -0
  40. package/esm2022/src/lib/db/Enums/user/index.mjs +2 -0
  41. package/esm2022/src/lib/db/Json/chart-accounts/chart-accounts-value.json +59 -4
  42. package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
  43. package/esm2022/src/lib/db/Models/bank/bank-connection.mjs +1 -1
  44. package/esm2022/src/lib/db/Models/client/annual-client-details.mjs +1 -1
  45. package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
  46. package/esm2022/src/lib/db/Models/firm/accountant/tax-review.mjs +1 -1
  47. package/esm2022/src/lib/db/Models/firm/chat.mjs +1 -1
  48. package/esm2022/src/lib/db/Models/firm/client-invite.mjs +1 -1
  49. package/esm2022/src/lib/db/Models/firm/client-movement.mjs +1 -1
  50. package/esm2022/src/lib/db/Models/firm/employee-invite.mjs +1 -1
  51. package/esm2022/src/lib/db/Models/firm/firm.mjs +1 -1
  52. package/esm2022/src/lib/db/Models/firm/message-document.mjs +1 -1
  53. package/esm2022/src/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
  54. package/esm2022/src/lib/db/Models/incomeSource/income-source.mjs +1 -1
  55. package/esm2022/src/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
  56. package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
  57. package/esm2022/src/lib/db/Models/sole/sole-business-loss.mjs +1 -1
  58. package/esm2022/src/lib/db/Models/sole/sole-business.mjs +3 -3
  59. package/esm2022/src/lib/db/Models/sole/sole-forecast.mjs +1 -1
  60. package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +3 -4
  61. package/esm2022/src/lib/db/Models/user/employee-details.mjs +1 -1
  62. package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
  63. package/esm2022/src/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
  64. package/esm2022/src/lib/forms/abstract.form.mjs +9 -4
  65. package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
  66. package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
  67. package/esm2022/src/lib/forms/chat/chat-filter.form.mjs +36 -0
  68. package/esm2022/src/lib/forms/chat/index.mjs +2 -0
  69. package/esm2022/src/lib/forms/client/annual-client-details.form.mjs +1 -2
  70. package/esm2022/src/lib/forms/client/capital-loss.form.mjs +13 -0
  71. package/esm2022/src/lib/forms/client/index.mjs +2 -1
  72. package/esm2022/src/lib/forms/collection.form.mjs +29 -0
  73. package/esm2022/src/lib/forms/firm/client-invite-put.form.mjs +13 -0
  74. package/esm2022/src/lib/forms/firm/client-invite.form.mjs +18 -0
  75. package/esm2022/src/lib/forms/firm/client-movement.form.mjs +22 -0
  76. package/esm2022/src/lib/forms/firm/employee-details.form.mjs +21 -0
  77. package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +24 -0
  78. package/esm2022/src/lib/forms/firm/firm-branch.form.mjs +13 -0
  79. package/esm2022/src/lib/forms/firm/firm-invite.form.mjs +18 -0
  80. package/esm2022/src/lib/forms/firm/index.mjs +8 -1
  81. package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +30 -4
  82. package/esm2022/src/lib/forms/index.mjs +4 -1
  83. package/esm2022/src/lib/forms/loan/loan.form.mjs +3 -7
  84. package/esm2022/src/lib/forms/register/register-client.form.mjs +9 -6
  85. package/esm2022/src/lib/forms/register/register-firm.form.mjs +4 -4
  86. package/esm2022/src/lib/forms/report/my-tax/my-tax-deductions.form.mjs +1 -1
  87. package/esm2022/src/lib/forms/report/my-tax/my-tax-rent.form.mjs +1 -1
  88. package/esm2022/src/lib/forms/sole/bas-report.form.mjs +3 -2
  89. package/esm2022/src/lib/forms/sole/sole-contact.form.mjs +4 -3
  90. package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +3 -2
  91. package/esm2022/src/lib/forms/tax-review/index.mjs +3 -0
  92. package/esm2022/src/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
  93. package/esm2022/src/lib/forms/tax-review/tax-review-filter.form.mjs +49 -0
  94. package/esm2022/src/lib/forms/transaction/holding/holding-income.form.mjs +19 -9
  95. package/esm2022/src/lib/forms/transaction/index.mjs +2 -1
  96. package/esm2022/src/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
  97. package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +35 -0
  98. package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -1
  99. package/esm2022/src/lib/forms/transaction/work/work-transaction.form.mjs +2 -4
  100. package/esm2022/src/lib/forms/user/client-details.form.mjs +2 -2
  101. package/esm2022/src/lib/forms/user/user-invite.form.mjs +3 -2
  102. package/esm2022/src/lib/forms/user/user.form.mjs +11 -8
  103. package/esm2022/src/lib/forms/vehicle/vehicle-claim-details.form.mjs +1 -1
  104. package/esm2022/src/lib/forms/vehicle/vehicle-claim.form.mjs +1 -3
  105. package/esm2022/src/lib/forms/vehicle/vehicle-logbook.form.mjs +3 -4
  106. package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +5 -5
  107. package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +5 -5
  108. package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +6 -6
  109. package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +6 -6
  110. package/esm2022/src/lib/interceptors/interceptors.module.mjs +5 -5
  111. package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +5 -5
  112. package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +7 -6
  113. package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +6 -6
  114. package/esm2022/src/lib/models/bank/bank-connection.mjs +22 -1
  115. package/esm2022/src/lib/models/chat/chat.mjs +6 -2
  116. package/esm2022/src/lib/models/chat/message-document.mjs +4 -4
  117. package/esm2022/src/lib/models/client/annual-client-details.mjs +1 -1
  118. package/esm2022/src/lib/models/client/capital-loss.interface.mjs +2 -0
  119. package/esm2022/src/lib/models/client/capital-loss.mjs +15 -0
  120. package/esm2022/src/lib/models/client/client-details.mjs +27 -1
  121. package/esm2022/src/lib/models/client/client-invite.mjs +8 -5
  122. package/esm2022/src/lib/models/client/client-movement.mjs +8 -5
  123. package/esm2022/src/lib/models/client/index.mjs +3 -1
  124. package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -2
  125. package/esm2022/src/lib/models/employee/employee-details.mjs +8 -2
  126. package/esm2022/src/lib/models/employee/employee-invite.mjs +18 -2
  127. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +22 -13
  128. package/esm2022/src/lib/models/event/app-event-type.enum.mjs +20 -21
  129. package/esm2022/src/lib/models/file/file.mjs +4 -1
  130. package/esm2022/src/lib/models/financial-year/financial-year.mjs +3 -3
  131. package/esm2022/src/lib/models/firm/firm-branch.interface.mjs +2 -0
  132. package/esm2022/src/lib/models/firm/firm-branch.mjs +22 -0
  133. package/esm2022/src/lib/models/firm/firm.mjs +2 -2
  134. package/esm2022/src/lib/models/firm/index.mjs +3 -0
  135. package/esm2022/src/lib/models/holding/holding.mjs +4 -4
  136. package/esm2022/src/lib/models/income-source/salary-forecast.mjs +1 -1
  137. package/esm2022/src/lib/models/income-source/sole-forecast.mjs +1 -1
  138. package/esm2022/src/lib/models/index.mjs +2 -1
  139. package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +11 -7
  140. package/esm2022/src/lib/models/property/property-forecast.mjs +1 -7
  141. package/esm2022/src/lib/models/property/property.mjs +6 -2
  142. package/esm2022/src/lib/models/registration-invite/registration-invite.mjs +5 -1
  143. package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +4 -4
  144. package/esm2022/src/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -1
  145. package/esm2022/src/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +4 -9
  146. package/esm2022/src/lib/models/report/property/property-report-item-transaction.mjs +1 -1
  147. package/esm2022/src/lib/models/sole/bas-report.mjs +4 -1
  148. package/esm2022/src/lib/models/sole/sole-business-loss.mjs +1 -1
  149. package/esm2022/src/lib/models/sole/sole-invoice.mjs +7 -6
  150. package/esm2022/src/lib/models/tax-review/tax-review.mjs +12 -2
  151. package/esm2022/src/lib/models/tax-summary/tax-summary.mjs +3 -2
  152. package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
  153. package/esm2022/src/lib/models/user/user.mjs +8 -5
  154. package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +3 -3
  155. package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
  156. package/esm2022/src/lib/pipes/app-currency.pipe.mjs +4 -4
  157. package/esm2022/src/lib/pipes/safe-url.pipe.mjs +5 -5
  158. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +9 -9
  159. package/esm2022/src/lib/services/asset/assets.service.mjs +6 -6
  160. package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +4 -4
  161. package/esm2022/src/lib/services/data.service.mjs +4 -4
  162. package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +4 -4
  163. package/esm2022/src/lib/services/event/sse.service.mjs +6 -6
  164. package/esm2022/src/lib/services/export/export-formatter.service.mjs +5 -5
  165. package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +26 -0
  166. package/esm2022/src/lib/services/firm/index.mjs +2 -0
  167. package/esm2022/src/lib/services/header-title/header-title.service.mjs +5 -5
  168. package/esm2022/src/lib/services/http/address/address.service.mjs +6 -6
  169. package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
  170. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.mjs +5 -2
  171. package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -7
  172. package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +6 -6
  173. package/esm2022/src/lib/services/http/bank/bank.service.mjs +4 -4
  174. package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
  175. package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +22 -6
  176. package/esm2022/src/lib/services/http/budget/budget.service.mjs +4 -4
  177. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
  178. package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +4 -4
  179. package/esm2022/src/lib/services/http/chat/chat.service.mjs +10 -10
  180. package/esm2022/src/lib/services/http/chat/message-document.service.mjs +6 -6
  181. package/esm2022/src/lib/services/http/chat/message.service.mjs +10 -6
  182. package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +23 -0
  183. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.mjs +7 -0
  184. package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +23 -0
  185. package/esm2022/src/lib/services/http/client/capital-loss/index.mjs +3 -0
  186. package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +4 -4
  187. package/esm2022/src/lib/services/http/client/index.mjs +3 -2
  188. package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +6 -6
  189. package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +4 -4
  190. package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +6 -6
  191. package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
  192. package/esm2022/src/lib/services/http/document/document.service.mjs +4 -4
  193. package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
  194. package/esm2022/src/lib/services/http/file/file.service.mjs +4 -4
  195. package/esm2022/src/lib/services/http/firm/client-invite/client-invite-messages.enum.mjs +2 -2
  196. package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +9 -12
  197. package/esm2022/src/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
  198. package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +8 -7
  199. package/esm2022/src/lib/services/http/firm/client-movement/index.mjs +2 -1
  200. package/esm2022/src/lib/services/http/firm/employee/employee-messages.enum.mjs +2 -1
  201. package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +14 -8
  202. package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +9 -9
  203. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.mjs +9 -0
  204. package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +23 -0
  205. package/esm2022/src/lib/services/http/firm/firm-branch/index.mjs +3 -0
  206. package/esm2022/src/lib/services/http/firm/firm.service.mjs +7 -7
  207. package/esm2022/src/lib/services/http/firm/index.mjs +2 -1
  208. package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +6 -6
  209. package/esm2022/src/lib/services/http/google/google.service.mjs +6 -6
  210. package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
  211. package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +4 -4
  212. package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +4 -4
  213. package/esm2022/src/lib/services/http/holding/holding.service.mjs +7 -7
  214. package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -6
  215. package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +8 -8
  216. package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +6 -6
  217. package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +9 -8
  218. package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +6 -6
  219. package/esm2022/src/lib/services/http/loan/loan.service.mjs +6 -6
  220. package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +6 -6
  221. package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +4 -4
  222. package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +4 -4
  223. package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
  224. package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +4 -4
  225. package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
  226. package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +6 -6
  227. package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +6 -6
  228. package/esm2022/src/lib/services/http/property/property.service.mjs +7 -6
  229. package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +6 -6
  230. package/esm2022/src/lib/services/http/rest/rest.service.mjs +12 -7
  231. package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +6 -6
  232. package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +4 -4
  233. package/esm2022/src/lib/services/http/sole/bas-report/bas-report-messages.enum.mjs +8 -0
  234. package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
  235. package/esm2022/src/lib/services/http/sole/bas-report/index.mjs +3 -0
  236. package/esm2022/src/lib/services/http/sole/index.mjs +2 -2
  237. package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +10 -14
  238. package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
  239. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
  240. package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -9
  241. package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
  242. package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +6 -6
  243. package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -6
  244. package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +6 -6
  245. package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
  246. package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
  247. package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +6 -6
  248. package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
  249. package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
  250. package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +6 -6
  251. package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +6 -6
  252. package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +6 -6
  253. package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +6 -6
  254. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
  255. package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +6 -6
  256. package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -6
  257. package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +6 -6
  258. package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
  259. package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
  260. package/esm2022/src/lib/services/http/user/user.service.mjs +6 -6
  261. package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
  262. package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +6 -6
  263. package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +19 -8
  264. package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +6 -5
  265. package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
  266. package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
  267. package/esm2022/src/lib/services/index.mjs +2 -1
  268. package/esm2022/src/lib/services/intercom/intercom.service.mjs +6 -6
  269. package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +5 -5
  270. package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +5 -5
  271. package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +5 -5
  272. package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +5 -5
  273. package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +5 -5
  274. package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
  275. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
  276. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +4 -4
  277. package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
  278. package/esm2022/src/lib/services/preloader/preloader.service.mjs +5 -5
  279. package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +6 -6
  280. package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +6 -6
  281. package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +4 -4
  282. package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +17 -12
  283. package/esm2022/src/lib/services/toast/toast.service.mjs +4 -4
  284. package/esm2022/src/lib/services/user/user-switcher.service.mjs +4 -4
  285. package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +4 -4
  286. package/esm2022/src/lib/validators/date-range.validator.mjs +1 -1
  287. package/esm2022/src/lib/validators/fields-sum.validator.mjs +1 -1
  288. package/esm2022/src/lib/validators/greater-than.validator.mjs +1 -1
  289. package/esm2022/src/lib/validators/index.mjs +3 -1
  290. package/esm2022/src/lib/validators/match-sum.validator.mjs +16 -0
  291. package/esm2022/src/lib/validators/string/alpha-space.validator.mjs +10 -0
  292. package/esm2022/src/lib/validators/unique-email.validator.mjs +5 -5
  293. package/fesm2022/taxtank-core-common.mjs +36 -27
  294. package/fesm2022/taxtank-core-common.mjs.map +1 -1
  295. package/fesm2022/taxtank-core.mjs +1545 -870
  296. package/fesm2022/taxtank-core.mjs.map +1 -1
  297. package/package.json +1 -1
  298. package/public-api.d.ts +1 -2
  299. package/src/lib/collections/bank-transaction.collection.d.ts +3 -2
  300. package/src/lib/collections/chat/chat.collection.d.ts +1 -5
  301. package/src/lib/collections/client-movement.collection.d.ts +2 -2
  302. package/src/lib/collections/client.collection.d.ts +1 -1
  303. package/src/lib/collections/collection-dictionary.d.ts +1 -0
  304. package/src/lib/collections/collection.d.ts +5 -1
  305. package/src/lib/collections/firm/employee-invite.collection.d.ts +5 -0
  306. package/src/lib/collections/firm/employee.collection.d.ts +6 -0
  307. package/src/lib/collections/firm/index.d.ts +2 -0
  308. package/src/lib/collections/income-source/income-source.collection.d.ts +1 -1
  309. package/src/lib/collections/index.d.ts +2 -1
  310. package/src/lib/collections/property/property-valuation.collection.d.ts +4 -0
  311. package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +2 -2
  312. package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts +3 -3
  313. package/src/lib/collections/report/property/property-report-item.collection.d.ts +1 -1
  314. package/src/lib/collections/tax-review.collection.d.ts +0 -4
  315. package/src/lib/collections/transaction/transaction.collection.d.ts +1 -0
  316. package/src/lib/collections/user/user.collection.d.ts +4 -0
  317. package/src/lib/collections/vehicle/vehicle-logbook.collection.d.ts +6 -0
  318. package/src/lib/core.module.d.ts +2 -1
  319. package/src/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -0
  320. package/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.d.ts +1 -1
  321. package/src/lib/db/Enums/firm/employee-invite-role.enum.d.ts +4 -0
  322. package/src/lib/db/Enums/firm/index.d.ts +2 -0
  323. package/src/lib/db/Enums/holding/holding-type-exchange-list.enum.d.ts +5 -4
  324. package/src/lib/db/Enums/index.d.ts +2 -0
  325. package/src/lib/db/Enums/user/gender.enum.d.ts +12 -0
  326. package/src/lib/db/Enums/user/index.d.ts +1 -0
  327. package/src/lib/db/Models/bank/bank-connection.d.ts +1 -0
  328. package/src/lib/db/Models/client/annual-client-details.d.ts +0 -1
  329. package/src/lib/db/Models/client/client-details.d.ts +1 -0
  330. package/src/lib/db/Models/firm/accountant/tax-review.d.ts +2 -0
  331. package/src/lib/db/Models/firm/chat.d.ts +2 -0
  332. package/src/lib/db/Models/firm/client-invite.d.ts +5 -2
  333. package/src/lib/db/Models/firm/client-movement.d.ts +2 -2
  334. package/src/lib/db/Models/firm/employee-invite.d.ts +4 -2
  335. package/src/lib/db/Models/firm/firm.d.ts +1 -1
  336. package/src/lib/db/Models/firm/message-document.d.ts +2 -6
  337. package/src/lib/db/Models/incomeSource/income-source-forecast.d.ts +2 -1
  338. package/src/lib/db/Models/incomeSource/income-source.d.ts +1 -1
  339. package/src/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -0
  340. package/src/lib/db/Models/property/property-forecast.d.ts +1 -0
  341. package/src/lib/db/Models/sole/sole-business-loss.d.ts +1 -0
  342. package/src/lib/db/Models/sole/sole-business.d.ts +2 -2
  343. package/src/lib/db/Models/sole/sole-forecast.d.ts +1 -0
  344. package/src/lib/db/Models/user/employee-details.d.ts +2 -0
  345. package/src/lib/db/Models/user/user.d.ts +2 -0
  346. package/src/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
  347. package/src/lib/forms/abstract.form.d.ts +14 -7
  348. package/src/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +1 -1
  349. package/src/lib/forms/chat/chat-filter.form.d.ts +18 -0
  350. package/src/lib/forms/chat/index.d.ts +1 -0
  351. package/src/lib/forms/client/capital-loss.form.d.ts +6 -0
  352. package/src/lib/forms/client/index.d.ts +1 -0
  353. package/src/lib/forms/collection.form.d.ts +14 -0
  354. package/src/lib/forms/firm/client-invite-put.form.d.ts +11 -0
  355. package/src/lib/forms/firm/client-invite.form.d.ts +15 -0
  356. package/src/lib/forms/firm/client-movement.form.d.ts +14 -0
  357. package/src/lib/forms/firm/employee-details.form.d.ts +14 -0
  358. package/src/lib/forms/firm/employee-invite.form.d.ts +17 -0
  359. package/src/lib/forms/firm/firm-branch.form.d.ts +5 -0
  360. package/src/lib/forms/firm/firm-invite.form.d.ts +15 -0
  361. package/src/lib/forms/firm/index.d.ts +7 -0
  362. package/src/lib/forms/holding/holding-reinvest.form.d.ts +7 -0
  363. package/src/lib/forms/index.d.ts +3 -0
  364. package/src/lib/forms/loan/loan.form.d.ts +2 -2
  365. package/src/lib/forms/register/register-client.form.d.ts +1 -1
  366. package/src/lib/forms/register/register-firm.form.d.ts +2 -2
  367. package/src/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
  368. package/src/lib/forms/report/my-tax/my-tax-rent.form.d.ts +1 -1
  369. package/src/lib/forms/tax-review/index.d.ts +2 -0
  370. package/src/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
  371. package/src/lib/forms/tax-review/tax-review-filter.form.d.ts +21 -0
  372. package/src/lib/forms/transaction/holding/holding-income.form.d.ts +8 -1
  373. package/src/lib/forms/transaction/index.d.ts +1 -0
  374. package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +19 -0
  375. package/src/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
  376. package/src/lib/forms/user/user.form.d.ts +15 -3
  377. package/src/lib/forms/vehicle/vehicle-claim.form.d.ts +0 -2
  378. package/src/lib/models/bank/bank-connection.d.ts +8 -0
  379. package/src/lib/models/chat/chat.d.ts +3 -1
  380. package/src/lib/models/chat/message-document.d.ts +4 -4
  381. package/src/lib/models/client/annual-client-details.d.ts +0 -1
  382. package/src/lib/models/client/capital-loss.d.ts +9 -0
  383. package/src/lib/models/client/capital-loss.interface.d.ts +6 -0
  384. package/src/lib/models/client/client-details.d.ts +8 -0
  385. package/src/lib/models/client/client-invite.d.ts +3 -2
  386. package/src/lib/models/client/client-movement.d.ts +3 -2
  387. package/src/lib/models/client/index.d.ts +2 -0
  388. package/src/lib/models/employee/employee-details.d.ts +3 -1
  389. package/src/lib/models/employee/employee-invite.d.ts +7 -1
  390. package/src/lib/models/event/app-event-type.enum.d.ts +19 -20
  391. package/src/lib/models/file/file.d.ts +1 -0
  392. package/src/lib/models/firm/firm-branch.d.ts +12 -0
  393. package/src/lib/models/firm/firm-branch.interface.d.ts +7 -0
  394. package/src/lib/models/firm/index.d.ts +2 -0
  395. package/src/lib/models/holding/holding.d.ts +0 -1
  396. package/src/lib/models/index.d.ts +1 -0
  397. package/src/lib/models/property/property-equity-chart-data.d.ts +7 -7
  398. package/src/lib/models/property/property-forecast.d.ts +0 -4
  399. package/src/lib/models/registration-invite/registration-invite.d.ts +2 -0
  400. package/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
  401. package/src/lib/models/report/property/property-report-item-transaction.d.ts +3 -3
  402. package/src/lib/models/tax-review/tax-review.d.ts +5 -1
  403. package/src/lib/models/user/user.d.ts +2 -3
  404. package/src/lib/models/vehicle/vehicle-claim-details.d.ts +1 -1
  405. package/src/lib/services/firm/current-firm-branch.service.d.ts +11 -0
  406. package/src/lib/services/firm/index.d.ts +1 -0
  407. package/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts +5 -2
  408. package/src/lib/services/http/bank/basiq/basiq.service.d.ts +8 -0
  409. package/src/lib/services/http/chat/message.service.d.ts +2 -0
  410. package/src/lib/services/http/client/{capital-gain/annual-client-details.service.d.ts → annual-client-details.service.d.ts} +4 -4
  411. package/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.d.ts +5 -0
  412. package/src/lib/services/http/client/capital-loss/capital-loss.service.d.ts +12 -0
  413. package/src/lib/services/http/client/capital-loss/index.d.ts +2 -0
  414. package/src/lib/services/http/client/index.d.ts +2 -1
  415. package/src/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts +1 -1
  416. package/src/lib/services/http/firm/client-invite/client-invite.service.d.ts +0 -1
  417. package/src/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
  418. package/src/lib/services/http/firm/client-movement/client-movement.service.d.ts +2 -1
  419. package/src/lib/services/http/firm/client-movement/index.d.ts +1 -0
  420. package/src/lib/services/http/firm/employee/employee-messages.enum.d.ts +2 -1
  421. package/src/lib/services/http/firm/employee/employee.service.d.ts +4 -3
  422. package/src/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +3 -3
  423. package/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.d.ts +7 -0
  424. package/src/lib/services/http/firm/firm-branch/firm-branch.service.d.ts +13 -0
  425. package/src/lib/services/http/firm/firm-branch/index.d.ts +2 -0
  426. package/src/lib/services/http/firm/firm.service.d.ts +2 -2
  427. package/src/lib/services/http/firm/index.d.ts +1 -0
  428. package/src/lib/services/http/holding/holding-sale.service.d.ts +1 -2
  429. package/src/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -2
  430. package/src/lib/services/http/rest/rest.service.d.ts +5 -0
  431. package/src/lib/services/http/sole/bas-report/bas-report-messages.enum.d.ts +6 -0
  432. package/src/lib/services/http/sole/bas-report/index.d.ts +2 -0
  433. package/src/lib/services/http/sole/index.d.ts +1 -1
  434. package/src/lib/services/http/sole/sole-business/sole-business.service.d.ts +7 -5
  435. package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -1
  436. package/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
  437. package/src/lib/services/index.d.ts +1 -0
  438. package/src/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
  439. package/src/lib/validators/index.d.ts +2 -0
  440. package/src/lib/validators/match-sum.validator.d.ts +6 -0
  441. package/src/lib/validators/string/alpha-space.validator.d.ts +5 -0
  442. package/esm2022/src/lib/collections/employee.collection.mjs +0 -11
  443. package/esm2022/src/lib/db/Enums/firm-type.enum.mjs +0 -6
  444. package/esm2022/src/lib/functions/tax-review-filter-predicate.mjs +0 -10
  445. package/esm2022/src/lib/services/http/client/capital-gain/annual-client-details.service.mjs +0 -23
  446. package/esm2022/src/lib/validators/transactions-meta-fields.validator.mjs +0 -33
  447. package/src/lib/collections/employee.collection.d.ts +0 -6
  448. package/src/lib/functions/tax-review-filter-predicate.d.ts +0 -7
  449. package/src/lib/validators/transactions-meta-fields.validator.d.ts +0 -5
  450. /package/src/lib/db/Enums/{firm-type.enum.d.ts → firm/firm-type.enum.d.ts} +0 -0
@@ -20,7 +20,8 @@ export class SoleInvoiceForm extends AbstractForm {
20
20
  payer: new UntypedFormControl(invoice.payer, Validators.required),
21
21
  taxType: new UntypedFormControl(invoice.taxType, Validators.required),
22
22
  bankAccount: new UntypedFormControl(invoice.bankAccount, Validators.required),
23
- reference: new UntypedFormControl(invoice.reference)
23
+ reference: new UntypedFormControl(invoice.reference),
24
+ number: new UntypedFormControl(invoice.number, [Validators.required]),
24
25
  }),
25
26
  items: new UntypedFormArray((invoice.items || [plainToClass(SoleInvoiceItem, {})])
26
27
  .map((item) => new SoleInvoiceItemForm(item))),
@@ -154,4 +155,4 @@ export class SoleInvoiceForm extends AbstractForm {
154
155
  return this.createModelInstance(Object.assign({}, this.model, { ...formRawValue.commonData, items: formRawValue.items }));
155
156
  }
156
157
  }
157
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0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FcIiBmaWVsZCwgd2hpY2ggaXMgbm90IGluIHRoZSBjbGFzc1xuICAgKi9cbiAgZ2V0IGN1cnJlbnRWYWx1ZSgpOiBTb2xlSW52b2ljZSB7XG4gICAgY29uc3QgZm9ybVJhd1ZhbHVlOiBhbnkgPSB0aGlzLmdldFJhd1ZhbHVlKCk7XG5cbiAgICByZXR1cm4gdGhpcy5jcmVhdGVNb2RlbEluc3RhbmNlKE9iamVjdC5hc3NpZ24oXG4gICAgICB7fSxcbiAgICAgIHRoaXMubW9kZWwsXG4gICAgICB7IC4uLmZvcm1SYXdWYWx1ZS5jb21tb25EYXRhLCBpdGVtczogZm9ybVJhd1ZhbHVlLml0ZW1zIH1cbiAgICApKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,3 @@
1
+ export * from './tax-review-filter.form';
2
+ export * from './tax-review-filter-status.enum';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdGF4LXJldmlldy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RheC1yZXZpZXctZmlsdGVyLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi90YXgtcmV2aWV3LWZpbHRlci1zdGF0dXMuZW51bSc7XG4iXX0=
@@ -0,0 +1,6 @@
1
+ export var TaxReviewFilterStatusEnum;
2
+ (function (TaxReviewFilterStatusEnum) {
3
+ TaxReviewFilterStatusEnum[TaxReviewFilterStatusEnum["ACTIVE"] = 1] = "ACTIVE";
4
+ TaxReviewFilterStatusEnum[TaxReviewFilterStatusEnum["INACTIVE"] = 2] = "INACTIVE";
5
+ })(TaxReviewFilterStatusEnum || (TaxReviewFilterStatusEnum = {}));
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXItc3RhdHVzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdGF4LXJldmlldy90YXgtcmV2aWV3LWZpbHRlci1zdGF0dXMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSx5QkFHWDtBQUhELFdBQVkseUJBQXlCO0lBQ25DLDZFQUFVLENBQUE7SUFDVixpRkFBWSxDQUFBO0FBQ2QsQ0FBQyxFQUhXLHlCQUF5QixLQUF6Qix5QkFBeUIsUUFHcEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBUYXhSZXZpZXdGaWx0ZXJTdGF0dXNFbnVtIHtcbiAgQUNUSVZFID0gMSxcbiAgSU5BQ1RJVkUgPSAyXG59XG4iXX0=
@@ -0,0 +1,49 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { TaxReviewFilterStatusEnum } from './tax-review-filter-status.enum';
3
+ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
4
+ import { ReplaySubject } from 'rxjs';
5
+ export class TaxReviewFilterForm extends FormGroup {
6
+ constructor(collection) {
7
+ super({
8
+ query: new FormControl(),
9
+ dateFrom: new FormControl(),
10
+ dateTo: new FormControl(),
11
+ status: new FormControl(TaxReviewFilterStatusEnum.ACTIVE),
12
+ });
13
+ this.collection = collection;
14
+ this.dataChanges = new ReplaySubject(1);
15
+ this.listenEvents();
16
+ this.updateValueAndValidity();
17
+ }
18
+ listenEvents() {
19
+ this.valueChanges.pipe(debounceTime(300), distinctUntilChanged())
20
+ .subscribe(() => {
21
+ this.filter();
22
+ });
23
+ }
24
+ filter(source) {
25
+ if (source) {
26
+ this.collection = source;
27
+ }
28
+ const value = this.value;
29
+ let collection = this.collection;
30
+ if (value.query) {
31
+ collection = collection.filter(taxReview => taxReview.client.fullName.toLowerCase().includes(value.query)
32
+ || taxReview.employee.fullName.toLowerCase().includes(value.query));
33
+ }
34
+ if (value.dateFrom) {
35
+ collection = collection.filter(taxReview => taxReview.createdAt >= value.dateFrom);
36
+ }
37
+ if (value.dateTo) {
38
+ collection = collection.filter(taxReview => taxReview.createdAt <= value.dateTo);
39
+ }
40
+ if (value.status === TaxReviewFilterStatusEnum.ACTIVE) {
41
+ collection = collection.filter(taxReview => taxReview.isActive());
42
+ }
43
+ if (value.status === TaxReviewFilterStatusEnum.INACTIVE) {
44
+ collection = collection.filter(taxReview => taxReview.isInactive());
45
+ }
46
+ this.dataChanges.next(collection.toArray());
47
+ }
48
+ }
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90YXgtcmV2aWV3L3RheC1yZXZpZXctZmlsdGVyLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUl4RCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsWUFBWSxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQVVyQyxNQUFNLE9BQ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8 @@
1
1
  import { UntypedFormControl, Validators } from '@angular/forms';
2
- import { autocompleteValidator } from '../../../validators';
2
+ import { autocompleteValidator, conditionalValidator, matchSumValidator } from '../../../validators';
3
3
  import { TransactionOperationEnum } from '../../../db/Enums/transaction-operation.enum';
4
4
  import { WorkTransactionForm } from '../work/work-transaction.form';
5
+ import { ChartAccountsMetaFieldListEnum } from '../../../db/Enums';
5
6
  export class HoldingIncomeForm extends WorkTransactionForm {
6
7
  /**
7
8
  * @TODO vik partial copyPast from workIncomeForm
@@ -11,6 +12,8 @@ export class HoldingIncomeForm extends WorkTransactionForm {
11
12
  tax: new UntypedFormControl(transaction.tax, Validators.required),
12
13
  incomeSource: new UntypedFormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
13
14
  });
15
+ // transactionAmount=frankedAmount + unfrankedAmount
16
+ this.get('amount').setValidators(conditionalValidator(() => this.get('chartAccounts').value && this.get('chartAccounts').value.isDividends(), matchSumValidator(this.getAmountComponents)));
14
17
  // forbid to edit some fields for allocated transaction
15
18
  if (allocations.length) {
16
19
  this.get('chartAccounts').disable();
@@ -21,14 +24,26 @@ export class HoldingIncomeForm extends WorkTransactionForm {
21
24
  this.get('amount').disable();
22
25
  }
23
26
  }
27
+ /**
28
+ * metafields components of transactionAmount
29
+ */
30
+ getAmountComponents() {
31
+ return this.metaFields.controls.filter((formGroup) => [ChartAccountsMetaFieldListEnum.FRANKED, ChartAccountsMetaFieldListEnum.UNFRANKED].includes(formGroup.get('chartAccountsMetaField').value.id)).map(formGroup => formGroup.get('value'));
32
+ }
24
33
  listenEvents() {
25
34
  this.listenChartAccountsChanges();
26
35
  }
36
+ get metaFields() {
37
+ return this.get('metaFields');
38
+ }
39
+ get frankingCredit() {
40
+ return this.metaFields.controls.find((group) => group.get('chartAccountsMetaField').value.isFrankingCredit())?.get('value');
41
+ }
27
42
  /**
28
43
  * @TODO Alex/Vik: probably we need some database changes related to metafields.
29
44
  * Now we have the following custom metafields behaviour:
30
45
  * - % of share field should be 100 by default (now handled by WorkTransactionForm)
31
- * - Franked and Unfranked sum should be equal to transaction amount (now handled by transactionsMetaFieldsValidator())
46
+ * - Franked and Unfranked sum should be equal to transaction amount
32
47
  * - Franked field has custom message (mat-hint) (now handled by HoldingIncomeFormComponent)
33
48
  * - some metafields required, but some not (now handled by HoldingIncomeForm)
34
49
  */
@@ -37,13 +52,8 @@ export class HoldingIncomeForm extends WorkTransactionForm {
37
52
  if (!chartAccounts.isDividends()) {
38
53
  return;
39
54
  }
40
- this.get('metaFields').controls.forEach((metaFieldGroup) => {
41
- if (metaFieldGroup.get('chartAccountsMetaField').value.isFrankingCredit()) {
42
- return;
43
- }
44
- metaFieldGroup.get('value').setValidators(Validators.required);
45
- });
55
+ this.frankingCredit.setValidators(Validators.required);
46
56
  });
47
57
  }
48
58
  }
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi9ob2xkaW5nL2hvbGRpbmctaW5jb21lLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUF3QixrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV0RixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztBQUN4RixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUVwRSxNQUFNLE9BQU8saUJBQWtCLFNBQVEsbUJBQW1CO0lBQ3hEOztPQUVHO0lBQ0gsWUF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lZCBieSBXb3JrVHJhbnNhY3Rpb25Gb3JtKVxuICAgKiAtIEZyYW5rZWQgYW5kIFVuZnJhbmtlZCBzdW0gc2hvdWxkIGJlIGVxdWFsIHRvIHRyYW5zYWN0aW9uIGFtb3VudFxuICAgKiAtIEZyYW5rZWQgZmllbGQgaGFzIGN1c3RvbSBtZXNzYWdlIChtYXQtaGludCkgKG5vdyBoYW5kbGVkIGJ5IEhvbGRpbmdJbmNvbWVGb3JtQ29tcG9uZW50KVxuICAgKiAtIHNvbWUgbWV0YWZpZWxkcyByZXF1aXJlZCwgYnV0IHNvbWUgbm90IChub3cgaGFuZGxlZCBieSBIb2xkaW5nSW5jb21lRm9ybSlcbiAgICovXG4gIHByaXZhdGUgbGlzdGVuQ2hhcnRBY2NvdW50c0NoYW5nZXMoKTogdm9pZCB7XG4gICAgdGhpcy5nZXQoJ2NoYXJ0QWNjb3VudHMnKS52YWx1ZUNoYW5nZXMuc3Vic2NyaWJlKChjaGFydEFjY291bnRzOiBDaGFydEFjY291bnRzKSA9PiB7XG4gICAgICBpZiAoIWNoYXJ0QWNjb3VudHMuaXNEaXZpZGVuZHMoKSkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIHRoaXMuZnJhbmtpbmdDcmVkaXQuc2V0VmFsaWRhdG9ycyhWYWxpZGF0b3JzLnJlcXVpcmVkKTtcbiAgICB9KVxuICB9XG59XG4iXX0=
@@ -5,4 +5,5 @@ export * from './sole/sole-income.form';
5
5
  export * from './work/work-income.form';
6
6
  export * from './work/work-expense.form';
7
7
  export * from './holding/holding-income.form';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWxsb2NhdGlvbi1ydWxlLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbi1iYXNlLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbi5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vc29sZS9zb2xlLWluY29tZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vd29yay93b3JrLWluY29tZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vd29yay93b3JrLWV4cGVuc2UuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmcvaG9sZGluZy1pbmNvbWUuZm9ybSc7XG5cbiJdfQ==
8
+ export * from './transaction-base-filter.form';
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbGxvY2F0aW9uLXJ1bGUuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uLWJhc2UuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9zb2xlL3NvbGUtaW5jb21lLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi93b3JrL3dvcmstaW5jb21lLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi93b3JrL3dvcmstZXhwZW5zZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy9ob2xkaW5nLWluY29tZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybSc7XG4iXX0=
@@ -14,4 +14,4 @@ export class SoleIncomeForm extends SoleTransactionForm {
14
14
  }
15
15
  }
16
16
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi9zb2xlL3NvbGUtaW5jb21lLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDeEYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFOUQsTUFBTSxPQUFPLGNBQWUsU0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cih0cmFuc2FjdGlvbjogVHJhbnNhY3Rpb24sIGFsbG9jYXRpb25zOiBUcmFuc2FjdGlvbkFsbG9jYXRpb25bXSwgcmVnaXN0ZXJlZEZvckdzdDogYm9vbGVhbikge1xuXG4gICAgc3VwZXIodHJhbnNhY3Rpb24sIHJlZ2lzdGVyZWRGb3JHc3QsIGFsbG9jYXRpb25zLCB7fSk7XG5cbiAgICAvLyBAVE9ETyBBbGV4OiBjb3B5cGFzdGVkIGZyb20gd29yayBpbmNvbWUgZm9ybVxuXG4gICAgLy8gZm9yYmlkIHRvIGVkaXQgc29tZSBmaWVsZHMgZm9yIGFsbG9jYXRlZCB0cmFuc2FjdGlvblxuICAgIGlmIChhbGxvY2F0aW9ucy5sZW5ndGgpIHtcbiAgICAgIHRoaXMuZ2V0KCdjaGFydEFjY291bnRzJykuZGlzYWJsZSgpO1xuICAgIH1cblxuICAgIC8vIGFtb3VudCBjaGFuZ2VzIGFyZSBub3QgYXZhaWxhYmxlIGZvciB0cmFuc2FjdGlvbnMgd2l0aCBhbGxvY2F0aW9ucyBvciBkdXJpbmcgYWxsb2NhdGUgcHJvY2Vzc1xuICAgIGlmIChhbGxvY2F0aW9ucy5sZW5ndGggfHwgdHJhbnNhY3Rpb24ub3BlcmF0aW9uID09PSBUcmFuc2FjdGlvbk9wZXJhdGlvbkVudW0uQUxMT0NBVEUpIHtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnQnKS5kaXNhYmxlKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -0,0 +1,35 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
3
+ export class TransactionBaseFilterForm extends FormGroup {
4
+ constructor(tankType, business) {
5
+ super({
6
+ tankType: new FormControl(tankType),
7
+ business: new FormControl({ value: business, disabled: true }),
8
+ dateFrom: new FormControl(),
9
+ dateTo: new FormControl(),
10
+ });
11
+ this.listenEvents();
12
+ }
13
+ listenEvents() {
14
+ this.get('tankType').valueChanges.subscribe(tankType => {
15
+ tankType === TankTypeEnum.SOLE ? this.get('business').enable() : this.get('business').disable();
16
+ });
17
+ }
18
+ filter(collection) {
19
+ const value = this.value;
20
+ if (value.dateFrom) {
21
+ collection = collection.filter(transaction => transaction.date >= value.dateFrom);
22
+ }
23
+ if (value.dateTo) {
24
+ collection = collection.filter(transaction => transaction.date <= value.dateTo);
25
+ }
26
+ if (value.tankType) {
27
+ collection = collection.filterBy('tankType', value.tankType);
28
+ }
29
+ if (value.business) {
30
+ collection = collection.filterBy('business.id', value.business.id);
31
+ }
32
+ return collection;
33
+ }
34
+ }
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1iYXNlLWZpbHRlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBWTdELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxTQUF5QztJQUN0RixZQUFZLFFBQXVCLEVBQUUsUUFBdUI7UUFDMUQsS0FBSyxDQUFDO1lBQ0osUUFBUSxFQUFFLElBQUksV0FBVyxDQUFDLFFBQVEsQ0FBQztZQUNuQyxRQUFRLEVBQUUsSUFBSSxXQUFXLENBQUMsRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUUsQ0FBQztZQUM5RCxRQUFRLEVBQUUsSUFB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oaXMudmFsdWU7XG5cbiAgICBpZiAodmFsdWUuZGF0ZUZyb20pIHtcbiAgICAgIGNvbGxlY3Rpb24gPSBjb2xsZWN0aW9uLmZpbHRlcih0cmFuc2FjdGlvbiA9PiB0cmFuc2FjdGlvbi5kYXRlID49IHZhbHVlLmRhdGVGcm9tKTtcbiAgICB9XG4gICAgaWYgKHZhbHVlLmRhdGVUbykge1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyKHRyYW5zYWN0aW9uID0+IHRyYW5zYWN0aW9uLmRhdGUgPD0gdmFsdWUuZGF0ZVRvKTtcbiAgICB9XG4gICAgaWYgKHZhbHVlLnRhbmtUeXBlKSB7XG4gICAgICBjb2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXJCeSgndGFua1R5cGUnLCB2YWx1ZS50YW5rVHlwZSk7XG4gICAgfVxuICAgIGlmICh2YWx1ZS5idXNpbmVzcykge1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyQnkoJ2J1c2luZXNzLmlkJywgdmFsdWUuYnVzaW5lc3MuaWQpO1xuICAgIH1cblxuICAgIHJldHVybiBjb2xsZWN0aW9uO1xuICB9XG59XG4iXX0=
@@ -59,4 +59,4 @@ export class TransactionForm extends TransactionBaseForm {
59
59
  return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }), true);
60
60
  }
61
61
  }
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQ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WQnXSkgfHwge30sXG4gICAgICBjaGlsZFRyYW5zYWN0aW9uLFxuICAgICkpO1xuICB9XG5cbiAgc3VibWl0KGRhdGE6IG9iamVjdCA9IHt9KTogVHJhbnNhY3Rpb24ge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoT2JqZWN0LmFzc2lnbihkYXRhLCB7IHRyYW5zYWN0aW9uczogdGhpcy5idWlsZFRyYW5zYWN0aW9ucyh0aGlzLmN1cnJlbnRWYWx1ZSkgfSksIHRydWUpO1xuICB9XG59XG4iXX0=
@@ -1,6 +1,5 @@
1
1
  import { TransactionForm } from '../transaction.form';
2
2
  import { FormArray, FormControl, FormGroup } from '@angular/forms';
3
- import { transactionsMetaFieldsValidator } from '../../../validators/transactions-meta-fields.validator';
4
3
  export class WorkTransactionForm extends TransactionForm {
5
4
  constructor(transaction, registeredForGst, allocations, controls = {}) {
6
5
  super(transaction, registeredForGst, allocations, Object.assign(controls, {
@@ -10,7 +9,6 @@ export class WorkTransactionForm extends TransactionForm {
10
9
  chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
11
10
  })))
12
11
  }));
13
- this.setValidators(transactionsMetaFieldsValidator());
14
12
  this.listenEvents();
15
13
  }
16
14
  listenEvents() {
@@ -18,7 +16,7 @@ export class WorkTransactionForm extends TransactionForm {
18
16
  }
19
17
  watchChartAccounts() {
20
18
  super.watchChartAccounts();
21
- this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
19
+ this.get('chartAccounts').valueChanges.subscribe(() => {
22
20
  this.buildMetaFieldsForm();
23
21
  });
24
22
  }
@@ -37,4 +35,4 @@ export class WorkTransactionForm extends TransactionForm {
37
35
  });
38
36
  }
39
37
  }
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay10cmFuc2FjdGlvbi5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcH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ZGlmZmVyZW50IGV4dHJhIGZpZWxkc1xuICAgKi9cbiAgcHJpdmF0ZSBidWlsZE1ldGFGaWVsZHNGb3JtKCk6IHZvaWQge1xuICAgIC8vIFJlbW92ZSBhbGwgY29udHJvbHMgaW4gdGhlIEZvcm1BcnJheSBiZWZvcmUgcHVzaGluZ1xuICAgICh0aGlzLmdldCgnbWV0YUZpZWxkcycpIGFzIEZvcm1BcnJheSkuY2xlYXIoKTtcblxuICAgIC8vIGNyZWF0ZSBmb3JtIGNvbnRyb2xzIGZvciBlYWNoIG1ldGFGaWVsZCBvYmplY3QgZnJvbSBzZWxlY3RlZCBjaGFydCBhY2NvdW50c1xuICAgICh0aGlzLmdldCgnY2hhcnRBY2NvdW50cycpLnZhbHVlLm1ldGFGaWVsZHMpLmZvckVhY2goKGNoYXJ0QWNjb3VudHNNZXRhRmllbGQ6IENoYXJ0QWNjb3VudHNNZXRhRmllbGQpOiB2b2lkID0+IHtcbiAgICAgICh0aGlzLmdldCgnbWV0YUZpZWxkcycpIGFzIEZvcm1BcnJheSkucHVzaChcbiAgICAgICAgbmV3IEZvcm1Hcm91cCh7XG4gICAgICAgICAgdmFsdWU6IG5ldyBGb3JtQ29udHJvbChjaGFydEFjY291bnRzTWV0YUZpZWxkLmlzU2hhcmVQZXJjZW50YWdlKCkgPyAxMDAgOiAwKSxcbiAgICAgICAgICBjaGFydEFjY291bnRzTWV0YUZpZWxkOiBuZXcgRm9ybUNvbnRyb2woY2hhcnRBY2NvdW50c01ldGFGaWVsZCksXG4gICAgICAgIH0pXG4gICAgICApO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
38
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay10cmFuc2FjdGlvbi5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3R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EFjY291bnRzTWV0YUZpZWxkOiBDaGFydEFjY291bnRzTWV0YUZpZWxkKTogdm9pZCA9PiB7XG4gICAgICAodGhpcy5nZXQoJ21ldGFGaWVsZHMnKSBhcyBGb3JtQXJyYXkpLnB1c2goXG4gICAgICAgIG5ldyBGb3JtR3JvdXAoe1xuICAgICAgICAgIHZhbHVlOiBuZXcgRm9ybUNvbnRyb2woY2hhcnRBY2NvdW50c01ldGFGaWVsZC5pc1NoYXJlUGVyY2VudGFnZSgpID8gMTAwIDogMCksXG4gICAgICAgICAgY2hhcnRBY2NvdW50c01ldGFGaWVsZDogbmV3IEZvcm1Db250cm9sKGNoYXJ0QWNjb3VudHNNZXRhRmllbGQpLFxuICAgICAgICB9KVxuICAgICAgKTtcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -6,7 +6,7 @@ export class ClientDetailsForm extends AbstractForm {
6
6
  constructor(clientDetails) {
7
7
  super({
8
8
  isAustralianResident: new UntypedFormControl(clientDetails.isAustralianResident),
9
- taxFileNumber: new UntypedFormControl(clientDetails.taxFileNumber),
9
+ taxFileNumber: new UntypedFormControl({ value: clientDetails.taxFileNumber, disabled: !!clientDetails.taxFileNumber }, [Validators.minLength(8), Validators.maxLength(10)]),
10
10
  occupation: new UntypedFormControl(clientDetails.occupation, autocompleteValidator()),
11
11
  medicareExemption: new UntypedFormControl({ value: clientDetails.medicareExemption, disabled: !clientDetails.medicareExemption }, Validators.required),
12
12
  pensionersTax: new UntypedFormControl(clientDetails.pensionersTax),
@@ -31,4 +31,4 @@ export class ClientDetailsForm extends AbstractForm {
31
31
  return super.submit({}, true);
32
32
  }
33
33
  }
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LWRldGFpbHMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3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uYWJsZWQ6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICBjb25zdCBjb250cm9sOiBVbnR5cGVkRm9ybUNvbnRyb2wgPSB0aGlzLmdldCgnbWVkaWNhcmVFeGVtcHRpb24nKSBhcyBVbnR5cGVkRm9ybUNvbnRyb2w7XG5cbiAgICAvLyBAVE9ETyBBbGV4L1ZpazogdGhpbmsgYWJvdXQgRm9ybUNvbnRyb2wgZXh0ZW5zaW9uIGFuZCBpbXBsZW1lbnQgY29udHJvbC50b2dnbGUoKSBtZXRob2RcbiAgICAvLyB0aGVuIHdlIGNhbiBvcHRpbWl6ZSB0aGUgY29kZTpcbiAgICAvLyBjb250cm9sLnNldFZhbHVlKGVuYWJsZWQgPyBudWxsIDogVXNlck1lZGljYXJlRXhlbXB0aW9uRW51bS5OTylcbiAgICAvLyBjb250cm9sLnRvZ2dsZShlbmFibGVkKTtcblxuICAgIGlmIChlbmFibGVkKSB7XG4gICAgICBjb250cm9sLnNldFZhbHVlKG51bGwpO1xuICAgICAgY29udHJvbC5lbmFibGUoKTtcblxuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGNvbnRyb2wuc2V0VmFsdWUoVXNlck1lZGljYXJlRXhlbXB0aW9uRW51bS5OTyk7XG4gICAgY29udHJvbC5kaXNhYmxlKCk7XG4gIH1cblxuICBzdWJtaXQoKTogQ2xpZW50RGV0YWlscyB7XG4gICAgcmV0dXJuIHN1cGVyLnN1Ym1pdCh7fSwgdHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
@@ -2,15 +2,16 @@ import { AbstractForm } from '../abstract.form';
2
2
  import { RegistrationInvite } from '../../models/registration-invite/registration-invite';
3
3
  import { UntypedFormControl, Validators } from '@angular/forms';
4
4
  import { plainToClass } from 'class-transformer';
5
+ import { alphaSpaceValidator } from '../../validators';
5
6
  /**
6
7
  * Form for inviting an unregistered user
7
8
  */
8
9
  export class UserInviteForm extends AbstractForm {
9
10
  constructor() {
10
11
  super({
11
- firstName: new UntypedFormControl(null, Validators.required),
12
+ firstName: new UntypedFormControl(null, [Validators.required, alphaSpaceValidator()]),
12
13
  email: new UntypedFormControl(null, [Validators.required, Validators.email]),
13
14
  }, plainToClass(RegistrationInvite, {}));
14
15
  }
15
16
  }
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1pbnZpdGUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy91c2VyL3VzZXItaW52aXRlLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHNEQUFzRCxDQUFDO0FBQzFGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFakQ7O0dBRUc7QUFDSCxNQUFNLE9BQU8sY0FBZSxTQUFRLFlBQWdDO0lBQ2xFO1FBQ0UsS0FBSyxDQUFDO1lBQ0osU0FBUyxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxFQUFFLFVBQVUsQ0FBQyxRQUFRLENBQUM7WUFDNUQsS0FBSyxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsRUFBRSxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUM7U0FDN0UsRUFDRCxZQUFZLENBQUMsa0JBQWtCLEVBQUUsRUFBRSxDQUFDLENBQ25DLENBQUM7SUFDSixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge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MnO1xuaW1wb3J0IHsgcGxhaW5Ub0NsYXNzIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInO1xuaW1wb3J0IHsgYWxwaGFTcGFjZVZhbGlkYXRvciB9IGZyb20gJy4uLy4uL3ZhbGlkYXRvcnMnO1xuXG4vKipcbiAqIEZvcm0gZm9yIGludml0aW5nIGFuIHVucmVnaXN0ZXJlZCB1c2VyXG4gKi9cbmV4cG9ydCBjbGFzcyBVc2VySW52aXRlRm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxSZWdpc3RyYXRpb25JbnZpdGU+IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZmlyc3ROYW1lOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKG51bGwsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBhbHBoYVNwYWNlVmFsaWRhdG9yKCldKSxcbiAgICAgIGVtYWlsOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKG51bGwsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLmVtYWlsXSksXG4gICAgfSxcbiAgICBwbGFpblRvQ2xhc3MoUmVnaXN0cmF0aW9uSW52aXRlLCB7fSlcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -1,15 +1,18 @@
1
- import { UntypedFormControl, Validators } from '@angular/forms';
1
+ import { FormControl, Validators } from '@angular/forms';
2
2
  import { AbstractForm } from '../abstract.form';
3
+ import { alphaSpaceValidator } from '../../validators';
3
4
  export class UserForm extends AbstractForm {
4
5
  constructor(user) {
5
6
  super({
6
- title: new UntypedFormControl(user.title),
7
- firstName: new UntypedFormControl(user.firstName, Validators.required),
8
- lastName: new UntypedFormControl(user.lastName, Validators.required),
9
- address: new UntypedFormControl(user.address),
10
- phone: new UntypedFormControl(user.phone),
11
- file: new UntypedFormControl(user.file)
7
+ title: new FormControl(user.title),
8
+ firstName: new FormControl(user.firstName, [Validators.required, alphaSpaceValidator()]),
9
+ lastName: new FormControl(user.lastName, [Validators.required, alphaSpaceValidator()]),
10
+ address: new FormControl(user.address),
11
+ phone: new FormControl(user.phone),
12
+ file: new FormControl(user.file),
13
+ dateOfBirth: new FormControl(user.dateOfBirth),
14
+ gender: new FormControl(user.gender),
12
15
  }, user);
13
16
  }
14
17
  }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3VzZXIvdXNlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFaEQsTUFBTSxPQUFPLFFBQVMsU0FBUSxZQUFrQjtJQUM5QyxZQUFZLElBQVU7UUFDcEIsS0FBSyxDQUFDO1lBQ0osS0FBSyxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztZQUN6QyxTQUFTLEVBQUUsSUFBSSxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLFVBQVUsQ0FBQyxRQUFRLENBQUM7WUFDdEUsUUFBUSxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1lBQ3BFLE9BQU8sRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7WUFDN0MsS0FBSyxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztZQUN6QyxJQUFJLEVBQUUsSUFBSSxr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iAgICAgIHRpdGxlOiBuZXcgRm9ybUNvbnRyb2wodXNlci50aXRsZSksXG4gICAgICBmaXJzdE5hbWU6IG5ldyBGb3JtQ29udHJvbCh1c2VyLmZpcnN0TmFtZSwgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIGFscGhhU3BhY2VWYWxpZGF0b3IoKV0pLFxuICAgICAgbGFzdE5hbWU6IG5ldyBGb3JtQ29udHJvbCh1c2VyLmxhc3ROYW1lLCBbVmFsaWRhdG9ycy5yZXF1aXJlZCwgYWxwaGFTcGFjZVZhbGlkYXRvcigpXSksXG4gICAgICBhZGRyZXNzOiBuZXcgRm9ybUNvbnRyb2wodXNlci5hZGRyZXNzKSxcbiAgICAgIHBob25lOiBuZXcgRm9ybUNvbnRyb2wodXNlci5waG9uZSksXG4gICAgICBmaWxlOiBuZXcgRm9ybUNvbnRyb2wodXNlci5maWxlKSxcbiAgICAgIGRhdGVPZkJpcnRoOiBuZXcgRm9ybUNvbnRyb2wodXNlci5kYXRlT2ZCaXJ0aCksXG4gICAgICBnZW5kZXI6IG5ldyBGb3JtQ29udHJvbCh1c2VyLmdlbmRlciksXG4gICAgfSwgdXNlcik7XG4gIH1cbn1cbiJdfQ==
@@ -14,4 +14,4 @@ export class VehicleClaimDetailsForm extends AbstractForm {
14
14
  }, vehicleClaimDetails);
15
15
  }
16
16
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS1kZXRhaWxzLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdmVoaWNsZS92ZWhpY2xlLWNsYWltLWRldGFpbHMuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUF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@ -20,11 +20,9 @@ export class VehicleClaimForm extends AbstractForm {
20
20
  disabled: !details.isManual || details.isKmsMethod()
21
21
  })
22
22
  }, vehicleClaim);
23
- this.vehicleClaim = vehicleClaim;
24
- this.details = details;
25
23
  }
26
24
  getAverageWeeklyKMS() {
27
25
  return this.get('kilometers').value / FinancialYear.weeksInYear;
28
26
  }
29
27
  }
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3ZlaGljbGUvdmVoaWNsZS1jbGFpbS5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVwRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRTdDOztHQUVHO0FBQ0gsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFlBQTBCO0lBQzlEOzs7T0FHRztJQUNILFlBQ1UsWUFBMEIsRUFDMUIsT0FBNEI7UUFFcEMsS0FBSyxDQUFDO1lBQ0osVUFBVSxFQUFFLElBQUksa0JBQWtCLENBQUM7Z0JBQ2pDLEtBQUssRUFBRSxZQUFZLENBQUMsVUFBVTtnQkFDOUIsUUFBUSxFQUFFLENBQUMsT0FBTyxDQUFDLFFBQVEsSUFBSSxPQUFPLENBQUMsZUFBZSxFQUFFO2FBQ3pELENBQUM7WUFDRixTQUFTLEVBQUUsSUFBSSxrQkFBa0IsQ0FBQztnQkFDaEMsS0FBSyxFQUFFLFlBQVksQ0FBQyxTQUFTO2dCQUM3QixRQU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