@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,111 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormController } from "../../../form/form";
|
|
3
|
-
import { PHONE_MASKS, SSN_MASK } from "../../../../utils/form-input-masks";
|
|
4
|
-
import Api from "../../../../api/Api";
|
|
5
|
-
import { parseIdentityInfo } from "../../utils/payload-parsers";
|
|
6
|
-
import { identitySchema } from "../../schemas/business-identity-schema";
|
|
7
|
-
import { config } from "../../../../../config";
|
|
8
|
-
import { BusinessFormStep } from "../../utils/business-form-types";
|
|
9
|
-
import { Representative } from "../../../../api/Identity";
|
|
10
|
-
import { deconstructDate } from "../../utils/helpers";
|
|
1
|
+
import { h } from "@stencil/core";
|
|
11
2
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
3
|
+
import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-actions";
|
|
4
|
+
import { BusinessService } from "../../../../api/services/business.service";
|
|
12
5
|
export class BusinessRepresentativeFormStep {
|
|
13
6
|
constructor() {
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
const response = await this.api.get(this.businessEndpoint);
|
|
18
|
-
this.representative = new Representative(response.data.representative || {});
|
|
19
|
-
this.formController.setInitialValues(Object.assign({}, this.representative));
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
this.errorEvent.emit({
|
|
23
|
-
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
24
|
-
message: error.message,
|
|
25
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
26
|
-
data: error,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
finally {
|
|
30
|
-
this.formLoading.emit(false);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
this.sendData = async (onSuccess) => {
|
|
34
|
-
this.formLoading.emit(true);
|
|
35
|
-
try {
|
|
36
|
-
const payload = parseIdentityInfo(this.formController.values.getValue());
|
|
37
|
-
const response = await this.api.patch(this.businessEndpoint, JSON.stringify({ representative: payload }));
|
|
38
|
-
this.handleResponse(response, onSuccess);
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
this.errorEvent.emit({
|
|
42
|
-
errorCode: ComponentErrorCodes.PATCH_ERROR,
|
|
43
|
-
message: error.message,
|
|
44
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
45
|
-
data: error,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
finally {
|
|
49
|
-
this.formLoading.emit(false);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
this.inputHandler = (name, value) => {
|
|
53
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
54
|
-
};
|
|
55
|
-
this.onAddressFormUpdate = (values) => {
|
|
56
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { address: Object.assign(Object.assign({}, this.formController.values.getValue().address), values) }));
|
|
57
|
-
};
|
|
58
|
-
this.onDateOfBirthUpdate = (event) => {
|
|
59
|
-
if (event.detail === '') {
|
|
60
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { dob_day: null, dob_month: null, dob_year: null }));
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
const dob_values = deconstructDate(event.detail);
|
|
64
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { dob_day: dob_values.dob_day, dob_month: dob_values.dob_month, dob_year: dob_values.dob_year }));
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
this.formController = undefined;
|
|
68
|
-
this.errors = {};
|
|
69
|
-
this.representative = {};
|
|
7
|
+
this.getBusiness = undefined;
|
|
8
|
+
this.patchBusiness = undefined;
|
|
70
9
|
this.authToken = undefined;
|
|
71
10
|
this.businessId = undefined;
|
|
72
11
|
this.allowOptionalFields = undefined;
|
|
73
12
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
handleResponse(response, onSuccess) {
|
|
78
|
-
if (response.error) {
|
|
79
|
-
this.errorEvent.emit({
|
|
80
|
-
errorCode: ComponentErrorCodes.PATCH_ERROR,
|
|
81
|
-
message: response.error.message,
|
|
82
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
83
|
-
data: response.error,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
onSuccess();
|
|
88
|
-
}
|
|
89
|
-
this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.representative } });
|
|
13
|
+
propChanged() {
|
|
14
|
+
this.initializeApi();
|
|
90
15
|
}
|
|
91
16
|
async validateAndSubmit({ onSuccess }) {
|
|
92
|
-
this.
|
|
17
|
+
this.coreComponent.validateAndSubmit({ onSuccess });
|
|
93
18
|
}
|
|
94
|
-
;
|
|
95
19
|
componentWillLoad() {
|
|
96
|
-
this.
|
|
97
|
-
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
98
|
-
if (this.businessId && this.authToken) {
|
|
99
|
-
this.fetchData();
|
|
100
|
-
}
|
|
20
|
+
this.initializeApi();
|
|
101
21
|
}
|
|
102
|
-
|
|
103
|
-
this.
|
|
104
|
-
|
|
22
|
+
initializeApi() {
|
|
23
|
+
if (this.authToken && this.businessId) {
|
|
24
|
+
this.getBusiness = makeGetBusiness({
|
|
25
|
+
authToken: this.authToken,
|
|
26
|
+
businessId: this.businessId,
|
|
27
|
+
service: new BusinessService()
|
|
28
|
+
});
|
|
29
|
+
this.patchBusiness = makePatchBusiness({
|
|
30
|
+
authToken: this.authToken,
|
|
31
|
+
businessId: this.businessId,
|
|
32
|
+
service: new BusinessService()
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.errorEvent.emit({
|
|
37
|
+
message: 'Missing required props',
|
|
38
|
+
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
39
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
105
42
|
}
|
|
106
43
|
render() {
|
|
107
|
-
|
|
108
|
-
return (h(Host, { key: 'd2c9bc0dd40d85403688d4c0ff482d7b0c3c35ab', exportparts: 'label,input,input-invalid' }, h("form", { key: '99a6b23b13b893f760e322dfe2e6f603e86e718c' }, h("fieldset", { key: '7c3b1897a7fe0fa672fa2d8d1a35ba4c81e9c256' }, h("legend", { key: 'f0fe4c93f757167e631d6e21bda5b559556550ad' }, "Representative"), h("hr", { key: '1dd5db7898b510bcdae492460f2ce57d7871c282' }), h("div", { key: '33d1935e5b6cc441bd0193e35aaaedcecfc2bc95', class: 'row gy-3' }, h("div", { key: 'c872b5a20469e3609178106b019fe1d0aecb2a24', class: 'col-12 col-md-8' }, h("form-control-text", { key: '31f37067b3c46bb4f7120169878dae88c1d4e918', name: 'name', label: 'Full Name', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9bdc8c1756a693f48bf060ee66f6fcf44cabc025', class: 'col-12 col-md-4' }, h("form-control-text", { key: '1686ff4c8e7b2e2fb74cc104966bf56d2754f8a8', name: 'title', label: 'Title', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '789443ed50f9f0957e6bd8b4f6dea8d6ba7421a9', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'fcf1bd082368ee1adcc6b661ec75e3693fcc30dd', name: 'email', label: 'Email Address', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '163d3f6e3ea1d2b7833b7a232e4726e56fda6416', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '3eba7a3ab6a7e8631cb9f100bfd7e5e5566efecc', name: 'phone', label: 'Phone Number', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '42fc6d656c069f073b08e77398a266e367e771ad', class: 'col-12 col-md-4' }, h("form-control-date", { key: 'f627ff9478974305c83a8947b6c7f60d46189104', name: 'dob_full', label: 'Birth Date', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'ffded118a7a2d1c5889c46ac879cdadc289f1c1e', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: 'bf9cda57b1b7579a38d4f1f276c5cbc7b1723e2d', name: 'identification_number', label: 'SSN', defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'b033205960692dc7b3cea5ce59e12a13c58d5243', class: 'col-12' }, h("justifi-identity-address-form", { key: 'f243060451c630da18d175a93f55bb1fcabd0cec', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
|
|
44
|
+
return (h("justifi-business-representative-form-step-core", { key: '866d8cf33d53eff562dac1d36898b4c5695bf39b', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
109
45
|
}
|
|
110
46
|
static get is() { return "justifi-business-representative-form-step"; }
|
|
111
47
|
static get properties() {
|
|
@@ -165,49 +101,12 @@ export class BusinessRepresentativeFormStep {
|
|
|
165
101
|
}
|
|
166
102
|
static get states() {
|
|
167
103
|
return {
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"representative": {}
|
|
104
|
+
"getBusiness": {},
|
|
105
|
+
"patchBusiness": {}
|
|
171
106
|
};
|
|
172
107
|
}
|
|
173
108
|
static get events() {
|
|
174
109
|
return [{
|
|
175
|
-
"method": "submitted",
|
|
176
|
-
"name": "submitted",
|
|
177
|
-
"bubbles": true,
|
|
178
|
-
"cancelable": true,
|
|
179
|
-
"composed": true,
|
|
180
|
-
"docs": {
|
|
181
|
-
"tags": [],
|
|
182
|
-
"text": ""
|
|
183
|
-
},
|
|
184
|
-
"complexType": {
|
|
185
|
-
"original": "BusinessFormSubmitEvent",
|
|
186
|
-
"resolved": "BusinessFormSubmitEvent",
|
|
187
|
-
"references": {
|
|
188
|
-
"BusinessFormSubmitEvent": {
|
|
189
|
-
"location": "import",
|
|
190
|
-
"path": "../../utils/business-form-types",
|
|
191
|
-
"id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}, {
|
|
196
|
-
"method": "formLoading",
|
|
197
|
-
"name": "formLoading",
|
|
198
|
-
"bubbles": true,
|
|
199
|
-
"cancelable": true,
|
|
200
|
-
"composed": true,
|
|
201
|
-
"docs": {
|
|
202
|
-
"tags": [],
|
|
203
|
-
"text": ""
|
|
204
|
-
},
|
|
205
|
-
"complexType": {
|
|
206
|
-
"original": "boolean",
|
|
207
|
-
"resolved": "boolean",
|
|
208
|
-
"references": {}
|
|
209
|
-
}
|
|
210
|
-
}, {
|
|
211
110
|
"method": "errorEvent",
|
|
212
111
|
"name": "error-event",
|
|
213
112
|
"bubbles": true,
|
|
@@ -255,4 +154,14 @@ export class BusinessRepresentativeFormStep {
|
|
|
255
154
|
}
|
|
256
155
|
};
|
|
257
156
|
}
|
|
157
|
+
static get watchers() {
|
|
158
|
+
return [{
|
|
159
|
+
"propName": "authToken",
|
|
160
|
+
"methodName": "propChanged"
|
|
161
|
+
}, {
|
|
162
|
+
"propName": "businessId",
|
|
163
|
+
"methodName": "propChanged"
|
|
164
|
+
}];
|
|
165
|
+
}
|
|
258
166
|
}
|
|
167
|
+
;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { FormController } from "../../../form/form";
|
|
3
3
|
import { BusinessFormStep } from "../../utils/business-form-types";
|
|
4
4
|
import { Business } from "../../../../api/Business";
|
|
@@ -7,6 +7,7 @@ import { config } from "../../../../../config";
|
|
|
7
7
|
import { businessDocumentSchema } from "../../schemas/business-document-upload-schema";
|
|
8
8
|
import { EntityDocument, EntityDocumentStorage } from "../../../../api/Document";
|
|
9
9
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
10
|
+
import { Skeleton } from "../../../../ui-components";
|
|
10
11
|
export class BusinessDocumentFormStep {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.inputHandler = (name, value) => {
|
|
@@ -106,22 +107,26 @@ export class BusinessDocumentFormStep {
|
|
|
106
107
|
this.documentData[docType] = documentList;
|
|
107
108
|
};
|
|
108
109
|
this.sendData = async (onSuccess) => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
try {
|
|
111
|
+
const docArray = Object.values(this.documentData).flat();
|
|
112
|
+
if (!docArray.length) {
|
|
113
|
+
return onSuccess();
|
|
114
|
+
}
|
|
115
|
+
const documentRecords = docArray.map(docData => this.createDocumentRecord(docData));
|
|
116
|
+
const recordsCreated = await Promise.all(documentRecords);
|
|
117
|
+
if (!recordsCreated) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const uploads = docArray.map(docData => this.uploadDocument(docData));
|
|
121
|
+
const uploadsCompleted = await Promise.all(uploads);
|
|
122
|
+
if (!uploadsCompleted) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
await onSuccess();
|
|
117
126
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (!uploadsCompleted) {
|
|
121
|
-
return;
|
|
127
|
+
finally {
|
|
128
|
+
this.formLoading.emit(false);
|
|
122
129
|
}
|
|
123
|
-
uploadsCompleted && this.formLoading.emit(false);
|
|
124
|
-
await onSuccess();
|
|
125
130
|
};
|
|
126
131
|
this.formController = undefined;
|
|
127
132
|
this.errors = {};
|
|
@@ -160,7 +165,7 @@ export class BusinessDocumentFormStep {
|
|
|
160
165
|
return null;
|
|
161
166
|
}
|
|
162
167
|
if (this.isLoading) {
|
|
163
|
-
return h(
|
|
168
|
+
return h(Skeleton, { variant: 'rounded', height: '50px' });
|
|
164
169
|
}
|
|
165
170
|
return h("justifi-business-documents-on-file", { documents: this.existingDocuments });
|
|
166
171
|
}
|
|
@@ -169,12 +174,12 @@ export class BusinessDocumentFormStep {
|
|
|
169
174
|
return null;
|
|
170
175
|
}
|
|
171
176
|
if (this.isLoading) {
|
|
172
|
-
return h(
|
|
177
|
+
return h(Skeleton, { variant: 'rounded', height: '350px' });
|
|
173
178
|
}
|
|
174
179
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
175
180
|
}
|
|
176
181
|
render() {
|
|
177
|
-
return (h(
|
|
182
|
+
return (h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
|
|
178
183
|
}
|
|
179
184
|
static get is() { return "justifi-business-document-upload-form-step"; }
|
|
180
185
|
static get properties() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { inputConfigurations } from "./input-configurations";
|
|
3
3
|
import { isInRange } from "../../../../utils/utils";
|
|
4
4
|
export class BusinessDocumentUploadInputGroup {
|
|
@@ -29,7 +29,7 @@ export class BusinessDocumentUploadInputGroup {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
const inputsConfig = this.inputConfigs;
|
|
32
|
-
return (h(
|
|
32
|
+
return (h("div", { key: '8035b474e298cae43e5ceda5594fd3891902a300', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "justifi-business-document-upload-input-group"; }
|
|
35
35
|
static get properties() {
|
|
@@ -10,7 +10,7 @@ export class BusinessDocumentsOnFile {
|
|
|
10
10
|
}
|
|
11
11
|
return (h("div", null, h("div", { class: 'card' }, h("div", { class: 'card-body' }, h("h5", { class: 'card-title' }, "Documents Already on File"), h("div", { class: 'table-responsive' }, h("table", { class: 'table table-sm table-borderless' }, h("thead", { part: "table-head" }, h("tr", { part: 'table-head-row' }, h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Name"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Type"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Document Type"), h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Date Uploaded"))), h("tbody", { part: 'table-body' }, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
|
|
12
12
|
.map((document, index) => {
|
|
13
|
-
return (h("tr", { class: index === 0 ? '
|
|
13
|
+
return (h("tr", { class: index === 0 ? 'border-bottom border-top' : 'border-bottom' }, h("td", { part: "table-cell" }, document.file_name), h("td", { part: "table-cell" }, document.file_type), h("td", { part: "table-cell" }, snakeCaseToHumanReadable(document.document_type)), h("td", { part: "table-cell" }, `${formatDate(document.created_at)} - ${formatTimeSeconds(document.created_at)}`)));
|
|
14
14
|
})))))), h("hr", null)));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "justifi-business-documents-on-file"; }
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { addressSchema } from "../../schemas/business-address-schema";
|
|
3
|
+
import { FormController } from "../../../form/form";
|
|
4
|
+
import { Address } from "../../../../api/Business";
|
|
5
|
+
import StateOptions from "../../../../utils/state-options";
|
|
6
|
+
import { parseAddressInfo } from "../../utils/payload-parsers";
|
|
7
|
+
import { numberOnlyHandler } from "../../../form/utils";
|
|
8
|
+
export class LegalAddressFormStepCore {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.getData = () => {
|
|
11
|
+
this.formLoading.emit(true);
|
|
12
|
+
this.getBusiness({
|
|
13
|
+
onSuccess: (response) => {
|
|
14
|
+
this.legal_address = new Address(response.data.legal_address || {});
|
|
15
|
+
this.formController.setInitialValues(Object.assign({}, this.legal_address));
|
|
16
|
+
},
|
|
17
|
+
onError: ({ error, code, severity }) => {
|
|
18
|
+
this.errorEvent.emit({
|
|
19
|
+
message: error,
|
|
20
|
+
errorCode: code,
|
|
21
|
+
severity: severity
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
final: () => this.formLoading.emit(false)
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
this.sendData = (onSuccess) => {
|
|
28
|
+
let submittedData;
|
|
29
|
+
this.formLoading.emit(true);
|
|
30
|
+
this.patchBusiness({
|
|
31
|
+
payload: this.patchPayload,
|
|
32
|
+
onSuccess: (response) => {
|
|
33
|
+
submittedData = response;
|
|
34
|
+
onSuccess();
|
|
35
|
+
},
|
|
36
|
+
onError: ({ error, code, severity }) => {
|
|
37
|
+
submittedData = error;
|
|
38
|
+
this.errorEvent.emit({
|
|
39
|
+
message: error,
|
|
40
|
+
errorCode: code,
|
|
41
|
+
severity: severity
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
final: () => {
|
|
45
|
+
this.submitted.emit({ data: { submittedData } });
|
|
46
|
+
this.formLoading.emit(false);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
this.inputHandler = (name, value) => {
|
|
51
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
52
|
+
};
|
|
53
|
+
this.formController = undefined;
|
|
54
|
+
this.errors = {};
|
|
55
|
+
this.legal_address = {};
|
|
56
|
+
this.getBusiness = undefined;
|
|
57
|
+
this.patchBusiness = undefined;
|
|
58
|
+
this.allowOptionalFields = undefined;
|
|
59
|
+
}
|
|
60
|
+
async validateAndSubmit({ onSuccess }) {
|
|
61
|
+
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
62
|
+
}
|
|
63
|
+
;
|
|
64
|
+
get patchPayload() {
|
|
65
|
+
let formValues = parseAddressInfo(this.formController.values.getValue());
|
|
66
|
+
return JSON.stringify({ legal_address: formValues });
|
|
67
|
+
}
|
|
68
|
+
componentWillLoad() {
|
|
69
|
+
this.getBusiness && this.getData();
|
|
70
|
+
this.formController = new FormController(addressSchema(this.allowOptionalFields));
|
|
71
|
+
}
|
|
72
|
+
componentDidLoad() {
|
|
73
|
+
this.formController.errors.subscribe(errors => {
|
|
74
|
+
this.errors = Object.assign({}, errors);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
var _a, _b, _c, _d, _e, _f;
|
|
79
|
+
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
80
|
+
return (h("form", { key: 'ef8d88ebced702b5a0b89eaddb22320f24e7081f' }, h("fieldset", { key: '9f70633b36559e6f8de8d67f39a19df365116bcd' }, h("legend", { key: '6b6b0e42fd0f00a28d24bf9d1e4818e54264ff96' }, "Business Legal Address"), h("hr", { key: '8b7b1a9f0f9448c4fd3b918f20e7b51337d3e5ee' }), h("div", { key: 'f45b643ec057356d9a6e04a19829c562ec521bd2', class: 'row gy-3' }, h("div", { key: 'f115c4e4163126d2d8c998c8de775821e7fc0e65', class: 'col-12' }, h("form-control-text", { key: '066a1ea25ef086dda05e32cde738e7e77dcbb322', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: 'e8432ea00cd5da5b08cc97efe8f3a9817a14b5b1', class: 'col-12' }, h("form-control-text", { key: '099ab7197940d5de8869682cbda41dc0d6ee0e1d', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '9514757f732d6a445e48eb85d3654f79cf2320db', class: 'col-12' }, h("form-control-text", { key: '37db927ef6c735699a4954ad51d43f4666eea9a0', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'f3c82def0d67fcc0d7e4ca03e80afc166a36ffbb', class: 'col-12' }, h("form-control-select", { key: 'cbcfafe876997e0f9181cf117eeaf465ca424c68', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '4f32ffbe520d1fbe2406d41e7fb76a9f0f450299', class: 'col-12' }, h("form-control-text", { key: '5a2fcc4726b543e8ef6c5456e965cc479d91ce4e', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'd4bdbfa4d3999bae59b812e84394bb4c0974d6b3', class: 'col-12' }, h("form-control-select", { key: '95eec216f50d119016c7627074bf29b9a21b1cd1', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
81
|
+
// just for now so we skip handling country specificities
|
|
82
|
+
disabled: true }))))));
|
|
83
|
+
}
|
|
84
|
+
static get is() { return "justifi-legal-address-form-step-core"; }
|
|
85
|
+
static get properties() {
|
|
86
|
+
return {
|
|
87
|
+
"getBusiness": {
|
|
88
|
+
"type": "unknown",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "Function",
|
|
92
|
+
"resolved": "Function",
|
|
93
|
+
"references": {
|
|
94
|
+
"Function": {
|
|
95
|
+
"location": "global",
|
|
96
|
+
"id": "global::Function"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": ""
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"patchBusiness": {
|
|
108
|
+
"type": "unknown",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "Function",
|
|
112
|
+
"resolved": "Function",
|
|
113
|
+
"references": {
|
|
114
|
+
"Function": {
|
|
115
|
+
"location": "global",
|
|
116
|
+
"id": "global::Function"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"allowOptionalFields": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": true,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"attribute": "allow-optional-fields",
|
|
142
|
+
"reflect": false
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
static get states() {
|
|
147
|
+
return {
|
|
148
|
+
"formController": {},
|
|
149
|
+
"errors": {},
|
|
150
|
+
"legal_address": {}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
static get events() {
|
|
154
|
+
return [{
|
|
155
|
+
"method": "submitted",
|
|
156
|
+
"name": "submitted",
|
|
157
|
+
"bubbles": true,
|
|
158
|
+
"cancelable": true,
|
|
159
|
+
"composed": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": ""
|
|
163
|
+
},
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "BusinessFormSubmitEvent",
|
|
166
|
+
"resolved": "BusinessFormSubmitEvent",
|
|
167
|
+
"references": {
|
|
168
|
+
"BusinessFormSubmitEvent": {
|
|
169
|
+
"location": "import",
|
|
170
|
+
"path": "../../utils/business-form-types",
|
|
171
|
+
"id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
"method": "formLoading",
|
|
177
|
+
"name": "formLoading",
|
|
178
|
+
"bubbles": true,
|
|
179
|
+
"cancelable": true,
|
|
180
|
+
"composed": true,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": ""
|
|
184
|
+
},
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "boolean",
|
|
187
|
+
"resolved": "boolean",
|
|
188
|
+
"references": {}
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
"method": "errorEvent",
|
|
192
|
+
"name": "error-event",
|
|
193
|
+
"bubbles": true,
|
|
194
|
+
"cancelable": true,
|
|
195
|
+
"composed": true,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": ""
|
|
199
|
+
},
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "ComponentError",
|
|
202
|
+
"resolved": "ComponentError",
|
|
203
|
+
"references": {
|
|
204
|
+
"ComponentError": {
|
|
205
|
+
"location": "import",
|
|
206
|
+
"path": "../../../../api/ComponentError",
|
|
207
|
+
"id": "src/api/ComponentError.ts::ComponentError"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
213
|
+
static get methods() {
|
|
214
|
+
return {
|
|
215
|
+
"validateAndSubmit": {
|
|
216
|
+
"complexType": {
|
|
217
|
+
"signature": "({ onSuccess }: { onSuccess: any; }) => Promise<void>",
|
|
218
|
+
"parameters": [{
|
|
219
|
+
"name": "__0",
|
|
220
|
+
"type": "{ onSuccess: any; }",
|
|
221
|
+
"docs": ""
|
|
222
|
+
}],
|
|
223
|
+
"references": {
|
|
224
|
+
"Promise": {
|
|
225
|
+
"location": "global",
|
|
226
|
+
"id": "global::Promise"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"return": "Promise<void>"
|
|
230
|
+
},
|
|
231
|
+
"docs": {
|
|
232
|
+
"text": "",
|
|
233
|
+
"tags": []
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
}
|