@justifi/webcomponents 4.9.1 → 4.10.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/{Business-64dffab7.js → Business-663db337.js} +13 -1
- package/dist/cjs/Identity-1c4528b8.js +49 -0
- package/dist/cjs/{SubAccount-f8144025.js → SubAccount-05867651.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -3
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +26 -0
- package/dist/cjs/business-details-core.cjs.entry.js +2 -2
- package/dist/cjs/business-form-select-options-7ccd8dca.js +85 -0
- package/dist/cjs/business-form-types-3cdd5447.js +19 -0
- package/dist/cjs/form-control-datepart_3.cjs.entry.js +68 -78
- package/dist/cjs/form-control-monetary.cjs.entry.js +20 -18
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +50 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -3
- package/dist/cjs/{index-07ddbad2.js → index-69b9386b.js} +57 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +506 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_4.cjs.entry.js} +14 -42
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -6
- package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +35 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +18 -15
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
- 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_3.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form.cjs.entry.js +162 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +89 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-9e72e80f.js +99 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -2
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +4 -3
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-5c3e442d.js → utils-23e70ef2.js} +1 -1
- package/dist/cjs/{utils-84208d99.js → utils-2b9940e1.js} +25 -0
- package/dist/cjs/utils-df5167a8.js +13 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +10 -1
- package/dist/collection/api/Identity.js +43 -0
- package/dist/collection/collection-manifest.json +15 -8
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +1 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +4 -4
- package/dist/collection/components/business-details/owner-details/owner-details.js +2 -2
- package/dist/collection/components/business-details/representative-details/representative-details.js +2 -2
- package/dist/collection/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.js +4 -4
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +77 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-form.js +32 -24
- package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.js +2 -2
- package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.js +3 -3
- package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.css +7779 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +367 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +219 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/test/business-additional-questions-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.css +2536 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-address/test/business-address-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.css +2493 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +239 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/test/business-core-info-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.css +7779 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +284 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/test/business-owners-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.css +2493 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +231 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/test/business-representative-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.css +2493 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +233 -0
- package/dist/collection/components/{business-form/business-form-stepped.css → business-forms/payment-provisioning/payment-provisioning.css} +105 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +199 -0
- package/dist/collection/components/business-forms/payment-provisioning/test/payment-provisioning.spec.js +61 -0
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +7 -0
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +16 -0
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +13 -0
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +6 -0
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +35 -0
- package/dist/collection/components/business-forms/schemas/business-owners-schema.js +16 -0
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +80 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +17 -0
- package/dist/collection/components/business-forms/utils/payload-parsers.js +37 -0
- package/dist/collection/components/form/form-control-datepart.js +39 -34
- package/dist/collection/components/form/form-control-monetary.js +22 -20
- package/dist/collection/components/form/form-control-number.js +1 -0
- package/dist/collection/components/form/form-control-select.js +3 -1
- package/dist/collection/components/form/form-control-text.js +2 -1
- package/dist/collection/components/form/test/form-control-datepart.spec.js +88 -0
- package/dist/collection/components/form/test/form-control-monetary.spec.js +69 -0
- package/dist/collection/components/form/test/form-control-number.spec.js +77 -0
- package/dist/collection/components/form/test/form-control-select.spec.js +84 -0
- package/dist/collection/components/form/test/form-control-text.spec.js +104 -0
- package/dist/collection/components/form/test/form.spec.js +60 -0
- package/dist/collection/components/form/utils.js +1 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/docs.json +1943 -552
- package/dist/esm/{Business-9921d35f.js → Business-6cc4e473.js} +12 -2
- package/dist/esm/Identity-5f8f916f.js +46 -0
- package/dist/esm/{SubAccount-76f6d565.js → SubAccount-61ac70eb.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +4 -3
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +23 -0
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/business-form-select-options-6b9293fe.js +82 -0
- package/dist/esm/business-form-types-de9f38cd.js +19 -0
- package/dist/esm/form-control-datepart_3.entry.js +68 -78
- package/dist/esm/form-control-monetary.entry.js +20 -18
- package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +50 -4
- package/dist/esm/gross-payment-chart-core.entry.js +4 -3
- package/dist/esm/{index-fb5ca346.js → index-df86d9a2.js} +57 -0
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +498 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_4.entry.js} +14 -41
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_4.entry.js +4 -5
- package/dist/esm/justifi-business-address-form-step.entry.js +31 -0
- package/dist/esm/justifi-business-details.entry.js +5 -3
- package/dist/esm/justifi-business-form.entry.js +17 -14
- package/dist/esm/justifi-business-list.entry.js +4 -3
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +3 -2
- package/dist/esm/justifi-checkout.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-new-payment-method_3.entry.js +1 -1
- package/dist/esm/justifi-owner-form.entry.js +158 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-form.entry.js +3 -2
- package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +85 -0
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-proceeds-list.entry.js +3 -2
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-subaccount-details.entry.js +5 -4
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -3
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-caea809d.js +91 -0
- package/dist/esm/payment-details-core.entry.js +4 -3
- package/dist/esm/payments-list-core.entry.js +3 -2
- package/dist/esm/payout-details-core.entry.js +4 -3
- package/dist/esm/payouts-list-core.entry.js +3 -2
- package/dist/esm/subaccount-account-details_4.entry.js +4 -3
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/utils-2828201a.js +10 -0
- package/dist/esm/{utils-a3e96d9f.js → utils-d01c5f3a.js} +1 -1
- package/dist/esm/{utils-5193fcd7.js → utils-d9e90399.js} +23 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +12 -2
- package/dist/module/Identity.js +46 -0
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +121 -0
- package/dist/module/business-additional-questions-schema.js +10 -0
- package/dist/module/business-address-form.js +3 -3
- package/dist/module/business-address-schema.js +19 -0
- package/dist/module/business-core-info-form-step.js +141 -0
- package/dist/module/business-core-info-schema.js +16 -0
- package/dist/module/business-core-info.js +69 -0
- package/dist/module/business-form-select-options.js +82 -0
- package/dist/module/business-form-types.js +19 -0
- package/dist/module/business-identity-schema.js +38 -0
- package/dist/{webcomponents/p-f64a85cf.entry.js → module/business-owners-form-step.js} +214 -1
- package/dist/module/business-representative-form-step.js +158 -0
- package/dist/module/business-representative.js +1 -1
- package/dist/module/checkout-core.js +1 -1
- package/dist/module/form-control-datepart2.js +37 -33
- package/dist/module/form-control-monetary2.js +20 -18
- package/dist/module/form-control-number2.js +1 -0
- package/dist/module/form-control-select2.js +3 -1
- package/dist/module/form-control-text2.js +2 -1
- package/dist/module/justifi-additional-questions-form-step.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step.js +6 -0
- package/dist/module/justifi-business-address-form-step.d.ts +11 -0
- package/dist/module/justifi-business-address-form-step.js +75 -0
- package/dist/module/justifi-business-core-info-form-step.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step.js +6 -0
- package/dist/module/justifi-business-core-info.d.ts +11 -0
- package/dist/module/justifi-business-core-info.js +6 -0
- package/dist/module/justifi-business-form.js +19 -14
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-business-owners-form-step.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step.js +6 -0
- package/dist/module/justifi-business-representative-form-step.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step.js +6 -0
- package/dist/module/justifi-legal-address-form-step.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step.js +6 -0
- package/dist/module/justifi-owner-form.d.ts +11 -0
- package/dist/module/justifi-owner-form.js +6 -0
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-provisioning.d.ts +11 -0
- package/dist/module/justifi-payment-provisioning.js +190 -0
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-subaccount-details.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +137 -0
- package/dist/module/owner-form.js +222 -0
- package/dist/module/payload-parsers.js +39 -0
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/subaccount-merchant-details2.js +1 -1
- package/dist/module/utils2.js +23 -1
- package/dist/module/utils4.js +10 -0
- package/dist/types/api/Business.d.ts +11 -21
- package/dist/types/api/Identity.d.ts +60 -0
- package/dist/types/components/billing-form/billing-form-schema.d.ts +0 -1
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-address/business-address-form.d.ts +1 -1
- package/dist/types/components/{business-form/business-generic-info/business-generic-info.d.ts → business-forms/business-form/business-core-info/business-core-info.d.ts} +5 -5
- package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts +5 -10
- package/dist/types/components/{business-form → business-forms/business-form}/business-owners/business-owners.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.d.ts +2 -2
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +36 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +31 -0
- package/dist/types/components/business-forms/payment-provisioning/business-address/business-address-form-step.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +31 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +45 -0
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +11 -0
- package/dist/types/components/{business-form/business-address/business-address-form-schema.d.ts → business-forms/schemas/business-address-schema.d.ts} +11 -8
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +19 -0
- package/dist/types/components/{business-form → business-forms/schemas}/business-form-schema.d.ts +2 -26
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +59 -0
- package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +33 -0
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +11 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +39 -0
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +4 -0
- package/dist/types/components/form/form-control-datepart.d.ts +2 -1
- package/dist/types/components/form/form-control-monetary.d.ts +2 -1
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components.d.ts +463 -113
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/webcomponents/p-03b1d0d5.entry.js +1 -0
- package/dist/webcomponents/{p-adc96df1.entry.js → p-07b326d0.entry.js} +1 -1
- package/dist/webcomponents/p-0e189d6a.entry.js +1 -0
- package/dist/webcomponents/p-16dcf053.entry.js +1 -0
- package/dist/webcomponents/p-17d72f4a.js +1 -0
- package/dist/webcomponents/{p-97c42345.entry.js → p-1bfadb9f.entry.js} +1 -1
- package/dist/webcomponents/p-221b9504.entry.js +1 -0
- package/dist/webcomponents/p-2df32b4a.entry.js +1 -0
- package/dist/webcomponents/{p-baafa7f5.js → p-34352d04.js} +1 -1
- package/dist/webcomponents/p-38ba2848.entry.js +1 -0
- package/dist/webcomponents/p-3d4aaa4a.entry.js +1 -0
- package/dist/webcomponents/p-41870765.entry.js +1 -0
- package/dist/webcomponents/p-461f42b8.entry.js +1 -0
- package/dist/webcomponents/p-48c2400e.js +1 -0
- package/dist/webcomponents/p-491ca87f.js +1 -0
- package/dist/webcomponents/{p-dc05b5c5.entry.js → p-4d50d08a.entry.js} +1 -1
- package/dist/webcomponents/{p-09b94d22.entry.js → p-4df6174c.entry.js} +1 -1
- package/dist/webcomponents/{p-c032b216.entry.js → p-5be4e217.entry.js} +1 -1
- package/dist/webcomponents/p-60714f2a.entry.js +1 -0
- package/dist/webcomponents/p-60b2344a.js +1 -0
- package/dist/webcomponents/{p-9e3771b7.entry.js → p-65500b31.entry.js} +1 -1
- package/dist/webcomponents/p-688bb5da.js +2 -0
- package/dist/webcomponents/{p-92a55427.entry.js → p-6b51cf97.entry.js} +1 -1
- package/dist/webcomponents/p-6d39b8bc.entry.js +1 -0
- package/dist/webcomponents/p-7ec301b5.entry.js +1 -0
- package/dist/webcomponents/p-817211f2.entry.js +1 -0
- package/dist/webcomponents/{p-bb037696.js → p-8482c23f.js} +1 -1
- package/dist/webcomponents/p-9207ccb2.entry.js +1 -0
- package/dist/webcomponents/p-975ab96e.js +1 -0
- package/dist/webcomponents/p-9e4b81ad.entry.js +1 -0
- package/dist/webcomponents/p-a141c531.js +1 -0
- package/dist/webcomponents/{p-e536a4c1.entry.js → p-a2dbe90f.entry.js} +1 -1
- package/dist/webcomponents/p-a4122c35.entry.js +1 -0
- package/dist/webcomponents/{p-591e29bf.entry.js → p-a46174e0.entry.js} +1 -1
- package/dist/webcomponents/{p-1cbdca15.entry.js → p-a68519e5.entry.js} +1 -1
- package/dist/webcomponents/p-af8363a1.entry.js +1 -0
- package/dist/webcomponents/{p-bb7f6095.entry.js → p-b1bc23af.entry.js} +1 -1
- package/dist/webcomponents/p-b37d6888.entry.js +1 -0
- package/dist/webcomponents/p-b5a3bf86.entry.js +1 -0
- package/dist/webcomponents/{p-7cd06ada.entry.js → p-b68f1dd9.entry.js} +1 -1
- package/dist/webcomponents/p-b8f22856.js +1 -0
- package/dist/webcomponents/p-cb8f9cb8.entry.js +1 -0
- package/dist/webcomponents/p-d0761829.entry.js +1 -0
- package/dist/webcomponents/{p-c2c3d5d1.entry.js → p-da34bba7.entry.js} +1 -1
- package/dist/webcomponents/p-dbe32e75.entry.js +1 -0
- package/dist/webcomponents/p-e0c1cba8.js +1 -0
- package/dist/webcomponents/{p-99a8b7d0.entry.js → p-e924f2e1.entry.js} +1 -1
- package/dist/webcomponents/p-ea03b424.entry.js +1 -0
- package/dist/webcomponents/{p-9c310f5c.entry.js → p-ebf7c70f.entry.js} +1 -1
- package/dist/webcomponents/p-ec230480.entry.js +1 -0
- package/dist/webcomponents/p-eed5f4ad.entry.js +1 -0
- package/dist/webcomponents/{p-9a63eec9.entry.js → p-fb49ef28.entry.js} +1 -1
- package/dist/webcomponents/{p-41490d96.entry.js → p-fe8a94c1.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/BusinessFormEventTypes-62990815.js +0 -42
- package/dist/cjs/business-form-schema-37e5381d.js +0 -148
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +0 -143
- package/dist/collection/components/business-form/BusinessFormEventTypes.js +0 -6
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -13
- package/dist/collection/components/business-form/business-form-schema.js +0 -159
- package/dist/collection/components/business-form/business-form-stepped.js +0 -260
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -77
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
- package/dist/collection/components/business-form/helpers.js +0 -23
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -10
- package/dist/esm/BusinessFormEventTypes-182e20be.js +0 -39
- package/dist/esm/business-form-schema-f8f554d1.js +0 -144
- package/dist/esm/justifi-business-form-stepped.entry.js +0 -139
- package/dist/module/BusinessFormEventTypes.js +0 -39
- package/dist/module/business-generic-info.js +0 -210
- package/dist/module/justifi-business-form-stepped.d.ts +0 -11
- package/dist/module/justifi-business-form-stepped.js +0 -231
- package/dist/module/justifi-business-generic-info.d.ts +0 -11
- package/dist/module/justifi-business-generic-info.js +0 -6
- package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +0 -5
- package/dist/types/components/business-form/business-form-stepped.d.ts +0 -48
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +0 -17
- package/dist/types/components/business-form/helpers.d.ts +0 -1
- package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +0 -17
- package/dist/webcomponents/p-018b71f5.entry.js +0 -1
- package/dist/webcomponents/p-1b04d091.entry.js +0 -1
- package/dist/webcomponents/p-1bac1674.entry.js +0 -1
- package/dist/webcomponents/p-2f0653f4.entry.js +0 -1
- package/dist/webcomponents/p-3134ab82.entry.js +0 -1
- package/dist/webcomponents/p-34f9fe6b.js +0 -1
- package/dist/webcomponents/p-3bae0ed3.entry.js +0 -1
- package/dist/webcomponents/p-41031759.entry.js +0 -1
- package/dist/webcomponents/p-4ed3a9f5.entry.js +0 -1
- package/dist/webcomponents/p-4edd9721.js +0 -1
- package/dist/webcomponents/p-51b0bf2a.entry.js +0 -1
- package/dist/webcomponents/p-531844f6.entry.js +0 -1
- package/dist/webcomponents/p-5d5d7550.entry.js +0 -1
- package/dist/webcomponents/p-5ea274b8.js +0 -1
- package/dist/webcomponents/p-5f785ede.entry.js +0 -1
- package/dist/webcomponents/p-6d05174c.js +0 -2
- package/dist/webcomponents/p-72d1ad98.entry.js +0 -1
- package/dist/webcomponents/p-796cf44f.entry.js +0 -1
- package/dist/webcomponents/p-8f895ec3.entry.js +0 -1
- package/dist/webcomponents/p-a81229a5.entry.js +0 -1
- package/dist/webcomponents/p-b8a8b551.js +0 -1
- package/dist/webcomponents/p-babd292f.entry.js +0 -1
- package/dist/webcomponents/p-c8d51336.entry.js +0 -1
- package/dist/webcomponents/p-e6939585.entry.js +0 -1
- package/dist/webcomponents/p-ec358d69.entry.js +0 -1
- package/dist/webcomponents/p-f55ac955.entry.js +0 -1
- /package/dist/cjs/{state-options-96d05a98.js → state-options-4fbcb48a.js} +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.e2e.js +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.spec.js +0 -0
- /package/dist/collection/components/{business-form/business-generic-info/business-generic-info.css → business-forms/business-form/business-core-info/business-core-info.css} +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-form.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/test/business-form.spec.js +0 -0
- /package/dist/collection/{components/billing-form → utils}/state-options.js +0 -0
- /package/dist/esm/{state-options-fc1daf67.js → state-options-a356fb11.js} +0 -0
- /package/dist/types/{components/billing-form → utils}/state-options.d.ts +0 -0
- /package/dist/webcomponents/{p-8e2a88a8.js → p-6078a370.js} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { SelectInput } from "../form-control-select";
|
|
3
|
+
describe('form-control-select', () => {
|
|
4
|
+
it('renders with default props', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [SelectInput],
|
|
7
|
+
html: `<form-control-select label="Test Select" name="test"></form-control-select>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toMatchSnapshot();
|
|
10
|
+
expect(page.rootInstance.label).toBe('Test Select');
|
|
11
|
+
expect(page.rootInstance.name).toBe('test');
|
|
12
|
+
});
|
|
13
|
+
it('populates options correctly and handles selection', async () => {
|
|
14
|
+
const options = [
|
|
15
|
+
{ label: 'Option 1', value: '1' },
|
|
16
|
+
{ label: 'Option 2', value: '2' }
|
|
17
|
+
];
|
|
18
|
+
const page = await newSpecPage({
|
|
19
|
+
components: [SelectInput],
|
|
20
|
+
html: `<form-control-select></form-control-select>`,
|
|
21
|
+
});
|
|
22
|
+
page.rootInstance.options = options;
|
|
23
|
+
await page.waitForChanges();
|
|
24
|
+
const selectElement = page.root.shadowRoot.querySelector('select');
|
|
25
|
+
expect(selectElement.children.length).toBe(options.length);
|
|
26
|
+
expect(selectElement.children[0].textContent).toBe(options[0].label);
|
|
27
|
+
selectElement.value = options[1].value;
|
|
28
|
+
expect(selectElement.value).toBe('2');
|
|
29
|
+
});
|
|
30
|
+
it('shows error and applies error styling when error prop is provided', async () => {
|
|
31
|
+
const page = await newSpecPage({
|
|
32
|
+
components: [SelectInput],
|
|
33
|
+
html: `<form-control-select error="This field is required."></form-control-select>`,
|
|
34
|
+
});
|
|
35
|
+
const shadowRoot = page.root.shadowRoot;
|
|
36
|
+
expect(shadowRoot.querySelector('.invalid-feedback').textContent).toBe('This field is required.');
|
|
37
|
+
expect(shadowRoot.querySelector('.form-select').classList.contains('is-invalid')).toBeTruthy();
|
|
38
|
+
});
|
|
39
|
+
it('emits formControlInput event on input', async () => {
|
|
40
|
+
const page = await newSpecPage({
|
|
41
|
+
components: [SelectInput],
|
|
42
|
+
html: `<form-control-select></form-control-select>`,
|
|
43
|
+
});
|
|
44
|
+
page.rootInstance.inputHandler = jest.fn();
|
|
45
|
+
const inputEventSpy = jest.fn();
|
|
46
|
+
page.root.addEventListener('formControlInput', inputEventSpy);
|
|
47
|
+
const selectElement = page.root.shadowRoot.querySelector('select');
|
|
48
|
+
selectElement.value = '1';
|
|
49
|
+
selectElement.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
|
50
|
+
await page.waitForChanges();
|
|
51
|
+
expect(inputEventSpy).toHaveBeenCalled();
|
|
52
|
+
});
|
|
53
|
+
it('emits formControlBlur event on blur', async () => {
|
|
54
|
+
const page = await newSpecPage({
|
|
55
|
+
components: [SelectInput],
|
|
56
|
+
html: `<form-control-select></form-control-select>`,
|
|
57
|
+
});
|
|
58
|
+
const blurEventSpy = jest.fn();
|
|
59
|
+
page.root.addEventListener('formControlBlur', blurEventSpy);
|
|
60
|
+
const selectElement = page.root.shadowRoot.querySelector('select');
|
|
61
|
+
selectElement.dispatchEvent(new Event('blur'));
|
|
62
|
+
expect(blurEventSpy).toHaveBeenCalled();
|
|
63
|
+
});
|
|
64
|
+
it('disables select when disabled prop is true', async () => {
|
|
65
|
+
const page = await newSpecPage({
|
|
66
|
+
components: [SelectInput],
|
|
67
|
+
html: `<form-control-select disabled="true"></form-control-select>`,
|
|
68
|
+
});
|
|
69
|
+
const selectElement = page.root.shadowRoot.querySelector('select');
|
|
70
|
+
// This is weird, but the value of the disabled
|
|
71
|
+
// attribute is an empty string on Stencil mock DOM
|
|
72
|
+
expect(selectElement.attributes.getNamedItem('disabled').value).toBe('');
|
|
73
|
+
});
|
|
74
|
+
it('handles empty options array', async () => {
|
|
75
|
+
const page = await newSpecPage({
|
|
76
|
+
components: [SelectInput],
|
|
77
|
+
html: `<form-control-select></form-control-select>`,
|
|
78
|
+
});
|
|
79
|
+
page.rootInstance.options = [];
|
|
80
|
+
await page.waitForChanges();
|
|
81
|
+
const selectElement = page.root.shadowRoot.querySelector('select');
|
|
82
|
+
expect(selectElement.children.length).toBe(0);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { TextInput } from "../form-control-text";
|
|
3
|
+
describe('form-control-text', () => {
|
|
4
|
+
// Test 1: Initial Rendering and Props
|
|
5
|
+
it('renders with default props', async () => {
|
|
6
|
+
const page = await newSpecPage({
|
|
7
|
+
components: [TextInput],
|
|
8
|
+
html: `<form-control-text label="Username" name="username"></form-control-text>`,
|
|
9
|
+
});
|
|
10
|
+
expect(page.root).toMatchSnapshot();
|
|
11
|
+
expect(page.rootInstance.label).toBe('Username');
|
|
12
|
+
expect(page.rootInstance.name).toBe('username');
|
|
13
|
+
});
|
|
14
|
+
// Test 2: Rendering with all props
|
|
15
|
+
it('renders with all props provided', async () => {
|
|
16
|
+
const page = await newSpecPage({
|
|
17
|
+
components: [TextInput],
|
|
18
|
+
html: `
|
|
19
|
+
<form-control-text
|
|
20
|
+
label="Email"
|
|
21
|
+
name="email"
|
|
22
|
+
default-value="user@example.com"
|
|
23
|
+
error="Invalid email"
|
|
24
|
+
disabled
|
|
25
|
+
></form-control-text>
|
|
26
|
+
`,
|
|
27
|
+
});
|
|
28
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
29
|
+
expect(page.rootInstance.label).toBe('Email');
|
|
30
|
+
expect(inputElement.value).toBe('user@example.com');
|
|
31
|
+
expect(inputElement.disabled).toBeTruthy();
|
|
32
|
+
});
|
|
33
|
+
// Test 3: Handle Default Value Changes
|
|
34
|
+
it('updates input value on defaultValue prop change', async () => {
|
|
35
|
+
const page = await newSpecPage({
|
|
36
|
+
components: [TextInput],
|
|
37
|
+
html: `<form-control-text default-value="initial"></form-control-text>`,
|
|
38
|
+
});
|
|
39
|
+
page.rootInstance.defaultValue = 'updated';
|
|
40
|
+
await page.waitForChanges();
|
|
41
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
42
|
+
expect(inputElement.value).toBe('updated');
|
|
43
|
+
});
|
|
44
|
+
// Test 4: User Interaction - Input
|
|
45
|
+
it('handles user input correctly', async () => {
|
|
46
|
+
const page = await newSpecPage({
|
|
47
|
+
components: [TextInput],
|
|
48
|
+
html: `<form-control-text></form-control-text>`,
|
|
49
|
+
});
|
|
50
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
51
|
+
const testValue = 'Hello, World!';
|
|
52
|
+
inputElement.value = testValue;
|
|
53
|
+
await inputElement.dispatchEvent(new Event('input'));
|
|
54
|
+
expect(inputElement.value).toBe(testValue);
|
|
55
|
+
});
|
|
56
|
+
// Test 5: Event Emission on Input
|
|
57
|
+
it('emits formControlInput event on input', async () => {
|
|
58
|
+
const page = await newSpecPage({
|
|
59
|
+
components: [TextInput],
|
|
60
|
+
html: `<form-control-text></form-control-text>`,
|
|
61
|
+
});
|
|
62
|
+
// Set a mock inputHandler to prevent it from being undefined
|
|
63
|
+
page.rootInstance.inputHandler = jest.fn();
|
|
64
|
+
const inputEventSpy = jest.fn();
|
|
65
|
+
page.root.addEventListener('formControlInput', inputEventSpy);
|
|
66
|
+
await page.waitForChanges();
|
|
67
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
68
|
+
inputElement.value = 'Hello, World!';
|
|
69
|
+
inputElement.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
|
70
|
+
await page.waitForChanges();
|
|
71
|
+
expect(inputEventSpy).toHaveBeenCalled();
|
|
72
|
+
});
|
|
73
|
+
// Test 6: Event Emission on Blur
|
|
74
|
+
it('emits formControlBlur event on blur', async () => {
|
|
75
|
+
const page = await newSpecPage({
|
|
76
|
+
components: [TextInput],
|
|
77
|
+
html: `<form-control-text></form-control-text>`,
|
|
78
|
+
});
|
|
79
|
+
const blurEventSpy = jest.fn();
|
|
80
|
+
page.win.addEventListener('formControlBlur', blurEventSpy);
|
|
81
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
82
|
+
inputElement.dispatchEvent(new Event('blur'));
|
|
83
|
+
expect(blurEventSpy).toHaveBeenCalled();
|
|
84
|
+
});
|
|
85
|
+
// Test 7: Disabled Prop
|
|
86
|
+
it('disables input when disabled prop is true', async () => {
|
|
87
|
+
const page = await newSpecPage({
|
|
88
|
+
components: [TextInput],
|
|
89
|
+
html: `<form-control-text disabled></form-control-text>`,
|
|
90
|
+
});
|
|
91
|
+
const inputElement = page.root.shadowRoot.querySelector('input');
|
|
92
|
+
expect(inputElement.disabled).toBeTruthy();
|
|
93
|
+
});
|
|
94
|
+
// Test 8: Error Prop
|
|
95
|
+
it('shows error and applies error styling when error prop is provided', async () => {
|
|
96
|
+
const page = await newSpecPage({
|
|
97
|
+
components: [TextInput],
|
|
98
|
+
html: `<form-control-text error="This field is required."></form-control-text>`,
|
|
99
|
+
});
|
|
100
|
+
const shadowRoot = page.root.shadowRoot;
|
|
101
|
+
expect(shadowRoot.querySelector('.invalid-feedback').textContent).toBe('This field is required.');
|
|
102
|
+
expect(shadowRoot.querySelector('.form-control').classList.contains('is-invalid')).toBeTruthy();
|
|
103
|
+
});
|
|
104
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
import { FormController } from "../form";
|
|
3
|
+
describe('FormController', () => {
|
|
4
|
+
let formController;
|
|
5
|
+
const mockSchema = yup.object().shape({
|
|
6
|
+
name: yup.string().required(),
|
|
7
|
+
email: yup.string().email().required(),
|
|
8
|
+
});
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
formController = new FormController(mockSchema);
|
|
11
|
+
});
|
|
12
|
+
it('should initialize with default empty values and errors', () => {
|
|
13
|
+
expect(formController.values.getValue()).toEqual({});
|
|
14
|
+
expect(formController.errors.getValue()).toEqual({});
|
|
15
|
+
});
|
|
16
|
+
it('should set initial values correctly', () => {
|
|
17
|
+
const initialValues = { name: 'John', email: 'john@example.com' };
|
|
18
|
+
formController.setInitialValues(initialValues);
|
|
19
|
+
expect(formController.values.getValue()).toEqual(initialValues);
|
|
20
|
+
});
|
|
21
|
+
it('should update values correctly', async () => {
|
|
22
|
+
const updateValues = { name: 'Jane' };
|
|
23
|
+
formController.setInitialValues({
|
|
24
|
+
name: 'John',
|
|
25
|
+
email: 'john@example.com',
|
|
26
|
+
});
|
|
27
|
+
formController.setValues(updateValues);
|
|
28
|
+
expect(formController.values.getValue()).toEqual({
|
|
29
|
+
name: 'Jane',
|
|
30
|
+
email: 'john@example.com',
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
it('should reset values to initial values', () => {
|
|
34
|
+
const initialValues = { name: 'John', email: 'john@example.com' };
|
|
35
|
+
formController.setInitialValues(initialValues);
|
|
36
|
+
formController.setValues({ name: 'Jane' }); // Update values
|
|
37
|
+
formController.resetValues(); // Reset to initial values
|
|
38
|
+
expect(formController.values.getValue()).toEqual(initialValues);
|
|
39
|
+
});
|
|
40
|
+
it('should validate and set errors correctly for invalid data', async () => {
|
|
41
|
+
formController.setValues({ email: 'invalid-email' }); // Set invalid email
|
|
42
|
+
await formController.validateAndSubmit(() => null);
|
|
43
|
+
expect(formController.errors.getValue()).toHaveProperty('email');
|
|
44
|
+
});
|
|
45
|
+
it('should call submit handler on valid data', async () => {
|
|
46
|
+
const submitHandlerMock = jest.fn();
|
|
47
|
+
formController.setInitialValues({
|
|
48
|
+
name: 'John',
|
|
49
|
+
email: 'john@example.com',
|
|
50
|
+
});
|
|
51
|
+
await formController.validateAndSubmit(submitHandlerMock);
|
|
52
|
+
expect(submitHandlerMock).toHaveBeenCalled();
|
|
53
|
+
});
|
|
54
|
+
it('should not call submit handler on invalid data', async () => {
|
|
55
|
+
const submitHandlerMock = jest.fn();
|
|
56
|
+
formController.setValues({ email: 'invalid-email' }); // Set invalid email
|
|
57
|
+
await formController.validateAndSubmit(submitHandlerMock);
|
|
58
|
+
expect(submitHandlerMock).not.toHaveBeenCalled();
|
|
59
|
+
});
|
|
60
|
+
});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const FormAlert = (message) => (h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" }, h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })), h("div", null, message)));
|
|
3
|
+
export const LoadingSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { format } from "date-fns";
|
|
2
2
|
import Dinero from "dinero.js";
|
|
3
|
+
import StateOptions from "./state-options";
|
|
4
|
+
export const RegExZip = /^\d{5}/;
|
|
3
5
|
export function formatCurrency(amount, withSymbol = true) {
|
|
4
6
|
if (!amount)
|
|
5
7
|
amount = 0;
|
|
@@ -153,6 +155,21 @@ export function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
|
153
155
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
154
156
|
.join(' ');
|
|
155
157
|
}
|
|
158
|
+
export function flattenNestedObject(obj) {
|
|
159
|
+
const result = {};
|
|
160
|
+
for (const key in obj) {
|
|
161
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
162
|
+
const nestedObj = flattenNestedObject(obj[key]);
|
|
163
|
+
for (const nestedKey in nestedObj) {
|
|
164
|
+
result[nestedKey] = nestedObj[nestedKey];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
result[key] = obj[key];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return result;
|
|
172
|
+
}
|
|
156
173
|
export function composeQueryParams(values) {
|
|
157
174
|
const queryParams = values.map((value) => {
|
|
158
175
|
if (value === values[0]) {
|
|
@@ -187,3 +204,7 @@ export async function loadFontsOnParent() {
|
|
|
187
204
|
export function isEmptyObject(obj) {
|
|
188
205
|
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
189
206
|
}
|
|
207
|
+
export function getStateAbbreviation(stateName) {
|
|
208
|
+
const state = StateOptions.find(s => s.label === stateName);
|
|
209
|
+
return state ? state.value : stateName;
|
|
210
|
+
}
|