@justifi/webcomponents 4.18.0 → 4.19.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 (537) hide show
  1. package/dist/cjs/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
  2. package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
  6. package/dist/cjs/business.service-f63650f5.js +32 -0
  7. package/dist/cjs/button-3f400a66.js +26 -0
  8. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  9. package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
  10. package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
  11. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
  12. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  13. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  14. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  15. package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
  16. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
  17. package/dist/cjs/input-handlers-cff032bb.js +20 -0
  18. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
  19. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  23. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  25. package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
  26. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
  31. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  32. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
  33. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
  34. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
  36. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
  37. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  38. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
  40. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  41. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  42. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
  45. package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
  46. package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
  47. package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
  48. package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
  49. package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
  50. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  51. package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
  52. package/dist/cjs/skeleton-748c5dde.js +43 -0
  53. package/dist/cjs/styled-host-cc053016.js +14 -0
  54. package/dist/cjs/table-loading-state-8b406852.js +38 -0
  55. package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
  56. package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
  57. package/dist/cjs/webcomponents.cjs.js +1 -1
  58. package/dist/collection/api/Payment.js +0 -20
  59. package/dist/collection/api/services/business.service.js +18 -0
  60. package/dist/collection/collection-manifest.json +9 -14
  61. package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
  62. package/dist/collection/components/billing-form/billing-form.js +2 -2
  63. package/dist/collection/components/business-details/business-details-core.js +1 -1
  64. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  65. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  66. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  67. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  68. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  69. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  70. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
  71. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
  72. package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
  73. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
  74. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
  75. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
  76. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
  77. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
  78. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
  79. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
  80. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
  82. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
  83. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
  84. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
  85. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
  86. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
  87. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
  88. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
  89. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
  90. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  91. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  92. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  93. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  94. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  95. package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
  96. package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
  97. package/dist/collection/components/card-form/card-form.js +1 -1
  98. package/dist/collection/components/checkout/checkout-core.js +4 -5
  99. package/dist/collection/components/checkout/checkout.js +2 -2
  100. package/dist/collection/components/checkout/new-payment-method.js +1 -1
  101. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  102. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  103. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  104. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  105. package/dist/collection/components/details/details.js +2 -2
  106. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  107. package/dist/collection/components/form/form-control-date.js +1 -1
  108. package/dist/collection/components/form/form-control-file.js +1 -1
  109. package/dist/collection/components/form/form-control-monetary.js +1 -1
  110. package/dist/collection/components/form/form-control-number-masked.js +11 -5
  111. package/dist/collection/components/form/form-control-number.js +1 -1
  112. package/dist/collection/components/form/form-control-select.js +1 -1
  113. package/dist/collection/components/form/form-control-text.js +1 -1
  114. package/dist/collection/components/form/utils.js +0 -2
  115. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  116. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
  117. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
  118. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
  119. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  120. package/dist/collection/components/payment-form/payment-form.js +4 -6
  121. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  122. package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
  123. package/dist/collection/components/payments-list/payments-list-core.js +66 -38
  124. package/dist/collection/components/payout-details/payout-details-core.js +2 -2
  125. package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
  126. package/dist/collection/components/refund-form/refund-form.js +2 -2
  127. package/dist/collection/ui-components/button-spinner.js +2 -0
  128. package/dist/collection/ui-components/button.js +19 -0
  129. package/dist/collection/ui-components/index.js +7 -0
  130. package/dist/collection/ui-components/skeleton.js +39 -0
  131. package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
  132. package/dist/collection/ui-components/table-empty-state.js +8 -0
  133. package/dist/collection/ui-components/table-error-state.js +8 -0
  134. package/dist/collection/ui-components/table-loading-state.js +8 -0
  135. package/dist/collection/utils/utils.js +0 -21
  136. package/dist/docs.json +2080 -1746
  137. package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
  138. package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
  139. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  140. package/dist/esm/business-details-core.entry.js +2 -2
  141. package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
  142. package/dist/esm/business.service-74bd1212.js +29 -0
  143. package/dist/esm/button-34e75e0f.js +24 -0
  144. package/dist/esm/form-alert_5.entry.js +5 -5
  145. package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
  146. package/dist/esm/form-control-date_3.entry.js +130 -0
  147. package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
  148. package/dist/esm/form-control-file.entry.js +1 -1
  149. package/dist/esm/form-control-monetary.entry.js +1 -1
  150. package/dist/esm/form-control-number.entry.js +1 -1
  151. package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
  152. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  153. package/dist/esm/input-handlers-270ac806.js +16 -0
  154. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
  155. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  156. package/dist/esm/justifi-billing-form_2.entry.js +4 -4
  157. package/dist/esm/justifi-business-details.entry.js +4 -4
  158. package/dist/esm/justifi-business-form.entry.js +6 -6
  159. package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
  160. package/dist/esm/justifi-card-form.entry.js +3 -3
  161. package/dist/esm/justifi-checkout-core.entry.js +7 -6
  162. package/dist/esm/justifi-checkout.entry.js +5 -5
  163. package/dist/esm/justifi-details.entry.js +3 -3
  164. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  165. package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
  166. package/dist/esm/justifi-owner-form_3.entry.js +262 -0
  167. package/dist/esm/justifi-payment-details.entry.js +5 -5
  168. package/dist/esm/justifi-payment-form.entry.js +9 -10
  169. package/dist/esm/justifi-payment-method-form.entry.js +4 -4
  170. package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
  171. package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
  172. package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
  173. package/dist/esm/justifi-payments-list.entry.js +5 -5
  174. package/dist/esm/justifi-payout-details.entry.js +5 -5
  175. package/dist/esm/justifi-payouts-list.entry.js +5 -5
  176. package/dist/esm/justifi-refund-form.entry.js +3 -3
  177. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  178. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
  179. package/dist/esm/loader.js +1 -1
  180. package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
  181. package/dist/esm/pagination-menu.entry.js +21 -0
  182. package/dist/esm/payment-details-core.entry.js +10 -10
  183. package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
  184. package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
  185. package/dist/esm/payments-list-core.entry.js +69 -40
  186. package/dist/esm/payout-details-core.entry.js +4 -4
  187. package/dist/esm/payouts-list-core.entry.js +90 -74
  188. package/dist/esm/skeleton-145a80d4.js +41 -0
  189. package/dist/esm/styled-host-ab9da520.js +12 -0
  190. package/dist/esm/table-loading-state-356c7215.js +34 -0
  191. package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
  192. package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
  193. package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
  194. package/dist/esm/webcomponents.js +1 -1
  195. package/dist/module/Payment.js +1 -21
  196. package/dist/module/additional-questions.js +1 -1
  197. package/dist/module/billing-form.js +3 -3
  198. package/dist/module/business-additional-questions-form-step-core.js +141 -0
  199. package/dist/module/business-additional-questions-form-step.js +55 -100
  200. package/dist/module/business-additional-questions-schema.js +1 -1
  201. package/dist/module/business-address-schema.js +1 -1
  202. package/dist/module/business-bank-account-form-step.js +4 -4
  203. package/dist/module/business-core-info-form-step-core.js +151 -0
  204. package/dist/module/business-core-info-form-step.js +57 -106
  205. package/dist/module/business-core-info-schema.js +1 -1
  206. package/dist/module/business-core-info.js +1 -1
  207. package/dist/module/business-document-upload-form-step.js +34 -35
  208. package/dist/module/business-document-upload-input-group.js +2 -2
  209. package/dist/module/business-documents-on-file.js +1 -1
  210. package/dist/module/business-form-types.js +5 -8
  211. package/dist/module/business-identity-schema.js +1 -1
  212. package/dist/module/business-owners-form-step-core.js +216 -0
  213. package/dist/module/business-owners-form-step.js +67 -154
  214. package/dist/module/business-representative-form-inputs.js +85 -0
  215. package/dist/module/business-representative-form-step-core.js +152 -0
  216. package/dist/module/business-representative-form-step.js +63 -111
  217. package/dist/module/business-representative.js +1 -1
  218. package/dist/module/business-terms-conditions-form-step.js +3 -3
  219. package/dist/module/business-terms-conditions-text.js +1 -1
  220. package/dist/module/business.service.js +19 -1
  221. package/dist/module/button.js +24 -0
  222. package/dist/module/checkout-core.js +27 -32
  223. package/dist/module/details.js +1 -1
  224. package/dist/module/exported-parts.js +40 -0
  225. package/dist/module/form-control-checkbox2.js +1 -1
  226. package/dist/module/form-control-date2.js +1 -1
  227. package/dist/module/form-control-file2.js +1 -1
  228. package/dist/module/form-control-monetary2.js +1 -1
  229. package/dist/module/form-control-number-masked2.js +11 -5
  230. package/dist/module/form-control-number.js +1 -1
  231. package/dist/module/form-control-select2.js +1 -1
  232. package/dist/module/form-control-text2.js +1 -1
  233. package/dist/module/get-payout-csv.js +1 -1
  234. package/dist/module/gross-payment-chart-core2.js +1 -1
  235. package/dist/module/identity-address-form.js +2 -2
  236. package/dist/module/input-handlers.js +16 -0
  237. package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
  238. package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
  239. package/dist/module/justifi-bank-account-form.js +1 -1
  240. package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
  241. package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
  242. package/dist/module/justifi-business-details.js +1 -1
  243. package/dist/module/justifi-business-form.js +2 -2
  244. package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
  245. package/dist/module/justifi-business-owners-form-step-core.js +6 -0
  246. package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
  247. package/dist/module/justifi-business-representative-form-inputs.js +6 -0
  248. package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
  249. package/dist/module/justifi-business-representative-form-step-core.js +6 -0
  250. package/dist/module/justifi-card-form.js +1 -1
  251. package/dist/module/justifi-checkout.js +27 -33
  252. package/dist/module/justifi-gross-payment-chart.js +1 -1
  253. package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
  254. package/dist/module/justifi-legal-address-form-step-core.js +6 -0
  255. package/dist/module/justifi-payment-details.js +2 -2
  256. package/dist/module/justifi-payment-form.js +5 -6
  257. package/dist/module/justifi-payment-provisioning.js +97 -108
  258. package/dist/module/justifi-payments-list.js +8 -14
  259. package/dist/module/justifi-payout-details.js +1 -1
  260. package/dist/module/justifi-payouts-list.js +8 -13
  261. package/dist/module/justifi-refund-form.js +2 -2
  262. package/dist/module/justifi-season-interruption-insurance.js +7 -2
  263. package/dist/module/legal-address-form-step-core.js +138 -0
  264. package/dist/module/legal-address-form-step.js +53 -98
  265. package/dist/module/legal-address-form.js +2 -2
  266. package/dist/module/new-payment-method.js +1 -1
  267. package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
  268. package/dist/module/owner-form-core.js +6 -0
  269. package/dist/module/owner-form-core2.js +264 -0
  270. package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
  271. package/dist/module/owner-form-inputs.js +6 -0
  272. package/dist/module/owner-form-inputs2.js +85 -0
  273. package/dist/module/owner-form.js +62 -188
  274. package/dist/module/package.js +1 -1
  275. package/dist/module/pagination-menu2.js +3 -3
  276. package/dist/module/payment-details-core2.js +7 -7
  277. package/dist/module/payment-method-form.js +2 -2
  278. package/dist/module/payment-method-options.js +1 -1
  279. package/dist/module/payment-method-selector.js +1 -1
  280. package/dist/module/payment-provisioning-actions.js +178 -0
  281. package/dist/module/payment-provisioning-core.js +100 -62
  282. package/dist/module/payment-provisioning-form-buttons.js +2 -2
  283. package/dist/module/payment-provisioning-form-steps.js +94 -52
  284. package/dist/module/payments-list-core2.js +71 -49
  285. package/dist/module/payout-details-core2.js +1 -1
  286. package/dist/module/payouts-list-core2.js +92 -82
  287. package/dist/module/save-new-payment-method.js +1 -1
  288. package/dist/module/saved-payment-method.js +1 -1
  289. package/dist/module/schema-validations.js +1 -1
  290. package/dist/module/season-interruption-insurance-core.js +2 -2
  291. package/dist/module/sezzle-payment-method.js +1 -1
  292. package/dist/module/skeleton.js +18 -50
  293. package/dist/module/styled-host.js +4 -4
  294. package/dist/module/utils2.js +1 -31
  295. package/dist/module/utils3.js +23 -26
  296. package/dist/module/utils4.js +23 -24
  297. package/dist/types/api/Payment.d.ts +0 -28
  298. package/dist/types/api/services/business.service.d.ts +10 -0
  299. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
  300. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
  301. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
  302. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
  303. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
  304. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
  305. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
  306. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
  307. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
  308. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
  309. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
  310. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
  311. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
  312. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
  313. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
  314. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
  315. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  316. package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
  317. package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
  318. package/dist/types/components/checkout/checkout-core.d.ts +0 -1
  319. package/dist/types/components/form/utils.d.ts +0 -1
  320. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
  321. package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
  322. package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
  323. package/dist/types/components.d.ts +309 -482
  324. package/dist/types/ui-components/button-spinner.d.ts +1 -0
  325. package/dist/types/ui-components/button.d.ts +10 -0
  326. package/dist/types/ui-components/index.d.ts +7 -0
  327. package/dist/types/ui-components/skeleton.d.ts +13 -0
  328. package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
  329. package/dist/types/ui-components/table-empty-state.d.ts +6 -0
  330. package/dist/types/ui-components/table-error-state.d.ts +6 -0
  331. package/dist/types/ui-components/table-loading-state.d.ts +6 -0
  332. package/dist/types/utils/utils.d.ts +0 -3
  333. package/dist/webcomponents/p-07109641.entry.js +1 -0
  334. package/dist/webcomponents/p-08b0fb31.js +1 -0
  335. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  336. package/dist/webcomponents/p-17e4246f.entry.js +1 -0
  337. package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
  338. package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
  339. package/dist/webcomponents/p-23014988.entry.js +1 -0
  340. package/dist/webcomponents/p-25dba252.entry.js +1 -0
  341. package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
  342. package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
  343. package/dist/webcomponents/p-304dd644.entry.js +1 -0
  344. package/dist/webcomponents/p-30a493cd.entry.js +1 -0
  345. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  346. package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
  347. package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
  348. package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
  349. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  350. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  351. package/dist/webcomponents/p-5968ff8a.js +1 -0
  352. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  353. package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
  354. package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
  355. package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
  356. package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
  357. package/dist/webcomponents/p-75b4daef.js +1 -0
  358. package/dist/webcomponents/p-7d85af5c.js +1 -0
  359. package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
  360. package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
  361. package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
  362. package/dist/webcomponents/p-8df7bde8.js +1 -0
  363. package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
  364. package/dist/webcomponents/p-9279aa49.entry.js +1 -0
  365. package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
  366. package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
  367. package/dist/webcomponents/p-9c9c7dac.js +1 -0
  368. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  369. package/dist/webcomponents/p-ba4bae6f.js +1 -0
  370. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  371. package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
  372. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  373. package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
  374. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  375. package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
  376. package/dist/webcomponents/p-d101c5db.js +1 -0
  377. package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
  378. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  379. package/dist/webcomponents/p-d89bad72.js +1 -0
  380. package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
  381. package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
  382. package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
  383. package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
  384. package/dist/webcomponents/p-e333620e.js +1 -0
  385. package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
  386. package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
  387. package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
  388. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  389. package/dist/webcomponents/webcomponents.css +6 -1
  390. package/dist/webcomponents/webcomponents.esm.js +1 -1
  391. package/package.json +1 -1
  392. package/dist/cjs/SubAccount-135ff8c8.js +0 -107
  393. package/dist/cjs/business.service-9214509a.js +0 -13
  394. package/dist/cjs/form-control-date.cjs.entry.js +0 -43
  395. package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
  396. package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
  397. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
  398. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
  399. package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
  400. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
  401. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
  402. package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
  403. package/dist/cjs/styled-host-b8bed12a.js +0 -14
  404. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
  405. package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
  406. package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
  407. package/dist/collection/api/Proceed.js +0 -41
  408. package/dist/collection/api/SubAccount.js +0 -103
  409. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
  410. package/dist/collection/components/business-list/business-list.js +0 -185
  411. package/dist/collection/components/business-list/business-list.stories.js +0 -68
  412. package/dist/collection/components/business-list/example.js +0 -12
  413. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
  414. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
  415. package/dist/collection/components/proceeds-list/example.js +0 -12
  416. package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
  417. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
  418. package/dist/collection/components/skeleton/skeleton.css +0 -11
  419. package/dist/collection/components/skeleton/skeleton.js +0 -160
  420. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
  421. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
  422. package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
  423. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
  424. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
  425. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
  426. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
  427. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
  428. package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
  429. package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
  430. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
  431. package/dist/collection/components/table/table.css +0 -7
  432. package/dist/collection/components/table/table.js +0 -222
  433. package/dist/collection/components/table/utils.js +0 -4
  434. package/dist/collection/utils/styled-host/styled-host.js +0 -6
  435. package/dist/esm/SubAccount-7fcb1450.js +0 -105
  436. package/dist/esm/business.service-19a0c8d3.js +0 -11
  437. package/dist/esm/form-control-date.entry.js +0 -39
  438. package/dist/esm/form-control-error-text_2.entry.js +0 -31
  439. package/dist/esm/form-control-number-masked_2.entry.js +0 -88
  440. package/dist/esm/justifi-business-list.entry.js +0 -106
  441. package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
  442. package/dist/esm/justifi-proceeds-list.entry.js +0 -155
  443. package/dist/esm/justifi-skeleton.entry.js +0 -50
  444. package/dist/esm/justifi-subaccount-details.entry.js +0 -73
  445. package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
  446. package/dist/esm/justifi-table_2.entry.js +0 -75
  447. package/dist/esm/styled-host-57aae7fa.js +0 -12
  448. package/dist/esm/subaccount-account-details_4.entry.js +0 -51
  449. package/dist/esm/subaccount-bank-details.entry.js +0 -15
  450. package/dist/esm/subaccount-terms-details.entry.js +0 -15
  451. package/dist/module/SubAccount.js +0 -105
  452. package/dist/module/justifi-business-list.d.ts +0 -11
  453. package/dist/module/justifi-business-list.js +0 -147
  454. package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
  455. package/dist/module/justifi-payment-balance-transactions.js +0 -123
  456. package/dist/module/justifi-proceeds-list.d.ts +0 -11
  457. package/dist/module/justifi-proceeds-list.js +0 -198
  458. package/dist/module/justifi-skeleton.js +0 -6
  459. package/dist/module/justifi-subaccount-details.d.ts +0 -11
  460. package/dist/module/justifi-subaccount-details.js +0 -133
  461. package/dist/module/justifi-subaccounts-list.d.ts +0 -11
  462. package/dist/module/justifi-subaccounts-list.js +0 -144
  463. package/dist/module/justifi-table.js +0 -6
  464. package/dist/module/subaccount-account-details.d.ts +0 -11
  465. package/dist/module/subaccount-account-details.js +0 -6
  466. package/dist/module/subaccount-account-details2.js +0 -34
  467. package/dist/module/subaccount-bank-details.d.ts +0 -11
  468. package/dist/module/subaccount-bank-details.js +0 -35
  469. package/dist/module/subaccount-merchant-details.d.ts +0 -11
  470. package/dist/module/subaccount-merchant-details.js +0 -6
  471. package/dist/module/subaccount-merchant-details2.js +0 -33
  472. package/dist/module/subaccount-owners-details.d.ts +0 -11
  473. package/dist/module/subaccount-owners-details.js +0 -6
  474. package/dist/module/subaccount-owners-details2.js +0 -33
  475. package/dist/module/subaccount-representative-details.d.ts +0 -11
  476. package/dist/module/subaccount-representative-details.js +0 -6
  477. package/dist/module/subaccount-representative-details2.js +0 -33
  478. package/dist/module/subaccount-terms-details.d.ts +0 -11
  479. package/dist/module/subaccount-terms-details.js +0 -35
  480. package/dist/module/table.js +0 -93
  481. package/dist/types/api/Proceed.d.ts +0 -60
  482. package/dist/types/api/SubAccount.d.ts +0 -163
  483. package/dist/types/components/business-list/business-list.d.ts +0 -48
  484. package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
  485. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
  486. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
  487. package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
  488. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
  489. package/dist/types/components/skeleton/skeleton.d.ts +0 -12
  490. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
  491. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
  492. package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
  493. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
  494. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
  495. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
  496. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
  497. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
  498. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
  499. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
  500. package/dist/types/components/table/table.d.ts +0 -23
  501. package/dist/types/components/table/utils.d.ts +0 -3
  502. package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
  503. package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
  504. package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
  505. package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
  506. package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
  507. package/dist/webcomponents/p-2306d44d.entry.js +0 -1
  508. package/dist/webcomponents/p-2af3672b.entry.js +0 -1
  509. package/dist/webcomponents/p-390157c9.entry.js +0 -1
  510. package/dist/webcomponents/p-412c7a22.entry.js +0 -1
  511. package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
  512. package/dist/webcomponents/p-54287db6.entry.js +0 -1
  513. package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
  514. package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
  515. package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
  516. package/dist/webcomponents/p-6700ac49.js +0 -1
  517. package/dist/webcomponents/p-68fd8283.js +0 -1
  518. package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
  519. package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
  520. package/dist/webcomponents/p-76180bb4.entry.js +0 -1
  521. package/dist/webcomponents/p-77dc159c.entry.js +0 -1
  522. package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
  523. package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
  524. package/dist/webcomponents/p-87932e16.js +0 -1
  525. package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
  526. package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
  527. package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
  528. package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
  529. package/dist/webcomponents/p-b53d7b7f.js +0 -1
  530. package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
  531. package/dist/webcomponents/p-c4264aaf.js +0 -1
  532. package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
  533. package/dist/webcomponents/p-d083a342.entry.js +0 -1
  534. package/dist/webcomponents/p-e46929a1.entry.js +0 -1
  535. package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
  536. package/dist/webcomponents/p-ed844504.js +0 -1
  537. package/dist/module/{index.esm.js → form.js} +2733 -2733
