@justifi/webcomponents 4.21.0 → 4.22.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 (589) hide show
  1. package/dist/cjs/{Analytics-880f5152.js → Analytics-9db96975.js} +2 -2
  2. package/dist/cjs/{Api-b98b256f.js → Api-f5280a80.js} +6 -4
  3. package/dist/cjs/Checkout-a528241d.js +85 -0
  4. package/dist/cjs/SubAccount-cc95a4a0.js +106 -0
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  6. package/dist/cjs/{business-additional-questions-schema-26b0eecb.js → business-additional-questions-schema-19f08938.js} +2 -2
  7. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  8. package/dist/cjs/{business-identity-schema-503ecb77.js → business-identity-schema-a8bb2276.js} +2 -2
  9. package/dist/cjs/{business.service-031c0084.js → business.service-7faffa0b.js} +1 -1
  10. package/dist/cjs/{check-pkg-version-54f7dfda.js → check-pkg-version-23a1cabd.js} +1 -1
  11. package/dist/cjs/checkout.service-160f3a9c.js +36 -0
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +181 -0
  13. package/dist/cjs/checkouts-list-filters.cjs.entry.js +35 -0
  14. package/dist/cjs/{custom-popper_5.cjs.entry.js → custom-popper_4.cjs.entry.js} +4 -19
  15. package/dist/cjs/dispute-30c806f6.js +10 -0
  16. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +11 -11
  18. package/dist/cjs/form-control-date.cjs.entry.js +83 -0
  19. package/dist/cjs/form-control-error-text.cjs.entry.js +21 -0
  20. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  21. package/dist/cjs/form-control-help-text.cjs.entry.js +21 -0
  22. package/dist/cjs/{form-control-help-text_2.cjs.entry.js → form-control-monetary.cjs.entry.js} +1 -16
  23. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +99 -0
  24. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  25. package/dist/cjs/form-control-radio.cjs.entry.js +44 -0
  26. package/dist/cjs/form-control-textarea.cjs.entry.js +49 -0
  27. package/dist/cjs/{get-payout-csv-a82b2c1c.js → get-payout-csv-12dc9540.js} +3 -2
  28. package/dist/cjs/get-subaccounts-8f7a930f.js +54 -0
  29. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  30. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  31. package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +173 -0
  32. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  33. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1678 -13
  34. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-business-form.cjs.entry.js +11 -10
  36. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  38. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -8
  39. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -25
  40. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +119 -0
  41. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  42. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +28 -0
  43. package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -0
  44. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  45. package/dist/cjs/{justifi-new-payment-method_4.cjs.entry.js → justifi-new-payment-method_5.cjs.entry.js} +18 -1
  46. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
  48. package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -9
  49. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -2
  50. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -13
  54. package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
  55. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  56. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -6
  57. package/dist/cjs/justifi-terminals-list.cjs.entry.js +137 -0
  58. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +59 -0
  59. package/dist/cjs/loader.cjs.js +1 -1
  60. package/dist/{esm/payments-list-filters_2.entry.js → cjs/lodash-dbf6a6a4.js} +2 -57
  61. package/dist/cjs/{package-cb1b1015.js → package-41c8f38c.js} +1 -1
  62. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  63. package/dist/cjs/{payment.service-6f79aad2.js → payment.service-83da752a.js} +3 -2
  64. package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
  65. package/dist/cjs/payments-list-filters.cjs.entry.js +35 -0
  66. package/dist/cjs/payments-status-58e45b2e.js +26 -0
  67. package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
  68. package/dist/cjs/payouts-list-core.cjs.entry.js +7 -23
  69. package/dist/cjs/payouts-status-2f7be07d.js +24 -0
  70. package/dist/cjs/{schema-validations-0a7e46a3.js → schema-validations-184a4356.js} +1 -1
  71. package/dist/cjs/table-bb114e2f.js +20 -0
  72. package/dist/cjs/table-filters-menu.cjs.entry.js +35 -0
  73. package/dist/cjs/terminals-list-core.cjs.entry.js +166 -0
  74. package/dist/cjs/terminals-list-filters.cjs.entry.js +32 -0
  75. package/dist/cjs/{utils-52fb7fa1.js → utils-3d84442d.js} +0 -44
  76. package/dist/cjs/webcomponents.cjs.js +1 -1
  77. package/dist/collection/api/Api.js +6 -4
  78. package/dist/collection/api/Checkout.js +77 -1
  79. package/dist/collection/api/SubAccount.js +33 -0
  80. package/dist/collection/api/Terminal.js +25 -0
  81. package/dist/collection/api/get-subaccounts.js +31 -0
  82. package/dist/collection/api/index.js +2 -0
  83. package/dist/collection/api/services/checkout.service.js +10 -1
  84. package/dist/collection/api/services/subaccounts.service.js +13 -0
  85. package/dist/collection/api/services/terminal.service.js +20 -0
  86. package/dist/collection/collection-manifest.json +37 -15
  87. package/dist/collection/components/billing-form/billing-form.js +3 -3
  88. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  89. package/dist/collection/components/business-details/business-details-core.js +1 -1
  90. package/dist/collection/components/business-details/business-details.js +1 -1
  91. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -1
  92. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
  93. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  94. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  95. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  96. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
  97. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  98. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
  99. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -4
  100. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
  101. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
  102. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
  103. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -2
  104. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -3
  105. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -3
  106. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +3 -3
  107. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +2 -2
  108. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
  109. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -3
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  111. package/dist/collection/components/checkout/checkout-core.js +1 -1
  112. package/dist/collection/components/checkouts-list/checkouts-list-core.js +257 -0
  113. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +84 -0
  114. package/dist/collection/components/checkouts-list/checkouts-list.js +208 -0
  115. package/dist/collection/components/checkouts-list/checkouts-status.js +13 -0
  116. package/dist/collection/components/checkouts-list/checkouts-table.js +20 -0
  117. package/dist/collection/components/checkouts-list/get-checkouts.js +31 -0
  118. package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +8 -0
  119. package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +8 -0
  120. package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +90 -0
  121. package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +8 -0
  122. package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +8 -0
  123. package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +8 -0
  124. package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +8 -0
  125. package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +16 -0
  126. package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +8 -0
  127. package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +12 -0
  128. package/dist/collection/components/dispute-management/dispute-management-core.js +53 -0
  129. package/dist/collection/components/dispute-management/dispute-management.js +8 -0
  130. package/dist/collection/components/dispute-management/dispute-notification.js +48 -0
  131. package/dist/collection/components/dispute-management/dispute.js +8 -0
  132. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  133. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
  134. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  135. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  136. package/dist/collection/components/payment-details/payment-details-core.js +10 -9
  137. package/dist/collection/components/payment-details/payment-details.js +1 -1
  138. package/dist/collection/components/payment-form/payment-form.js +3 -3
  139. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  140. package/dist/collection/components/payments-list/payments-list-core.js +5 -5
  141. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  142. package/dist/collection/components/payments-list/payments-list.js +3 -5
  143. package/dist/collection/components/payments-list/payments-status.js +23 -0
  144. package/dist/collection/components/payout-details/payout-details-core.js +4 -3
  145. package/dist/collection/components/payout-details/payout-details.js +1 -1
  146. package/dist/collection/components/payouts-list/payouts-list-core.js +6 -22
  147. package/dist/collection/components/payouts-list/payouts-list.js +4 -7
  148. package/dist/collection/components/payouts-list/payouts-status.js +21 -0
  149. package/dist/collection/components/refund-form/refund-form.js +2 -2
  150. package/dist/collection/components/terminals-list/get-terminal-detail.js +29 -0
  151. package/dist/collection/components/terminals-list/get-terminals.js +31 -0
  152. package/dist/collection/components/terminals-list/terminals-list-core.js +257 -0
  153. package/dist/collection/components/terminals-list/terminals-list-filters.js +81 -0
  154. package/dist/collection/components/terminals-list/terminals-list.js +209 -0
  155. package/dist/collection/components/terminals-list/terminals-status.js +11 -0
  156. package/dist/collection/components/terminals-list/terminals-table.js +15 -0
  157. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +9 -0
  158. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +276 -0
  159. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  160. package/dist/collection/{components → ui-components}/details/details.js +1 -1
  161. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  162. package/dist/collection/{components → ui-components}/form/form-control-checkbox.js +1 -1
  163. package/dist/collection/{components → ui-components}/form/form-control-date.js +21 -2
  164. package/dist/collection/{components → ui-components}/form/form-control-file.js +1 -1
  165. package/dist/collection/{components → ui-components}/form/form-control-monetary.js +1 -1
  166. package/dist/collection/{components → ui-components}/form/form-control-number-masked.js +1 -1
  167. package/dist/collection/{components → ui-components}/form/form-control-number.js +1 -1
  168. package/dist/collection/ui-components/form/form-control-radio.js +209 -0
  169. package/dist/collection/{components → ui-components}/form/form-control-select.js +1 -1
  170. package/dist/collection/{components → ui-components}/form/form-control-text.js +1 -1
  171. package/dist/collection/ui-components/form/form-control-textarea.js +229 -0
  172. package/dist/collection/ui-components/index.js +1 -0
  173. package/dist/collection/utils/table.js +16 -0
  174. package/dist/collection/utils/utils.js +0 -42
  175. package/dist/docs.json +9587 -6724
  176. package/dist/esm/{Analytics-3dde5a98.js → Analytics-777962a4.js} +2 -2
  177. package/dist/esm/{Api-c8abc2e0.js → Api-391d00e2.js} +6 -4
  178. package/dist/esm/Checkout-0b4086f8.js +83 -0
  179. package/dist/esm/SubAccount-7f7e4c56.js +102 -0
  180. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  181. package/dist/esm/{business-additional-questions-schema-a5583cf8.js → business-additional-questions-schema-97f52255.js} +2 -2
  182. package/dist/esm/business-details-core.entry.js +1 -1
  183. package/dist/esm/{business-identity-schema-9e3269fb.js → business-identity-schema-434e16bc.js} +2 -2
  184. package/dist/esm/{business.service-1f589b6e.js → business.service-97a3da69.js} +1 -1
  185. package/dist/esm/{check-pkg-version-4d144b72.js → check-pkg-version-bac8fac0.js} +1 -1
  186. package/dist/esm/checkout.service-ef1549c6.js +34 -0
  187. package/dist/esm/checkouts-list-core.entry.js +177 -0
  188. package/dist/esm/checkouts-list-filters.entry.js +31 -0
  189. package/dist/esm/{custom-popper_5.entry.js → custom-popper_4.entry.js} +5 -19
  190. package/dist/esm/dispute-4d2e0a04.js +10 -0
  191. package/dist/esm/form-alert_5.entry.js +3 -3
  192. package/dist/esm/form-control-checkbox_9.entry.js +11 -11
  193. package/dist/esm/form-control-date.entry.js +79 -0
  194. package/dist/esm/form-control-error-text.entry.js +17 -0
  195. package/dist/esm/form-control-file.entry.js +1 -1
  196. package/dist/esm/form-control-help-text.entry.js +17 -0
  197. package/dist/esm/{form-control-help-text_2.entry.js → form-control-monetary.entry.js} +3 -17
  198. package/dist/esm/form-control-number-masked_2.entry.js +94 -0
  199. package/dist/esm/form-control-number.entry.js +1 -1
  200. package/dist/esm/form-control-radio.entry.js +40 -0
  201. package/dist/esm/form-control-textarea.entry.js +45 -0
  202. package/dist/esm/{get-payout-csv-d29146ee.js → get-payout-csv-70974763.js} +3 -2
  203. package/dist/esm/get-subaccounts-16c8ce40.js +51 -0
  204. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  205. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  206. package/dist/esm/justifi-additional-statement_11.entry.js +159 -0
  207. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  208. package/dist/esm/justifi-billing-form_2.entry.js +1679 -14
  209. package/dist/esm/justifi-business-details.entry.js +6 -6
  210. package/dist/esm/justifi-business-form.entry.js +11 -10
  211. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  212. package/dist/esm/justifi-card-form.entry.js +3 -3
  213. package/dist/esm/justifi-checkout-core.entry.js +2 -7
  214. package/dist/esm/justifi-checkout.entry.js +8 -23
  215. package/dist/esm/justifi-checkouts-list.entry.js +115 -0
  216. package/dist/esm/justifi-details.entry.js +2 -2
  217. package/dist/esm/justifi-dispute-management-core.entry.js +24 -0
  218. package/dist/esm/justifi-dispute-management.entry.js +12 -0
  219. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  220. package/dist/esm/{justifi-new-payment-method_4.entry.js → justifi-new-payment-method_5.entry.js} +18 -2
  221. package/dist/esm/justifi-owner-form_3.entry.js +7 -7
  222. package/dist/esm/justifi-payment-details.entry.js +8 -7
  223. package/dist/esm/justifi-payment-form.entry.js +10 -9
  224. package/dist/esm/justifi-payment-method-selector.entry.js +3 -2
  225. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  226. package/dist/esm/justifi-payments-list.entry.js +10 -11
  227. package/dist/esm/justifi-payout-details.entry.js +8 -7
  228. package/dist/esm/justifi-payouts-list.entry.js +11 -13
  229. package/dist/esm/justifi-refund-form.entry.js +5 -4
  230. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  231. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -6
  232. package/dist/esm/justifi-terminals-list.entry.js +133 -0
  233. package/dist/esm/justifi-tokenize-payment-method.entry.js +55 -0
  234. package/dist/esm/loader.js +1 -1
  235. package/dist/{cjs/payments-list-filters_2.cjs.entry.js → esm/lodash-faeb5a52.js} +1 -63
  236. package/dist/esm/{package-4ab64620.js → package-5144835c.js} +1 -1
  237. package/dist/esm/payment-details-core.entry.js +10 -9
  238. package/dist/esm/{payment.service-f9c3e9d7.js → payment.service-2f67410b.js} +3 -2
  239. package/dist/esm/payments-list-core.entry.js +6 -6
  240. package/dist/esm/payments-list-filters.entry.js +31 -0
  241. package/dist/esm/payments-status-4937a170.js +24 -0
  242. package/dist/esm/payout-details-core.entry.js +4 -3
  243. package/dist/esm/payouts-list-core.entry.js +7 -23
  244. package/dist/esm/payouts-status-cd58e525.js +22 -0
  245. package/dist/esm/{schema-validations-e725d701.js → schema-validations-c1728516.js} +1 -1
  246. package/dist/esm/table-75364107.js +18 -0
  247. package/dist/esm/table-filters-menu.entry.js +31 -0
  248. package/dist/esm/terminals-list-core.entry.js +162 -0
  249. package/dist/esm/terminals-list-filters.entry.js +28 -0
  250. package/dist/esm/{utils-620f2d78.js → utils-3daada24.js} +1 -43
  251. package/dist/esm/webcomponents.js +1 -1
  252. package/dist/module/Api.js +6 -4
  253. package/dist/module/Checkout.js +83 -0
  254. package/dist/module/SubAccount.js +102 -0
  255. package/dist/module/additional-statement.js +63 -0
  256. package/dist/module/billing-form.js +1 -1
  257. package/dist/module/business-additional-questions-form-step-core.js +1 -1
  258. package/dist/module/business-bank-account-form-step.js +3 -2
  259. package/dist/module/business-core-info-form-step-core.js +1 -1
  260. package/dist/module/business-core-info.js +1 -1
  261. package/dist/module/business-document-upload-form-step.js +1 -1
  262. package/dist/module/business-document-upload-input-group.js +1 -1
  263. package/dist/module/business-documents-on-file.js +1 -1
  264. package/dist/module/business-representative-form-inputs.js +1 -1
  265. package/dist/module/business-representative-form-step-core.js +1 -1
  266. package/dist/module/business-terms-conditions-form-step.js +3 -2
  267. package/dist/module/cancellation-policy.js +63 -0
  268. package/dist/module/checkout-core.js +2 -7
  269. package/dist/module/checkout.service.js +34 -0
  270. package/dist/module/checkouts-list-core.d.ts +11 -0
  271. package/dist/module/checkouts-list-core.js +6 -0
  272. package/dist/module/checkouts-list-core2.js +249 -0
  273. package/dist/module/checkouts-list-filters.d.ts +11 -0
  274. package/dist/module/checkouts-list-filters.js +6 -0
  275. package/dist/module/checkouts-list-filters2.js +80 -0
  276. package/dist/module/counter-dispute.js +189 -0
  277. package/dist/module/custom-popper2.js +2 -2
  278. package/dist/module/customer-details.js +69 -0
  279. package/dist/module/details.js +1 -1
  280. package/dist/module/dispute-management-core.js +160 -0
  281. package/dist/module/dispute-notification.js +36 -0
  282. package/dist/module/dispute-reason.js +45 -0
  283. package/dist/module/duplicate-charge.js +69 -0
  284. package/dist/module/electronic-evidence.js +63 -0
  285. package/dist/module/exported-parts.js +1 -34
  286. package/dist/module/form-control-checkbox2.js +1 -1
  287. package/dist/module/form-control-date2.js +5 -3
  288. package/dist/module/form-control-file2.js +1 -1
  289. package/dist/module/form-control-monetary2.js +1 -1
  290. package/dist/module/form-control-number-masked2.js +1 -1
  291. package/dist/module/form-control-number.js +1 -1
  292. package/dist/module/form-control-radio.d.ts +11 -0
  293. package/dist/module/form-control-radio.js +6 -0
  294. package/dist/module/form-control-radio2.js +78 -0
  295. package/dist/module/form-control-select2.js +1 -1
  296. package/dist/module/form-control-text2.js +1 -1
  297. package/dist/module/form-control-textarea.d.ts +11 -0
  298. package/dist/module/form-control-textarea.js +6 -0
  299. package/dist/module/form-control-textarea2.js +84 -0
  300. package/dist/module/get-payout-csv.js +2 -1
  301. package/dist/module/get-subaccounts.js +51 -0
  302. package/dist/module/gross-payment-chart-core2.js +2 -2
  303. package/dist/module/identity-address-form.js +1 -1
  304. package/dist/module/justifi-additional-statement.d.ts +11 -0
  305. package/dist/module/justifi-additional-statement.js +6 -0
  306. package/dist/module/justifi-business-form.js +3 -2
  307. package/dist/module/justifi-cancellation-policy.d.ts +11 -0
  308. package/dist/module/justifi-cancellation-policy.js +6 -0
  309. package/dist/module/justifi-checkout.js +1 -22
  310. package/dist/module/justifi-checkouts-list.d.ts +11 -0
  311. package/dist/module/justifi-checkouts-list.js +191 -0
  312. package/dist/module/justifi-counter-dispute.d.ts +11 -0
  313. package/dist/module/justifi-counter-dispute.js +6 -0
  314. package/dist/module/justifi-customer-details.d.ts +11 -0
  315. package/dist/module/justifi-customer-details.js +6 -0
  316. package/dist/module/justifi-dispute-management-core.d.ts +11 -0
  317. package/dist/module/justifi-dispute-management-core.js +6 -0
  318. package/dist/module/justifi-dispute-management.d.ts +11 -0
  319. package/dist/module/justifi-dispute-management.js +157 -0
  320. package/dist/module/justifi-dispute-notification.d.ts +11 -0
  321. package/dist/module/justifi-dispute-notification.js +6 -0
  322. package/dist/module/justifi-dispute-reason.d.ts +11 -0
  323. package/dist/module/justifi-dispute-reason.js +6 -0
  324. package/dist/module/justifi-duplicate-charge.d.ts +11 -0
  325. package/dist/module/justifi-duplicate-charge.js +6 -0
  326. package/dist/module/justifi-electronic-evidence.d.ts +11 -0
  327. package/dist/module/justifi-electronic-evidence.js +6 -0
  328. package/dist/module/justifi-payment-details.js +2 -1
  329. package/dist/module/justifi-payment-form.js +5 -4
  330. package/dist/module/justifi-payments-list.js +5 -6
  331. package/dist/module/justifi-payout-details.js +2 -1
  332. package/dist/module/justifi-payouts-list.js +5 -7
  333. package/dist/module/justifi-product-or-service.d.ts +11 -0
  334. package/dist/module/justifi-product-or-service.js +6 -0
  335. package/dist/module/justifi-refund-form.js +3 -2
  336. package/dist/module/justifi-refund-policy.d.ts +11 -0
  337. package/dist/module/justifi-refund-policy.js +6 -0
  338. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  339. package/dist/module/justifi-shipping-details.d.ts +11 -0
  340. package/dist/module/justifi-shipping-details.js +6 -0
  341. package/dist/module/justifi-terminals-list.d.ts +11 -0
  342. package/dist/module/justifi-terminals-list.js +216 -0
  343. package/dist/module/justifi-tokenize-payment-method.d.ts +11 -0
  344. package/dist/module/justifi-tokenize-payment-method.js +153 -0
  345. package/dist/module/legal-address-form-step-core.js +1 -1
  346. package/dist/module/legal-address-form.js +1 -1
  347. package/dist/module/lodash.js +17204 -0
  348. package/dist/module/owner-form-core2.js +1 -1
  349. package/dist/module/owner-form-inputs2.js +1 -1
  350. package/dist/module/package.js +1 -1
  351. package/dist/module/payment-details-core2.js +9 -8
  352. package/dist/module/payment-method-form.js +1 -1
  353. package/dist/module/payment-method-selector.js +3 -2
  354. package/dist/module/payment.service.js +2 -1
  355. package/dist/module/payments-list-core2.js +7 -6
  356. package/dist/module/payments-list-filters2.js +2 -17204
  357. package/dist/module/payments-status.js +24 -0
  358. package/dist/module/payout-details-core2.js +3 -2
  359. package/dist/module/payouts-list-core2.js +8 -23
  360. package/dist/module/payouts-status.js +22 -0
  361. package/dist/module/product-or-service.js +60 -0
  362. package/dist/module/refund-policy.js +63 -0
  363. package/dist/module/saved-payment-method.js +1 -1
  364. package/dist/module/season-interruption-insurance-core.js +3 -3
  365. package/dist/module/sezzle-payment-method.js +1 -1
  366. package/dist/module/shipping-details.js +79 -0
  367. package/dist/module/table-filters-menu2.js +1 -1
  368. package/dist/module/table-loading-state.js +34 -0
  369. package/dist/module/table.js +18 -0
  370. package/dist/module/terminals-list-core.d.ts +11 -0
  371. package/dist/module/terminals-list-core.js +6 -0
  372. package/dist/module/terminals-list-core2.js +240 -0
  373. package/dist/module/terminals-list-filters.d.ts +11 -0
  374. package/dist/module/terminals-list-filters.js +6 -0
  375. package/dist/module/terminals-list-filters2.js +83 -0
  376. package/dist/module/utils2.js +1 -43
  377. package/dist/types/api/Api.d.ts +1 -1
  378. package/dist/types/api/Checkout.d.ts +74 -2
  379. package/dist/types/api/SubAccount.d.ts +51 -0
  380. package/dist/types/api/Terminal.d.ts +48 -0
  381. package/dist/types/api/get-subaccounts.d.ts +10 -0
  382. package/dist/types/api/index.d.ts +2 -0
  383. package/dist/types/api/services/checkout.service.d.ts +3 -1
  384. package/dist/types/api/services/subaccounts.service.d.ts +7 -0
  385. package/dist/types/api/services/terminal.service.d.ts +9 -0
  386. package/dist/types/components/billing-form/billing-form.d.ts +1 -1
  387. package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +1 -1
  388. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +1 -1
  389. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -1
  390. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +1 -1
  391. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
  392. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
  393. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -1
  394. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -1
  395. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -1
  396. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
  397. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -1
  398. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +1 -1
  399. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -1
  400. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -1
  401. package/dist/types/components/business-forms/utils/input-handlers.d.ts +1 -1
  402. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +35 -0
  403. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +15 -0
  404. package/dist/types/components/checkouts-list/checkouts-list.d.ts +44 -0
  405. package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -0
  406. package/dist/types/components/checkouts-list/checkouts-table.d.ts +17 -0
  407. package/dist/types/components/checkouts-list/get-checkouts.d.ts +10 -0
  408. package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +3 -0
  409. package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +3 -0
  410. package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +14 -0
  411. package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +3 -0
  412. package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +3 -0
  413. package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +3 -0
  414. package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +3 -0
  415. package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +4 -0
  416. package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +3 -0
  417. package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +3 -0
  418. package/dist/types/components/dispute-management/dispute-management-core.d.ts +7 -0
  419. package/dist/types/components/dispute-management/dispute-management.d.ts +3 -0
  420. package/dist/types/components/dispute-management/dispute-notification.d.ts +8 -0
  421. package/dist/types/components/dispute-management/dispute.d.ts +7 -0
  422. package/dist/types/components/payments-list/payments-status.d.ts +1 -0
  423. package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -2
  424. package/dist/types/components/payouts-list/payouts-status.d.ts +1 -0
  425. package/dist/types/components/terminals-list/get-terminal-detail.d.ts +8 -0
  426. package/dist/types/components/terminals-list/get-terminals.d.ts +10 -0
  427. package/dist/types/components/terminals-list/terminals-list-core.d.ts +35 -0
  428. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +13 -0
  429. package/dist/types/components/terminals-list/terminals-list.d.ts +44 -0
  430. package/dist/types/components/terminals-list/terminals-status.d.ts +1 -0
  431. package/dist/types/components/terminals-list/terminals-table.d.ts +13 -0
  432. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +22 -0
  433. package/dist/types/components.d.ts +740 -12
  434. package/dist/types/{components → ui-components}/form/form-control-date.d.ts +2 -1
  435. package/dist/types/ui-components/form/form-control-radio.d.ts +19 -0
  436. package/dist/types/ui-components/form/form-control-textarea.d.ts +20 -0
  437. package/dist/types/ui-components/index.d.ts +1 -0
  438. package/dist/types/utils/table.d.ts +13 -0
  439. package/dist/types/utils/utils.d.ts +0 -2
  440. package/dist/webcomponents/p-037e3545.entry.js +1 -0
  441. package/dist/webcomponents/{p-08d88fd2.entry.js → p-04d12939.entry.js} +1 -1
  442. package/dist/webcomponents/p-0ac35b39.entry.js +1 -0
  443. package/dist/webcomponents/p-0b686ada.entry.js +1 -0
  444. package/dist/webcomponents/p-0c79e368.entry.js +1 -0
  445. package/dist/webcomponents/p-0de9e97b.entry.js +1 -0
  446. package/dist/webcomponents/{p-7d3be485.js → p-0e180654.js} +1 -1
  447. package/dist/webcomponents/{p-a3265844.entry.js → p-11ff46df.entry.js} +1 -1
  448. package/dist/webcomponents/p-16d2932d.js +1 -0
  449. package/dist/webcomponents/p-206fde40.js +1 -0
  450. package/dist/webcomponents/p-24392a86.entry.js +1 -0
  451. package/dist/webcomponents/p-269ba6fe.entry.js +1 -0
  452. package/dist/webcomponents/{p-1e178dd1.entry.js → p-286a4e72.entry.js} +2 -2
  453. package/dist/webcomponents/p-2c2b57b3.js +1 -0
  454. package/dist/webcomponents/{p-61514f78.entry.js → p-2c8c214f.entry.js} +1 -1
  455. package/dist/webcomponents/p-2de65000.entry.js +1 -0
  456. package/dist/webcomponents/{p-277aee05.js → p-3d3468a8.js} +1 -1
  457. package/dist/webcomponents/p-47dbe17d.js +1 -0
  458. package/dist/webcomponents/p-4b14abbf.entry.js +1 -0
  459. package/dist/webcomponents/p-4c0c88e4.entry.js +1 -0
  460. package/dist/webcomponents/p-52ca72cd.entry.js +1 -0
  461. package/dist/webcomponents/{p-bc9ae56f.js → p-56bda985.js} +1 -1
  462. package/dist/webcomponents/p-56d84fb3.entry.js +1 -0
  463. package/dist/webcomponents/p-638c6285.entry.js +1 -0
  464. package/dist/webcomponents/{p-122c2a11.entry.js → p-69ea7334.entry.js} +1 -1
  465. package/dist/webcomponents/p-6caf6f09.entry.js +1 -0
  466. package/dist/webcomponents/{p-da1d174d.entry.js → p-72819173.entry.js} +1 -1
  467. package/dist/webcomponents/p-8480e3ab.entry.js +1 -0
  468. package/dist/webcomponents/p-869ae0c7.entry.js +1 -0
  469. package/dist/webcomponents/p-8ec550d7.entry.js +1 -0
  470. package/dist/webcomponents/p-8f212554.entry.js +1 -0
  471. package/dist/webcomponents/p-907ba963.js +1 -0
  472. package/dist/webcomponents/p-919e6e67.entry.js +1 -0
  473. package/dist/webcomponents/p-927a147c.entry.js +1 -0
  474. package/dist/webcomponents/p-935188c8.entry.js +1 -0
  475. package/dist/webcomponents/p-9bd13e22.js +1 -0
  476. package/dist/webcomponents/p-9f56ad71.js +1 -0
  477. package/dist/webcomponents/p-a2be972d.entry.js +1 -0
  478. package/dist/webcomponents/p-a3143d62.entry.js +1 -0
  479. package/dist/webcomponents/{p-ca8e126f.js → p-a8f22d4d.js} +1 -1
  480. package/dist/webcomponents/p-ad443df5.entry.js +1 -0
  481. package/dist/webcomponents/p-b0686897.entry.js +1 -0
  482. package/dist/webcomponents/p-b1aacd6b.entry.js +1 -0
  483. package/dist/webcomponents/p-b4a7307b.entry.js +1 -0
  484. package/dist/webcomponents/p-bfb990fc.entry.js +1 -0
  485. package/dist/webcomponents/p-c1bf9285.entry.js +1 -0
  486. package/dist/webcomponents/{p-6d4b585d.js → p-c1cf7d5b.js} +1 -1
  487. package/dist/webcomponents/p-c30c8f39.entry.js +1 -0
  488. package/dist/webcomponents/p-c5c6e61d.js +1 -0
  489. package/dist/webcomponents/{p-5df26e65.entry.js → p-c63825d8.entry.js} +1 -1
  490. package/dist/webcomponents/{p-5022f21c.js → p-c65b78cf.js} +1 -1
  491. package/dist/webcomponents/p-c6be72b0.js +10 -0
  492. package/dist/webcomponents/p-c717646f.entry.js +1 -0
  493. package/dist/webcomponents/{p-a1d037cb.entry.js → p-cb79f06c.entry.js} +1 -1
  494. package/dist/webcomponents/p-ccbff4fa.entry.js +1 -0
  495. package/dist/webcomponents/p-cd4eaeb7.js +1 -0
  496. package/dist/webcomponents/p-cd7e866c.entry.js +1 -0
  497. package/dist/webcomponents/p-d1248039.entry.js +1 -0
  498. package/dist/webcomponents/{p-8f447993.entry.js → p-d2eb61e6.entry.js} +1 -1
  499. package/dist/webcomponents/p-d516e700.js +1 -0
  500. package/dist/webcomponents/p-dae9b10e.entry.js +1 -0
  501. package/dist/webcomponents/p-e412a713.entry.js +1 -0
  502. package/dist/webcomponents/p-e69b2ff8.entry.js +1 -0
  503. package/dist/webcomponents/p-e6be8845.entry.js +1 -0
  504. package/dist/webcomponents/{p-799ee8c3.js → p-e7d6609d.js} +1 -1
  505. package/dist/webcomponents/p-e8797be0.entry.js +1 -0
  506. package/dist/webcomponents/p-eb9ba917.entry.js +1 -0
  507. package/dist/webcomponents/p-ec7e69eb.entry.js +1 -0
  508. package/dist/webcomponents/{p-1eb60948.entry.js → p-eeb70281.entry.js} +1 -1
  509. package/dist/webcomponents/{p-cd74be05.entry.js → p-efb56234.entry.js} +1 -1
  510. package/dist/webcomponents/p-f4a8215b.entry.js +1 -0
  511. package/dist/webcomponents/{p-401d6607.js → p-f6f8dabc.js} +1 -1
  512. package/dist/webcomponents/{p-1d29488a.entry.js → p-f7077f93.entry.js} +1 -1
  513. package/dist/webcomponents/p-fc4de0d2.js +1 -0
  514. package/dist/webcomponents/webcomponents.esm.js +1 -1
  515. package/package.json +1 -1
  516. package/dist/cjs/Payout-a2dd7b01.js +0 -45
  517. package/dist/cjs/form-control-date_3.cjs.entry.js +0 -175
  518. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1688
  519. package/dist/esm/Payout-dfe15b00.js +0 -43
  520. package/dist/esm/form-control-date_3.entry.js +0 -169
  521. package/dist/esm/justifi-payment-method-form.entry.js +0 -1684
  522. package/dist/module/Payout.js +0 -43
  523. package/dist/webcomponents/p-0c2d91a2.entry.js +0 -1
  524. package/dist/webcomponents/p-11f01df5.entry.js +0 -1
  525. package/dist/webcomponents/p-23f95a19.entry.js +0 -1
  526. package/dist/webcomponents/p-2874d4b2.entry.js +0 -10
  527. package/dist/webcomponents/p-43dfda70.entry.js +0 -1
  528. package/dist/webcomponents/p-55182a59.js +0 -1
  529. package/dist/webcomponents/p-55fe2cf2.entry.js +0 -1
  530. package/dist/webcomponents/p-5e5e8a85.js +0 -1
  531. package/dist/webcomponents/p-605614f2.entry.js +0 -1
  532. package/dist/webcomponents/p-6962044f.entry.js +0 -1
  533. package/dist/webcomponents/p-6a9e908b.entry.js +0 -1
  534. package/dist/webcomponents/p-6ba660f2.entry.js +0 -1
  535. package/dist/webcomponents/p-6e258b5f.entry.js +0 -1
  536. package/dist/webcomponents/p-770f60f9.entry.js +0 -1
  537. package/dist/webcomponents/p-7cb3854c.entry.js +0 -1
  538. package/dist/webcomponents/p-80730b71.entry.js +0 -1
  539. package/dist/webcomponents/p-8f04747b.entry.js +0 -1
  540. package/dist/webcomponents/p-9a37eee5.entry.js +0 -1
  541. package/dist/webcomponents/p-a680c982.entry.js +0 -1
  542. package/dist/webcomponents/p-a765230f.entry.js +0 -1
  543. package/dist/webcomponents/p-b7b18954.entry.js +0 -1
  544. package/dist/webcomponents/p-c241cc62.entry.js +0 -1
  545. package/dist/webcomponents/p-d0ffb01c.entry.js +0 -1
  546. package/dist/webcomponents/p-da316a74.entry.js +0 -1
  547. package/dist/webcomponents/p-db3d1d7d.entry.js +0 -1
  548. package/dist/webcomponents/p-dee2a3f8.entry.js +0 -1
  549. package/dist/webcomponents/p-e3fab0e2.js +0 -1
  550. package/dist/webcomponents/p-e56ade55.js +0 -1
  551. package/dist/webcomponents/p-e927fd5c.entry.js +0 -1
  552. package/dist/webcomponents/p-f3e00572.entry.js +0 -1
  553. package/dist/webcomponents/p-f71a5975.entry.js +0 -1
  554. /package/dist/cjs/{exported-parts-b18c68c2.js → exported-parts-a994d693.js} +0 -0
  555. /package/dist/cjs/{index.esm-52757963.js → index.esm-97cf6825.js} +0 -0
  556. /package/dist/cjs/{utils-c1d2e426.js → utils-189dc30d.js} +0 -0
  557. /package/dist/cjs/{utils-ddacfc44.js → utils-bc03ca40.js} +0 -0
  558. /package/dist/collection/{components → ui-components}/details/utils.js +0 -0
  559. /package/dist/collection/{components → ui-components}/form/form-helpers/form-alert/form-alert.js +0 -0
  560. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -0
  561. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.js +0 -0
  562. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.js +0 -0
  563. /package/dist/collection/{components → ui-components}/form/form.js +0 -0
  564. /package/dist/collection/{components → ui-components}/form/utils.js +0 -0
  565. /package/dist/collection/{components → ui-components}/table/exported-parts.js +0 -0
  566. /package/dist/esm/{exported-parts-abd4c027.js → exported-parts-70e7a12b.js} +0 -0
  567. /package/dist/esm/{index.esm-fc4f5c0c.js → index.esm-ed37201b.js} +0 -0
  568. /package/dist/esm/{utils-3bb6347a.js → utils-20cdf321.js} +0 -0
  569. /package/dist/esm/{utils-01413a95.js → utils-218275b7.js} +0 -0
  570. /package/dist/types/{components → ui-components}/details/details.d.ts +0 -0
  571. /package/dist/types/{components → ui-components}/details/utils.d.ts +0 -0
  572. /package/dist/types/{components → ui-components}/form/form-control-checkbox.d.ts +0 -0
  573. /package/dist/types/{components → ui-components}/form/form-control-file.d.ts +0 -0
  574. /package/dist/types/{components → ui-components}/form/form-control-monetary.d.ts +0 -0
  575. /package/dist/types/{components → ui-components}/form/form-control-number-masked.d.ts +0 -0
  576. /package/dist/types/{components → ui-components}/form/form-control-number.d.ts +0 -0
  577. /package/dist/types/{components → ui-components}/form/form-control-select.d.ts +0 -0
  578. /package/dist/types/{components → ui-components}/form/form-control-text.d.ts +0 -0
  579. /package/dist/types/{components → ui-components}/form/form-helpers/form-alert/form-alert.d.ts +0 -0
  580. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -0
  581. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.d.ts +0 -0
  582. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +0 -0
  583. /package/dist/types/{components → ui-components}/form/form.d.ts +0 -0
  584. /package/dist/types/{components → ui-components}/form/utils.d.ts +0 -0
  585. /package/dist/types/{components → ui-components}/table/exported-parts.d.ts +0 -0
  586. /package/dist/webcomponents/{p-2eab3c90.js → p-3c654c07.js} +0 -0
  587. /package/dist/webcomponents/{p-2b6c9c4f.js → p-6cc30da2.js} +0 -0
  588. /package/dist/webcomponents/{p-dce846bf.js → p-a8b4f429.js} +0 -0
  589. /package/dist/webcomponents/{p-8df7bde8.js → p-e3c22aa9.js} +0 -0
