@justifi/webcomponents 4.4.0 → 4.5.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/{Api-7303478d.js → Api-d2df6e84.js} +16 -4
- package/dist/cjs/Api-d2df6e84.js.map +1 -0
- package/dist/cjs/Payout-4906a445.js +116 -0
- package/dist/cjs/Payout-4906a445.js.map +1 -0
- package/dist/cjs/{business-form-schema-63b311b2.js → business-form-schema-725ec6f5.js} +40 -22
- package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +99 -12
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-select.cjs.entry.js +47 -0
- package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
- package/dist/cjs/{index-83b2ec02.js → index-4ffc90c0.js} +10 -1
- package/dist/cjs/index-4ffc90c0.js.map +1 -0
- package/dist/cjs/index-5a880722.js +3233 -0
- package/dist/cjs/index-5a880722.js.map +1 -0
- package/dist/cjs/{index.esm-7e12ce07.js → index.esm-84a0a7a8.js} +1 -19
- package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +98 -16
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +30 -0
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +7 -5
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +49 -47
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +64 -54
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table.cjs.entry.js +68 -0
- package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/select-input_2.cjs.entry.js +1 -1
- package/dist/cjs/table-utils-617126e5.js +13 -0
- package/dist/cjs/table-utils-617126e5.js.map +1 -0
- package/dist/cjs/{utils-4ee7e080.js → utils-0fd61dbd.js} +43 -104
- package/dist/cjs/utils-0fd61dbd.js.map +1 -0
- package/dist/cjs/utils-a5b5bfdf.js +35 -0
- package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/api/Api.js +15 -3
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +50 -0
- package/dist/collection/api/Business.js.map +1 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/Payout.js +9 -0
- package/dist/collection/api/Payout.js.map +1 -1
- package/dist/collection/api/Proceed.js +42 -0
- package/dist/collection/api/Proceed.js.map +1 -0
- package/dist/collection/api/shared.js +2 -0
- package/dist/collection/api/shared.js.map +1 -0
- package/dist/collection/collection-manifest.json +13 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js +1 -1
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -1
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +22 -18
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -1
- package/dist/collection/components/business-form/business-form-schema.js +48 -37
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-form.css +5283 -43
- package/dist/collection/components/business-form/business-form.js +83 -6
- package/dist/collection/components/business-form/business-form.js.map +1 -1
- package/dist/collection/components/business-form/{businessForm.stories.js → business-form.stories.js} +8 -8
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +10 -17
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -1
- package/dist/collection/components/business-form/business-owners/business-owners.css +5283 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js +48 -37
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js +12 -17
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
- package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
- package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
- package/dist/collection/components/business-list/business-list.css +576 -0
- package/dist/collection/components/business-list/business-list.js +209 -0
- package/dist/collection/components/business-list/business-list.js.map +1 -0
- package/dist/collection/components/business-list/business-list.stories.js +68 -0
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
- package/dist/collection/components/business-list/example.js +12 -0
- package/dist/collection/components/details/details.css +7983 -0
- package/dist/collection/components/details/details.js +66 -0
- package/dist/collection/components/details/details.js.map +1 -0
- package/dist/collection/components/details/utils.js +10 -0
- package/dist/collection/components/details/utils.js.map +1 -0
- package/dist/collection/components/form/form-control-datepart.js +233 -0
- package/dist/collection/components/form/form-control-datepart.js.map +1 -0
- package/dist/collection/components/form/form-control-monetary.js +186 -0
- package/dist/collection/components/form/form-control-monetary.js.map +1 -0
- package/dist/collection/components/form/form-control-number-masked.js +217 -0
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
- package/dist/collection/components/form/form-control-number.css +1818 -0
- package/dist/collection/components/form/form-control-number.js +194 -0
- package/dist/collection/components/form/form-control-number.js.map +1 -0
- package/dist/collection/components/form/form-control-select.css +6 -0
- package/dist/collection/components/form/form-control-select.js +36 -4
- package/dist/collection/components/form/form-control-select.js.map +1 -1
- package/dist/collection/components/form/form-control-text.css +7 -0
- package/dist/collection/components/form/form-control-text.js +45 -3
- package/dist/collection/components/form/form-control-text.js.map +1 -1
- package/dist/collection/components/form/form.js +16 -8
- package/dist/collection/components/form/form.js.map +1 -1
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/payment-details/example.js +12 -0
- package/dist/collection/components/payment-details/payment-details.css +7983 -0
- package/dist/collection/components/payment-details/payment-details.js +129 -0
- package/dist/collection/components/payment-details/payment-details.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
- package/dist/collection/components/payments-list/payments-list.css +0 -7380
- package/dist/collection/components/payments-list/payments-list.js +69 -43
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +10 -10
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
- package/dist/collection/components/payments-list/test/payments-list.spec.js +3 -54
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
- package/dist/collection/components/payout-details/example.js +12 -0
- package/dist/collection/components/payout-details/payout-details.css +7983 -0
- package/dist/collection/components/payout-details/payout-details.js +126 -0
- package/dist/collection/components/payout-details/payout-details.js.map +1 -0
- package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
- package/dist/collection/components/payouts-list/example.js +12 -0
- package/dist/collection/components/payouts-list/payouts-list.css +0 -7407
- package/dist/collection/components/payouts-list/payouts-list.js +82 -48
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js +10 -10
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
- package/dist/collection/components/proceeds-list/example.js +12 -0
- package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
- package/dist/collection/components/table/table-utils.js +8 -0
- package/dist/collection/components/table/table-utils.js.map +1 -0
- package/dist/collection/components/table/table.css +8077 -0
- package/dist/collection/components/table/table.js +215 -0
- package/dist/collection/components/table/table.js.map +1 -0
- package/dist/collection/components/table/test/table.spec.js +59 -0
- package/dist/collection/components/table/test/table.spec.js.map +1 -0
- package/dist/collection/utils/country-options.js +202 -0
- package/dist/collection/utils/country-options.js.map +1 -0
- package/dist/collection/utils/phone-masks.js +4 -0
- package/dist/collection/utils/phone-masks.js.map +1 -0
- package/dist/collection/utils/utils.js +40 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +15 -3
- package/dist/components/Api.js.map +1 -1
- package/dist/components/Payout.js +113 -0
- package/dist/components/Payout.js.map +1 -0
- package/dist/components/additional-questions.js +51 -0
- package/dist/components/additional-questions.js.map +1 -0
- package/dist/components/business-address-form.js +8 -2
- package/dist/components/business-address-form.js.map +1 -1
- package/dist/components/business-generic-info.js +61 -35
- package/dist/components/business-generic-info.js.map +1 -1
- package/dist/components/business-owners.js +52 -36
- package/dist/components/business-owners.js.map +1 -1
- package/dist/components/business-representative.js +31 -15
- package/dist/components/business-representative.js.map +1 -1
- package/dist/components/details.js +66 -0
- package/dist/components/details.js.map +1 -0
- package/dist/components/form-control-datepart.d.ts +11 -0
- package/dist/components/form-control-datepart.js +8 -0
- package/dist/components/form-control-datepart.js.map +1 -0
- package/dist/components/form-control-datepart2.js +97 -0
- package/dist/components/form-control-datepart2.js.map +1 -0
- package/dist/components/form-control-monetary.d.ts +11 -0
- package/dist/components/form-control-monetary.js +8 -0
- package/dist/components/form-control-monetary.js.map +1 -0
- package/dist/components/form-control-monetary2.js +82 -0
- package/dist/components/form-control-monetary2.js.map +1 -0
- package/dist/components/form-control-number-masked.d.ts +11 -0
- package/dist/components/form-control-number-masked.js +8 -0
- package/dist/components/form-control-number-masked.js.map +1 -0
- package/dist/components/form-control-number-masked2.js +81 -0
- package/dist/components/form-control-number-masked2.js.map +1 -0
- package/dist/components/form-control-number.d.ts +11 -0
- package/dist/components/form-control-number.js +8 -0
- package/dist/components/form-control-number.js.map +1 -0
- package/dist/components/form-control-number2.js +70 -0
- package/dist/components/form-control-number2.js.map +1 -0
- package/dist/components/form-control-select.js +2 -2
- package/dist/components/form-control-select2.js +20 -7
- package/dist/components/form-control-select2.js.map +1 -1
- package/dist/components/form-control-text2.js +23 -4
- package/dist/components/form-control-text2.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.esm.js +1 -18
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3231 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/justifi-additional-questions.d.ts +11 -0
- package/dist/components/justifi-additional-questions.js +8 -0
- package/dist/components/justifi-additional-questions.js.map +1 -0
- package/dist/components/justifi-business-form.js +146 -28
- package/dist/components/justifi-business-form.js.map +1 -1
- package/dist/components/justifi-business-generic-info.js +1 -1
- package/dist/components/justifi-business-list.d.ts +11 -0
- package/dist/components/justifi-business-list.js +215 -0
- package/dist/components/justifi-business-list.js.map +1 -0
- package/dist/components/justifi-details.d.ts +11 -0
- package/dist/components/justifi-details.js +8 -0
- package/dist/components/justifi-details.js.map +1 -0
- package/dist/components/justifi-legal-address-form.d.ts +11 -0
- package/dist/components/justifi-legal-address-form.js +8 -0
- package/dist/components/justifi-legal-address-form.js.map +1 -0
- package/dist/components/justifi-payment-details.d.ts +11 -0
- package/dist/components/justifi-payment-details.js +88 -0
- package/dist/components/justifi-payment-details.js.map +1 -0
- package/dist/components/justifi-payment-form.js +2 -1
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +52 -45
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.d.ts +11 -0
- package/dist/components/justifi-payout-details.js +86 -0
- package/dist/components/justifi-payout-details.js.map +1 -0
- package/dist/components/justifi-payouts-list.js +65 -50
- package/dist/components/justifi-payouts-list.js.map +1 -1
- package/dist/components/justifi-proceeds-list.d.ts +11 -0
- package/dist/components/justifi-proceeds-list.js +182 -0
- package/dist/components/justifi-proceeds-list.js.map +1 -0
- package/dist/components/justifi-table.d.ts +11 -0
- package/dist/components/justifi-table.js +8 -0
- package/dist/components/justifi-table.js.map +1 -0
- package/dist/components/legal-address-form.js +271 -0
- package/dist/components/legal-address-form.js.map +1 -0
- package/dist/components/payment-method-form.js +6 -4
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/phone-masks.js +7 -0
- package/dist/components/phone-masks.js.map +1 -0
- package/dist/components/table.js +94 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/utils.js +41 -102
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{Api-436dfa09.js → Api-a95f17ac.js} +16 -4
- package/dist/esm/Api-a95f17ac.js.map +1 -0
- package/dist/esm/Payout-9a1f2859.js +113 -0
- package/dist/esm/Payout-9a1f2859.js.map +1 -0
- package/dist/esm/{business-form-schema-30c48693.js → business-form-schema-5885d3d6.js} +40 -22
- package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +102 -0
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
- package/dist/esm/form-control-monetary.entry.js +61 -0
- package/dist/esm/form-control-monetary.entry.js.map +1 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +98 -12
- package/dist/esm/form-control-number_3.entry.js.map +1 -0
- package/dist/esm/form-control-select.entry.js +43 -0
- package/dist/esm/form-control-select.entry.js.map +1 -0
- package/dist/esm/index-5ed53c20.js +3231 -0
- package/dist/esm/index-5ed53c20.js.map +1 -0
- package/dist/esm/{index-c8f391de.js → index-609a2c67.js} +10 -2
- package/dist/esm/index-609a2c67.js.map +1 -0
- package/dist/esm/{index.esm-be2cd327.js → index.esm-89fe6af9.js} +2 -19
- package/dist/esm/index.esm-89fe6af9.js.map +1 -0
- package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
- package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +98 -16
- package/dist/esm/justifi-business-form.entry.js.map +1 -1
- package/dist/esm/justifi-business-list.entry.js +185 -0
- package/dist/esm/justifi-business-list.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +26 -0
- package/dist/esm/justifi-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +59 -0
- package/dist/esm/justifi-payment-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-form.entry.js +3 -2
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +7 -5
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +47 -45
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +57 -0
- package/dist/esm/justifi-payout-details.entry.js.map +1 -0
- package/dist/esm/justifi-payouts-list.entry.js +60 -50
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
- package/dist/esm/justifi-proceeds-list.entry.js +152 -0
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
- package/dist/esm/justifi-table.entry.js +64 -0
- package/dist/esm/justifi-table.entry.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/select-input_2.entry.js +1 -1
- package/dist/esm/table-utils-6cdcaa8c.js +11 -0
- package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
- package/dist/esm/{utils-e7782126.js → utils-ad0bbe03.js} +42 -103
- package/dist/esm/utils-ad0bbe03.js.map +1 -0
- package/dist/esm/utils-cdf0b984.js +28 -0
- package/dist/esm/utils-cdf0b984.js.map +1 -0
- package/dist/esm/webcomponents.js +4 -4
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Business.d.ts +133 -0
- package/dist/types/api/Payment.d.ts +1 -0
- package/dist/types/api/Payout.d.ts +10 -12
- package/dist/types/api/Proceed.d.ts +60 -0
- package/dist/types/api/shared.d.ts +11 -0
- package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
- package/dist/types/components/business-form/business-form-schema.d.ts +47 -21
- package/dist/types/components/business-form/business-form.d.ts +7 -2
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +1 -2
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +3 -2
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +1 -2
- package/dist/types/components/business-list/business-list.d.ts +35 -0
- package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
- package/dist/types/components/details/details.d.ts +7 -0
- package/dist/types/components/details/utils.d.ts +19 -0
- package/dist/types/components/form/form-control-datepart.d.ts +19 -0
- package/dist/types/components/form/form-control-monetary.d.ts +17 -0
- package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
- package/dist/types/components/form/form-control-number.d.ts +18 -0
- package/dist/types/components/form/form-control-select.d.ts +6 -1
- package/dist/types/components/form/form-control-text.d.ts +6 -0
- package/dist/types/components/form/form.d.ts +5 -4
- package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
- package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
- package/dist/types/components/payment-details/payment-details.d.ts +28 -0
- package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
- package/dist/types/components/payments-list/payments-list.d.ts +6 -14
- package/dist/types/components/payments-list/payments-list.stories.d.ts +1 -8
- package/dist/types/components/payout-details/payout-details.d.ts +28 -0
- package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +7 -15
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +1 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
- package/dist/types/components/table/table-utils.d.ts +14 -0
- package/dist/types/components/table/table.d.ts +28 -0
- package/dist/types/components.d.ts +635 -12
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/country-options.d.ts +5 -0
- package/dist/types/utils/phone-masks.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/webcomponents/{p-33d69eb5.entry.js → p-0237a6bc.entry.js} +2 -2
- package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
- package/dist/webcomponents/{p-7041a637.entry.js → p-0d6e9f76.entry.js} +2 -2
- package/dist/webcomponents/p-126146d4.js +2 -0
- package/dist/webcomponents/p-126146d4.js.map +1 -0
- package/dist/webcomponents/p-239564c6.entry.js +2 -0
- package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
- package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
- package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
- package/dist/webcomponents/p-2c2cde2d.js +2 -0
- package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
- package/dist/webcomponents/p-308b6784.js +3 -0
- package/dist/webcomponents/p-308b6784.js.map +1 -0
- package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
- package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
- package/dist/webcomponents/p-439fc294.entry.js +2 -0
- package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
- package/dist/webcomponents/p-66f010e5.entry.js +2 -0
- package/dist/webcomponents/{p-d5bc9f22.entry.js.map → p-66f010e5.entry.js.map} +1 -1
- package/dist/webcomponents/p-7abb092c.entry.js +2 -0
- package/dist/webcomponents/{p-309a886f.entry.js.map → p-7abb092c.entry.js.map} +1 -1
- package/dist/webcomponents/{p-d5cadc78.entry.js → p-7e3bbe32.entry.js} +2 -2
- package/dist/webcomponents/p-86464cab.entry.js +2 -0
- package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
- package/dist/webcomponents/p-8f421dc6.js +2 -0
- package/dist/webcomponents/p-8f421dc6.js.map +1 -0
- package/dist/webcomponents/p-9346ae33.js +2 -0
- package/dist/webcomponents/p-9346ae33.js.map +1 -0
- package/dist/webcomponents/p-ab0756ff.js +2 -0
- package/dist/webcomponents/p-ab0756ff.js.map +1 -0
- package/dist/webcomponents/p-b042bf80.entry.js +2 -0
- package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
- package/dist/webcomponents/{p-1953797f.entry.js → p-b967262f.entry.js} +2 -2
- package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
- package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
- package/dist/webcomponents/p-c18d876e.entry.js +2 -0
- package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
- package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
- package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
- package/dist/webcomponents/{p-0fd4aae2.js → p-c46241ba.js} +2 -2
- package/dist/webcomponents/p-c46241ba.js.map +1 -0
- package/dist/webcomponents/p-ccb0e1c5.js +2 -0
- package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
- package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
- package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
- package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
- package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
- package/dist/webcomponents/{p-23e9c7d4.entry.js → p-e77d8c6e.entry.js} +2 -2
- package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
- package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
- package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
- package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
- package/dist/webcomponents/p-f9e127a5.js +2 -0
- package/dist/webcomponents/p-f9e127a5.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +7 -5
- package/dist/cjs/Api-7303478d.js.map +0 -1
- package/dist/cjs/business-form-schema-63b311b2.js.map +0 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js.map +0 -1
- package/dist/cjs/index-83b2ec02.js.map +0 -1
- package/dist/cjs/index.esm-7e12ce07.js.map +0 -1
- package/dist/cjs/justifi-business-address-form.cjs.entry.js +0 -37
- package/dist/cjs/justifi-business-address-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js +0 -148
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-4ee7e080.js.map +0 -1
- package/dist/collection/components/business-form/businessForm.stories.js.map +0 -1
- package/dist/esm/Api-436dfa09.js.map +0 -1
- package/dist/esm/business-form-schema-30c48693.js.map +0 -1
- package/dist/esm/form-control-select_2.entry.js.map +0 -1
- package/dist/esm/index-c8f391de.js.map +0 -1
- package/dist/esm/index.esm-be2cd327.js.map +0 -1
- package/dist/esm/justifi-business-address-form.entry.js +0 -33
- package/dist/esm/justifi-business-address-form.entry.js.map +0 -1
- package/dist/esm/justifi-business-generic-info_3.entry.js +0 -142
- package/dist/esm/justifi-business-generic-info_3.entry.js.map +0 -1
- package/dist/esm/utils-e7782126.js.map +0 -1
- package/dist/webcomponents/p-0fd4aae2.js.map +0 -1
- package/dist/webcomponents/p-1a1f2196.js +0 -2
- package/dist/webcomponents/p-1a1f2196.js.map +0 -1
- package/dist/webcomponents/p-309a886f.entry.js +0 -2
- package/dist/webcomponents/p-33d69eb5.entry.js.map +0 -1
- package/dist/webcomponents/p-3a80a2ec.entry.js +0 -2
- package/dist/webcomponents/p-3a80a2ec.entry.js.map +0 -1
- package/dist/webcomponents/p-45fea6a8.entry.js +0 -2
- package/dist/webcomponents/p-45fea6a8.entry.js.map +0 -1
- package/dist/webcomponents/p-79456add.js +0 -2
- package/dist/webcomponents/p-79456add.js.map +0 -1
- package/dist/webcomponents/p-af080b21.js +0 -2
- package/dist/webcomponents/p-af080b21.js.map +0 -1
- package/dist/webcomponents/p-bc969904.js +0 -3
- package/dist/webcomponents/p-bc969904.js.map +0 -1
- package/dist/webcomponents/p-cd097ce9.entry.js +0 -2
- package/dist/webcomponents/p-cd097ce9.entry.js.map +0 -1
- package/dist/webcomponents/p-d5bc9f22.entry.js +0 -2
- package/dist/webcomponents/p-dd1ebc0b.entry.js +0 -2
- package/dist/webcomponents/p-dd1ebc0b.entry.js.map +0 -1
- package/dist/webcomponents/p-e05e0c6b.entry.js +0 -2
- package/dist/webcomponents/p-e05e0c6b.entry.js.map +0 -1
- /package/dist/types/components/business-form/{businessForm.stories.d.ts → business-form.stories.d.ts} +0 -0
- /package/dist/webcomponents/{p-7041a637.entry.js.map → p-0d6e9f76.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-d5cadc78.entry.js.map → p-7e3bbe32.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-1953797f.entry.js.map → p-b967262f.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-23e9c7d4.entry.js.map → p-e77d8c6e.entry.js.map} +0 -0
package/dist/collection/components/business-form/business-address/test/business-address.spec.js
CHANGED
|
@@ -5,26 +5,30 @@ describe('business-address', () => {
|
|
|
5
5
|
it('should render BusinessAddressForm component', async () => {
|
|
6
6
|
const page = await newSpecPage({
|
|
7
7
|
components: [BusinessAddressForm],
|
|
8
|
-
template: () => h("justifi-business-address-form", null),
|
|
8
|
+
template: () => (h("justifi-business-address-form", null)),
|
|
9
9
|
});
|
|
10
10
|
expect(page.root).toEqualHtml(`
|
|
11
11
|
<justifi-business-address-form exportparts="label,input,input-invalid">
|
|
12
12
|
<mock:shadow-root>
|
|
13
|
-
<div class="
|
|
14
|
-
<div class="col-12">
|
|
13
|
+
<div class="row gy-3">
|
|
14
|
+
<div class="col-12 col-md-8">
|
|
15
15
|
<form-control-text label="Street Address" name="line1"></form-control-text>
|
|
16
16
|
</div>
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
<div class="col-12 col-md-4">
|
|
18
19
|
<form-control-text label="Apartment, Suite, etc. (optional)" name="line2"></form-control-text>
|
|
19
20
|
</div>
|
|
21
|
+
|
|
20
22
|
<div class="col-12">
|
|
21
23
|
<form-control-text label="City" name="city"></form-control-text>
|
|
22
24
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
|
|
26
|
+
<div class="col-12 col-md-6">
|
|
27
|
+
<form-control-select label="State" name="state"></form-control-select>
|
|
25
28
|
</div>
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
|
|
30
|
+
<div class="col-12 col-md-6">
|
|
31
|
+
<form-control-number label="Postal Code" name="postal_code"></form-control-number>
|
|
28
32
|
</div>
|
|
29
33
|
</div>
|
|
30
34
|
</mock:shadow-root>
|
|
@@ -42,26 +46,26 @@ describe('business-address', () => {
|
|
|
42
46
|
};
|
|
43
47
|
const page = await newSpecPage({
|
|
44
48
|
components: [BusinessAddressForm],
|
|
45
|
-
template: () => h("justifi-business-address-form", { defaultValues: businessAddress }),
|
|
49
|
+
template: () => (h("justifi-business-address-form", { defaultValues: businessAddress })),
|
|
46
50
|
});
|
|
47
51
|
expect(page.root).toEqualHtml(`
|
|
48
52
|
<justifi-business-address-form exportparts="label,input,input-invalid">
|
|
49
53
|
<mock:shadow-root>
|
|
50
|
-
<div class="
|
|
51
|
-
<div class="col-12">
|
|
52
|
-
<form-control-text
|
|
54
|
+
<div class="gy-3 row">
|
|
55
|
+
<div class="col-12 col-md-8">
|
|
56
|
+
<form-control-text defaultValue="Street 1" label="Street Address" name="line1"></form-control-text>
|
|
53
57
|
</div>
|
|
54
|
-
<div class="col-12">
|
|
55
|
-
<form-control-text
|
|
58
|
+
<div class="col-12 col-md-4">
|
|
59
|
+
<form-control-text defaultValue="Apartment 1" label="Apartment, Suite, etc. (optional)" name="line2"></form-control-text>
|
|
56
60
|
</div>
|
|
57
61
|
<div class="col-12">
|
|
58
62
|
<form-control-text defaultvalue="City" label="City" name="city"></form-control-text>
|
|
59
63
|
</div>
|
|
60
|
-
<div class="col-12">
|
|
61
|
-
<form-control-select
|
|
64
|
+
<div class="col-12 col-md-6">
|
|
65
|
+
<form-control-select defaultValue="State" label="State" name="state"></form-control-select>
|
|
62
66
|
</div>
|
|
63
|
-
<div class="col-12">
|
|
64
|
-
<form-control-
|
|
67
|
+
<div class="col-12 col-md-6">
|
|
68
|
+
<form-control-number defaultValue="12345" label="Postal Code" name="postal_code"></form-control-number>
|
|
65
69
|
</div>
|
|
66
70
|
</div>
|
|
67
71
|
</mock:shadow-root>
|
package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-address.spec.js","sourceRoot":"","sources":["../../../../../../src/components/business-form/business-address/test/business-address.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;EAChC,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,mBAAmB,CAAC;MACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,wCAA+D;
|
|
1
|
+
{"version":3,"file":"business-address.spec.js","sourceRoot":"","sources":["../../../../../../src/components/business-form/business-address/test/business-address.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;EAChC,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,mBAAmB,CAAC;MACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,CACd,wCAA+D,CAChE;KACF,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B/B,CAAC,CAAC;EACH,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;IACzE,MAAM,eAAe,GAAG;MACtB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,aAAa;MACpB,IAAI,EAAE,MAAM;MACZ,KAAK,EAAE,OAAO;MACd,WAAW,EAAE,OAAO;MACpB,OAAO,EAAE,SAAS;KACU,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,mBAAmB,CAAC;MACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,CACd,qCACE,aAAa,EAAE,eAAe,GACC,CAClC;KACF,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;GAsB/B,CAAC,CAAC;EACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { h } from '@stencil/core';\nimport { newSpecPage } from '@stencil/core/testing';\nimport { BusinessAddressForm } from '../business-address-form';\nimport { BusinessAddressFormFields } from '../business-address-form-schema';\n\ndescribe('business-address', () => {\n it('should render BusinessAddressForm component', async () => {\n const page = await newSpecPage({\n components: [BusinessAddressForm],\n template: () => (\n <justifi-business-address-form></justifi-business-address-form>\n ),\n });\n expect(page.root).toEqualHtml(`\n <justifi-business-address-form exportparts=\"label,input,input-invalid\">\n <mock:shadow-root>\n <div class=\"row gy-3\">\n <div class=\"col-12 col-md-8\">\n <form-control-text label=\"Street Address\" name=\"line1\"></form-control-text>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <form-control-text label=\"Apartment, Suite, etc. (optional)\" name=\"line2\"></form-control-text>\n </div>\n\n <div class=\"col-12\">\n <form-control-text label=\"City\" name=\"city\"></form-control-text>\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-select label=\"State\" name=\"state\"></form-control-select>\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-number label=\"Postal Code\" name=\"postal_code\"></form-control-number>\n </div>\n </div>\n </mock:shadow-root>\n </justifi-business-address-form>\n `);\n });\n\n it('should render BusinessAddressForm component with defaults', async () => {\n const businessAddress = {\n line1: 'Street 1',\n line2: 'Apartment 1',\n city: 'City',\n state: 'State',\n postal_code: '12345',\n country: 'Country',\n } as BusinessAddressFormFields;\n const page = await newSpecPage({\n components: [BusinessAddressForm],\n template: () => (\n <justifi-business-address-form\n defaultValues={businessAddress}\n ></justifi-business-address-form>\n ),\n });\n expect(page.root).toEqualHtml(`\n <justifi-business-address-form exportparts=\"label,input,input-invalid\">\n <mock:shadow-root>\n <div class=\"gy-3 row\">\n <div class=\"col-12 col-md-8\">\n <form-control-text defaultValue=\"Street 1\" label=\"Street Address\" name=\"line1\"></form-control-text>\n </div>\n <div class=\"col-12 col-md-4\">\n <form-control-text defaultValue=\"Apartment 1\" label=\"Apartment, Suite, etc. (optional)\" name=\"line2\"></form-control-text>\n </div>\n <div class=\"col-12\">\n <form-control-text defaultvalue=\"City\" label=\"City\" name=\"city\"></form-control-text>\n </div>\n <div class=\"col-12 col-md-6\">\n <form-control-select defaultValue=\"State\" label=\"State\" name=\"state\"></form-control-select>\n </div>\n <div class=\"col-12 col-md-6\">\n <form-control-number defaultValue=\"12345\" label=\"Postal Code\" name=\"postal_code\"></form-control-number>\n </div>\n </div>\n </mock:shadow-root>\n </justifi-business-address-form>\n `);\n });\n});\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { array, boolean, object, string } from "yup";
|
|
2
|
+
import legalAddressSchema from "../legal-address-form/legal-address-form-schema";
|
|
2
3
|
export const RegExZip = /^\d{5}/;
|
|
3
4
|
export class Business {
|
|
4
5
|
constructor(data) {
|
|
@@ -104,46 +105,56 @@ export const BusinessStructureOptions = [
|
|
|
104
105
|
value: 'tax_exempt_government_instrumentality',
|
|
105
106
|
},
|
|
106
107
|
];
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
const businessGenericInfoSchema = object({
|
|
109
|
+
legal_name: string().required('Enter legal name'),
|
|
110
|
+
website_url: string()
|
|
111
|
+
.url('Enter valid website url')
|
|
112
|
+
.required('Enter website url'),
|
|
113
|
+
email: string().email('Enter valid email').required('Enter email'),
|
|
114
|
+
phone: string().required('Enter phone number'),
|
|
115
|
+
doing_business_as: string().required('Enter doing business as'),
|
|
116
|
+
business_type: string().required('Select business type'),
|
|
117
|
+
business_structure: string().required('Select business structure'),
|
|
118
|
+
industry: string().required('Enter a business industry'),
|
|
112
119
|
});
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
const addressSchema = object({
|
|
121
|
+
line1: string().required('Enter street address'),
|
|
122
|
+
city: string().required('Enter city'),
|
|
123
|
+
state: string().required('Select state'),
|
|
124
|
+
postal_code: string().required('Enter postal code'),
|
|
125
|
+
});
|
|
126
|
+
const representativeSchema = object({
|
|
127
|
+
name: string().required('Enter representative name'),
|
|
128
|
+
email: string()
|
|
129
|
+
.email('Enter valid representative email')
|
|
130
|
+
.required('Enter representative email'),
|
|
131
|
+
phone: string().required('Enter representative phone number'),
|
|
132
|
+
dob_day: string().required('Enter representative birth day'),
|
|
133
|
+
dob_month: string().required('Enter representative birth month'),
|
|
134
|
+
dob_year: string().required('Enter representative birth year'),
|
|
135
|
+
identification_number: string(),
|
|
121
136
|
address: addressSchema,
|
|
122
137
|
});
|
|
123
|
-
const
|
|
124
|
-
name:
|
|
125
|
-
title:
|
|
126
|
-
email:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
const ownerSchema = object({
|
|
139
|
+
name: string().required('Enter owner name'),
|
|
140
|
+
title: string().required('Enter owner title'),
|
|
141
|
+
email: string()
|
|
142
|
+
.email('Enter valid owner email')
|
|
143
|
+
.required('Enter owner email'),
|
|
144
|
+
phone: string().required('Enter owner phone number'),
|
|
145
|
+
dob_day: string().required('Enter owner birth day'),
|
|
146
|
+
dob_month: string().required('Enter owner birth month'),
|
|
147
|
+
dob_year: string().required('Enter owner birth year'),
|
|
148
|
+
identification_number: string(),
|
|
149
|
+
is_owner: boolean(),
|
|
134
150
|
address: addressSchema,
|
|
135
151
|
});
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
doing_business_as: Yup.string().required('Enter doing business as'),
|
|
142
|
-
business_type: Yup.string().required('Select business type'),
|
|
143
|
-
business_structure: Yup.string().required('Select business structure'),
|
|
144
|
-
industry: Yup.string().required('Enter a business industry'),
|
|
145
|
-
representative: representativeSchema.required('Enter representative information'),
|
|
146
|
-
owners: Yup.array().of(OwnerSchema).min(1, 'Enter at least 1 owners'),
|
|
152
|
+
const additionQuestionsSchema = object({
|
|
153
|
+
business_revenue: string().required('Enter business revenue'),
|
|
154
|
+
business_payment_volume: string().required('Enter business payment volume'),
|
|
155
|
+
business_dispute_volume: string().required('Enter business dispute volume'),
|
|
156
|
+
business_receivable_volume: string().required('Enter business receivable volume'),
|
|
147
157
|
});
|
|
148
|
-
|
|
158
|
+
const businessFormSchema = object(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema.required('Enater legal address'), additional_questions: additionQuestionsSchema.required('Enter additional questions'), representative: representativeSchema.required('Enter representative information'), owners: array().of(ownerSchema).min(1, 'Enter at least 1 owners') }));
|
|
159
|
+
export default businessFormSchema;
|
|
149
160
|
//# sourceMappingURL=business-form-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-form-schema.js","sourceRoot":"","sources":["../../../../src/components/business-form/business-form-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAmBjC,MAAM,OAAO,QAAQ;EAWnB,YAA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AC,CAAC;AAEH,eAAe,kBAAkB,CAAC","sourcesContent":["import * as Yup from 'yup';\n\nexport const RegExZip = /^\\d{5}/;\n\ntype BusinessType = 'for_profit' | 'non_profit' | 'government_entity' | 'individual' | '';\ntype BusinessStructure =\n | 'sole_proprietorship'\n | 'single_llc'\n | 'multi_llc'\n | 'private_partnership'\n | 'private_corporation'\n | 'unincorporated_association'\n | 'public_partnership'\n | 'public_corporation'\n | 'incorporated'\n | 'unincorporated'\n | 'government_unit'\n | 'government_instrumentality'\n | 'tax_exempt_government_instrumentality'\n | '';\n\nexport class Business {\n public legal_name = '';\n public website_url = '';\n public email: string = '';\n public phone: string = '';\n public doing_business_as: string = '';\n public business_type: string = '';\n public business_structure: string = '';\n public industry: string = '';\n public metadata: any = {};\n\n constructor(data?: any) {\n if (data) {\n this.legal_name = data.legal_name;\n this.website_url = data.website_url;\n this.email = data.email;\n this.phone = data.phone;\n this.doing_business_as = data.doing_business_as;\n this.business_type = data.business_type;\n this.business_structure = data.business_structure;\n this.industry = data.industry;\n this.metadata = data.metadata;\n }\n }\n}\n\nexport const BusinessTypeOptions: { label: string; value: BusinessType }[] = [\n {\n label: 'Choose business type',\n value: '',\n },\n {\n label: 'Individual',\n value: 'individual',\n },\n {\n label: 'For Profit',\n value: 'for_profit',\n },\n {\n label: 'Non Profit',\n value: 'non_profit',\n },\n {\n label: 'Government Entity',\n value: 'government_entity',\n },\n];\n\nexport const BusinessStructureOptions: { label: string; value: BusinessStructure }[] = [\n {\n label: 'Choose business structure',\n value: '',\n },\n {\n label: 'Sole Proprietorship',\n value: 'sole_proprietorship',\n },\n {\n label: 'LLC (Single)',\n value: 'single_llc',\n },\n {\n label: 'LLC (Multiple)',\n value: 'multi_llc',\n },\n {\n label: 'Private Partnership',\n value: 'private_partnership',\n },\n {\n label: 'Private Corporation',\n value: 'private_corporation',\n },\n {\n label: 'Unincorporated Association',\n value: 'unincorporated_association',\n },\n {\n label: 'Public Partnership',\n value: 'public_partnership',\n },\n {\n label: 'Public Corporation',\n value: 'public_corporation',\n },\n {\n label: 'Incorporated',\n value: 'incorporated',\n },\n {\n label: 'Unincorporated',\n value: 'unincorporated',\n },\n {\n label: 'Government Unit',\n value: 'government_unit',\n },\n {\n label: 'Government Instrumentality',\n value: 'government_instrumentality',\n },\n {\n label: 'Tax Exempt Government Instrumentality',\n value: 'tax_exempt_government_instrumentality',\n },\n];\n\nconst addressSchema = Yup.object({\n line1: Yup.string().required('Enter street address'),\n city: Yup.string().required('Enter city'),\n state: Yup.string().required('Select state'),\n postal_code: Yup.string().matches(RegExZip, 'Enter valid postal code').required('Enter postal code'),\n});\n\nconst representativeSchema = Yup.object({\n name: Yup.string().required('Enter representative name'),\n email: Yup.string().email('Enter valid representative email').required('Enter representative email'),\n phone: Yup.string().required('Enter representative phone number'),\n dob_day: Yup.string().required('Enter representative birth day'),\n dob_month: Yup.string().required('Enter representative birth month'),\n dob_year: Yup.string().required('Enter representative birth year'),\n identification_number: Yup.string().required('Enter representative identification number'),\n address: addressSchema,\n});\n\nconst OwnerSchema = Yup.object({\n name: Yup.string().required('Enter owner name'),\n title: Yup.string().required('Enter owner title'),\n email: Yup.string().email('Enter valid owner email').required('Enter owner email'),\n phone: Yup.string().required('Enter owner phone number'),\n dob_day: Yup.string().required('Enter owner birth day'),\n dob_month: Yup.string().required('Enter owner birth month'),\n dob_year: Yup.string().required('Enter owner birth year'),\n identification_number: Yup.string().required('Enter owner identification number'),\n is_owner: Yup.boolean(),\n metadata: Yup.mixed(),\n address: addressSchema,\n});\n\nconst BusinessFormSchema = Yup.object({\n legal_name: Yup.string().required('Enter legal name'),\n website_url: Yup.string().url('Enter valid website url').required('Enter website url'),\n email: Yup.string().email('Enter valid email').required('Enter email'),\n phone: Yup.string().required('Enter phone number'),\n doing_business_as: Yup.string().required('Enter doing business as'),\n business_type: Yup.string().required('Select business type'),\n business_structure: Yup.string().required('Select business structure'),\n industry: Yup.string().required('Enter a business industry'),\n representative: representativeSchema.required('Enter representative information'),\n owners: Yup.array().of(OwnerSchema).min(1, 'Enter at least 1 owners'),\n});\n\nexport default BusinessFormSchema;\n"]}
|
|
1
|
+
{"version":3,"file":"business-form-schema.js","sourceRoot":"","sources":["../../../../src/components/business-form/business-form-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAwBjC,MAAM,OAAO,QAAQ;EAWnB,YAAY,IAAU;IAVf,eAAU,GAAG,EAAE,CAAC;IAChB,gBAAW,GAAG,EAAE,CAAC;IACjB,UAAK,GAAW,EAAE,CAAC;IACnB,UAAK,GAAW,EAAE,CAAC;IACnB,sBAAiB,GAAW,EAAE,CAAC;IAC/B,kBAAa,GAAW,EAAE,CAAC;IAC3B,uBAAkB,GAAW,EAAE,CAAC;IAChC,aAAQ,GAAW,EAAE,CAAC;IACtB,aAAQ,GAAQ,EAAE,CAAC;IAGxB,IAAI,IAAI,EAAE;MACR,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;MAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;MACpC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;MACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;MACxB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;MAChD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;MACxC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;MAClD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;MAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;KAC/B;EACH,CAAC;CACF;AAED,MAA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;AAEH,MAAM,kBAAkB,GAAG,MAAM,iCAC5B,yBAAyB,CAAC,MAAM,KACnC,aAAa,EAAE,kBAAkB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAClE,oBAAoB,EAAE,uBAAuB,CAAC,QAAQ,CACpD,4BAA4B,CAC7B,EACD,cAAc,EAAE,oBAAoB,CAAC,QAAQ,CAC3C,kCAAkC,CACnC,EACD,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC,IACjE,CAAC;AAEH,eAAe,kBAAkB,CAAC","sourcesContent":["import { array, boolean, object, string } from 'yup';\nimport legalAddressSchema from '../legal-address-form/legal-address-form-schema';\n\nexport const RegExZip = /^\\d{5}/;\n\ntype BusinessType =\n | 'for_profit'\n | 'non_profit'\n | 'government_entity'\n | 'individual'\n | '';\ntype BusinessStructure =\n | 'sole_proprietorship'\n | 'single_llc'\n | 'multi_llc'\n | 'private_partnership'\n | 'private_corporation'\n | 'unincorporated_association'\n | 'public_partnership'\n | 'public_corporation'\n | 'incorporated'\n | 'unincorporated'\n | 'government_unit'\n | 'government_instrumentality'\n | 'tax_exempt_government_instrumentality'\n | '';\n\nexport class Business {\n public legal_name = '';\n public website_url = '';\n public email: string = '';\n public phone: string = '';\n public doing_business_as: string = '';\n public business_type: string = '';\n public business_structure: string = '';\n public industry: string = '';\n public metadata: any = {};\n\n constructor(data?: any) {\n if (data) {\n this.legal_name = data.legal_name;\n this.website_url = data.website_url;\n this.email = data.email;\n this.phone = data.phone;\n this.doing_business_as = data.doing_business_as;\n this.business_type = data.business_type;\n this.business_structure = data.business_structure;\n this.industry = data.industry;\n this.metadata = data.metadata;\n }\n }\n}\n\nexport const BusinessTypeOptions: { label: string; value: BusinessType }[] = [\n {\n label: 'Choose business type',\n value: '',\n },\n {\n label: 'Individual',\n value: 'individual',\n },\n {\n label: 'For Profit',\n value: 'for_profit',\n },\n {\n label: 'Non Profit',\n value: 'non_profit',\n },\n {\n label: 'Government Entity',\n value: 'government_entity',\n },\n];\n\nexport const BusinessStructureOptions: {\n label: string;\n value: BusinessStructure;\n}[] = [\n {\n label: 'Choose business structure',\n value: '',\n },\n {\n label: 'Sole Proprietorship',\n value: 'sole_proprietorship',\n },\n {\n label: 'LLC (Single)',\n value: 'single_llc',\n },\n {\n label: 'LLC (Multiple)',\n value: 'multi_llc',\n },\n {\n label: 'Private Partnership',\n value: 'private_partnership',\n },\n {\n label: 'Private Corporation',\n value: 'private_corporation',\n },\n {\n label: 'Unincorporated Association',\n value: 'unincorporated_association',\n },\n {\n label: 'Public Partnership',\n value: 'public_partnership',\n },\n {\n label: 'Public Corporation',\n value: 'public_corporation',\n },\n {\n label: 'Incorporated',\n value: 'incorporated',\n },\n {\n label: 'Unincorporated',\n value: 'unincorporated',\n },\n {\n label: 'Government Unit',\n value: 'government_unit',\n },\n {\n label: 'Government Instrumentality',\n value: 'government_instrumentality',\n },\n {\n label: 'Tax Exempt Government Instrumentality',\n value: 'tax_exempt_government_instrumentality',\n },\n];\n\nconst businessGenericInfoSchema = object({\n legal_name: string().required('Enter legal name'),\n website_url: string()\n .url('Enter valid website url')\n .required('Enter website url'),\n email: string().email('Enter valid email').required('Enter email'),\n phone: string().required('Enter phone number'),\n doing_business_as: string().required('Enter doing business as'),\n business_type: string().required('Select business type'),\n business_structure: string().required('Select business structure'),\n industry: string().required('Enter a business industry'),\n});\n\nconst addressSchema = object({\n line1: string().required('Enter street address'),\n city: string().required('Enter city'),\n state: string().required('Select state'),\n postal_code: string().required('Enter postal code'),\n});\n\nconst representativeSchema = object({\n name: string().required('Enter representative name'),\n email: string()\n .email('Enter valid representative email')\n .required('Enter representative email'),\n phone: string().required('Enter representative phone number'),\n dob_day: string().required('Enter representative birth day'),\n dob_month: string().required('Enter representative birth month'),\n dob_year: string().required('Enter representative birth year'),\n identification_number: string(),\n address: addressSchema,\n});\n\nconst ownerSchema = object({\n name: string().required('Enter owner name'),\n title: string().required('Enter owner title'),\n email: string()\n .email('Enter valid owner email')\n .required('Enter owner email'),\n phone: string().required('Enter owner phone number'),\n dob_day: string().required('Enter owner birth day'),\n dob_month: string().required('Enter owner birth month'),\n dob_year: string().required('Enter owner birth year'),\n identification_number: string(),\n is_owner: boolean(),\n address: addressSchema,\n});\n\nconst additionQuestionsSchema = object({\n business_revenue: string().required('Enter business revenue'),\n business_payment_volume: string().required('Enter business payment volume'),\n business_dispute_volume: string().required('Enter business dispute volume'),\n business_receivable_volume: string().required(\n 'Enter business receivable volume',\n ),\n});\n\nconst businessFormSchema = object({\n ...businessGenericInfoSchema.fields,\n legal_address: legalAddressSchema.required('Enater legal address'),\n additional_questions: additionQuestionsSchema.required(\n 'Enter additional questions',\n ),\n representative: representativeSchema.required(\n 'Enter representative information',\n ),\n owners: array().of(ownerSchema).min(1, 'Enter at least 1 owners'),\n});\n\nexport default businessFormSchema;\n"]}
|