@@ -4,10 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const Pagination = require('./Pagination-0da8f095.js');
7
- require('./Payment-24f22eca.js');
7
+ require('./Payment-1a8a8ca6.js');
8
8
  require('./Payout-a2dd7b01.js');
9
- const utils = require('./utils-80191fbe.js');
10
- const styledHost = require('./styled-host-b8bed12a.js');
9
+ const utils = require('./utils-89d86e29.js');
10
+ const exportedParts = require('./exported-parts-b18c68c2.js');
11
+ const styledHost = require('./styled-host-cc053016.js');
12
+ const tableLoadingState = require('./table-loading-state-8b406852.js');
11
13
 
12
14
  const PaymentsListCore = class {
13
15
  constructor(hostRef) {
@@ -17,12 +19,18 @@ const PaymentsListCore = class {
17
19
  this.handleClickPrevious = (beforeCursor) => {
18
20
  const newParams = Object.assign({}, this.params);
19
21
  delete newParams.after_cursor;
20
- this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
22
+ this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
21
23
  };
22
24
  this.handleClickNext = (afterCursor) => {
23
25
  const newParams = Object.assign({}, this.params);
24
26
  delete newParams.before_cursor;
25
- this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
27
+ this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
28
+ };
29
+ this.rowClickHandler = (e) => {
30
+ const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
31
+ if (!clickedPaymentID)
32
+ return;
33
+ this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
26
34
  };
27
35
  this.handleDateChange = (name, value) => {
28
36
  this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
@@ -34,14 +42,14 @@ const PaymentsListCore = class {
34
42
  this.paging = Pagination.pagingDefaults;
35
43
  this.params = undefined;
36
44
  }
45
+ updateOnPropChange() {
46
+ this.fetchData();
47
+ }
37
48
  componentWillLoad() {
38
49
  if (this.getPayments) {
39
50
  this.fetchData();
40
51
  }
41
52
  }
42
- updateOnPropChange() {
43
- this.fetchData();
44
- }
45
53
  fetchData() {
46
54
  this.loading = true;
47
55
  this.getPayments({
@@ -62,40 +70,61 @@ const PaymentsListCore = class {
62
70
  },
63
71
  });
64
72
  }
65
- ;
73
+ get entityId() {
74
+ return this.payments.map((payment) => payment.id);
75
+ }
76
+ get columnData() {
77
+ return [
78
+ ['Made On', 'The date and time each payment was made'],
79
+ ['Amount', 'The dollar amount of each payment'],
80
+ ['Description', 'The payment description, if you provided one'],
81
+ ['Cardholder', 'The name associated with the payment method'],
82
+ ['Payment Method', 'The brand and last 4 digits of the payment method'],
83
+ ['Status', 'The current status of each payment'],
84
+ ['Payment ID', 'The unique identifier of each payment'],
85
+ ];
86
+ }
87
+ get rowData() {
88
+ return this.payments.map((payment) => [
89
+ {
90
+ type: 'head',
91
+ value: `
92
+ <div class='fw-bold'>${utils.formatDate(payment.created_at)}</div>
93
+ <div class='fw-bold'>${utils.formatTime(payment.created_at)}</div>
94
+ `,
95
+ },
96
+ utils.formatCurrency(payment.amount),
97
+ payment.description,
98
+ payment.payment_method.payersName,
99
+ payment.payment_method.lastFourDigits,
100
+ {
101
+ type: 'inner',
102
+ value: utils.MapPaymentStatusToBadge(payment.status),
103
+ },
104
+ payment.id,
105
+ ]);
106
+ }
107
+ get showEmptyState() {
108
+ return !this.loading && !this.errorMessage && this.rowData.length < 1;
109
+ }
110
+ get showErrorState() {
111
+ return !this.loading && !!this.errorMessage;
112
+ }
113
+ get showRowData() {
114
+ return !this.showEmptyState && !this.showErrorState;
115
+ }
66
116
  render() {
67
- return (index.h(styledHost.StyledHost, { key: '84fde18eaf36e21f2b9107bc0527d3ca48d0bf49' }, index.h("div", { key: '57a7084b5b9fa143209131534119407ed22a6df9', class: "row gy-3 mb-4" }, index.h("div", { key: 'af0f206b7b2d330614e3c70dc32425a66637b47e', class: "col-2" }, index.h("form-control-date", { key: '277748b548069199308c2263dffb57bf5327cc1f', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), index.h("div", { key: '8ec2b609f01fe8ab57572cfcefc2842e191579bc', class: "col-2" }, index.h("form-control-date", { key: 'b646dab8c653b31b2810083335f3e581e86e0344', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), index.h("justifi-table", { key: '1f79a0d94391cdf9a86af65aeeccd9bf7d832af3', rowClickHandler: e => {
68
- const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
69
- if (!clickedPaymentID) {
70
- return;
117
+ var _a, _b;
118
+ return (index.h(styledHost.StyledHost, { key: 'e4a4b64b2927a009f7ad4e9e2ebb4c020401423c', exportparts: exportedParts.tableExportedParts }, index.h("div", { key: '6ac1c84338b84972ca9b001ecd2b90134c99de6b', class: "row gy-3 mb-4" }, index.h("div", { key: '1d279ec66bc0755b876e29f06ac24d51baa77caa', class: "col-2" }, index.h("form-control-date", { key: '65b29c031021f3f782c9a4597167dc5e3a44e7da', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), index.h("div", { key: 'a032497a94cc8108fda6efbb741069407e1a5afe', class: "col-2" }, index.h("form-control-date", { key: '5dd62ebdbf3836567a9ccb03dec850ebe675cb79', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), index.h("div", { key: 'be4094afd3aec1d742d9d3245c2f6fc50cb95fa0', class: "table-wrapper" }, index.h("table", { key: 'ed493e35f2bddd59d1034dffe2bcd8b54a6390d6', class: "table table-hover" }, index.h("thead", { key: 'fae77bda1ffc35ac5414743ab51c2fe1dfbbc29e', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: '5be3b1e9883d337046c386046565fb6ac3366324', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (index.h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, !Array.isArray(column) ? column : column[0]))))), index.h("tbody", { key: 'ba950a1da1ec0dffd7bc8457cdb3ce65d0f8b69b', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: '8d13d8f6b64377f560d06410c09d24293708b6a8', columnSpan: this.columnData.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: 'c75d61977b26ca5d4aa3711bae1ce6e571b3e3b2', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), index.h(tableLoadingState.TableErrorState, { key: '08e3f88116de5783f018a0c06d21d0d9cc4f5feb', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
119
+ this.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => {
120
+ let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
121
+ if (nestedHtml) {
122
+ return index.h("td", { part: "table-cell", innerHTML: dataEntry.value });
123
+ }
124
+ else {
125
+ return index.h("td", { part: "table-cell" }, dataEntry);
71
126
  }
72
- this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
73
- }, entityId: this.payments.map((payment) => payment.id), columnData: [
74
- ['Made On', 'The date and time each payment was made'],
75
- ['Amount', 'The dollar amount of each payment'],
76
- ['Description', 'The payment description, if you provided one'],
77
- ['Cardholder', 'The name associated with the payment method'],
78
- ['Payment Method', 'The brand and last 4 digits of the payment method'],
79
- ['Status', 'The current status of each payment'],
80
- ['Payment ID', 'The unique identifier of each payment']
81
- ], rowData: this.payments.map((payment) => ([
82
- {
83
- type: 'head',
84
- value: `
85
- <div class='fw-bold'>${utils.formatDate(payment.created_at)}</div>
86
- <div class='fw-bold'>${utils.formatTime(payment.created_at)}</div>
87
- `,
88
- },
89
- utils.formatCurrency(payment.amount),
90
- payment.description,
91
- payment.payment_method.payersName,
92
- payment.payment_method.lastFourDigits,
93
- {
94
- type: 'inner',
95
- value: utils.MapPaymentStatusToBadge(payment.status)
96
- },
97
- payment.id
98
- ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
127
+ }))))), this.paging && (index.h("tfoot", { key: '728f671ab03923c90e11901a0d3aac4bc30e72a7', class: "sticky-bottom" }, index.h("tr", { key: 'd0df9b7c857287eec9568157ecf8f547a01f2fc5', class: "table-light align-middle" }, index.h("td", { key: 'e0de54912240b3e812f37ea675b2eef50d9545c4', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, index.h("pagination-menu", { key: 'f2d7846030a5aaa0c2311cad61f4d5865440a904', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
99
128
  }
100
129
  static get watchers() { return {
101
130
  "params": ["updateOnPropChange"],
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils$1 = require('./utils-80191fbe.js');
6
+ const utils$1 = require('./utils-89d86e29.js');
7
7
  const utils = require('./utils-c1d2e426.js');
8
- const styledHost = require('./styled-host-b8bed12a.js');
8
+ const styledHost = require('./styled-host-cc053016.js');
9
9
 
10
10
  const PayoutDetailsCore = class {
11
11
  constructor(hostRef) {
@@ -59,7 +59,7 @@ const PayoutDetailsCore = class {
59
59
  }
60
60
  render() {
61
61
  var _a;
62
- return (index.h(styledHost.StyledHost, { key: 'da7690d5e4b21e8cb32651080ef2c8df29440c1b' }, this.loading && utils.LoadingState(), !this.loading && this.errorMessage && utils.ErrorState(this.errorMessage), !this.loading && this.payout && (index.h("justifi-details", { key: '4d9a7636e345bc5dd88b910add3a340e22589c52', "error-message": this.errorMessage }, index.h(utils.EntityHeadInfo, { key: '91d6eb90ec40052d858f4736a9c60d9c9a96d40d', slot: "head-info", badge: index.h("span", { slot: 'badge', innerHTML: utils$1.MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${utils$1.formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, index.h(utils.EntityHeadInfoItem, { key: 'be9f9b43c294b76326f1ce63af79217b8abf5b0d', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payout.updated_at)} ${utils$1.formatTime(this.payout.updated_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payout.created_at)} ${utils$1.formatTime(this.payout.created_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb', title: "ID", value: this.payout.id }), index.h("div", { key: '44b484491b5ec470270b469de15076d6d55e61d0', class: "m-4" }, index.h("button", { key: 'ca8b6cb61b56caebbec1eeb01e6de638865219bd', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), index.h("div", { key: '2f959d7c549dc1f8e4df2e8d12ab9988255aba03', slot: 'detail-sections' }, index.h(utils.DetailSectionTitle, { key: '741717a3e056163ee88452998f2d6e5b7dc0ccc1', sectionTitle: "Details" }), index.h("div", { key: 'd456b3a372525a0eff6c724e507ff325951fa430', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: 'a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d', title: "Date paid", value: utils$1.formatDate(this.payout.deposits_at) }), index.h(utils.DetailItem, { key: '90f49509ff399a9c164a7aeaf7307077b59e8559', title: "Statement Description", value: this.payout.description }), index.h(utils.DetailItem, { key: '52ef8b50065db1a111b003e9ceadfa1cc4076b74', title: "Payout Method", value: this.payout.delivery_method }), index.h(utils.DetailItem, { key: 'ee73a34d15af0cc677fc6d903706df3f10249bdf', title: "Amount", value: utils$1.formatCurrency(this.payout.amount) }), index.h(utils.DetailItem, { key: '229827b98fd76bd1dec1beeac0d99517d09dc677', title: "Fee", value: utils$1.formatCurrency(this.payout.fees_total) })), index.h(utils.DetailSectionTitle, { key: '1f4bb886e4a07b5054107aa00c2b98644e87859b', sectionTitle: "Account" }), index.h("div", { key: '78181a7ae216bf3b0013eee0494b4b149a2ec9c3', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: '273cabd55194c104d1d421db53030601f5efa83c', title: "ID", value: this.payout.account_id }), index.h(utils.DetailItem, { key: '1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7', title: "Account Type", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: '1d5489f81d96025bdf7d7391623ddcc1ff3a7978', title: "Institution", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: 'f17d8096799b7eeba7c550ad828f2ffa97b65f56', title: "Routing Number", value: this.payout.bank_account.routing_number }), index.h(utils.DetailItem, { key: 'cf3c83de7f119738940951a9481253ed855c768e', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), index.h(utils.DetailSectionTitle, { key: '458186b5bd7fb0aa954c283dee08e5090b164b27', sectionTitle: 'Metadata' }), index.h("div", { key: '90866a28028af6c7e46ab89c221016cd698299f2', class: "d-table gap-2 w-100" }, index.h(utils.CodeBlock, { key: 'ed25523342b6a751e48d2d7c11cef7e541b6ed3b', metadata: this.payout.metadata })))))));
62
+ return (index.h(styledHost.StyledHost, { key: 'fdf7905cdc7696414b765d61d0f78c7193cbbc76' }, this.loading && utils.LoadingState(), !this.loading && this.errorMessage && utils.ErrorState(this.errorMessage), !this.loading && this.payout && (index.h("justifi-details", { key: 'f79827c287d68484a87232ae956a1c15e3d7044d', "error-message": this.errorMessage }, index.h(utils.EntityHeadInfo, { key: 'dfa9c228f2cd1b0b2d14dc6ce44478ee8fc35d00', slot: "head-info", badge: index.h("span", { slot: 'badge', innerHTML: utils$1.MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${utils$1.formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, index.h(utils.EntityHeadInfoItem, { key: '6b5907e3f7753d4e2f6ba59bfe509d97e2a4c1c0', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payout.updated_at)} ${utils$1.formatTime(this.payout.updated_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '63b7497217a00268190eaea1475639fc5e0b43ca', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payout.created_at)} ${utils$1.formatTime(this.payout.created_at)}` }), index.h(utils.EntityHeadInfoItem, { key: 'e26e56abbac3e12584c187f6f1b560b0f4b33a6f', title: "ID", value: this.payout.id }), index.h("div", { key: 'e84dd653fb1adc566b0afbfdfc87cce40ed47280', class: "m-4" }, index.h("button", { key: 'fac0022786dc03349a65dc54729dc2f508c9441f', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), index.h("div", { key: '9cf642b803c59146895b762eaff40f5026c9f94b', slot: 'detail-sections' }, index.h(utils.DetailSectionTitle, { key: '90ed8aafabf9eebb47da15c6c8b8d1f527d23557', sectionTitle: "Details" }), index.h("div", { key: '592b8489fa30441bbf11a52d3daf6a2debcc121f', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: '0885f3ece509936d1e1bad64d4a998fbc487ee3a', title: "Date paid", value: utils$1.formatDate(this.payout.deposits_at) }), index.h(utils.DetailItem, { key: 'b8a7da2bfeada94c8c7c080b516c1bc7fc26f414', title: "Statement Description", value: this.payout.description }), index.h(utils.DetailItem, { key: 'd8928341e89161d4bafc2940f1aa738b345779dd', title: "Payout Method", value: this.payout.delivery_method }), index.h(utils.DetailItem, { key: '570bd2a2d44f094870e61debca61c2b5aa772679', title: "Amount", value: utils$1.formatCurrency(this.payout.amount) }), index.h(utils.DetailItem, { key: '2882865db185d1668103d819e62cf61edc711697', title: "Fee", value: utils$1.formatCurrency(this.payout.fees_total) })), index.h(utils.DetailSectionTitle, { key: 'f9735ff73c650ad318d771df5c22c7d8834a09f6', sectionTitle: "Account" }), index.h("div", { key: 'd7d53fd77e704035a19dc15bc04ee06dfaa0c51a', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: '486ae1c4ae990928bf24cc687cb4456bbc6e18ea', title: "ID", value: this.payout.account_id }), index.h(utils.DetailItem, { key: '528d7d6a299aa1019125f34fc903ea622d09de53', title: "Account Type", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: 'eafb132e84de81d41bd154aec55974d8496995dd', title: "Institution", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: '7f565f8dfacab4cf8edc7025d839dff1d8de2719', title: "Routing Number", value: this.payout.bank_account.routing_number }), index.h(utils.DetailItem, { key: '61338f5ed539d70b4caa08ffa200d8e47f52ebde', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), index.h(utils.DetailSectionTitle, { key: 'cea128826f004ece9e6c29c97c07e98a3d45706c', sectionTitle: 'Metadata' }), index.h("div", { key: 'bf884c3dafa50cd1b8e0d98711f0fe5fc9d60391', class: "d-table gap-2 w-100" }, index.h(utils.CodeBlock, { key: '2d92e2f8d6f032cbaff741da43ca97424b8decaf', metadata: this.payout.metadata })))))));
63
63
  }
64
64
  static get watchers() { return {
65
65
  "getPayout": ["getPayoutWatcher"]
@@ -4,12 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const Pagination = require('./Pagination-0da8f095.js');
7
- require('./Payment-24f22eca.js');
7
+ require('./Payment-1a8a8ca6.js');
8
8
  const Payout = require('./Payout-a2dd7b01.js');
9
- const utils = require('./utils-80191fbe.js');
10
- const exportedParts = require('./exported-parts-b18c68c2.js');
9
+ const utils = require('./utils-89d86e29.js');
11
10
  const ComponentError = require('./ComponentError-233ac749.js');
12
- const styledHost = require('./styled-host-b8bed12a.js');
11
+ const exportedParts = require('./exported-parts-b18c68c2.js');
12
+ const styledHost = require('./styled-host-cc053016.js');
13
+ const tableLoadingState = require('./table-loading-state-8b406852.js');
13
14
 
14
15
  const DownloadIcon = (props) => (index.h("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' }, props),
15
16
  index.h("path", { d: 'M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z' }),
@@ -21,6 +22,31 @@ const PayoutsListCore = class {
21
22
  index.registerInstance(this, hostRef);
22
23
  this.rowClicked = index.createEvent(this, "payout-row-clicked", 7);
23
24
  this.errorEvent = index.createEvent(this, "error-event", 7);
25
+ this.downloadCSV = (payoutId) => {
26
+ this.getPayoutCSV({
27
+ payoutId,
28
+ onError: () => {
29
+ this.errorEvent.emit({
30
+ errorCode: ComponentError.ComponentErrorCodes.FETCH_ERROR,
31
+ message: 'Failed to download CSV',
32
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
33
+ });
34
+ },
35
+ });
36
+ };
37
+ this.handleDateChange = (name, value) => {
38
+ this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
39
+ };
40
+ this.handleClickPrevious = (beforeCursor) => {
41
+ const newParams = Object.assign({}, this.params);
42
+ delete newParams.after_cursor;
43
+ this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
44
+ };
45
+ this.handleClickNext = (afterCursor) => {
46
+ const newParams = Object.assign({}, this.params);
47
+ delete newParams.before_cursor;
48
+ this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
49
+ };
24
50
  this.mapStatusToBadge = (status) => {
25
51
  switch (status) {
26
52
  case Payout.PayoutStatuses.scheduled:
@@ -32,35 +58,16 @@ const PayoutsListCore = class {
32
58
  case Payout.PayoutStatuses.canceled:
33
59
  return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
34
60
  case Payout.PayoutStatuses.forwarded:
35
- return `<span class="badge bg-secondary" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
61
+ return `<span class="badge bg-secondary" title='The funds have been forwarded to your next successful payout'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
36
62
  case Payout.PayoutStatuses.paid:
37
63
  return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
38
64
  }
39
65
  };
40
- this.handleClickPrevious = (beforeCursor) => {
41
- const newParams = Object.assign({}, this.params);
42
- delete newParams.after_cursor;
43
- this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
44
- };
45
- this.handleClickNext = (afterCursor) => {
46
- const newParams = Object.assign({}, this.params);
47
- delete newParams.before_cursor;
48
- this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
49
- };
50
- this.downloadCSV = (payoutId) => {
51
- this.getPayoutCSV({
52
- payoutId,
53
- onError: () => {
54
- this.errorEvent.emit({
55
- errorCode: ComponentError.ComponentErrorCodes.FETCH_ERROR,
56
- message: 'Failed to download CSV',
57
- severity: ComponentError.ComponentErrorSeverity.ERROR
58
- });
59
- }
60
- });
61
- };
62
- this.handleDateChange = (name, value) => {
63
- this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
66
+ this.rowClickHandler = (e) => {
67
+ const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
68
+ if (!clickedPayoutID)
69
+ return;
70
+ this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
64
71
  };
65
72
  this.getPayouts = undefined;
66
73
  this.getPayoutCSV = undefined;
@@ -70,14 +77,14 @@ const PayoutsListCore = class {
70
77
  this.paging = Pagination.pagingDefaults;
71
78
  this.params = undefined;
72
79
  }
80
+ updateOnPropChange() {
81
+ this.fetchData();
82
+ }
73
83
  componentWillLoad() {
74
84
  if (this.getPayouts) {
75
85
  this.fetchData();
76
86
  }
77
87
  }
78
- updateOnPropChange() {
79
- this.fetchData();
80
- }
81
88
  fetchData() {
82
89
  this.loading = true;
83
90
  this.getPayouts({
@@ -92,54 +99,63 @@ const PayoutsListCore = class {
92
99
  this.errorEvent.emit({
93
100
  errorCode: code,
94
101
  message: error,
95
- severity
102
+ severity,
96
103
  });
97
104
  this.loading = false;
98
105
  },
99
106
  });
100
107
  }
101
- ;
108
+ get entityId() {
109
+ return this.payouts.map((payout) => payout.id);
110
+ }
111
+ get columnData() {
112
+ return [
113
+ ['Paid Out On', 'The date each transaction occurred'],
114
+ ['Type', 'The type of each transaction'],
115
+ ['Account', 'The ID of the account associated with each payout'],
116
+ ['Paid Out To', 'The bank account to which each payout was transferred'],
117
+ ['Payments', 'Sum of payments in each payout'],
118
+ ['Refunds', 'Sum of refunds in each payout'],
119
+ ['Fees', 'Sum of fees in each payout'],
120
+ ['Other', 'Sum of less common transactions in each payout'],
121
+ ['Payout Amount', 'The net sum of all transactions in each payout'],
122
+ ['Status', 'The real-time status of each payout'],
123
+ ['Actions', ''],
124
+ ];
125
+ }
126
+ get rowData() {
127
+ return this.payouts.map((payout) => [
128
+ {
129
+ type: 'head',
130
+ value: `
131
+ <div class='fw-bold'>${utils.formatDate(payout.created_at)}</div>
132
+ <div class='fw-bold'>${utils.formatTime(payout.created_at)}</div>
133
+ `,
134
+ },
135
+ payout.payout_type,
136
+ payout.account_id,
137
+ `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
138
+ utils.formatCurrency(payout.payments_total),
139
+ utils.formatCurrency(payout.refunds_total),
140
+ utils.formatCurrency(payout.fees_total),
141
+ utils.formatCurrency(payout.other_total),
142
+ utils.formatCurrency(payout.amount),
143
+ { type: 'inner', value: this.mapStatusToBadge(payout.status) },
144
+ (index.h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } })),
145
+ ]);
146
+ }
147
+ get showEmptyState() {
148
+ return !this.loading && !this.errorMessage && this.rowData.length < 1;
149
+ }
150
+ get showErrorState() {
151
+ return !this.loading && !!this.errorMessage;
152
+ }
153
+ get showRowData() {
154
+ return !this.showEmptyState && !this.showErrorState;
155
+ }
102
156
  render() {
103
- return (index.h(styledHost.StyledHost, { key: '469e4d0a5fcb7370d0d076e9f27cf5102235324e', exportedparts: exportedParts.tableExportedParts }, index.h("div", { key: '883f193b2da3cdd3da3f31422def69d206ead983', class: "row gy-3 mb-4" }, index.h("div", { key: '585684441aeded4619f9a0f03151b5e8dd2219d8', class: "col-2" }, index.h("form-control-date", { key: 'bc69d932f1d32074b3f0fdd2c9dba6f9601db891', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), index.h("div", { key: 'd026150a6a09ad49f549ea2b5174a1ed311987dc', class: "col-2" }, index.h("form-control-date", { key: '2621b14359b8159270d67e53f9ad2f6464cbb467', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), index.h("justifi-table", { key: '757c9bbee39356ee23819f0e7e4d3b096bdf38f6', rowClickHandler: (e) => {
104
- const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
105
- if (!clickedPayoutID) {
106
- return;
107
- }
108
- this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
109
- }, columnData: [
110
- ['Paid Out On', 'The date each transaction occurred'],
111
- ['Type', 'The type of each transaction'],
112
- ['Account', 'The ID of the account associated with each payout'],
113
- ['Paid Out To', 'The bank account to which each payout was transferred'],
114
- ['Payments', 'Sum of payments in each payout'],
115
- ['Refunds', 'Sum of refunds in each payout'],
116
- ['Fees', 'Sum of fees in each payout'],
117
- ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
118
- ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement'],
119
- ['Status', 'The real-time status of each payout'],
120
- ['Actions', '']
121
- ], entityId: this.payouts.map((payout) => payout.id), rowData: this.payouts.map((payout) => ([
122
- {
123
- type: 'head',
124
- value: `
125
- <div class='fw-bold'>${utils.formatDate(payout.created_at)}</div>
126
- <div class='fw-bold'>${utils.formatTime(payout.created_at)}</div>
127
- `,
128
- },
129
- payout.payout_type,
130
- payout.account_id,
131
- `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
132
- utils.formatCurrency(payout.payments_total),
133
- utils.formatCurrency(payout.refunds_total),
134
- utils.formatCurrency(payout.fees_total),
135
- utils.formatCurrency(payout.other_total),
136
- utils.formatCurrency(payout.amount),
137
- {
138
- type: 'inner',
139
- value: this.mapStatusToBadge(payout.status)
140
- },
141
- (index.h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } }))
142
- ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
157
+ return (index.h(styledHost.StyledHost, { key: '594c52003f897f4c50f79935e42a7042fb5ec168', exportedparts: exportedParts.tableExportedParts }, index.h("div", { key: 'f2b1d971e1e7bc5596459c071c3aa931ba4cb4b9', class: "row gy-3 mb-4" }, index.h("div", { key: 'd98e3ed56421493a60bd0a285079aa99ae705506', class: "col-2" }, index.h("form-control-date", { key: 'c9c899884bcc6fa6d306b95473ef0a7354e57bd5', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), index.h("div", { key: '0059a75bf2f478b107d59bd9d7cc29de10dffe57', class: "col-2" }, index.h("form-control-date", { key: 'ef9a31ac8a8e7336386664b70289ee34677152a4', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), index.h("div", { key: '65da1114a66ac4cdf8d6ec012a42b2f760af5c76', class: "table-wrapper" }, index.h("table", { key: 'd68d8f61835cc4dc5dc988ff61843e6254494ace', class: "table table-hover" }, index.h("thead", { key: 'aa691db8fbfbcdad59acbdc1ef38497b552928ab', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: 'aa9f61cbf05b9420026861cb14e6a30a6c9e347e', class: "table-light text-nowrap", part: "table-head-row" }, this.columnData.map((column) => (index.h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, Array.isArray(column) ? column[0] : column))))), index.h("tbody", { key: 'cf0127f26e8bc5b7afbbfc4a36fab4de948d1727', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: 'd6b832786c4959176974c7a343442c8d1c50b5c2', columnSpan: this.columnData.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: '398a20957f76ba14e1b0677fbd6fbfbacce61fbb', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), index.h(tableLoadingState.TableErrorState, { key: 'd9f755a07a6f8cd4967eac60beff92f36322dcdd', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
158
+ this.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (index.h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (index.h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (index.h("tfoot", { key: '503fa3a3a7ffe5d52b614153b286dd0326c02091', class: "sticky-bottom" }, index.h("tr", { key: 'e3af74b96bfc1f5ac1f0f0655eaed096102d0e89', class: "table-light align-middle" }, index.h("td", { key: 'a53f9d37181ea29a9fcb6ab46b2daf7cc66509be', part: "pagination-bar", colSpan: this.columnData.length }, index.h("pagination-menu", { key: 'b0779289444747e0b18bb63e6a17cdc89bd390ca', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
143
159
  }
144
160
  static get watchers() { return {
145
161
  "params": ["updateOnPropChange"],
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-fb499e95.js');
4
+
5
+ // This component relies on "src/styles/animations.css"
6
+ // where it is defined the pulsation animation.
7
+ // Because of shadow-dom, it's not possible to add it to the root.css.
8
+ // Don't forget to include this file in the `styleUrls`
9
+ // property of the web component that will render the Skeleton
10
+ const Skeleton = ({ component = 'div', height, width, variant = 'text', componentClassName, styles = {}, }) => {
11
+ const getVariantStyle = () => {
12
+ if (variant === 'text') {
13
+ return {
14
+ marginTop: 0,
15
+ marginBottom: 0,
16
+ height: 'auto',
17
+ transformOrigin: '0 55%',
18
+ transform: 'scale(1, 0.60)',
19
+ borderRadius: '4px/6.67px',
20
+ '::before': {
21
+ content: '"\\00a0"',
22
+ },
23
+ };
24
+ }
25
+ else if (variant === 'circular') {
26
+ return {
27
+ borderRadius: '50%',
28
+ };
29
+ }
30
+ else if (variant === 'rounded') {
31
+ return {
32
+ borderRadius: '4px',
33
+ };
34
+ }
35
+ return {};
36
+ };
37
+ const combinedStyle = Object.assign(Object.assign(Object.assign({}, styles), getVariantStyle()), { width,
38
+ height });
39
+ const TagType = component;
40
+ return (index.h(TagType, { class: componentClassName, style: combinedStyle, part: "skeleton" }));
41
+ };
42
+
43
+ exports.Skeleton = Skeleton;