@justifi/webcomponents 4.17.0 → 4.18.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 (373) hide show
  1. package/dist/cjs/{Analytics-80336968.js → Analytics-d4aa8c07.js} +1 -1
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -12
  3. package/dist/cjs/business-details-core.cjs.entry.js +6 -9
  4. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  5. package/dist/cjs/form-control-checkbox_5.cjs.entry.js +7 -7
  6. package/dist/cjs/form-control-date.cjs.entry.js +43 -0
  7. package/dist/cjs/form-control-error-text_2.cjs.entry.js +36 -0
  8. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  9. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  10. package/dist/cjs/{form-control-date_3.cjs.entry.js → form-control-number-masked_2.cjs.entry.js} +2 -39
  11. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  12. package/dist/cjs/{form-control-error-text_4.cjs.entry.js → form-control-select_2.cjs.entry.js} +1 -31
  13. package/dist/cjs/get-payout-csv-e4e4771a.js +48 -0
  14. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  15. package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
  16. package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
  17. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +6 -5
  20. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -6
  22. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -6
  23. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -5
  25. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-details.cjs.entry.js +4 -7
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  28. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -7
  29. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -6
  30. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  31. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
  32. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -3
  34. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -2
  35. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -8
  36. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -10
  38. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -12
  39. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -6
  40. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  41. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +13 -8
  42. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -3
  43. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  44. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +4 -7
  45. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +2 -2
  46. package/dist/cjs/justifi-table_2.cjs.entry.js +8 -12
  47. package/dist/cjs/loader.cjs.js +2 -2
  48. package/dist/cjs/{package-7b63c02b.js → package-5fee1ffb.js} +1 -1
  49. package/dist/cjs/{payload-parsers-78445405.js → payload-parsers-1cbc3b57.js} +2 -0
  50. package/dist/cjs/payment-details-core.cjs.entry.js +10 -13
  51. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  52. package/dist/cjs/payout-details-core.cjs.entry.js +18 -7
  53. package/dist/cjs/payouts-list-core.cjs.entry.js +28 -7
  54. package/dist/cjs/styled-host-b8bed12a.js +14 -0
  55. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +6 -22
  56. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -7
  57. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -7
  58. package/dist/cjs/{utils-742da2e3.js → utils-8c3bf659.js} +1 -1
  59. package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
  60. package/dist/cjs/webcomponents.cjs.js +2 -2
  61. package/dist/collection/api/services/payout.service.js +5 -0
  62. package/dist/collection/assets/download-icon.js +2 -0
  63. package/dist/collection/components/billing-form/billing-form.css +2 -8162
  64. package/dist/collection/components/billing-form/billing-form.js +4 -3
  65. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
  66. package/dist/collection/components/business-details/business-details-core.js +5 -14
  67. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
  68. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
  69. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
  70. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  71. package/dist/collection/components/business-details/shared-business-details.css +3 -0
  72. package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
  73. package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
  74. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -2
  75. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +14 -2
  76. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +4 -9155
  77. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
  78. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
  79. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
  80. package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
  81. package/dist/collection/components/business-list/business-list.js +3 -12
  82. package/dist/collection/components/checkout/checkout-core.css +3 -8147
  83. package/dist/collection/components/checkout/checkout-core.js +5 -4
  84. package/dist/collection/components/checkout/form-check-input.css +20 -0
  85. package/dist/collection/components/checkout/header.css +4 -0
  86. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  87. package/dist/collection/components/checkout/payment-method-options.css +1 -7088
  88. package/dist/collection/components/checkout/payment-method-options.js +4 -4
  89. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  90. package/dist/collection/components/checkout/saved-payment-method.js +2 -2
  91. package/dist/collection/components/checkout/sezzle-payment-method.js +2 -2
  92. package/dist/collection/components/details/details.js +3 -12
  93. package/dist/collection/components/form/form-control-monetary.js +1 -1
  94. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  95. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
  96. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
  97. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
  98. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
  99. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
  100. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +3 -13
  101. package/dist/collection/components/payment-details/payment-details-core.js +9 -18
  102. package/dist/collection/components/payment-form/payment-form.css +3 -2513
  103. package/dist/collection/components/payment-form/payment-form.js +6 -5
  104. package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
  105. package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
  106. package/dist/collection/components/payments-list/payments-list-core.js +6 -12
  107. package/dist/collection/components/payments-list/payments-list.js +3 -0
  108. package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
  109. package/dist/collection/components/payout-details/payout-details-core.js +37 -12
  110. package/dist/collection/components/payout-details/payout-details.js +11 -4
  111. package/dist/collection/components/payouts-list/payouts-list-core.js +45 -14
  112. package/dist/collection/components/payouts-list/payouts-list.js +14 -6
  113. package/dist/collection/components/proceeds-list/proceeds-list.js +3 -12
  114. package/dist/collection/components/refund-form/refund-form.css +1 -7737
  115. package/dist/collection/components/refund-form/refund-form.js +4 -3
  116. package/dist/collection/components/skeleton/skeleton.css +1 -573
  117. package/dist/collection/components/skeleton/skeleton.js +2 -2
  118. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -12
  119. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -12
  120. package/dist/collection/components/subaccount-details/subaccount-details.js +3 -12
  121. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -12
  122. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -12
  123. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -12
  124. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -12
  125. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  126. package/dist/collection/components/table/table.css +0 -8085
  127. package/dist/collection/components/table/table.js +3 -4
  128. package/dist/collection/utils/styled-host/styled-host.js +6 -0
  129. package/dist/docs.json +132 -24
  130. package/dist/esm/{Analytics-c52faca6.js → Analytics-29fac206.js} +1 -1
  131. package/dist/esm/additional-questions-details_5.entry.js +12 -12
  132. package/dist/esm/business-details-core.entry.js +6 -9
  133. package/dist/esm/form-alert_5.entry.js +2 -2
  134. package/dist/esm/form-control-checkbox_5.entry.js +7 -7
  135. package/dist/esm/form-control-date.entry.js +39 -0
  136. package/dist/esm/form-control-error-text_2.entry.js +31 -0
  137. package/dist/esm/form-control-file.entry.js +1 -1
  138. package/dist/esm/form-control-monetary.entry.js +2 -2
  139. package/dist/esm/{form-control-date_3.entry.js → form-control-number-masked_2.entry.js} +3 -39
  140. package/dist/esm/form-control-number.entry.js +1 -1
  141. package/dist/esm/{form-control-error-text_4.entry.js → form-control-select_2.entry.js} +2 -30
  142. package/dist/esm/get-payout-csv-9b4aaada.js +45 -0
  143. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  144. package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
  145. package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
  146. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +3 -3
  147. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  148. package/dist/esm/justifi-billing-form_2.entry.js +6 -5
  149. package/dist/esm/justifi-business-details.entry.js +4 -4
  150. package/dist/esm/justifi-business-form.entry.js +7 -6
  151. package/dist/esm/justifi-business-list.entry.js +3 -6
  152. package/dist/esm/justifi-card-form.entry.js +3 -3
  153. package/dist/esm/justifi-checkout-core.entry.js +9 -5
  154. package/dist/esm/justifi-checkout.entry.js +3 -3
  155. package/dist/esm/justifi-details.entry.js +4 -7
  156. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  157. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -7
  158. package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -6
  159. package/dist/esm/justifi-payment-details.entry.js +4 -4
  160. package/dist/esm/justifi-payment-form.entry.js +8 -7
  161. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  162. package/dist/esm/justifi-payment-method-selector.entry.js +3 -3
  163. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -2
  164. package/dist/esm/justifi-payment-provisioning.entry.js +4 -8
  165. package/dist/esm/justifi-payments-list.entry.js +4 -4
  166. package/dist/esm/justifi-payout-details.entry.js +14 -9
  167. package/dist/esm/justifi-payouts-list.entry.js +14 -11
  168. package/dist/esm/justifi-proceeds-list.entry.js +3 -6
  169. package/dist/esm/justifi-refund-form.entry.js +4 -3
  170. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +13 -8
  171. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -3
  172. package/dist/esm/justifi-skeleton.entry.js +3 -3
  173. package/dist/esm/justifi-subaccount-details.entry.js +4 -7
  174. package/dist/esm/justifi-subaccounts-list.entry.js +2 -2
  175. package/dist/esm/justifi-table_2.entry.js +8 -12
  176. package/dist/esm/loader.js +3 -3
  177. package/dist/esm/{package-8ab448a3.js → package-1123f528.js} +1 -1
  178. package/dist/esm/{payload-parsers-57289fc4.js → payload-parsers-acb719d1.js} +2 -0
  179. package/dist/esm/payment-details-core.entry.js +10 -13
  180. package/dist/esm/payments-list-core.entry.js +6 -6
  181. package/dist/esm/payout-details-core.entry.js +18 -7
  182. package/dist/esm/payouts-list-core.entry.js +28 -7
  183. package/dist/esm/styled-host-57aae7fa.js +12 -0
  184. package/dist/esm/subaccount-account-details_4.entry.js +6 -22
  185. package/dist/esm/subaccount-bank-details.entry.js +3 -7
  186. package/dist/esm/subaccount-terms-details.entry.js +3 -7
  187. package/dist/esm/{utils-1e583166.js → utils-56719d07.js} +1 -1
  188. package/dist/esm/{utils-c7b3f21a.js → utils-f4c4ba7d.js} +1 -1
  189. package/dist/esm/webcomponents.js +3 -3
  190. package/dist/module/additional-questions-details2.js +3 -4
  191. package/dist/module/billing-form.js +4 -3
  192. package/dist/module/business-details-core2.js +5 -8
  193. package/dist/module/business-terms-conditions-text.js +2 -2
  194. package/dist/module/checkout-core.js +8 -4
  195. package/dist/module/details.js +3 -6
  196. package/dist/module/form-control-monetary2.js +1 -1
  197. package/dist/module/generic-info-details2.js +3 -4
  198. package/dist/module/get-payout-csv.js +45 -0
  199. package/dist/module/gross-payment-chart-core2.js +2 -2
  200. package/dist/module/justifi-business-form.js +4 -3
  201. package/dist/module/justifi-business-list.js +3 -6
  202. package/dist/module/justifi-payment-balance-transactions.js +4 -8
  203. package/dist/module/justifi-payment-form.js +6 -5
  204. package/dist/module/justifi-payment-provisioning.js +2 -7
  205. package/dist/module/justifi-payments-list.js +19 -1
  206. package/dist/module/justifi-payout-details.js +11 -5
  207. package/dist/module/justifi-payouts-list.js +30 -8
  208. package/dist/module/justifi-proceeds-list.js +3 -6
  209. package/dist/module/justifi-refund-form.js +4 -3
  210. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  211. package/dist/module/justifi-subaccount-details.js +3 -6
  212. package/dist/module/justifi-subaccounts-list.js +1 -1
  213. package/dist/module/legal-address-details2.js +3 -4
  214. package/dist/module/new-payment-method.js +1 -1
  215. package/dist/module/owner-details2.js +3 -4
  216. package/dist/module/owner-form.js +2 -2
  217. package/dist/module/package.js +1 -1
  218. package/dist/module/pagination-menu2.js +4 -9
  219. package/dist/module/payload-parsers.js +2 -0
  220. package/dist/module/payment-details-core2.js +9 -12
  221. package/dist/module/payment-method-options.js +7 -4
  222. package/dist/module/payment-method-selector.js +3 -4
  223. package/dist/module/payment-provisioning-core.js +9 -3
  224. package/dist/module/payments-list-core2.js +25 -7
  225. package/dist/module/payout-details-core2.js +18 -6
  226. package/dist/module/payouts-list-core2.js +48 -8
  227. package/dist/module/representative-details2.js +3 -4
  228. package/dist/module/save-new-payment-method.js +1 -1
  229. package/dist/module/saved-payment-method.js +1 -1
  230. package/dist/module/season-interruption-insurance-core.js +12 -7
  231. package/dist/module/sezzle-payment-method.js +1 -1
  232. package/dist/module/skeleton.js +2 -2
  233. package/dist/module/styled-host.js +12 -0
  234. package/dist/module/subaccount-account-details2.js +2 -7
  235. package/dist/module/subaccount-bank-details.js +2 -7
  236. package/dist/module/subaccount-merchant-details2.js +2 -7
  237. package/dist/module/subaccount-owners-details2.js +2 -7
  238. package/dist/module/subaccount-representative-details2.js +2 -7
  239. package/dist/module/subaccount-terms-details.js +2 -7
  240. package/dist/module/table.js +4 -5
  241. package/dist/types/api/services/payout.service.d.ts +2 -0
  242. package/dist/types/assets/download-icon.d.ts +1 -0
  243. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -0
  244. package/dist/types/components/payments-list/payments-list.d.ts +3 -0
  245. package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
  246. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
  247. package/dist/types/components/payout-details/payout-details.d.ts +2 -1
  248. package/dist/types/components/payouts-list/payouts-list-core.d.ts +3 -0
  249. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
  250. package/dist/types/components.d.ts +28 -0
  251. package/dist/types/utils/styled-host/styled-host.d.ts +3 -0
  252. package/dist/webcomponents/{p-edb605b3.js → p-092e080c.js} +1 -1
  253. package/dist/webcomponents/p-09affce4.entry.js +1 -0
  254. package/dist/webcomponents/p-0a4a9ccd.entry.js +1 -0
  255. package/dist/webcomponents/{p-5309e887.entry.js → p-0dca0770.entry.js} +1 -1
  256. package/dist/webcomponents/{p-95c18035.entry.js → p-0e4a54c8.entry.js} +1 -1
  257. package/dist/webcomponents/p-0ed3c1d2.entry.js +1 -0
  258. package/dist/webcomponents/p-10b57ac6.entry.js +1 -0
  259. package/dist/webcomponents/p-1737f6bf.entry.js +1 -0
  260. package/dist/webcomponents/{p-84b3cead.entry.js → p-2244e679.entry.js} +1 -1
  261. package/dist/webcomponents/p-2306d44d.entry.js +1 -0
  262. package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
  263. package/dist/webcomponents/{p-0a09edbb.entry.js → p-2af3672b.entry.js} +1 -1
  264. package/dist/webcomponents/p-3294856b.entry.js +1 -0
  265. package/dist/webcomponents/p-3514b616.entry.js +1 -0
  266. package/dist/webcomponents/p-390157c9.entry.js +1 -0
  267. package/dist/webcomponents/p-412c7a22.entry.js +1 -0
  268. package/dist/webcomponents/p-464e4dfe.entry.js +1 -0
  269. package/dist/webcomponents/p-49b8e112.js +1 -0
  270. package/dist/webcomponents/{p-c69713c2.entry.js → p-4b9587ec.entry.js} +1 -1
  271. package/dist/webcomponents/p-531d873a.entry.js +1 -0
  272. package/dist/webcomponents/p-54287db6.entry.js +1 -0
  273. package/dist/webcomponents/p-547a2cd0.entry.js +1 -0
  274. package/dist/webcomponents/p-571d7f1a.entry.js +1 -0
  275. package/dist/webcomponents/p-5963bcdc.entry.js +1 -0
  276. package/dist/webcomponents/p-5b1451e7.entry.js +1 -0
  277. package/dist/webcomponents/{p-e7915927.entry.js → p-66758365.entry.js} +1 -1
  278. package/dist/webcomponents/{p-b7d9d9fa.js → p-667a5aa8.js} +1 -1
  279. package/dist/webcomponents/p-67e497aa.entry.js +1 -0
  280. package/dist/webcomponents/{p-0575daac.js → p-68fd8283.js} +1 -1
  281. package/dist/webcomponents/p-6bcf621a.entry.js +1 -0
  282. package/dist/webcomponents/p-6bd5d569.entry.js +1 -0
  283. package/dist/webcomponents/p-76180bb4.entry.js +1 -0
  284. package/dist/webcomponents/p-77dc159c.entry.js +1 -0
  285. package/dist/webcomponents/{p-a34c28af.entry.js → p-7a346c0b.entry.js} +1 -1
  286. package/dist/webcomponents/p-7d6aba64.entry.js +1 -0
  287. package/dist/webcomponents/p-81d3eda6.entry.js +1 -0
  288. package/dist/webcomponents/p-85fc69e5.js +1 -0
  289. package/dist/webcomponents/p-87932e16.js +1 -0
  290. package/dist/webcomponents/p-88c7ef46.entry.js +1 -0
  291. package/dist/webcomponents/p-8cc7a418.entry.js +1 -0
  292. package/dist/webcomponents/p-8dd22c8d.entry.js +1 -0
  293. package/dist/webcomponents/p-959b478a.entry.js +19 -0
  294. package/dist/webcomponents/{p-fcf42299.entry.js → p-9631b768.entry.js} +1 -1
  295. package/dist/webcomponents/p-9e7c3231.entry.js +1 -0
  296. package/dist/webcomponents/{p-c2d6a5e2.entry.js → p-bb32b91c.entry.js} +1 -1
  297. package/dist/webcomponents/p-bbc18b9f.entry.js +1 -0
  298. package/dist/webcomponents/p-cb9ee476.entry.js +1 -0
  299. package/dist/webcomponents/p-d083a342.entry.js +1 -0
  300. package/dist/webcomponents/{p-1c60004a.entry.js → p-d5612f35.entry.js} +1 -1
  301. package/dist/webcomponents/p-debeefbb.entry.js +1 -0
  302. package/dist/webcomponents/{p-9936c393.entry.js → p-df38dd21.entry.js} +1 -1
  303. package/dist/webcomponents/p-e0bcfdb5.entry.js +1 -0
  304. package/dist/webcomponents/{p-cb68e8fa.js → p-e1651130.js} +1 -1
  305. package/dist/webcomponents/p-e46929a1.entry.js +1 -0
  306. package/dist/webcomponents/{p-6006e085.entry.js → p-e85ef4af.entry.js} +1 -1
  307. package/dist/webcomponents/p-ea7c77a3.entry.js +1 -0
  308. package/dist/webcomponents/{p-a90a6703.entry.js → p-f3555f0b.entry.js} +1 -1
  309. package/dist/webcomponents/p-fad19d75.js +2 -0
  310. package/dist/webcomponents/webcomponents.css +1 -1
  311. package/dist/webcomponents/webcomponents.esm.js +1 -1
  312. package/package.json +1 -1
  313. package/dist/cjs/payout.service-eec372aa.js +0 -22
  314. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
  315. package/dist/collection/components/business-details/business-details.css +0 -6446
  316. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
  317. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
  318. package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
  319. package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
  320. package/dist/collection/components/business-list/business-list.css +0 -579
  321. package/dist/collection/components/details/details.css +0 -7993
  322. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  323. package/dist/collection/components/payment-details/payment-details.css +0 -7993
  324. package/dist/collection/components/payments-list/payments-list.css +0 -579
  325. package/dist/collection/components/payout-details/payout-details.css +0 -7993
  326. package/dist/collection/components/payouts-list/payouts-list.css +0 -579
  327. package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
  328. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
  329. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
  330. package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
  331. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
  332. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
  333. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
  334. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
  335. package/dist/esm/payout.service-28b9594f.js +0 -20
  336. package/dist/module/payout.service.js +0 -20
  337. package/dist/webcomponents/p-00de4ae0.entry.js +0 -1
  338. package/dist/webcomponents/p-015ba24e.entry.js +0 -1
  339. package/dist/webcomponents/p-023fe908.entry.js +0 -1
  340. package/dist/webcomponents/p-0fc18c89.entry.js +0 -1
  341. package/dist/webcomponents/p-100cb35c.entry.js +0 -1
  342. package/dist/webcomponents/p-189dee9f.entry.js +0 -1
  343. package/dist/webcomponents/p-30a7bebc.entry.js +0 -19
  344. package/dist/webcomponents/p-378bb067.entry.js +0 -1
  345. package/dist/webcomponents/p-404d7c56.entry.js +0 -1
  346. package/dist/webcomponents/p-43326623.entry.js +0 -1
  347. package/dist/webcomponents/p-4c5f9260.entry.js +0 -1
  348. package/dist/webcomponents/p-61e486ad.entry.js +0 -1
  349. package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
  350. package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
  351. package/dist/webcomponents/p-738049aa.entry.js +0 -1
  352. package/dist/webcomponents/p-739f1e09.entry.js +0 -1
  353. package/dist/webcomponents/p-7f77d91f.entry.js +0 -1
  354. package/dist/webcomponents/p-8805d083.entry.js +0 -1
  355. package/dist/webcomponents/p-95c8c313.entry.js +0 -1
  356. package/dist/webcomponents/p-97220d5b.entry.js +0 -1
  357. package/dist/webcomponents/p-98985c7d.entry.js +0 -1
  358. package/dist/webcomponents/p-9d03464e.entry.js +0 -1
  359. package/dist/webcomponents/p-a63a6fb9.js +0 -2
  360. package/dist/webcomponents/p-a6477232.entry.js +0 -1
  361. package/dist/webcomponents/p-b1a24d24.entry.js +0 -1
  362. package/dist/webcomponents/p-b27d2ce1.entry.js +0 -1
  363. package/dist/webcomponents/p-be049573.entry.js +0 -1
  364. package/dist/webcomponents/p-bfe69314.entry.js +0 -1
  365. package/dist/webcomponents/p-c8c08fe3.js +0 -1
  366. package/dist/webcomponents/p-ca39c89f.js +0 -1
  367. package/dist/webcomponents/p-d779f2f2.entry.js +0 -1
  368. package/dist/webcomponents/p-da313a7e.entry.js +0 -1
  369. package/dist/webcomponents/p-e04f7070.entry.js +0 -1
  370. package/dist/webcomponents/p-eb142b8a.entry.js +0 -1
  371. package/dist/webcomponents/p-efe744ce.entry.js +0 -1
  372. package/dist/webcomponents/p-f6858597.entry.js +0 -1
  373. package/dist/webcomponents/p-f68cf935.entry.js +0 -1
