@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.
- package/dist/cjs/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +11 -5
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2080 -1746
- package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- package/dist/module/exported-parts.js +40 -0
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +11 -5
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -133
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -33
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -33
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
|
-
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
|
-
import './Payment-3e94da9c.js';
|
|
5
|
-
import './Payout-dfe15b00.js';
|
|
6
|
-
import { B as Business } from './Business-e218b4f4.js';
|
|
7
|
-
import { s as snakeCaseToHumanReadable, f as formatDate } from './utils-5f4c4faa.js';
|
|
8
|
-
import { c as config } from './config-476c7241.js';
|
|
9
|
-
import { S as StyledHost } from './styled-host-57aae7fa.js';
|
|
10
|
-
import './helpers-96ea3464.js';
|
|
11
|
-
import './state-options-a356fb11.js';
|
|
12
|
-
|
|
13
|
-
const BusinessList = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this.mapProductStatusToBadge = (status) => {
|
|
17
|
-
return (status && 'bg-success') || 'bg-secondary';
|
|
18
|
-
};
|
|
19
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
20
|
-
const newParams = Object.assign({}, this.params);
|
|
21
|
-
delete newParams.after_cursor;
|
|
22
|
-
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
23
|
-
};
|
|
24
|
-
this.handleClickNext = (afterCursor) => {
|
|
25
|
-
const newParams = Object.assign({}, this.params);
|
|
26
|
-
delete newParams.before_cursor;
|
|
27
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
28
|
-
};
|
|
29
|
-
this.accountId = undefined;
|
|
30
|
-
this.authToken = undefined;
|
|
31
|
-
this.businesses = [];
|
|
32
|
-
this.loading = true;
|
|
33
|
-
this.errorMessage = undefined;
|
|
34
|
-
this.paging = pagingDefaults;
|
|
35
|
-
this.params = undefined;
|
|
36
|
-
}
|
|
37
|
-
updateOnPropChange() {
|
|
38
|
-
this.fetchData();
|
|
39
|
-
}
|
|
40
|
-
connectedCallback() {
|
|
41
|
-
this.fetchData();
|
|
42
|
-
}
|
|
43
|
-
async fetchData() {
|
|
44
|
-
var _a;
|
|
45
|
-
if (!this.accountId || !this.authToken) {
|
|
46
|
-
this.errorMessage =
|
|
47
|
-
'Can not fetch any data without an AccountID and an AuthToken';
|
|
48
|
-
this.loading = false;
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.loading = true;
|
|
52
|
-
const endpoint = `entities/business`;
|
|
53
|
-
let accountIDParam = { account_id: this.accountId };
|
|
54
|
-
const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin })
|
|
55
|
-
.get(endpoint, Object.assign(Object.assign({}, accountIDParam), this.params));
|
|
56
|
-
if (!response.error) {
|
|
57
|
-
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
58
|
-
const data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.map(dataItem => new Business(dataItem));
|
|
59
|
-
this.businesses = data;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
this.errorMessage =
|
|
63
|
-
typeof response.error === 'string'
|
|
64
|
-
? response.error
|
|
65
|
-
: response.error.message;
|
|
66
|
-
}
|
|
67
|
-
this.loading = false;
|
|
68
|
-
}
|
|
69
|
-
render() {
|
|
70
|
-
return (h(StyledHost, { key: '7543ea36d336e7ca0e7450d4aee10698e22207f8' }, h("justifi-table", { key: '893dfb6cf957da857bd1290796cc6bbd9e7f1555', columnData: [
|
|
71
|
-
['Legal Name', 'The name associated with this Business'],
|
|
72
|
-
['Business Classification', 'The business classification'],
|
|
73
|
-
['Tax ID', 'The tax ID associated with this business'],
|
|
74
|
-
['Industry', 'The industry this business participates in'],
|
|
75
|
-
[
|
|
76
|
-
'Product Ready',
|
|
77
|
-
'List of our products that are used by this business',
|
|
78
|
-
],
|
|
79
|
-
['Created at', 'Date this business was created'],
|
|
80
|
-
], rowData: this.businesses.map((business) => [
|
|
81
|
-
business.legal_name,
|
|
82
|
-
snakeCaseToHumanReadable(business.classification),
|
|
83
|
-
business.tax_id,
|
|
84
|
-
business.industry,
|
|
85
|
-
{
|
|
86
|
-
type: 'inner',
|
|
87
|
-
value: `
|
|
88
|
-
<div class="d-flex flex-nowrap gap-1">
|
|
89
|
-
<span class="badge ${this.mapProductStatusToBadge(business.product_categories.credit)}">Credit</span>
|
|
90
|
-
<span class="badge ${this.mapProductStatusToBadge(business.product_categories.insurance)}">Insurance</span>
|
|
91
|
-
<span class="badge ${this.mapProductStatusToBadge(business.product_categories.lending)}">Lending</span>
|
|
92
|
-
<span class="badge ${this.mapProductStatusToBadge(business.product_categories.payment)}">Payment</span>
|
|
93
|
-
</div>
|
|
94
|
-
`,
|
|
95
|
-
},
|
|
96
|
-
formatDate(business.created_at),
|
|
97
|
-
]), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
98
|
-
}
|
|
99
|
-
static get watchers() { return {
|
|
100
|
-
"accountId": ["updateOnPropChange"],
|
|
101
|
-
"authToken": ["updateOnPropChange"],
|
|
102
|
-
"params": ["updateOnPropChange"]
|
|
103
|
-
}; }
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { BusinessList as justifi_business_list };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
|
-
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
|
-
import { P as PaymentBalanceTransaction } from './Payment-3e94da9c.js';
|
|
5
|
-
import './Payout-dfe15b00.js';
|
|
6
|
-
import { f as formatDate, a as formatTime, s as snakeCaseToHumanReadable, b as formatCurrency } from './utils-5f4c4faa.js';
|
|
7
|
-
import { c as config } from './config-476c7241.js';
|
|
8
|
-
import { S as StyledHost } from './styled-host-57aae7fa.js';
|
|
9
|
-
|
|
10
|
-
const PaymentBalanceTransactions = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
14
|
-
const newParams = Object.assign({}, this.params);
|
|
15
|
-
delete newParams.after_cursor;
|
|
16
|
-
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
17
|
-
};
|
|
18
|
-
this.handleClickNext = (afterCursor) => {
|
|
19
|
-
const newParams = Object.assign({}, this.params);
|
|
20
|
-
delete newParams.before_cursor;
|
|
21
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
22
|
-
};
|
|
23
|
-
this.accountId = undefined;
|
|
24
|
-
this.authToken = undefined;
|
|
25
|
-
this.paymentId = undefined;
|
|
26
|
-
this.balanceTransactions = [];
|
|
27
|
-
this.loading = true;
|
|
28
|
-
this.errorMessage = undefined;
|
|
29
|
-
this.paging = pagingDefaults;
|
|
30
|
-
this.params = undefined;
|
|
31
|
-
}
|
|
32
|
-
updateOnPropChange() {
|
|
33
|
-
this.fetchData();
|
|
34
|
-
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
this.fetchData();
|
|
37
|
-
}
|
|
38
|
-
async fetchData() {
|
|
39
|
-
this.loading = true;
|
|
40
|
-
if (!this.accountId || !this.paymentId) {
|
|
41
|
-
this.errorMessage = 'Missing required props: accountId or paymentId';
|
|
42
|
-
this.loading = false;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
|
|
46
|
-
const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint, this.params);
|
|
47
|
-
if (!response.error) {
|
|
48
|
-
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
49
|
-
this.balanceTransactions = response.data.map(dataItem => new PaymentBalanceTransaction(dataItem));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.errorMessage =
|
|
53
|
-
typeof response.error === 'string'
|
|
54
|
-
? response.error
|
|
55
|
-
: response.error.message;
|
|
56
|
-
}
|
|
57
|
-
this.loading = false;
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return (h(StyledHost, { key: 'ec76a5bb9d5222491facd9bea6bf5f3c404bb5c4' }, h("justifi-table", { key: 'bfecb9c52a10750e01b2cc82dd5d558cf4e83081', columnData: [
|
|
61
|
-
['Processed On', 'The date each transaction occurred'],
|
|
62
|
-
['Type', 'The type of each transaction'],
|
|
63
|
-
['ID', 'The unique identifier of each transaction'],
|
|
64
|
-
['Amout', 'The dollar amount of each transaction'],
|
|
65
|
-
[
|
|
66
|
-
'Balance',
|
|
67
|
-
'The running total amount of this payment that belongs to you',
|
|
68
|
-
],
|
|
69
|
-
], entityId: this.balanceTransactions.map(transaction => transaction.id), rowData: this.balanceTransactions.map(balanceTransaction => [
|
|
70
|
-
h("div", null, h("div", null, formatDate(balanceTransaction.created_at)), h("div", null, formatTime(balanceTransaction.created_at))),
|
|
71
|
-
snakeCaseToHumanReadable(balanceTransaction.payment_balance_txn_type),
|
|
72
|
-
balanceTransaction.payment_id,
|
|
73
|
-
formatCurrency(balanceTransaction.amount),
|
|
74
|
-
formatCurrency(balanceTransaction.balance),
|
|
75
|
-
]), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
76
|
-
}
|
|
77
|
-
static get watchers() { return {
|
|
78
|
-
"params": ["updateOnPropChange"]
|
|
79
|
-
}; }
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export { PaymentBalanceTransactions as justifi_payment_balance_transactions };
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
|
-
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
|
-
import './Payment-3e94da9c.js';
|
|
5
|
-
import './Payout-dfe15b00.js';
|
|
6
|
-
import { f as formatDate, b as formatCurrency } from './utils-5f4c4faa.js';
|
|
7
|
-
import { c as config } from './config-476c7241.js';
|
|
8
|
-
import { S as StyledHost } from './styled-host-57aae7fa.js';
|
|
9
|
-
|
|
10
|
-
var ProceedStatuses;
|
|
11
|
-
(function (ProceedStatuses) {
|
|
12
|
-
ProceedStatuses["paid"] = "paid";
|
|
13
|
-
ProceedStatuses["failed"] = "failed";
|
|
14
|
-
ProceedStatuses["forwarded"] = "forwarded";
|
|
15
|
-
ProceedStatuses["scheduled"] = "scheduled";
|
|
16
|
-
ProceedStatuses["in_transit"] = "in_transit";
|
|
17
|
-
ProceedStatuses["canceled"] = "canceled";
|
|
18
|
-
})(ProceedStatuses || (ProceedStatuses = {}));
|
|
19
|
-
var ProceedStatusesSafeNames;
|
|
20
|
-
(function (ProceedStatusesSafeNames) {
|
|
21
|
-
ProceedStatusesSafeNames["paid"] = "Paid";
|
|
22
|
-
ProceedStatusesSafeNames["failed"] = "Failed";
|
|
23
|
-
ProceedStatusesSafeNames["forwarded"] = "Forwarded";
|
|
24
|
-
ProceedStatusesSafeNames["scheduled"] = "Scheduled";
|
|
25
|
-
ProceedStatusesSafeNames["in_transit"] = "In Transit";
|
|
26
|
-
ProceedStatusesSafeNames["canceled"] = "Canceled";
|
|
27
|
-
})(ProceedStatusesSafeNames || (ProceedStatusesSafeNames = {}));
|
|
28
|
-
class Proceed {
|
|
29
|
-
constructor(payout) {
|
|
30
|
-
this.id = payout.id;
|
|
31
|
-
this.account_id = payout.account_id;
|
|
32
|
-
this.amount = payout.amount;
|
|
33
|
-
this.bank_account = payout.bank_account;
|
|
34
|
-
this.currency = payout.currency;
|
|
35
|
-
this.delivery_method = payout.delivery_method || 'standard';
|
|
36
|
-
this.description = payout.description;
|
|
37
|
-
this.deposits_at = payout.deposits_at;
|
|
38
|
-
this.fees_total = payout.fees_total;
|
|
39
|
-
this.refunds_count = payout.refunds_count;
|
|
40
|
-
this.refunds_total = payout.refunds_total;
|
|
41
|
-
this.payments_count = payout.payments_count;
|
|
42
|
-
this.payments_total = payout.payments_total;
|
|
43
|
-
this.payout_type = payout.payout_type;
|
|
44
|
-
this.other_total = payout.other_total;
|
|
45
|
-
this.status = payout.status;
|
|
46
|
-
this.metadata = payout.metadata;
|
|
47
|
-
this.created_at = payout.created_at;
|
|
48
|
-
this.updated_at = payout.updated_at;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const ProceedsList = class {
|
|
53
|
-
constructor(hostRef) {
|
|
54
|
-
registerInstance(this, hostRef);
|
|
55
|
-
this.rowClicked = createEvent(this, "proceed-row-clicked", 7);
|
|
56
|
-
this.mapStatusToBadge = (status) => {
|
|
57
|
-
switch (status) {
|
|
58
|
-
case ProceedStatuses.scheduled:
|
|
59
|
-
return `<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
60
|
-
case ProceedStatuses.in_transit:
|
|
61
|
-
return `<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
62
|
-
case ProceedStatuses.failed:
|
|
63
|
-
return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
64
|
-
case ProceedStatuses.canceled:
|
|
65
|
-
return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
66
|
-
case ProceedStatuses.forwarded:
|
|
67
|
-
return `<span class="badge bg-secondary" title='This payout initially failed; the funds have been forwarded to your next successful batch of proceeds'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
68
|
-
case ProceedStatuses.paid:
|
|
69
|
-
return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
73
|
-
const newParams = Object.assign({}, this.params);
|
|
74
|
-
delete newParams.after_cursor;
|
|
75
|
-
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
76
|
-
};
|
|
77
|
-
this.handleClickNext = (afterCursor) => {
|
|
78
|
-
const newParams = Object.assign({}, this.params);
|
|
79
|
-
delete newParams.before_cursor;
|
|
80
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
81
|
-
};
|
|
82
|
-
this.accountId = undefined;
|
|
83
|
-
this.authToken = undefined;
|
|
84
|
-
this.proceeds = [];
|
|
85
|
-
this.loading = true;
|
|
86
|
-
this.errorMessage = undefined;
|
|
87
|
-
this.paging = pagingDefaults;
|
|
88
|
-
this.params = undefined;
|
|
89
|
-
}
|
|
90
|
-
updateOnPropChange() {
|
|
91
|
-
this.fetchData();
|
|
92
|
-
}
|
|
93
|
-
connectedCallback() {
|
|
94
|
-
this.fetchData();
|
|
95
|
-
}
|
|
96
|
-
async fetchData() {
|
|
97
|
-
var _a;
|
|
98
|
-
if (!this.accountId || !this.authToken) {
|
|
99
|
-
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
100
|
-
this.loading = false;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
this.loading = true;
|
|
104
|
-
const endpoint = `account/${this.accountId}/proceeds`;
|
|
105
|
-
const response = await Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin })
|
|
106
|
-
.get(endpoint, this.params);
|
|
107
|
-
if (!response.error) {
|
|
108
|
-
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
109
|
-
const data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.map(dataItem => new Proceed(dataItem));
|
|
110
|
-
this.proceeds = data;
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
114
|
-
}
|
|
115
|
-
this.loading = false;
|
|
116
|
-
}
|
|
117
|
-
render() {
|
|
118
|
-
return (h(StyledHost, { key: 'ea9ee482e1b439490ed258c37e75c47e5dc5f3bf' }, h("justifi-table", { key: 'a26da8b6e884e00bc0a8eac24025397fdc925d14', rowClickHandler: (e) => {
|
|
119
|
-
const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
|
|
120
|
-
if (!clickedProceedID) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
this.rowClicked.emit(this.proceeds.find((proceed) => proceed.id === clickedProceedID));
|
|
124
|
-
}, entityId: this.proceeds.map((proceed) => proceed.id), columnData: [
|
|
125
|
-
['Paid Out On', 'The date each batch of proceeds is transferred to your bank account'],
|
|
126
|
-
['Paid Out To', 'The bank account to which each payout is sent'],
|
|
127
|
-
['From Payments', 'The amount added related to payments in each payout'],
|
|
128
|
-
['From Refunds', 'The amount deducted related to refunds in each payout'],
|
|
129
|
-
['Other', 'The amount related to less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
|
|
130
|
-
['Proceeds Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement.'],
|
|
131
|
-
['Status', 'The real-time status of each payout'],
|
|
132
|
-
], rowData: this.proceeds.map((proceed) => ([
|
|
133
|
-
{
|
|
134
|
-
type: 'head',
|
|
135
|
-
value: formatDate(proceed.deposits_at),
|
|
136
|
-
},
|
|
137
|
-
proceed.bank_account.full_name,
|
|
138
|
-
formatCurrency(proceed.payments_total),
|
|
139
|
-
formatCurrency(proceed.refunds_total),
|
|
140
|
-
formatCurrency(proceed.other_total),
|
|
141
|
-
formatCurrency(proceed.amount),
|
|
142
|
-
{
|
|
143
|
-
type: 'inner',
|
|
144
|
-
value: this.mapStatusToBadge(proceed.status)
|
|
145
|
-
}
|
|
146
|
-
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
147
|
-
}
|
|
148
|
-
static get watchers() { return {
|
|
149
|
-
"accountId": ["updateOnPropChange"],
|
|
150
|
-
"authToken": ["updateOnPropChange"],
|
|
151
|
-
"params": ["updateOnPropChange"]
|
|
152
|
-
}; }
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
export { ProceedsList as justifi_proceeds_list };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
|
|
3
|
-
const skeletonCss = "@keyframes pulseAnimation{0%{opacity:0.6}50%{opacity:0.4}100%{opacity:0.6}}";
|
|
4
|
-
const JustifiSkeletonStyle0 = skeletonCss;
|
|
5
|
-
|
|
6
|
-
const Skeleton = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.component = 'div';
|
|
10
|
-
this.height = undefined;
|
|
11
|
-
this.width = undefined;
|
|
12
|
-
this.variant = 'text';
|
|
13
|
-
this.componentClassName = undefined;
|
|
14
|
-
this.styles = undefined;
|
|
15
|
-
}
|
|
16
|
-
getVariantStyle() {
|
|
17
|
-
if (this.variant === 'text') {
|
|
18
|
-
return {
|
|
19
|
-
marginTop: 0,
|
|
20
|
-
marginBottom: 0,
|
|
21
|
-
height: 'auto',
|
|
22
|
-
transformOrigin: '0 55%',
|
|
23
|
-
transform: 'scale(1, 0.60)',
|
|
24
|
-
borderRadius: '4px/6.67px',
|
|
25
|
-
'::before': {
|
|
26
|
-
content: '"\\00a0"',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
else if (this.variant === 'circular') {
|
|
31
|
-
return {
|
|
32
|
-
borderRadius: '50%',
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
else if (this.variant === 'rounded') {
|
|
36
|
-
return {
|
|
37
|
-
borderRadius: '4px',
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
return {};
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const TagType = this.component;
|
|
44
|
-
const combinedStyle = Object.assign(Object.assign(Object.assign({}, this.styles), this.getVariantStyle()), { animation: `pulseAnimation 2s ease-in-out 0.5s infinite`, width: this.width, height: this.height, backgroundColor: 'var(--jfi-skeleton-waveAnimation-bg, #f5f5f5)' });
|
|
45
|
-
return (h(Host, { key: '26efc1854b82225ebde973c9753c856b5021730c' }, h(TagType, { key: '81a6b8097f3b712eadc111a8d402632d058efe69', class: this.componentClassName, style: combinedStyle })));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
Skeleton.style = JustifiSkeletonStyle0;
|
|
49
|
-
|
|
50
|
-
export { Skeleton as justifi_skeleton };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
|
-
import './Pagination-afc8f96d.js';
|
|
4
|
-
import './Payment-3e94da9c.js';
|
|
5
|
-
import './Payout-dfe15b00.js';
|
|
6
|
-
import { S as SubAccount } from './SubAccount-7fcb1450.js';
|
|
7
|
-
import { a as EntityHeadInfo, b as EntityHeadInfoItem, E as ErrorState, L as LoadingState } from './utils-56719d07.js';
|
|
8
|
-
import { M as MapSubAccountStatusToBadge, f as formatDate, a as formatTime } from './utils-5f4c4faa.js';
|
|
9
|
-
import { c as config } from './config-476c7241.js';
|
|
10
|
-
import { S as StyledHost } from './styled-host-57aae7fa.js';
|
|
11
|
-
|
|
12
|
-
const SubaccountDetails = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
this.accountId = undefined;
|
|
16
|
-
this.subaccountId = undefined;
|
|
17
|
-
this.authToken = undefined;
|
|
18
|
-
this.onboardingData = undefined;
|
|
19
|
-
this.subaccount = undefined;
|
|
20
|
-
this.loading = true;
|
|
21
|
-
this.errorMessage = undefined;
|
|
22
|
-
}
|
|
23
|
-
updateOnPropChange() {
|
|
24
|
-
this.fetchData();
|
|
25
|
-
}
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
this.fetchData();
|
|
28
|
-
}
|
|
29
|
-
async fetchOnboardingData() {
|
|
30
|
-
const api = Api({ authToken: this.authToken, apiOrigin: '' });
|
|
31
|
-
const endpoint = `onboarding/${this.subaccountId}`;
|
|
32
|
-
const response = await api.get(endpoint);
|
|
33
|
-
if (!response.error) {
|
|
34
|
-
this.onboardingData = response.data;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
async fetchSubAccountData() {
|
|
41
|
-
const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
|
|
42
|
-
const endpoint = `account/${this.accountId}/seller_accounts/${this.subaccountId}`;
|
|
43
|
-
const response = await api.get(endpoint);
|
|
44
|
-
if (!response.error) {
|
|
45
|
-
const data = new SubAccount(response.data);
|
|
46
|
-
this.subaccount = data;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
async fetchData() {
|
|
53
|
-
this.loading = true;
|
|
54
|
-
if (!this.accountId || !this.authToken) {
|
|
55
|
-
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
56
|
-
this.loading = false;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this.fetchSubAccountData();
|
|
60
|
-
this.fetchOnboardingData();
|
|
61
|
-
this.loading = false;
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
var _a, _b;
|
|
65
|
-
return (h(StyledHost, { key: 'c32b7102406ae9d7f937c3cd9c2e6f213f06aa20' }, this.loading && LoadingState, !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.subaccount && this.onboardingData && (h("justifi-details", { key: '47332420860cecc98cee20a35125834b694306ed' }, h(EntityHeadInfo, { key: '681379f90251d911b8728b79614fd756b4c29d95', slot: 'head-info', badge: h("span", { slot: 'badge', innerHTML: MapSubAccountStatusToBadge(this.subaccount.status) }), title: this.subaccount.name }, h(EntityHeadInfoItem, { key: '9fb12b0fef139e18003e4e7bbdb31c8b3bfce5d3', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.subaccount.created_at)} ${formatTime(this.subaccount.created_at)}` }), h(EntityHeadInfoItem, { key: 'eaa99f0f68d768d47ad3df05452d23b6311c6d93', classes: "border-1 border-end", title: "Last Updated", value: `${formatDate(this.subaccount.updated_at)} ${formatTime(this.subaccount.updated_at)}` }), h(EntityHeadInfoItem, { key: 'a819a2a46408cbe283b02c816765092ff502e85c', title: "ID", value: this.subaccount.id })), h("div", { key: '24c3c113b1a06f3f44a777aa69c622f6a5fc2655', slot: 'detail-sections' }, h("subaccount-account-details", { key: 'a953676a158a40a417285cab08ccfcdc7e3c7119', subaccount: this.subaccount, onboardingData: this.onboardingData }), h("subaccount-merchant-details", { key: '0a970cd5b4b29389becd1547cca981f50dc99210', onboardingData: this.onboardingData }), h("subaccount-representative-details", { key: 'f2d5286019bb1cad941282143b646bcbb6a7766b', data: (_a = this.onboardingData.payload) === null || _a === void 0 ? void 0 : _a.representative }), h("subaccount-owners-details", { key: '189ff0cb2fe761921c0e2001cf4eebea33072a73', data: (_b = this.onboardingData.payload) === null || _b === void 0 ? void 0 : _b.owners }))))));
|
|
66
|
-
}
|
|
67
|
-
static get watchers() { return {
|
|
68
|
-
"subaccountId": ["updateOnPropChange"],
|
|
69
|
-
"authToken": ["updateOnPropChange"]
|
|
70
|
-
}; }
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export { SubaccountDetails as justifi_subaccount_details };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { S as SubAccount } from './SubAccount-7fcb1450.js';
|
|
3
|
-
import { M as MapSubAccountStatusToBadge } from './utils-5f4c4faa.js';
|
|
4
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
5
|
-
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
6
|
-
import './Payment-3e94da9c.js';
|
|
7
|
-
import './Payout-dfe15b00.js';
|
|
8
|
-
import { c as config } from './config-476c7241.js';
|
|
9
|
-
|
|
10
|
-
const subaccountsListCss = ":host{display:block}";
|
|
11
|
-
const JustifiSubaccountsListStyle0 = subaccountsListCss;
|
|
12
|
-
|
|
13
|
-
const SubaccountsList = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this.rowClicked = createEvent(this, "subaccount-row-clicked", 7);
|
|
17
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
18
|
-
const newParams = Object.assign({}, this.params);
|
|
19
|
-
delete newParams.after_cursor;
|
|
20
|
-
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
21
|
-
};
|
|
22
|
-
this.handleClickNext = (afterCursor) => {
|
|
23
|
-
const newParams = Object.assign({}, this.params);
|
|
24
|
-
delete newParams.before_cursor;
|
|
25
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
26
|
-
};
|
|
27
|
-
this.accountId = undefined;
|
|
28
|
-
this.authToken = undefined;
|
|
29
|
-
this.subaccounts = [];
|
|
30
|
-
this.loading = true;
|
|
31
|
-
this.errorMessage = undefined;
|
|
32
|
-
this.paging = pagingDefaults;
|
|
33
|
-
this.params = undefined;
|
|
34
|
-
}
|
|
35
|
-
updateOnPropChange() {
|
|
36
|
-
this.fetchData();
|
|
37
|
-
}
|
|
38
|
-
connectedCallback() {
|
|
39
|
-
this.fetchData();
|
|
40
|
-
}
|
|
41
|
-
async fetchData() {
|
|
42
|
-
if (!this.accountId || !this.authToken) {
|
|
43
|
-
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
44
|
-
this.loading = false;
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
this.loading = true;
|
|
48
|
-
const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
|
|
49
|
-
const endpoint = `account/${this.accountId}/seller_accounts`;
|
|
50
|
-
const response = await api.get(endpoint, this.params);
|
|
51
|
-
if (!response.error) {
|
|
52
|
-
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
53
|
-
const data = response === null || response === void 0 ? void 0 : response.data.map(dataItem => new SubAccount(dataItem));
|
|
54
|
-
this.subaccounts = data;
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
58
|
-
}
|
|
59
|
-
this.loading = false;
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h(Host, { key: '6e2998b090853a420c34facb9b9de8631964c5f3' }, h("justifi-table", { key: '10c02a8d0911b316d96c128dcfb2d488d75e7808', rowClickHandler: e => {
|
|
63
|
-
const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;
|
|
64
|
-
if (!clickSubAccountId) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
this.rowClicked.emit(this.subaccounts.find((subaccount) => subaccount.id === clickSubAccountId));
|
|
68
|
-
}, entityId: this.subaccounts.map((subaccount) => subaccount.id), columnData: [
|
|
69
|
-
['Created On', 'The date and time each sub account was created'],
|
|
70
|
-
['Name', 'The name provided for each sub account'],
|
|
71
|
-
['Account ', 'The unique live or test account ID for each sub account'],
|
|
72
|
-
['Card Rate ', 'The rate that determines the fees charged per payment, when paid by card'],
|
|
73
|
-
['ACH Rate ', 'The rate that determines the fees charged per payment, when paid by eCheck'],
|
|
74
|
-
['Status', 'The onboarding status of each sub account']
|
|
75
|
-
], rowData: this.subaccounts.map((subaccount) => ([
|
|
76
|
-
{
|
|
77
|
-
type: 'head',
|
|
78
|
-
value: `
|
|
79
|
-
<div class='fw-bold'>${subaccount.dateString}</div>
|
|
80
|
-
<div class='fw-bold'>${subaccount.timeString}</div>
|
|
81
|
-
`,
|
|
82
|
-
},
|
|
83
|
-
subaccount.name,
|
|
84
|
-
subaccount.id,
|
|
85
|
-
subaccount.cardRate,
|
|
86
|
-
subaccount.achRate,
|
|
87
|
-
{
|
|
88
|
-
type: 'inner',
|
|
89
|
-
value: MapSubAccountStatusToBadge(subaccount.status)
|
|
90
|
-
}
|
|
91
|
-
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
92
|
-
}
|
|
93
|
-
static get watchers() { return {
|
|
94
|
-
"accountId": ["updateOnPropChange"],
|
|
95
|
-
"authToken": ["updateOnPropChange"],
|
|
96
|
-
"params": ["updateOnPropChange"]
|
|
97
|
-
}; }
|
|
98
|
-
};
|
|
99
|
-
SubaccountsList.style = JustifiSubaccountsListStyle0;
|
|
100
|
-
|
|
101
|
-
export { SubaccountsList as justifi_subaccounts_list };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { h, r as registerInstance, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { E as ExtendedPagingDefaults } from './Pagination-afc8f96d.js';
|
|
3
|
-
import { t as tableExportedParts } from './exported-parts-abd4c027.js';
|
|
4
|
-
|
|
5
|
-
const LoadingState = (columnSpan) => (h("tr", null,
|
|
6
|
-
h("td", { class: "loading-state", part: "loading-state-cell", colSpan: columnSpan, style: { textAlign: 'center' } },
|
|
7
|
-
h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" },
|
|
8
|
-
h("span", { class: "visually-hidden" }, "Loading...")))));
|
|
9
|
-
const EmptyState = (columnSpan) => (h("tr", null,
|
|
10
|
-
h("td", { class: "empty-state", part: "empty-state", colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
|
|
11
|
-
const ErrorState = (columnSpan, errorMessage) => (h("tr", null,
|
|
12
|
-
h("td", { class: "error-state", part: "error-state", colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } },
|
|
13
|
-
"An unexpected error occurred: ",
|
|
14
|
-
errorMessage)));
|
|
15
|
-
|
|
16
|
-
const tableCss = ":host{table-layout:fixed}.table-wrapper{overflow-x:scroll}";
|
|
17
|
-
const JustifiTableStyle0 = tableCss;
|
|
18
|
-
|
|
19
|
-
const Table = class {
|
|
20
|
-
constructor(hostRef) {
|
|
21
|
-
registerInstance(this, hostRef);
|
|
22
|
-
this.loading = true;
|
|
23
|
-
this.errorMessage = '';
|
|
24
|
-
this.rowData = [];
|
|
25
|
-
this.columnData = undefined;
|
|
26
|
-
this.paging = ExtendedPagingDefaults;
|
|
27
|
-
this.params = {};
|
|
28
|
-
this.entityId = undefined;
|
|
29
|
-
this.rowClickHandler = undefined;
|
|
30
|
-
}
|
|
31
|
-
get showEmptyState() {
|
|
32
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
33
|
-
}
|
|
34
|
-
get showErrorState() {
|
|
35
|
-
return !this.loading && !!this.errorMessage;
|
|
36
|
-
}
|
|
37
|
-
get showRowData() {
|
|
38
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
return (h(Host, { key: '330ca720893ef70db96d4229c45a42f859567fd2', exportparts: tableExportedParts }, h("div", { key: '6a4aa680881ca619e88a1e505e9367f598633184', class: "table-wrapper" }, h("table", { key: '56129dafeccdda2e443f52d31efc7b68181988f7', class: "table table-hover" }, h("thead", { key: 'c3d407a15d350918df135f9e6f9f94d8ac751f65', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'a1a8b3e9141ee6ecf1312b5d6d50f4b1a0488d9f', class: "table-light text-nowrap", part: 'table-head-row' }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, !Array.isArray(column) ? column : column[0])))), h("tbody", { key: '232e450d33c1ea1088aab9a06ecb9a00d49788fd', class: "table-body", part: 'table-body' }, this.loading && LoadingState(this.columnData.length), this.showEmptyState && EmptyState(this.columnData.length), this.showErrorState && ErrorState(this.columnData.length, this.errorMessage), this.showRowData && (this.rowData.map((data, index) => {
|
|
43
|
-
return (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: e => this.rowClickHandler ? this.rowClickHandler(e) : null, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => {
|
|
44
|
-
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
45
|
-
if (nestedHtml) {
|
|
46
|
-
return (h("td", { part: "table-cell", innerHTML: dataEntry.value }));
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return (h("td", { part: "table-cell" }, dataEntry));
|
|
50
|
-
}
|
|
51
|
-
})));
|
|
52
|
-
}))), this.paging &&
|
|
53
|
-
h("tfoot", { key: '35f0a88e934a2483df8b62b037d54c2408011c9d', class: "sticky-bottom" }, h("tr", { key: '708dba5501439a728596f6985cd4f02f7cad2eb4', class: "table-light align-middle" }, h("td", { key: '14ac6f8ec26a436c7c68391ab1c53ebdf9322d26', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: 'e52783c0e2a3b650f77a0bca0cc462b2f1942caf', paging: this.paging, params: this.params }))))))));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
Table.style = JustifiTableStyle0;
|
|
57
|
-
|
|
58
|
-
const PaginationMenu = class {
|
|
59
|
-
constructor(hostRef) {
|
|
60
|
-
registerInstance(this, hostRef);
|
|
61
|
-
this.paging = ExtendedPagingDefaults;
|
|
62
|
-
this.params = {};
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
return (h(Host, { key: 'e0211a01fc44ec29eec8085f31055c060f77f56f', exportparts: `page-arrow,page-button,page-button-disabled,page-button-text` }, h("nav", { key: '191b1603b6cc559d3ef0cf45a37074e41513ea5a', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: '775613b2ce03a1bc6a8abf5c918d099e13ac06d2', class: "pagination m-0" }, h("li", { key: 'cf7fef25e80e446688f31f13236c3e71a1378aef', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("a", { key: 'bb671bda6ab5f6921d34c7fdf5b33a62bc076154', href: "#", class: "page-link", onClick: (e) => {
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
this.paging.handleClickPrevious(this.paging.start_cursor);
|
|
68
|
-
}, part: `page-button${this.paging.has_previous ? '' : ' page-button-disabled'}` }, h("span", { key: 'da88de236d134f950a48d9a1d2ebf70742e80788', class: "me-1", part: "page-arrow" }, "\u00AB"), h("span", { key: '9ae148f746d5d04fcaf4981b0f1aa3d7fc1b509d', part: "page-button-text" }, "Previous"))), h("li", { key: '7340b9d89574c9c95b15fd50f3444aacdbb4c496', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("a", { key: '827e68669eeb7b83a28185312108adde796a331e', href: "#", class: "page-link", onClick: (e) => {
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
this.paging.handleClickNext(this.paging.end_cursor);
|
|
71
|
-
}, part: `page-button${this.paging.has_next ? '' : ' page-button-disabled'}` }, h("span", { key: '29ce5f0e9ae4b19d3116ac6bd883c52168c5fbb8', part: "page-button-text" }, "Next"), h("span", { key: '2d58cffc46031c9db1ad7c4b061730bc083dded8', class: "ms-1", part: "page-arrow" }, "\u00BB")))))));
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export { Table as justifi_table, PaginationMenu as pagination_menu };
|