@@ -0,0 +1,257 @@
1
+ import { h } from "@stencil/core";
2
+ import { pagingDefaults } from "../../api";
3
+ import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
4
+ import { onFilterChange } from "../../ui-components/filters/utils";
5
+ import { defaultColumnsKeys, terminalTableColumns, terminalTableCells } from "./terminals-table";
6
+ import { Table } from "../../utils/table";
7
+ export class TerminalsListCore {
8
+ constructor() {
9
+ this.handleClickPrevious = (beforeCursor) => {
10
+ const newParams = Object.assign({}, this.params);
11
+ delete newParams.after_cursor;
12
+ this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
13
+ };
14
+ this.handleClickNext = (afterCursor) => {
15
+ const newParams = Object.assign({}, this.params);
16
+ delete newParams.before_cursor;
17
+ this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
18
+ };
19
+ this.rowClickHandler = (e) => {
20
+ const clickedTerminalID = e.target.closest('tr').dataset.rowEntityId;
21
+ if (!clickedTerminalID)
22
+ return;
23
+ this.rowClicked.emit(this.terminals.find((terminal) => terminal.id === clickedTerminalID));
24
+ };
25
+ this.setParamsOnChange = (name, value) => {
26
+ let newParams = { [name]: value };
27
+ this.params = onFilterChange(newParams, this.params);
28
+ };
29
+ this.clearParams = () => {
30
+ this.errorMessage = '';
31
+ this.params = {};
32
+ };
33
+ this.getTerminals = undefined;
34
+ this.getSubAccounts = undefined;
35
+ this.columns = defaultColumnsKeys;
36
+ this.terminals = [];
37
+ this.terminalsTable = new Table([], this.columns, terminalTableColumns, terminalTableCells);
38
+ this.subAccounts = [];
39
+ this.loading = true;
40
+ this.errorMessage = undefined;
41
+ this.paging = pagingDefaults;
42
+ this.params = {};
43
+ }
44
+ updateOnPropChange() {
45
+ this.fetchTerminals();
46
+ }
47
+ componentWillLoad() {
48
+ if (this.getTerminals && this.getSubAccounts) {
49
+ this.fetchTerminals();
50
+ }
51
+ }
52
+ fetchTerminals() {
53
+ this.loading = true;
54
+ this.getTerminals({
55
+ params: this.params,
56
+ onSuccess: async ({ terminals, pagingInfo }) => {
57
+ this.terminals = terminals;
58
+ this.paging = pagingInfo;
59
+ this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
60
+ const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
61
+ if (shouldFetchSubAccounts) {
62
+ await this.fetchSubAccounts();
63
+ }
64
+ else {
65
+ this.loading = false;
66
+ }
67
+ },
68
+ onError: ({ error, code, severity }) => {
69
+ this.errorMessage = error;
70
+ this.errorEvent.emit({
71
+ errorCode: code,
72
+ message: error,
73
+ severity,
74
+ });
75
+ this.loading = false;
76
+ },
77
+ });
78
+ }
79
+ async fetchSubAccounts() {
80
+ this.getSubAccounts({
81
+ params: this.subAccountParams,
82
+ onSuccess: ({ subAccounts }) => {
83
+ this.subAccounts = subAccounts;
84
+ this.terminals = this.terminals.map((terminal) => {
85
+ var _a;
86
+ terminal.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === terminal.account_id)) === null || _a === void 0 ? void 0 : _a.name;
87
+ return terminal;
88
+ });
89
+ this.loading = false;
90
+ },
91
+ onError: ({ error, code, severity }) => {
92
+ this.errorMessage = error;
93
+ this.errorEvent.emit({
94
+ errorCode: code,
95
+ message: error,
96
+ severity,
97
+ });
98
+ this.loading = false;
99
+ },
100
+ });
101
+ }
102
+ get subAccountParams() {
103
+ let accountIdNumbers = this.terminals.map((terminal) => terminal.account_id);
104
+ let uniqueAccountIds = [...new Set(accountIdNumbers)];
105
+ let accountIdString = uniqueAccountIds.join(',');
106
+ return { sub_account_id: accountIdString };
107
+ }
108
+ get entityId() {
109
+ return this.terminals.map((terminal) => terminal.id);
110
+ }
111
+ get showEmptyState() {
112
+ return !this.loading && !this.errorMessage && this.terminalsTable.rowData.length < 1;
113
+ }
114
+ get showErrorState() {
115
+ return !this.loading && !!this.errorMessage;
116
+ }
117
+ get showRowData() {
118
+ return !this.showEmptyState && !this.showErrorState && !this.loading;
119
+ }
120
+ render() {
121
+ return (h("div", { key: 'd6bd09387fc558286f09cc98e7b5423a57410440' }, h("terminals-list-filters", { key: '27f3b5ca45bad96695364e96f0c047db8465f061', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '693ef5e9383ad2d4433a79872d51a922f1bb0cbb', class: "table-wrapper" }, h("table", { key: 'd6779ca5094593e21ddee4f0b236b0fa94c7cfe5', class: "table table-hover" }, h("thead", { key: '5b7524c86b32d61d2b087c9ace5673276a6525e2', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '6f3f3f560f5eaa38a700aacf850c01ce7224c617', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'd65612fc80a216dbbce686e1e5cdd06bc7c934ad', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '9ffbafb5105380d685e9cad76b627afe96c8e724', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '692c6cb35da2c9057bbac4e5d8e7536017ef1694', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '5072ca0cb9f9ca3d77fc394c935cc1ae473b8864', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'b043af164be76a5bdbaf53e5a0563f48049925b0', class: "sticky-bottom" }, h("tr", { key: '2fed67d847e113c371213643c07a79208701c1e5', class: "table-light align-middle" }, h("td", { key: 'b3fac5af2d92a8ea93daefd24310ed5b45d32764', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '4e5a82670a7aa1fee01b71fbc20b65824300a07f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
122
+ }
123
+ static get is() { return "terminals-list-core"; }
124
+ static get properties() {
125
+ return {
126
+ "getTerminals": {
127
+ "type": "unknown",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "Function",
131
+ "resolved": "Function",
132
+ "references": {
133
+ "Function": {
134
+ "location": "global",
135
+ "id": "global::Function"
136
+ }
137
+ }
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ }
145
+ },
146
+ "getSubAccounts": {
147
+ "type": "unknown",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "Function",
151
+ "resolved": "Function",
152
+ "references": {
153
+ "Function": {
154
+ "location": "global",
155
+ "id": "global::Function"
156
+ }
157
+ }
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ }
165
+ },
166
+ "columns": {
167
+ "type": "string",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "attribute": "columns",
181
+ "reflect": false,
182
+ "defaultValue": "defaultColumnsKeys"
183
+ }
184
+ };
185
+ }
186
+ static get states() {
187
+ return {
188
+ "terminals": {},
189
+ "terminalsTable": {},
190
+ "subAccounts": {},
191
+ "loading": {},
192
+ "errorMessage": {},
193
+ "paging": {},
194
+ "params": {}
195
+ };
196
+ }
197
+ static get events() {
198
+ return [{
199
+ "method": "rowClicked",
200
+ "name": "terminal-row-clicked",
201
+ "bubbles": true,
202
+ "cancelable": true,
203
+ "composed": true,
204
+ "docs": {
205
+ "tags": [],
206
+ "text": ""
207
+ },
208
+ "complexType": {
209
+ "original": "Terminal",
210
+ "resolved": "Terminal",
211
+ "references": {
212
+ "Terminal": {
213
+ "location": "import",
214
+ "path": "../../api",
215
+ "id": "src/api/index.ts::Terminal"
216
+ }
217
+ }
218
+ }
219
+ }, {
220
+ "method": "errorEvent",
221
+ "name": "error-event",
222
+ "bubbles": true,
223
+ "cancelable": true,
224
+ "composed": true,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": ""
228
+ },
229
+ "complexType": {
230
+ "original": "ComponentError",
231
+ "resolved": "ComponentError",
232
+ "references": {
233
+ "ComponentError": {
234
+ "location": "import",
235
+ "path": "../../api/ComponentError",
236
+ "id": "src/api/ComponentError.ts::ComponentError"
237
+ }
238
+ }
239
+ }
240
+ }];
241
+ }
242
+ static get watchers() {
243
+ return [{
244
+ "propName": "params",
245
+ "methodName": "updateOnPropChange"
246
+ }, {
247
+ "propName": "getTerminals",
248
+ "methodName": "updateOnPropChange"
249
+ }, {
250
+ "propName": "getSubAccounts",
251
+ "methodName": "updateOnPropChange"
252
+ }, {
253
+ "propName": "columns",
254
+ "methodName": "updateOnPropChange"
255
+ }];
256
+ }
257
+ }
@@ -0,0 +1,81 @@
1
+ import { h } from "@stencil/core";
2
+ import { debounce } from "lodash";
3
+ export class TerminalsListFilters {
4
+ constructor() {
5
+ this.params = {};
6
+ this.setParamsOnChange = undefined;
7
+ this.clearParams = undefined;
8
+ }
9
+ componentWillLoad() {
10
+ // debounced input handler for text input
11
+ this.debouncedSetParamsOnChange = debounce(this.setParamsOnChange, 300);
12
+ }
13
+ get terminalStatusOptions() {
14
+ return [
15
+ { label: 'All', value: '' },
16
+ { label: 'Connected', value: 'connected' },
17
+ { label: 'Disconnected', value: 'disconnected' },
18
+ { label: 'Unknown', value: 'unknown' },
19
+ ];
20
+ }
21
+ render() {
22
+ return (h("table-filters-menu", { key: '4bfd04cf078878811b2692ff166598deb22b7d92', params: this.params, clearParams: this.clearParams }, h("div", { key: '470d4eb34429c887d03beb0caedd8c9486d18900', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '34d34e8c90c36b7cab1fb3442cb04e58f9ebb334', class: "p-2" }, h("form-control-text", { key: '5234008261646f1a090686fc0d795a6e846c9e04', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.terminal_id })), h("div", { key: 'fdd089fa29bf030ed3825993ff4e50a9ecefa1dc', class: "p-2" }, h("form-control-select", { key: '0c078ec1ecffea26e0cec5633cb4748337a75643', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.status || '' })))));
23
+ }
24
+ static get is() { return "terminals-list-filters"; }
25
+ static get properties() {
26
+ return {
27
+ "params": {
28
+ "type": "unknown",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "TerminalsTableFilterParams",
32
+ "resolved": "TerminalsTableFilterParams",
33
+ "references": {
34
+ "TerminalsTableFilterParams": {
35
+ "location": "import",
36
+ "path": "../../api",
37
+ "id": "src/api/index.ts::TerminalsTableFilterParams"
38
+ }
39
+ }
40
+ },
41
+ "required": false,
42
+ "optional": false,
43
+ "docs": {
44
+ "tags": [],
45
+ "text": ""
46
+ },
47
+ "defaultValue": "{}"
48
+ },
49
+ "setParamsOnChange": {
50
+ "type": "unknown",
51
+ "mutable": false,
52
+ "complexType": {
53
+ "original": "(name: string, value: string) => void",
54
+ "resolved": "(name: string, value: string) => void",
55
+ "references": {}
56
+ },
57
+ "required": false,
58
+ "optional": false,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": ""
62
+ }
63
+ },
64
+ "clearParams": {
65
+ "type": "unknown",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "() => void",
69
+ "resolved": "() => void",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": false,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": ""
77
+ }
78
+ }
79
+ };
80
+ }
81
+ }
@@ -0,0 +1,209 @@
1
+ import { h } from "@stencil/core";
2
+ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
3
+ import JustifiAnalytics from "../../api/Analytics";
4
+ import { checkPkgVersion } from "../../utils/check-pkg-version";
5
+ import { config } from "../../../config";
6
+ import { TerminalService } from "../../api/services/terminal.service";
7
+ import { makeGetTerminals } from "./get-terminals";
8
+ import { SubAccountService } from "../../api/services/subaccounts.service";
9
+ import { makeGetSubAccounts } from "../../api/get-subaccounts";
10
+ import { StyledHost, tableExportedParts } from "../../ui-components";
11
+ /**
12
+ * @exportedPart label: Label for inputs
13
+ * @exportedPart input: The input fields
14
+ * @exportedPart input-invalid: Invalid state for inputs
15
+ * @exportedPart table-head: Table head
16
+ * @exportedPart table-head-row: Head row
17
+ * @exportedPart table-head-cell: Individual head cell
18
+ * @exportedPart table-body: Body of the table
19
+ * @exportedPart table-row: Row of the table
20
+ * @exportedPart table-cell: Individual cell of the table
21
+ * @exportedPart loading-state-cell: Row for loading state
22
+ * @exportedPart loading-state-spinner: Spinner element for loading state
23
+ * @exportedPart error-state: Row for Error state
24
+ * @exportedPart empty-state: Row for Emtpy state
25
+ * @exportedPart pagination-bar: Pagination bar
26
+ * @exportedPart arrow: Both paging buttons
27
+ * @exportedPart arrow-left: Previous page button
28
+ * @exportedPart arrow-right: Next page button
29
+ * @exportedPart button-disabled: Disabled state for paging buttons
30
+ * @exportedPart previous-button-text: Text for Previous button
31
+ * @exportedPart next-button-text: Text for Next button
32
+ */
33
+ export class TerminalsList {
34
+ constructor() {
35
+ this.handleErrorEvent = (event) => {
36
+ this.errorMessage = event.detail.message;
37
+ this.errorEvent.emit(event.detail);
38
+ };
39
+ this.getTerminals = undefined;
40
+ this.getSubAccounts = undefined;
41
+ this.errorMessage = null;
42
+ this.accountId = undefined;
43
+ this.authToken = undefined;
44
+ this.apiOrigin = config.proxyApiOrigin;
45
+ this.columns = undefined;
46
+ }
47
+ componentWillLoad() {
48
+ checkPkgVersion();
49
+ this.analytics = new JustifiAnalytics(this);
50
+ this.initializeGetData();
51
+ }
52
+ disconnectedCallback() {
53
+ this.analytics.cleanup();
54
+ }
55
+ propChanged() {
56
+ this.initializeGetData();
57
+ }
58
+ initializeGetData() {
59
+ this.initializeGetTerminals();
60
+ this.initializeGetSubAccounts();
61
+ }
62
+ initializeGetTerminals() {
63
+ if (this.accountId && this.authToken) {
64
+ this.getTerminals = makeGetTerminals({
65
+ id: this.accountId,
66
+ authToken: this.authToken,
67
+ service: new TerminalService(),
68
+ apiOrigin: this.apiOrigin
69
+ });
70
+ }
71
+ else {
72
+ this.errorMessage = 'Account ID and Auth Token are required';
73
+ this.errorEvent.emit({
74
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
75
+ message: this.errorMessage,
76
+ severity: ComponentErrorSeverity.ERROR,
77
+ });
78
+ }
79
+ }
80
+ initializeGetSubAccounts() {
81
+ if (this.accountId && this.authToken) {
82
+ this.getSubAccounts = makeGetSubAccounts({
83
+ accountId: this.accountId,
84
+ authToken: this.authToken,
85
+ service: new SubAccountService(),
86
+ apiOrigin: this.apiOrigin
87
+ });
88
+ }
89
+ }
90
+ render() {
91
+ return (h(StyledHost, { key: 'b150133d9e787d0a4f32d92d9fb26df50391e632', exportparts: tableExportedParts }, h("terminals-list-core", { key: '59302d93d0a308c34aacabf7e5a006099eaff2d6', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
92
+ }
93
+ static get is() { return "justifi-terminals-list"; }
94
+ static get encapsulation() { return "shadow"; }
95
+ static get properties() {
96
+ return {
97
+ "accountId": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string",
102
+ "resolved": "string",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "attribute": "account-id",
112
+ "reflect": false
113
+ },
114
+ "authToken": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "auth-token",
129
+ "reflect": false
130
+ },
131
+ "apiOrigin": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": true,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "api-origin",
146
+ "reflect": false,
147
+ "defaultValue": "config.proxyApiOrigin"
148
+ },
149
+ "columns": {
150
+ "type": "string",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "string",
154
+ "resolved": "string",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "attribute": "columns",
164
+ "reflect": false
165
+ }
166
+ };
167
+ }
168
+ static get states() {
169
+ return {
170
+ "getTerminals": {},
171
+ "getSubAccounts": {},
172
+ "errorMessage": {}
173
+ };
174
+ }
175
+ static get events() {
176
+ return [{
177
+ "method": "errorEvent",
178
+ "name": "error-event",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "complexType": {
187
+ "original": "ComponentError",
188
+ "resolved": "ComponentError",
189
+ "references": {
190
+ "ComponentError": {
191
+ "location": "import",
192
+ "path": "../../api/ComponentError",
193
+ "id": "src/api/ComponentError.ts::ComponentError"
194
+ }
195
+ }
196
+ }
197
+ }];
198
+ }
199
+ static get watchers() {
200
+ return [{
201
+ "propName": "accountId",
202
+ "methodName": "propChanged"
203
+ }, {
204
+ "propName": "authToken",
205
+ "methodName": "propChanged"
206
+ }];
207
+ }
208
+ }
209
+ ;
@@ -0,0 +1,11 @@
1
+ export const MapTerminalStatusToBadge = (status) => {
2
+ switch (status) {
3
+ case 'connected':
4
+ return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
5
+ case 'disconnected':
6
+ return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
7
+ case 'unknown':
8
+ return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
9
+ }
10
+ ;
11
+ };
@@ -0,0 +1,15 @@
1
+ import { h } from "@stencil/core";
2
+ import { MapTerminalStatusToBadge } from "./terminals-status";
3
+ export const defaultColumnsKeys = 'nickname,provider_id,status';
4
+ export const terminalTableColumns = {
5
+ nickname: () => (h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
6
+ provider_id: () => (h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
7
+ sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
8
+ status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
9
+ };
10
+ export const terminalTableCells = {
11
+ nickname: (value) => (h("td", null, value)),
12
+ provider_id: (value) => (h("td", null, value)),
13
+ sub_account_name: (value) => (h("td", null, value)),
14
+ status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
15
+ };
@@ -0,0 +1,9 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ justifi-payment-method-form {
6
+ display: block;
7
+ margin-left: calc(var(--jfi-layout-padding) * -1);
8
+ margin-right: calc(var(--jfi-layout-padding) * -1);
9
+ }