@@ -13,13 +13,12 @@ export class PaymentMethodSelector {
13
13
  this.paymentMethodSelected.emit(event.target.value);
14
14
  }
15
15
  render() {
16
- return (h("div", { key: '30e137216bfc266a9a4eebd8e5d3b5b00d97fdfc', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
16
+ return (h("div", { key: '1076a0e9d658245823ace79acde858bdaec85e65', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
17
17
  }
18
18
  static get is() { return "justifi-payment-method-selector"; }
19
- static get encapsulation() { return "shadow"; }
20
19
  static get originalStyleUrls() {
21
20
  return {
22
- "$": ["payment-method-selector.scss"]
21
+ "$": ["payment-method-selector.css"]
23
22
  };
24
23
  }
25
24
  static get styleUrls() {
@@ -1,6 +1,7 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { pagingDefaults } from "../../api";
3
3
  import { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
4
+ import StyledHost from "../../utils/styled-host/styled-host";
4
5
  export class PaymentsListCore {
5
6
  constructor() {
6
7
  this.handleClickPrevious = (beforeCursor) => {
@@ -13,6 +14,9 @@ export class PaymentsListCore {
13
14
  delete newParams.before_cursor;
14
15
  this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
15
16
  };
17
+ this.handleDateChange = (name, value) => {
18
+ this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
19
+ };
16
20
  this.getPayments = undefined;
17
21
  this.payments = [];
18
22
  this.loading = true;
@@ -50,7 +54,7 @@ export class PaymentsListCore {
50
54
  }
51
55
  ;
52
56
  render() {
53
- return (h(Host, { key: 'd26988b04edadef37245875e037f1f371f1dc24b' }, h("justifi-table", { key: '25ab7f3b3d698e3750f66c99b7bda5a5bbdd11e6', rowClickHandler: e => {
57
+ return (h(StyledHost, { key: '84fde18eaf36e21f2b9107bc0527d3ca48d0bf49' }, h("div", { key: '57a7084b5b9fa143209131534119407ed22a6df9', class: "row gy-3 mb-4" }, h("div", { key: 'af0f206b7b2d330614e3c70dc32425a66637b47e', class: "col-2" }, h("form-control-date", { key: '277748b548069199308c2263dffb57bf5327cc1f', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), h("div", { key: '8ec2b609f01fe8ab57572cfcefc2842e191579bc', class: "col-2" }, h("form-control-date", { key: 'b646dab8c653b31b2810083335f3e581e86e0344', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '1f79a0d94391cdf9a86af65aeeccd9bf7d832af3', rowClickHandler: e => {
54
58
  const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
55
59
  if (!clickedPaymentID) {
56
60
  return;
@@ -84,16 +88,6 @@ export class PaymentsListCore {
84
88
  ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
85
89
  }
86
90
  static get is() { return "payments-list-core"; }
87
- static get originalStyleUrls() {
88
- return {
89
- "$": ["payments-list.scss"]
90
- };
91
- }
92
- static get styleUrls() {
93
- return {
94
- "$": ["payments-list.css"]
95
- };
96
- }
97
91
  static get properties() {
98
92
  return {
99
93
  "getPayments": {
@@ -5,6 +5,9 @@ import { ErrorState } from "../details/utils";
5
5
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
7
  /**
8
+ * @exportedPart label: Label for inputs
9
+ * @exportedPart input: The input fields
10
+ * @exportedPart input-invalid: Invalid state for inputs
8
11
  * @exportedPart table-head: Table head
9
12
  * @exportedPart table-head-row: Head row
10
13
  * @exportedPart table-head-cell: Individual head cell
@@ -0,0 +1,19 @@
1
+ import { ComponentErrorSeverity } from "../../api/ComponentError";
2
+ import { getErrorCode, getErrorMessage } from "../../api/services/utils";
3
+ export const makeGetPayoutCSV = ({ authToken, service }) => async ({ payoutId, onError }) => {
4
+ try {
5
+ const { data } = await service.fetchCSV(payoutId, authToken);
6
+ const a = document.createElement('a');
7
+ a.href = data.csv_url;
8
+ a.click();
9
+ }
10
+ catch (error) {
11
+ const errorMessage = getErrorMessage(error);
12
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
13
+ onError({
14
+ error: errorMessage,
15
+ code,
16
+ severity: ComponentErrorSeverity.ERROR,
17
+ });
18
+ }
19
+ };
@@ -1,9 +1,24 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { MapPayoutStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
3
3
  import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
4
+ import StyledHost from "../../utils/styled-host/styled-host";
4
5
  export class PayoutDetailsCore {
5
6
  constructor() {
7
+ this.downloadCSV = () => {
8
+ this.getPayoutCSV({
9
+ payoutId: this.payout.id,
10
+ onError: ({ error, code, severity }) => {
11
+ this.errorMessage = error;
12
+ this.errorEvent.emit({
13
+ message: error,
14
+ errorCode: code,
15
+ severity,
16
+ });
17
+ },
18
+ });
19
+ };
6
20
  this.getPayout = undefined;
21
+ this.getPayoutCSV = undefined;
7
22
  this.payout = undefined;
8
23
  this.loading = true;
9
24
  this.errorMessage = null;
@@ -37,19 +52,9 @@ export class PayoutDetailsCore {
37
52
  }
38
53
  render() {
39
54
  var _a;
40
- return (h(Host, { key: '1764253926acabb4fcdc546dc8f5e07560b930b6' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '6ae394b602d52259dcb572d3a0285ffc284ca5ce', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'af62dd6b22392a3a1d3a66785e47e6a3c1501163', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '12877fbc28a24a4e2c0b87f6f7400616c8b1dfb1', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '16f30e456e5bc2a4e307f00545a2b5c504be9ec8', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '57dc008142b99346db4a873989d6bf11ee063dac', title: "ID", value: this.payout.id })), h("div", { key: 'b095ec6cd488fd43328d2ba2d2d758a45a6e6601', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '7370109528db056e6461127234b037734e4673bd', sectionTitle: "Details" }), h("div", { key: 'eb0373e8f0389d415e5fedb90e4961bf78e3f6ab', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '7896af63571e147828252b4bab8efb7c2643281f', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'cd8e2f801982f0fd9e84f5c5b8fb8bb29e81dcb3', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '221321757676642619e59ad335e5dfe35c819afb', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '7dc849e5b73f171196d6b54b27f3259cf723f3c3', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '8dabc9e941d72c250af05d8ef609bbdf79d6fd6b', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '682ffec70fffbb816a6a3285ea41b892b14c2f20', sectionTitle: "Account" }), h("div", { key: 'cf5eb240de052d1606b80f56ce0a65df409ccff1', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'daa1eef6b21d5d4a682a4c448d7774212d22a284', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '15e729f8a8af79ced76912253abb1d1d7eb102d5', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'a9391287fe87deddb6777aeaa3800c1ee1df6268', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'b4346e6ad32cfda774e6c3730da4d598c1b3baf2', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'e412bc591706f2cad6f0bc71e0e0e039897a4287', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e97b9b0824b0502e37b48a4c8c0ebc5bbd4bc210', sectionTitle: 'Metadata' }), h("div", { key: '8f179fbae2ce0eb92d173d268bff2e07ad61d5b8', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a3dfe22717eec564d2cbb6f8e4ebaed4ac87b086', metadata: this.payout.metadata })))))));
55
+ return (h(StyledHost, { key: 'da7690d5e4b21e8cb32651080ef2c8df29440c1b' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '4d9a7636e345bc5dd88b910add3a340e22589c52', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '91d6eb90ec40052d858f4736a9c60d9c9a96d40d', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: 'be9f9b43c294b76326f1ce63af79217b8abf5b0d', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb', title: "ID", value: this.payout.id }), h("div", { key: '44b484491b5ec470270b469de15076d6d55e61d0', class: "m-4" }, h("button", { key: 'ca8b6cb61b56caebbec1eeb01e6de638865219bd', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '2f959d7c549dc1f8e4df2e8d12ab9988255aba03', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '741717a3e056163ee88452998f2d6e5b7dc0ccc1', sectionTitle: "Details" }), h("div", { key: 'd456b3a372525a0eff6c724e507ff325951fa430', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '90f49509ff399a9c164a7aeaf7307077b59e8559', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '52ef8b50065db1a111b003e9ceadfa1cc4076b74', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'ee73a34d15af0cc677fc6d903706df3f10249bdf', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '229827b98fd76bd1dec1beeac0d99517d09dc677', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '1f4bb886e4a07b5054107aa00c2b98644e87859b', sectionTitle: "Account" }), h("div", { key: '78181a7ae216bf3b0013eee0494b4b149a2ec9c3', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '273cabd55194c104d1d421db53030601f5efa83c', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1d5489f81d96025bdf7d7391623ddcc1ff3a7978', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'f17d8096799b7eeba7c550ad828f2ffa97b65f56', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'cf3c83de7f119738940951a9481253ed855c768e', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '458186b5bd7fb0aa954c283dee08e5090b164b27', sectionTitle: 'Metadata' }), h("div", { key: '90866a28028af6c7e46ab89c221016cd698299f2', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'ed25523342b6a751e48d2d7c11cef7e541b6ed3b', metadata: this.payout.metadata })))))));
41
56
  }
42
57
  static get is() { return "payout-details-core"; }
43
- static get originalStyleUrls() {
44
- return {
45
- "$": ["payout-details.scss"]
46
- };
47
- }
48
- static get styleUrls() {
49
- return {
50
- "$": ["payout-details.css"]
51
- };
52
- }
53
58
  static get properties() {
54
59
  return {
55
60
  "getPayout": {
@@ -71,6 +76,26 @@ export class PayoutDetailsCore {
71
76
  "tags": [],
72
77
  "text": ""
73
78
  }
79
+ },
80
+ "getPayoutCSV": {
81
+ "type": "unknown",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "Function",
85
+ "resolved": "Function",
86
+ "references": {
87
+ "Function": {
88
+ "location": "global",
89
+ "id": "global::Function"
90
+ }
91
+ }
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ }
74
99
  }
75
100
  };
76
101
  }
@@ -4,6 +4,7 @@ import { makeGetPayoutDetails } from "./get-payout-details";
4
4
  import { ErrorState } from "../details/utils";
5
5
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
+ import { makeGetPayoutCSV } from "./get-payout-csv";
7
8
  export class PayoutDetails {
8
9
  constructor() {
9
10
  this.handleErrorEvent = (event) => {
@@ -13,25 +14,30 @@ export class PayoutDetails {
13
14
  this.payoutId = undefined;
14
15
  this.authToken = undefined;
15
16
  this.getPayout = undefined;
17
+ this.getPayoutCSV = undefined;
16
18
  this.errorMessage = null;
17
19
  }
18
20
  componentWillLoad() {
19
21
  this.analytics = new JustifiAnalytics(this);
20
- this.initializeGetPayout();
22
+ this.initializeServices();
21
23
  }
22
24
  disconnectedCallback() {
23
25
  this.analytics.cleanup();
24
26
  }
25
27
  propChanged() {
26
- this.initializeGetPayout();
28
+ this.initializeServices();
27
29
  }
28
- initializeGetPayout() {
30
+ initializeServices() {
29
31
  if (this.payoutId && this.authToken) {
30
32
  this.getPayout = makeGetPayoutDetails({
31
33
  id: this.payoutId,
32
34
  authToken: this.authToken,
33
35
  service: new PayoutService()
34
36
  });
37
+ this.getPayoutCSV = makeGetPayoutCSV({
38
+ authToken: this.authToken,
39
+ service: new PayoutService()
40
+ });
35
41
  }
36
42
  else {
37
43
  this.errorMessage = 'Failed to load payout details. payoutId or authToken is not provided.';
@@ -46,7 +52,7 @@ export class PayoutDetails {
46
52
  if (this.errorMessage) {
47
53
  return ErrorState(this.errorMessage);
48
54
  }
49
- return (h("payout-details-core", { getPayout: this.getPayout, "onError-event": this.handleErrorEvent }));
55
+ return (h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent }));
50
56
  }
51
57
  static get is() { return "justifi-payout-details"; }
52
58
  static get encapsulation() { return "shadow"; }
@@ -91,6 +97,7 @@ export class PayoutDetails {
91
97
  static get states() {
92
98
  return {
93
99
  "getPayout": {},
100
+ "getPayoutCSV": {},
94
101
  "errorMessage": {}
95
102
  };
96
103
  }
@@ -1,7 +1,10 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { PayoutStatuses, PayoutStatusesSafeNames, pagingDefaults } from "../../api";
3
3
  import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
4
4
  import { tableExportedParts } from "../table/exported-parts";
5
+ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
+ import StyledHost from "../../utils/styled-host/styled-host";
7
+ import { DownloadIcon } from "../../assets/download-icon";
5
8
  export class PayoutsListCore {
6
9
  constructor() {
7
10
  this.mapStatusToBadge = (status) => {
@@ -30,7 +33,23 @@ export class PayoutsListCore {
30
33
  delete newParams.before_cursor;
31
34
  this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
32
35
  };
36
+ this.downloadCSV = (payoutId) => {
37
+ this.getPayoutCSV({
38
+ payoutId,
39
+ onError: () => {
40
+ this.errorEvent.emit({
41
+ errorCode: ComponentErrorCodes.FETCH_ERROR,
42
+ message: 'Failed to download CSV',
43
+ severity: ComponentErrorSeverity.ERROR
44
+ });
45
+ }
46
+ });
47
+ };
48
+ this.handleDateChange = (name, value) => {
49
+ this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
50
+ };
33
51
  this.getPayouts = undefined;
52
+ this.getPayoutCSV = undefined;
34
53
  this.payouts = [];
35
54
  this.loading = true;
36
55
  this.errorMessage = undefined;
@@ -67,7 +86,7 @@ export class PayoutsListCore {
67
86
  }
68
87
  ;
69
88
  render() {
70
- return (h(Host, { key: 'dcbc7c461ec76c6a7b94328a4691f12fa4982c18', exportedparts: tableExportedParts }, h("justifi-table", { key: '7a90e1951f33b03fadb4cb9ac75f6932566042b1', rowClickHandler: (e) => {
89
+ return (h(StyledHost, { key: '469e4d0a5fcb7370d0d076e9f27cf5102235324e', exportedparts: tableExportedParts }, h("div", { key: '883f193b2da3cdd3da3f31422def69d206ead983', class: "row gy-3 mb-4" }, h("div", { key: '585684441aeded4619f9a0f03151b5e8dd2219d8', class: "col-2" }, h("form-control-date", { key: 'bc69d932f1d32074b3f0fdd2c9dba6f9601db891', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), h("div", { key: 'd026150a6a09ad49f549ea2b5174a1ed311987dc', class: "col-2" }, h("form-control-date", { key: '2621b14359b8159270d67e53f9ad2f6464cbb467', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '757c9bbee39356ee23819f0e7e4d3b096bdf38f6', rowClickHandler: (e) => {
71
90
  const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
72
91
  if (!clickedPayoutID) {
73
92
  return;
@@ -83,7 +102,8 @@ export class PayoutsListCore {
83
102
  ['Fees', 'Sum of fees in each payout'],
84
103
  ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
85
104
  ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement'],
86
- ['Status', 'The real-time status of each payout']
105
+ ['Status', 'The real-time status of each payout'],
106
+ ['Actions', '']
87
107
  ], entityId: this.payouts.map((payout) => payout.id), rowData: this.payouts.map((payout) => ([
88
108
  {
89
109
  type: 'head',
@@ -103,20 +123,11 @@ export class PayoutsListCore {
103
123
  {
104
124
  type: 'inner',
105
125
  value: this.mapStatusToBadge(payout.status)
106
- }
126
+ },
127
+ (h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } }))
107
128
  ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
108
129
  }
109
130
  static get is() { return "payouts-list-core"; }
110
- static get originalStyleUrls() {
111
- return {
112
- "$": ["payouts-list.scss"]
113
- };
114
- }
115
- static get styleUrls() {
116
- return {
117
- "$": ["payouts-list.css"]
118
- };
119
- }
120
131
  static get properties() {
121
132
  return {
122
133
  "getPayouts": {
@@ -138,6 +149,26 @@ export class PayoutsListCore {
138
149
  "tags": [],
139
150
  "text": ""
140
151
  }
152
+ },
153
+ "getPayoutCSV": {
154
+ "type": "unknown",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "Function",
158
+ "resolved": "Function",
159
+ "references": {
160
+ "Function": {
161
+ "location": "global",
162
+ "id": "global::Function"
163
+ }
164
+ }
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": ""
171
+ }
141
172
  }
142
173
  };
143
174
  }
@@ -5,7 +5,11 @@ import { makeGetPayouts } from "./get-payouts";
5
5
  import { ErrorState } from "../details/utils";
6
6
  import { ComponentErrorCodes } from "../../api/ComponentError";
7
7
  import JustifiAnalytics from "../../api/Analytics";
8
+ import { makeGetPayoutCSV } from "../payout-details/get-payout-csv";
8
9
  /**
10
+ * @exportedPart label: Label for inputs
11
+ * @exportedPart input: The input fields
12
+ * @exportedPart input-invalid: Invalid state for inputs
9
13
  * @exportedPart table-head: Table head
10
14
  * @exportedPart table-head-row: Head row
11
15
  * @exportedPart table-head-cell: Individual head cell
@@ -33,25 +37,28 @@ export class PayoutsList {
33
37
  this.accountId = undefined;
34
38
  this.authToken = undefined;
35
39
  this.getPayouts = undefined;
40
+ this.getPayoutCSV = undefined;
36
41
  this.errorMessage = null;
37
42
  }
38
43
  componentWillLoad() {
39
44
  this.analytics = new JustifiAnalytics(this);
40
- this.initializeGetPayouts();
45
+ this.initializeServices();
41
46
  }
42
47
  disconnectedCallback() {
43
48
  this.analytics.cleanup();
44
49
  }
45
50
  propChanged() {
46
- this.initializeGetPayouts();
51
+ this.initializeServices();
47
52
  }
48
- initializeGetPayouts() {
53
+ initializeServices() {
49
54
  if (this.accountId && this.authToken) {
50
- this.getPayouts = makeGetPayouts({
55
+ const serviceParams = {
51
56
  id: this.accountId,
52
57
  authToken: this.authToken,
53
58
  service: new PayoutService(),
54
- });
59
+ };
60
+ this.getPayouts = makeGetPayouts(serviceParams);
61
+ this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
55
62
  }
56
63
  else {
57
64
  this.errorMessage = 'Account ID and Auth Token are required';
@@ -65,7 +72,7 @@ export class PayoutsList {
65
72
  if (this.errorMessage) {
66
73
  return ErrorState(this.errorMessage);
67
74
  }
68
- return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, "onError-event": this.handleOnError })));
75
+ return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
69
76
  }
70
77
  static get is() { return "justifi-payouts-list"; }
71
78
  static get encapsulation() { return "shadow"; }
@@ -110,6 +117,7 @@ export class PayoutsList {
110
117
  static get states() {
111
118
  return {
112
119
  "getPayouts": {},
120
+ "getPayoutCSV": {},
113
121
  "errorMessage": {}
114
122
  };
115
123
  }
@@ -1,8 +1,9 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { Api, pagingDefaults } from "../../api";
3
3
  import { formatCurrency, formatDate } from "../../utils/utils";
4
4
  import { Proceed, ProceedStatuses, ProceedStatusesSafeNames } from "../../api/Proceed";
5
5
  import { config } from "../../../config";
6
+ import StyledHost from "../../utils/styled-host/styled-host";
6
7
  /**
7
8
  * @exportedPart table-head: Table head
8
9
  * @exportedPart table-head-row: Head row
@@ -86,7 +87,7 @@ export class ProceedsList {
86
87
  this.loading = false;
87
88
  }
88
89
  render() {
89
- return (h(Host, { key: 'e81d11c902a038a7d5ae41c6b3b9b84c0d4eda87' }, h("justifi-table", { key: 'c37b037ed04803465ecd2a026899eca133814033', rowClickHandler: (e) => {
90
+ return (h(StyledHost, { key: 'ea9ee482e1b439490ed258c37e75c47e5dc5f3bf' }, h("justifi-table", { key: 'a26da8b6e884e00bc0a8eac24025397fdc925d14', rowClickHandler: (e) => {
90
91
  const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
91
92
  if (!clickedProceedID) {
92
93
  return;
@@ -118,16 +119,6 @@ export class ProceedsList {
118
119
  }
119
120
  static get is() { return "justifi-proceeds-list"; }
120
121
  static get encapsulation() { return "shadow"; }
121
- static get originalStyleUrls() {
122
- return {
123
- "$": ["proceeds-list.scss"]
124
- };
125
- }
126
- static get styleUrls() {
127
- return {
128
- "$": ["proceeds-list.css"]
129
- };
130
- }
131
122
  static get properties() {
132
123
  return {
133
124
  "accountId": {