@justifi/webcomponents 4.6.4 → 4.7.0-rc.1
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-f76b337f.js → Api-548eaa62.js} +3 -17
- package/dist/cjs/Api-548eaa62.js.map +1 -0
- package/dist/cjs/Pagination-cae1dcbd.js +15 -0
- package/dist/cjs/Pagination-cae1dcbd.js.map +1 -0
- package/dist/cjs/{Payout-4906a445.js → Payout-68a99ee3.js} +22 -1
- package/dist/cjs/Payout-68a99ee3.js.map +1 -0
- package/dist/cjs/SubAccount-f47c8522.js +109 -0
- package/dist/cjs/SubAccount-f47c8522.js.map +1 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +84 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +1 -0
- package/dist/cjs/{business-form-schema-725ec6f5.js → business-form-schema-fe831c30.js} +2 -2
- package/dist/cjs/business-form-schema-fe831c30.js.map +1 -0
- package/dist/cjs/config-70f62990.js +19 -0
- package/dist/cjs/config-70f62990.js.map +1 -0
- package/dist/cjs/form-1e732a9d.js +731 -0
- package/dist/cjs/form-1e732a9d.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +44 -20
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_3.cjs.entry.js +17 -32
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -1
- package/dist/cjs/helpers-c505d861.js +28 -0
- package/dist/cjs/helpers-c505d861.js.map +1 -0
- package/dist/cjs/{index-3533152c.js → index-c5ace247.js} +8 -1
- package/dist/cjs/index-c5ace247.js.map +1 -0
- package/dist/cjs/{index.esm-84a0a7a8.js → index.esm-91ec051e.js} +123 -1
- package/dist/cjs/index.esm-91ec051e.js.map +1 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_6.cjs.entry.js} +41 -16
- package/dist/cjs/justifi-additional-questions_6.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-details.cjs.entry.js +77 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +131 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -756
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js +38 -67
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +4 -8
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11029 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +88 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +12 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -17
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -18
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +24 -18
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +105 -0
- package/dist/cjs/justifi-refund-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +82 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +105 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table_2.cjs.entry.js +80 -0
- package/dist/cjs/justifi-table_2.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/subaccount-account-details_4.cjs.entry.js +72 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +1 -0
- package/dist/cjs/{utils-0fd61dbd.js → utils-13d069be.js} +96 -18
- package/dist/cjs/utils-13d069be.js.map +1 -0
- package/dist/cjs/utils-4622829d.js +37 -0
- package/dist/cjs/utils-4622829d.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Api.js +2 -16
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +0 -2
- package/dist/collection/api/Business.js.map +1 -1
- package/dist/collection/api/GrossVolume.js +2 -0
- package/dist/collection/api/GrossVolume.js.map +1 -0
- package/dist/collection/api/Pagination.js +8 -8
- package/dist/collection/api/Pagination.js.map +1 -1
- package/dist/collection/api/Payment.js +20 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/SubAccount.js +104 -0
- package/dist/collection/api/SubAccount.js.map +1 -0
- package/dist/collection/api/mockData/MockOnboardingData.js +118 -0
- package/dist/collection/api/mockData/MockOnboardingData.js.map +1 -0
- package/dist/collection/api/mockData/MockSubAccount.js +103 -0
- package/dist/collection/api/mockData/MockSubAccount.js.map +1 -0
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +126 -0
- package/dist/collection/api/mockData/mockGrossVolumeReport.js.map +1 -0
- package/dist/collection/assets/info-icon.svg +5 -0
- package/dist/collection/collection-manifest.json +20 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -9
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/billing-form/billing-form.stories.js +1 -1
- package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +7341 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +57 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.css +6439 -0
- package/dist/collection/components/business-details/business-details.js +128 -0
- package/dist/collection/components/business-details/business-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.stories.js +24 -0
- package/dist/collection/components/business-details/business-details.stories.js.map +1 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +7341 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +50 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +1 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +7341 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +49 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +1 -0
- package/dist/collection/components/business-details/owner-details/owner-details.css +7341 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +57 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js.map +1 -0
- package/dist/collection/components/business-details/representative-details/representative-details.css +7341 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +58 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js.map +1 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -1
- package/dist/collection/components/business-form/business-form-schema.js +1 -1
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-form-stepped.css +7929 -0
- package/dist/collection/components/business-form/business-form-stepped.js +195 -0
- package/dist/collection/components/business-form/business-form-stepped.js.map +1 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js +132 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -0
- package/dist/collection/components/business-form/business-form.js +5 -24
- package/dist/collection/components/business-form/business-form.js.map +1 -1
- package/dist/collection/components/business-form/business-form.stories.js +21 -8
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -5
- 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.js +4 -5
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
- package/dist/collection/components/business-form/helpers.js +23 -0
- package/dist/collection/components/business-form/helpers.js.map +1 -0
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.js +3 -21
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/business-list/business-list.js +72 -84
- package/dist/collection/components/business-list/business-list.js.map +1 -1
- package/dist/collection/components/business-list/business-list.stories.js +3 -2
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +2 -9
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/details/details.js +2 -21
- package/dist/collection/components/details/details.js.map +1 -1
- package/dist/collection/components/details/utils.js +7 -8
- package/dist/collection/components/details/utils.js.map +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -1
- package/dist/collection/components/form/form.js +4 -4
- package/dist/collection/components/form/form.js.map +1 -1
- package/dist/collection/components/gross-payment-chart/chart-utils.js +59 -0
- package/dist/collection/components/gross-payment-chart/chart-utils.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +572 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +127 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +22 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +15 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js.map +1 -0
- package/dist/collection/components/pagination-menu/pagination-menu.js +78 -0
- package/dist/collection/components/pagination-menu/pagination-menu.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +153 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +32 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.js +12 -6
- package/dist/collection/components/payment-details/payment-details.js.map +1 -1
- package/dist/collection/components/payment-details/payment-details.stories.js +4 -4
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -11
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +7 -6
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +15 -14
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.js +21 -13
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +4 -4
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.js +12 -3
- package/dist/collection/components/payout-details/payout-details.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.stories.js +4 -4
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +22 -14
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js +4 -4
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +22 -14
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +3 -2
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
- package/dist/collection/components/refund-form/refund-form-schema.js +14 -0
- package/dist/collection/components/refund-form/refund-form-schema.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.css +7785 -0
- package/dist/collection/components/refund-form/refund-form.js +229 -0
- package/dist/collection/components/refund-form/refund-form.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.stories.js +169 -0
- package/dist/collection/components/refund-form/refund-form.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +71 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.css +7983 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js +148 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +26 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +51 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +50 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +22 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +3 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +180 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +70 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +10 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +34 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +1 -0
- package/dist/collection/components/table/table.js +27 -12
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/test/table.spec.js +2 -2
- package/dist/collection/components/table/test/table.spec.js.map +1 -1
- package/dist/collection/utils/utils.js +95 -17
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +2 -16
- package/dist/components/Api.js.map +1 -1
- package/dist/components/Pagination.js +12 -0
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Payout.js +21 -1
- package/dist/components/Payout.js.map +1 -1
- package/dist/components/SubAccount.js +107 -0
- package/dist/components/SubAccount.js.map +1 -0
- package/dist/components/additional-questions-details.d.ts +11 -0
- package/dist/components/additional-questions-details.js +8 -0
- package/dist/components/additional-questions-details.js.map +1 -0
- package/dist/{cjs/justifi-table.cjs.entry.js → components/additional-questions-details2.js} +30 -61
- package/dist/components/additional-questions-details2.js.map +1 -0
- package/dist/components/additional-questions.js +1 -1
- package/dist/components/additional-questions.js.map +1 -1
- package/dist/components/business-generic-info.js +2 -5
- package/dist/components/business-generic-info.js.map +1 -1
- package/dist/components/business-owners.js +4 -5
- package/dist/components/business-owners.js.map +1 -1
- package/dist/components/business-representative.js +1 -1
- package/dist/components/business-representative.js.map +1 -1
- package/dist/components/config.js +17 -0
- package/dist/components/config.js.map +1 -0
- package/dist/components/details.js +6 -33
- package/dist/components/details.js.map +1 -1
- package/dist/components/form-control-number-masked2.js +1 -1
- package/dist/components/form-control-number-masked2.js.map +1 -1
- package/dist/components/form.js +729 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/generic-info-details.d.ts +11 -0
- package/dist/components/generic-info-details.js +8 -0
- package/dist/components/generic-info-details.js.map +1 -0
- package/dist/components/generic-info-details2.js +38 -0
- package/dist/components/generic-info-details2.js.map +1 -0
- package/dist/components/helpers.js +26 -0
- package/dist/components/helpers.js.map +1 -0
- package/dist/components/index.esm.js +122 -1
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/justifi-business-details.d.ts +11 -0
- package/dist/components/justifi-business-details.js +127 -0
- package/dist/components/justifi-business-details.js.map +1 -0
- package/dist/components/justifi-business-form-stepped.d.ts +11 -0
- package/dist/components/justifi-business-form-stepped.js +222 -0
- package/dist/components/justifi-business-form-stepped.js.map +1 -0
- package/dist/components/justifi-business-form.js +7 -750
- package/dist/components/justifi-business-form.js.map +1 -1
- package/dist/components/justifi-business-list.js +44 -65
- package/dist/components/justifi-business-list.js.map +1 -1
- package/dist/components/justifi-gross-payment-chart.d.ts +11 -0
- package/dist/components/justifi-gross-payment-chart.js +11052 -0
- package/dist/components/justifi-gross-payment-chart.js.map +1 -0
- package/dist/components/justifi-payment-balance-transactions.d.ts +11 -0
- package/dist/components/justifi-payment-balance-transactions.js +123 -0
- package/dist/components/justifi-payment-balance-transactions.js.map +1 -0
- package/dist/components/justifi-payment-details.js +7 -6
- package/dist/components/justifi-payment-details.js.map +1 -1
- package/dist/components/justifi-payment-form.js +3 -2
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +30 -16
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.js +7 -4
- package/dist/components/justifi-payout-details.js.map +1 -1
- package/dist/components/justifi-payouts-list.js +31 -17
- package/dist/components/justifi-payouts-list.js.map +1 -1
- package/dist/components/justifi-proceeds-list.js +30 -16
- package/dist/components/justifi-proceeds-list.js.map +1 -1
- package/dist/components/justifi-refund-form.d.ts +11 -0
- package/dist/components/justifi-refund-form.js +140 -0
- package/dist/components/justifi-refund-form.js.map +1 -0
- package/dist/components/justifi-subaccount-details.d.ts +11 -0
- package/dist/components/justifi-subaccount-details.js +134 -0
- package/dist/components/justifi-subaccount-details.js.map +1 -0
- package/dist/components/justifi-subaccounts-list.d.ts +11 -0
- package/dist/components/justifi-subaccounts-list.js +139 -0
- package/dist/components/justifi-subaccounts-list.js.map +1 -0
- package/dist/components/legal-address-details.d.ts +11 -0
- package/dist/components/legal-address-details.js +8 -0
- package/dist/components/legal-address-details.js.map +1 -0
- package/dist/components/legal-address-details2.js +37 -0
- package/dist/components/legal-address-details2.js.map +1 -0
- package/dist/components/legal-address-form.js +1 -3
- package/dist/components/legal-address-form.js.map +1 -1
- package/dist/components/owner-details.d.ts +11 -0
- package/dist/components/owner-details.js +8 -0
- package/dist/components/owner-details.js.map +1 -0
- package/dist/components/owner-details2.js +37 -0
- package/dist/components/owner-details2.js.map +1 -0
- package/dist/components/pagination-menu.d.ts +11 -0
- package/dist/components/pagination-menu.js +8 -0
- package/dist/components/pagination-menu.js.map +1 -0
- package/dist/{esm/justifi-table.entry.js → components/pagination-menu2.js} +35 -55
- package/dist/components/pagination-menu2.js.map +1 -0
- package/dist/components/payment-method-form.js +11 -9
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/representative-details.d.ts +11 -0
- package/dist/components/representative-details.js +8 -0
- package/dist/components/representative-details.js.map +1 -0
- package/dist/components/representative-details2.js +38 -0
- package/dist/components/representative-details2.js.map +1 -0
- package/dist/components/subaccount-account-details.d.ts +11 -0
- package/dist/components/subaccount-account-details.js +8 -0
- package/dist/components/subaccount-account-details.js.map +1 -0
- package/dist/components/subaccount-account-details2.js +39 -0
- package/dist/components/subaccount-account-details2.js.map +1 -0
- package/dist/components/subaccount-bank-details.d.ts +11 -0
- package/dist/components/subaccount-bank-details.js +40 -0
- package/dist/components/subaccount-bank-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details.d.ts +11 -0
- package/dist/components/subaccount-merchant-details.js +8 -0
- package/dist/components/subaccount-merchant-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details2.js +38 -0
- package/dist/components/subaccount-merchant-details2.js.map +1 -0
- package/dist/components/subaccount-owners-details.d.ts +11 -0
- package/dist/components/subaccount-owners-details.js +8 -0
- package/dist/components/subaccount-owners-details.js.map +1 -0
- package/dist/components/subaccount-owners-details2.js +38 -0
- package/dist/components/subaccount-owners-details2.js.map +1 -0
- package/dist/components/subaccount-representative-details.d.ts +11 -0
- package/dist/components/subaccount-representative-details.js +8 -0
- package/dist/components/subaccount-representative-details.js.map +1 -0
- package/dist/components/subaccount-representative-details2.js +38 -0
- package/dist/components/subaccount-representative-details2.js.map +1 -0
- package/dist/components/subaccount-terms-details.d.ts +11 -0
- package/dist/components/subaccount-terms-details.js +40 -0
- package/dist/components/subaccount-terms-details.js.map +1 -0
- package/dist/components/table.js +12 -21
- package/dist/components/table.js.map +1 -1
- package/dist/components/utils.js +27 -3909
- package/dist/components/utils.js.map +1 -1
- package/dist/components/utils2.js +3983 -0
- package/dist/components/utils2.js.map +1 -0
- package/dist/config.js +12 -4
- package/dist/config.js.map +1 -1
- package/dist/esm/{Api-cca120a8.js → Api-c65d3ed8.js} +3 -17
- package/dist/esm/Api-c65d3ed8.js.map +1 -0
- package/dist/esm/Pagination-31f770d6.js +12 -0
- package/dist/esm/Pagination-31f770d6.js.map +1 -0
- package/dist/esm/{Payout-9a1f2859.js → Payout-fcf16887.js} +22 -2
- package/dist/esm/Payout-fcf16887.js.map +1 -0
- package/dist/esm/SubAccount-128190e9.js +107 -0
- package/dist/esm/SubAccount-128190e9.js.map +1 -0
- package/dist/esm/additional-questions-details_5.entry.js +76 -0
- package/dist/esm/additional-questions-details_5.entry.js.map +1 -0
- package/dist/esm/{business-form-schema-5885d3d6.js → business-form-schema-30a3eadd.js} +2 -2
- package/dist/esm/business-form-schema-30a3eadd.js.map +1 -0
- package/dist/esm/config-b1976dbd.js +17 -0
- package/dist/esm/config-b1976dbd.js.map +1 -0
- package/dist/esm/form-32cf3d1e.js +729 -0
- package/dist/esm/form-32cf3d1e.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +44 -20
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number_3.entry.js +17 -32
- package/dist/esm/form-control-number_3.entry.js.map +1 -1
- package/dist/esm/helpers-1d5ecdc8.js +26 -0
- package/dist/esm/helpers-1d5ecdc8.js.map +1 -0
- package/dist/esm/{index-fe877d03.js → index-7471ed60.js} +8 -1
- package/dist/esm/index-7471ed60.js.map +1 -0
- package/dist/esm/{index.esm-89fe6af9.js → index.esm-9397ffa0.js} +123 -2
- package/dist/esm/index.esm-9397ffa0.js.map +1 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_6.entry.js} +41 -17
- package/dist/esm/justifi-additional-questions_6.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-details.entry.js +73 -0
- package/dist/esm/justifi-business-details.entry.js.map +1 -0
- package/dist/esm/justifi-business-form-stepped.entry.js +127 -0
- package/dist/esm/justifi-business-form-stepped.entry.js.map +1 -0
- package/dist/esm/justifi-business-form.entry.js +12 -755
- package/dist/esm/justifi-business-form.entry.js.map +1 -1
- package/dist/esm/justifi-business-list.entry.js +37 -66
- package/dist/esm/justifi-business-list.entry.js.map +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +4 -8
- package/dist/esm/justifi-details.entry.js.map +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +11025 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js.map +1 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +84 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js.map +1 -1
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +12 -10
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +22 -16
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +9 -7
- package/dist/esm/justifi-payout-details.entry.js.map +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +23 -17
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
- package/dist/esm/justifi-proceeds-list.entry.js +23 -17
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -1
- package/dist/esm/justifi-refund-form.entry.js +101 -0
- package/dist/esm/justifi-refund-form.entry.js.map +1 -0
- package/dist/esm/justifi-subaccount-details.entry.js +78 -0
- package/dist/esm/justifi-subaccount-details.entry.js.map +1 -0
- package/dist/esm/justifi-subaccounts-list.entry.js +101 -0
- package/dist/esm/justifi-subaccounts-list.entry.js.map +1 -0
- package/dist/esm/justifi-table_2.entry.js +75 -0
- package/dist/esm/justifi-table_2.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/subaccount-account-details_4.entry.js +65 -0
- package/dist/esm/subaccount-account-details_4.entry.js.map +1 -0
- package/dist/esm/subaccount-bank-details.entry.js +20 -0
- package/dist/esm/subaccount-bank-details.entry.js.map +1 -0
- package/dist/esm/subaccount-terms-details.entry.js +20 -0
- package/dist/esm/subaccount-terms-details.entry.js.map +1 -0
- package/dist/esm/{utils-ad0bbe03.js → utils-40b7002c.js} +91 -19
- package/dist/esm/utils-40b7002c.js.map +1 -0
- package/dist/esm/utils-6352c002.js +29 -0
- package/dist/esm/utils-6352c002.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/api/Api.d.ts +4 -4
- package/dist/types/api/Business.d.ts +12 -4
- package/dist/types/api/GrossVolume.d.ts +8 -0
- package/dist/types/api/Pagination.d.ts +12 -6
- package/dist/types/api/Payment.d.ts +28 -0
- package/dist/types/api/SubAccount.d.ts +165 -0
- package/dist/types/api/mockData/MockOnboardingData.d.ts +8 -0
- package/dist/types/api/mockData/MockSubAccount.d.ts +3 -0
- package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +7 -0
- package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -7
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +13 -0
- package/dist/types/components/business-details/business-details.d.ts +28 -0
- package/dist/types/components/business-details/business-details.stories.d.ts +7 -0
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +5 -0
- package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +5 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +13 -0
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +13 -0
- package/dist/types/components/business-form/business-form-stepped.d.ts +29 -0
- package/dist/types/components/business-form/business-form-stepped.stories.d.ts +27 -0
- package/dist/types/components/business-form/business-form.d.ts +0 -1
- package/dist/types/components/business-form/business-form.stories.d.ts +6 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +5 -1
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +2 -0
- package/dist/types/components/business-form/helpers.d.ts +1 -0
- package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.d.ts +1 -2
- package/dist/types/components/business-list/business-list.d.ts +34 -21
- package/dist/types/components/card-form/card-form.stories.d.ts +0 -7
- package/dist/types/components/details/details.d.ts +0 -3
- package/dist/types/components/details/utils.d.ts +5 -2
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/gross-payment-chart/chart-utils.d.ts +45 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +20 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +7 -0
- package/dist/types/components/pagination-menu/pagination-menu.d.ts +10 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +17 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +8 -0
- package/dist/types/components/payment-details/payment-details.d.ts +8 -0
- package/dist/types/components/payment-form/payment-form.stories.d.ts +1 -9
- package/dist/types/components/payments-list/payments-list.d.ts +5 -4
- package/dist/types/components/payout-details/payout-details.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +5 -4
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +5 -3
- package/dist/types/components/refund-form/refund-form-schema.d.ts +11 -0
- package/dist/types/components/refund-form/refund-form.d.ts +58 -0
- package/dist/types/components/refund-form/refund-form.stories.d.ts +27 -0
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +6 -0
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +16 -0
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +7 -0
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +5 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +19 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +3 -7
- package/dist/types/components.d.ts +619 -7
- package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +12 -4
- package/dist/types/utils/utils.d.ts +19 -0
- package/dist/webcomponents/p-0d5d02d7.js +2 -0
- package/dist/webcomponents/p-0d5d02d7.js.map +1 -0
- package/dist/webcomponents/p-0e9a7fa7.entry.js +2 -0
- package/dist/webcomponents/p-0e9a7fa7.entry.js.map +1 -0
- package/dist/webcomponents/p-1920e118.entry.js +2 -0
- package/dist/webcomponents/p-1920e118.entry.js.map +1 -0
- package/dist/webcomponents/p-215b4c87.entry.js +2 -0
- package/dist/webcomponents/{p-f6cc37a6.entry.js.map → p-215b4c87.entry.js.map} +1 -1
- package/dist/webcomponents/p-222d357c.entry.js +20 -0
- package/dist/webcomponents/p-222d357c.entry.js.map +1 -0
- package/dist/webcomponents/{p-d92116e6.entry.js → p-2cd29187.entry.js} +2 -2
- package/dist/webcomponents/p-301a23aa.js +2 -0
- package/dist/webcomponents/p-301a23aa.js.map +1 -0
- package/dist/webcomponents/p-355eabff.entry.js +2 -0
- package/dist/webcomponents/p-355eabff.entry.js.map +1 -0
- package/dist/webcomponents/{p-640bfa9f.entry.js → p-356cf20d.entry.js} +2 -2
- package/dist/webcomponents/p-397e0d5a.entry.js +2 -0
- package/dist/webcomponents/p-397e0d5a.entry.js.map +1 -0
- package/dist/webcomponents/p-491d5c69.entry.js +2 -0
- package/dist/webcomponents/p-491d5c69.entry.js.map +1 -0
- package/dist/webcomponents/p-526cb161.js +2 -0
- package/dist/webcomponents/p-526cb161.js.map +1 -0
- package/dist/webcomponents/{p-f9e127a5.js → p-59860ac8.js} +2 -2
- package/dist/webcomponents/p-59860ac8.js.map +1 -0
- package/dist/webcomponents/p-62872b87.entry.js +2 -0
- package/dist/webcomponents/p-62872b87.entry.js.map +1 -0
- package/dist/webcomponents/p-635a3b3e.entry.js +2 -0
- package/dist/webcomponents/p-635a3b3e.entry.js.map +1 -0
- package/dist/webcomponents/p-64184a0c.entry.js +2 -0
- package/dist/webcomponents/p-64184a0c.entry.js.map +1 -0
- package/dist/webcomponents/p-6c3236e8.entry.js +2 -0
- package/dist/webcomponents/p-6c3236e8.entry.js.map +1 -0
- package/dist/webcomponents/p-76983a7e.js +2 -0
- package/dist/webcomponents/p-76983a7e.js.map +1 -0
- package/dist/webcomponents/p-76dffeec.js +2 -0
- package/dist/webcomponents/p-76dffeec.js.map +1 -0
- package/dist/webcomponents/{p-2b6f5e35.entry.js → p-77e732b2.entry.js} +2 -2
- package/dist/webcomponents/p-77e732b2.entry.js.map +1 -0
- package/dist/webcomponents/p-798483dd.entry.js +2 -0
- package/dist/webcomponents/p-798483dd.entry.js.map +1 -0
- package/dist/webcomponents/p-7a24ab66.entry.js +2 -0
- package/dist/webcomponents/p-7a24ab66.entry.js.map +1 -0
- package/dist/webcomponents/p-7cde64a2.entry.js +2 -0
- package/dist/webcomponents/{p-9d1c7e6a.entry.js.map → p-7cde64a2.entry.js.map} +1 -1
- package/dist/webcomponents/p-7d58db66.js +2 -0
- package/dist/webcomponents/p-7d58db66.js.map +1 -0
- package/dist/webcomponents/p-8367b46c.entry.js +2 -0
- package/dist/webcomponents/p-8367b46c.entry.js.map +1 -0
- package/dist/webcomponents/{p-1beaaba3.entry.js → p-88fa33c1.entry.js} +2 -2
- package/dist/webcomponents/{p-c46241ba.js → p-8f37e3ee.js} +2 -2
- package/dist/webcomponents/p-8f37e3ee.js.map +1 -0
- package/dist/webcomponents/p-931989e6.entry.js +2 -0
- package/dist/webcomponents/p-931989e6.entry.js.map +1 -0
- package/dist/webcomponents/{p-cd0eca25.entry.js → p-96eecdff.entry.js} +2 -2
- package/dist/webcomponents/p-988191bf.js +2 -0
- package/dist/webcomponents/p-988191bf.js.map +1 -0
- package/dist/webcomponents/p-a4c78757.entry.js +2 -0
- package/dist/webcomponents/p-a4c78757.entry.js.map +1 -0
- package/dist/webcomponents/p-b08a9520.entry.js +2 -0
- package/dist/webcomponents/p-b08a9520.entry.js.map +1 -0
- package/dist/webcomponents/p-b157f6ae.js +2 -0
- package/dist/webcomponents/p-b157f6ae.js.map +1 -0
- package/dist/webcomponents/p-b45453ea.entry.js +2 -0
- package/dist/webcomponents/p-b45453ea.entry.js.map +1 -0
- package/dist/webcomponents/p-c2845c5d.entry.js +2 -0
- package/dist/webcomponents/p-c2845c5d.entry.js.map +1 -0
- package/dist/webcomponents/p-c4289027.entry.js +2 -0
- package/dist/webcomponents/p-c4289027.entry.js.map +1 -0
- package/dist/webcomponents/p-c43e9572.entry.js +2 -0
- package/dist/webcomponents/p-c43e9572.entry.js.map +1 -0
- package/dist/webcomponents/p-cbb60191.js +3 -0
- package/dist/webcomponents/p-cbb60191.js.map +1 -0
- package/dist/webcomponents/{p-26392ae3.entry.js → p-d40718da.entry.js} +2 -2
- package/dist/webcomponents/p-d40718da.entry.js.map +1 -0
- package/dist/webcomponents/{p-9346ae33.js → p-d6b5793d.js} +2 -2
- package/dist/webcomponents/p-d6b5793d.js.map +1 -0
- package/dist/webcomponents/{p-a922b908.entry.js → p-ec1890fc.entry.js} +2 -2
- package/dist/webcomponents/p-ffcbf779.entry.js +2 -0
- package/dist/webcomponents/p-ffcbf779.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +8 -7
- package/dist/cjs/Api-f76b337f.js.map +0 -1
- package/dist/cjs/Payout-4906a445.js.map +0 -1
- package/dist/cjs/business-form-schema-725ec6f5.js.map +0 -1
- package/dist/cjs/form-control-select.cjs.entry.js +0 -47
- package/dist/cjs/form-control-select.cjs.entry.js.map +0 -1
- package/dist/cjs/index-3533152c.js.map +0 -1
- package/dist/cjs/index.esm-84a0a7a8.js.map +0 -1
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-table.cjs.entry.js.map +0 -1
- package/dist/cjs/table-utils-617126e5.js +0 -13
- package/dist/cjs/table-utils-617126e5.js.map +0 -1
- package/dist/cjs/utils-0fd61dbd.js.map +0 -1
- package/dist/cjs/utils-d95b09c2.js +0 -35
- package/dist/cjs/utils-d95b09c2.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +0 -1
- package/dist/collection/components/table/table-utils.js +0 -8
- package/dist/collection/components/table/table-utils.js.map +0 -1
- package/dist/esm/Api-cca120a8.js.map +0 -1
- package/dist/esm/Payout-9a1f2859.js.map +0 -1
- package/dist/esm/business-form-schema-5885d3d6.js.map +0 -1
- package/dist/esm/form-control-select.entry.js +0 -43
- package/dist/esm/form-control-select.entry.js.map +0 -1
- package/dist/esm/index-fe877d03.js.map +0 -1
- package/dist/esm/index.esm-89fe6af9.js.map +0 -1
- package/dist/esm/justifi-additional-questions_5.entry.js.map +0 -1
- package/dist/esm/justifi-table.entry.js.map +0 -1
- package/dist/esm/table-utils-6cdcaa8c.js +0 -11
- package/dist/esm/table-utils-6cdcaa8c.js.map +0 -1
- package/dist/esm/utils-1e7d6279.js +0 -28
- package/dist/esm/utils-1e7d6279.js.map +0 -1
- package/dist/esm/utils-ad0bbe03.js.map +0 -1
- package/dist/types/components/table/table-utils.d.ts +0 -14
- package/dist/webcomponents/p-26392ae3.entry.js.map +0 -1
- package/dist/webcomponents/p-2b6f5e35.entry.js.map +0 -1
- package/dist/webcomponents/p-2e66512d.entry.js +0 -2
- package/dist/webcomponents/p-2e66512d.entry.js.map +0 -1
- package/dist/webcomponents/p-523cbe04.js +0 -2
- package/dist/webcomponents/p-523cbe04.js.map +0 -1
- package/dist/webcomponents/p-641883b2.entry.js +0 -2
- package/dist/webcomponents/p-641883b2.entry.js.map +0 -1
- package/dist/webcomponents/p-69a1bec2.entry.js +0 -2
- package/dist/webcomponents/p-69a1bec2.entry.js.map +0 -1
- package/dist/webcomponents/p-6a0c8dec.entry.js +0 -2
- package/dist/webcomponents/p-6a0c8dec.entry.js.map +0 -1
- package/dist/webcomponents/p-87410719.entry.js +0 -2
- package/dist/webcomponents/p-87410719.entry.js.map +0 -1
- package/dist/webcomponents/p-881edb4d.entry.js +0 -2
- package/dist/webcomponents/p-881edb4d.entry.js.map +0 -1
- package/dist/webcomponents/p-9346ae33.js.map +0 -1
- package/dist/webcomponents/p-9d1c7e6a.entry.js +0 -2
- package/dist/webcomponents/p-ab0756ff.js +0 -2
- package/dist/webcomponents/p-ab0756ff.js.map +0 -1
- package/dist/webcomponents/p-c46241ba.js.map +0 -1
- package/dist/webcomponents/p-ccb0e1c5.js +0 -2
- package/dist/webcomponents/p-ccb0e1c5.js.map +0 -1
- package/dist/webcomponents/p-dabeb3df.entry.js +0 -2
- package/dist/webcomponents/p-dabeb3df.entry.js.map +0 -1
- package/dist/webcomponents/p-db9945b1.entry.js +0 -2
- package/dist/webcomponents/p-db9945b1.entry.js.map +0 -1
- package/dist/webcomponents/p-e1f6c8ec.entry.js +0 -2
- package/dist/webcomponents/p-e1f6c8ec.entry.js.map +0 -1
- package/dist/webcomponents/p-e41fb562.entry.js +0 -2
- package/dist/webcomponents/p-e41fb562.entry.js.map +0 -1
- package/dist/webcomponents/p-e6695628.js +0 -2
- package/dist/webcomponents/p-e6695628.js.map +0 -1
- package/dist/webcomponents/p-e70b2a21.js +0 -3
- package/dist/webcomponents/p-e70b2a21.js.map +0 -1
- package/dist/webcomponents/p-f6cc37a6.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js.map +0 -1
- package/dist/webcomponents/p-f9e127a5.js.map +0 -1
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.js +0 -0
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.css +0 -0
- /package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.d.ts +0 -0
- /package/dist/webcomponents/{p-d92116e6.entry.js.map → p-2cd29187.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-640bfa9f.entry.js.map → p-356cf20d.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-1beaaba3.entry.js.map → p-88fa33c1.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-cd0eca25.entry.js.map → p-96eecdff.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-a922b908.entry.js.map → p-ec1890fc.entry.js.map} +0 -0
|
@@ -0,0 +1,729 @@
|
|
|
1
|
+
function isFunction(value) {
|
|
2
|
+
return typeof value === 'function';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function createErrorClass(createImpl) {
|
|
6
|
+
const _super = (instance) => {
|
|
7
|
+
Error.call(instance);
|
|
8
|
+
instance.stack = new Error().stack;
|
|
9
|
+
};
|
|
10
|
+
const ctorFunc = createImpl(_super);
|
|
11
|
+
ctorFunc.prototype = Object.create(Error.prototype);
|
|
12
|
+
ctorFunc.prototype.constructor = ctorFunc;
|
|
13
|
+
return ctorFunc;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
|
|
17
|
+
_super(this);
|
|
18
|
+
this.message = errors
|
|
19
|
+
? `${errors.length} errors occurred during unsubscription:
|
|
20
|
+
${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
|
|
21
|
+
: '';
|
|
22
|
+
this.name = 'UnsubscriptionError';
|
|
23
|
+
this.errors = errors;
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
function arrRemove(arr, item) {
|
|
27
|
+
if (arr) {
|
|
28
|
+
const index = arr.indexOf(item);
|
|
29
|
+
0 <= index && arr.splice(index, 1);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Subscription {
|
|
34
|
+
constructor(initialTeardown) {
|
|
35
|
+
this.initialTeardown = initialTeardown;
|
|
36
|
+
this.closed = false;
|
|
37
|
+
this._parentage = null;
|
|
38
|
+
this._finalizers = null;
|
|
39
|
+
}
|
|
40
|
+
unsubscribe() {
|
|
41
|
+
let errors;
|
|
42
|
+
if (!this.closed) {
|
|
43
|
+
this.closed = true;
|
|
44
|
+
const { _parentage } = this;
|
|
45
|
+
if (_parentage) {
|
|
46
|
+
this._parentage = null;
|
|
47
|
+
if (Array.isArray(_parentage)) {
|
|
48
|
+
for (const parent of _parentage) {
|
|
49
|
+
parent.remove(this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
_parentage.remove(this);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const { initialTeardown: initialFinalizer } = this;
|
|
57
|
+
if (isFunction(initialFinalizer)) {
|
|
58
|
+
try {
|
|
59
|
+
initialFinalizer();
|
|
60
|
+
}
|
|
61
|
+
catch (e) {
|
|
62
|
+
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const { _finalizers } = this;
|
|
66
|
+
if (_finalizers) {
|
|
67
|
+
this._finalizers = null;
|
|
68
|
+
for (const finalizer of _finalizers) {
|
|
69
|
+
try {
|
|
70
|
+
execFinalizer(finalizer);
|
|
71
|
+
}
|
|
72
|
+
catch (err) {
|
|
73
|
+
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
74
|
+
if (err instanceof UnsubscriptionError) {
|
|
75
|
+
errors = [...errors, ...err.errors];
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
errors.push(err);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (errors) {
|
|
84
|
+
throw new UnsubscriptionError(errors);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
add(teardown) {
|
|
89
|
+
var _a;
|
|
90
|
+
if (teardown && teardown !== this) {
|
|
91
|
+
if (this.closed) {
|
|
92
|
+
execFinalizer(teardown);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
if (teardown instanceof Subscription) {
|
|
96
|
+
if (teardown.closed || teardown._hasParent(this)) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
teardown._addParent(this);
|
|
100
|
+
}
|
|
101
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
_hasParent(parent) {
|
|
106
|
+
const { _parentage } = this;
|
|
107
|
+
return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
|
|
108
|
+
}
|
|
109
|
+
_addParent(parent) {
|
|
110
|
+
const { _parentage } = this;
|
|
111
|
+
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
112
|
+
}
|
|
113
|
+
_removeParent(parent) {
|
|
114
|
+
const { _parentage } = this;
|
|
115
|
+
if (_parentage === parent) {
|
|
116
|
+
this._parentage = null;
|
|
117
|
+
}
|
|
118
|
+
else if (Array.isArray(_parentage)) {
|
|
119
|
+
arrRemove(_parentage, parent);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
remove(teardown) {
|
|
123
|
+
const { _finalizers } = this;
|
|
124
|
+
_finalizers && arrRemove(_finalizers, teardown);
|
|
125
|
+
if (teardown instanceof Subscription) {
|
|
126
|
+
teardown._removeParent(this);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
Subscription.EMPTY = (() => {
|
|
131
|
+
const empty = new Subscription();
|
|
132
|
+
empty.closed = true;
|
|
133
|
+
return empty;
|
|
134
|
+
})();
|
|
135
|
+
const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
136
|
+
function isSubscription(value) {
|
|
137
|
+
return (value instanceof Subscription ||
|
|
138
|
+
(value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
|
|
139
|
+
}
|
|
140
|
+
function execFinalizer(finalizer) {
|
|
141
|
+
if (isFunction(finalizer)) {
|
|
142
|
+
finalizer();
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
finalizer.unsubscribe();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const config = {
|
|
150
|
+
onUnhandledError: null,
|
|
151
|
+
onStoppedNotification: null,
|
|
152
|
+
Promise: undefined,
|
|
153
|
+
useDeprecatedSynchronousErrorHandling: false,
|
|
154
|
+
useDeprecatedNextContext: false,
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const timeoutProvider = {
|
|
158
|
+
setTimeout(handler, timeout, ...args) {
|
|
159
|
+
const { delegate } = timeoutProvider;
|
|
160
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
161
|
+
return delegate.setTimeout(handler, timeout, ...args);
|
|
162
|
+
}
|
|
163
|
+
return setTimeout(handler, timeout, ...args);
|
|
164
|
+
},
|
|
165
|
+
clearTimeout(handle) {
|
|
166
|
+
const { delegate } = timeoutProvider;
|
|
167
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
168
|
+
},
|
|
169
|
+
delegate: undefined,
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
function reportUnhandledError(err) {
|
|
173
|
+
timeoutProvider.setTimeout(() => {
|
|
174
|
+
const { onUnhandledError } = config;
|
|
175
|
+
if (onUnhandledError) {
|
|
176
|
+
onUnhandledError(err);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
throw err;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function noop() { }
|
|
185
|
+
|
|
186
|
+
const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
|
|
187
|
+
function errorNotification(error) {
|
|
188
|
+
return createNotification('E', undefined, error);
|
|
189
|
+
}
|
|
190
|
+
function nextNotification(value) {
|
|
191
|
+
return createNotification('N', value, undefined);
|
|
192
|
+
}
|
|
193
|
+
function createNotification(kind, value, error) {
|
|
194
|
+
return {
|
|
195
|
+
kind,
|
|
196
|
+
value,
|
|
197
|
+
error,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function errorContext(cb) {
|
|
202
|
+
{
|
|
203
|
+
cb();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
class Subscriber extends Subscription {
|
|
208
|
+
constructor(destination) {
|
|
209
|
+
super();
|
|
210
|
+
this.isStopped = false;
|
|
211
|
+
if (destination) {
|
|
212
|
+
this.destination = destination;
|
|
213
|
+
if (isSubscription(destination)) {
|
|
214
|
+
destination.add(this);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
this.destination = EMPTY_OBSERVER;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
static create(next, error, complete) {
|
|
222
|
+
return new SafeSubscriber(next, error, complete);
|
|
223
|
+
}
|
|
224
|
+
next(value) {
|
|
225
|
+
if (this.isStopped) {
|
|
226
|
+
handleStoppedNotification(nextNotification(value), this);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
this._next(value);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
error(err) {
|
|
233
|
+
if (this.isStopped) {
|
|
234
|
+
handleStoppedNotification(errorNotification(err), this);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.isStopped = true;
|
|
238
|
+
this._error(err);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
complete() {
|
|
242
|
+
if (this.isStopped) {
|
|
243
|
+
handleStoppedNotification(COMPLETE_NOTIFICATION, this);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
this.isStopped = true;
|
|
247
|
+
this._complete();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
unsubscribe() {
|
|
251
|
+
if (!this.closed) {
|
|
252
|
+
this.isStopped = true;
|
|
253
|
+
super.unsubscribe();
|
|
254
|
+
this.destination = null;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
_next(value) {
|
|
258
|
+
this.destination.next(value);
|
|
259
|
+
}
|
|
260
|
+
_error(err) {
|
|
261
|
+
try {
|
|
262
|
+
this.destination.error(err);
|
|
263
|
+
}
|
|
264
|
+
finally {
|
|
265
|
+
this.unsubscribe();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
_complete() {
|
|
269
|
+
try {
|
|
270
|
+
this.destination.complete();
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
this.unsubscribe();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
const _bind = Function.prototype.bind;
|
|
278
|
+
function bind(fn, thisArg) {
|
|
279
|
+
return _bind.call(fn, thisArg);
|
|
280
|
+
}
|
|
281
|
+
class ConsumerObserver {
|
|
282
|
+
constructor(partialObserver) {
|
|
283
|
+
this.partialObserver = partialObserver;
|
|
284
|
+
}
|
|
285
|
+
next(value) {
|
|
286
|
+
const { partialObserver } = this;
|
|
287
|
+
if (partialObserver.next) {
|
|
288
|
+
try {
|
|
289
|
+
partialObserver.next(value);
|
|
290
|
+
}
|
|
291
|
+
catch (error) {
|
|
292
|
+
handleUnhandledError(error);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
error(err) {
|
|
297
|
+
const { partialObserver } = this;
|
|
298
|
+
if (partialObserver.error) {
|
|
299
|
+
try {
|
|
300
|
+
partialObserver.error(err);
|
|
301
|
+
}
|
|
302
|
+
catch (error) {
|
|
303
|
+
handleUnhandledError(error);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
handleUnhandledError(err);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
complete() {
|
|
311
|
+
const { partialObserver } = this;
|
|
312
|
+
if (partialObserver.complete) {
|
|
313
|
+
try {
|
|
314
|
+
partialObserver.complete();
|
|
315
|
+
}
|
|
316
|
+
catch (error) {
|
|
317
|
+
handleUnhandledError(error);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
class SafeSubscriber extends Subscriber {
|
|
323
|
+
constructor(observerOrNext, error, complete) {
|
|
324
|
+
super();
|
|
325
|
+
let partialObserver;
|
|
326
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
327
|
+
partialObserver = {
|
|
328
|
+
next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
|
|
329
|
+
error: error !== null && error !== void 0 ? error : undefined,
|
|
330
|
+
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
let context;
|
|
335
|
+
if (this && config.useDeprecatedNextContext) {
|
|
336
|
+
context = Object.create(observerOrNext);
|
|
337
|
+
context.unsubscribe = () => this.unsubscribe();
|
|
338
|
+
partialObserver = {
|
|
339
|
+
next: observerOrNext.next && bind(observerOrNext.next, context),
|
|
340
|
+
error: observerOrNext.error && bind(observerOrNext.error, context),
|
|
341
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context),
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
partialObserver = observerOrNext;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
this.destination = new ConsumerObserver(partialObserver);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function handleUnhandledError(error) {
|
|
352
|
+
{
|
|
353
|
+
reportUnhandledError(error);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
function defaultErrorHandler(err) {
|
|
357
|
+
throw err;
|
|
358
|
+
}
|
|
359
|
+
function handleStoppedNotification(notification, subscriber) {
|
|
360
|
+
const { onStoppedNotification } = config;
|
|
361
|
+
onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
|
|
362
|
+
}
|
|
363
|
+
const EMPTY_OBSERVER = {
|
|
364
|
+
closed: true,
|
|
365
|
+
next: noop,
|
|
366
|
+
error: defaultErrorHandler,
|
|
367
|
+
complete: noop,
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
|
|
371
|
+
|
|
372
|
+
function identity(x) {
|
|
373
|
+
return x;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function pipeFromArray(fns) {
|
|
377
|
+
if (fns.length === 0) {
|
|
378
|
+
return identity;
|
|
379
|
+
}
|
|
380
|
+
if (fns.length === 1) {
|
|
381
|
+
return fns[0];
|
|
382
|
+
}
|
|
383
|
+
return function piped(input) {
|
|
384
|
+
return fns.reduce((prev, fn) => fn(prev), input);
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
class Observable {
|
|
389
|
+
constructor(subscribe) {
|
|
390
|
+
if (subscribe) {
|
|
391
|
+
this._subscribe = subscribe;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
lift(operator) {
|
|
395
|
+
const observable = new Observable();
|
|
396
|
+
observable.source = this;
|
|
397
|
+
observable.operator = operator;
|
|
398
|
+
return observable;
|
|
399
|
+
}
|
|
400
|
+
subscribe(observerOrNext, error, complete) {
|
|
401
|
+
const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
402
|
+
errorContext(() => {
|
|
403
|
+
const { operator, source } = this;
|
|
404
|
+
subscriber.add(operator
|
|
405
|
+
?
|
|
406
|
+
operator.call(subscriber, source)
|
|
407
|
+
: source
|
|
408
|
+
?
|
|
409
|
+
this._subscribe(subscriber)
|
|
410
|
+
:
|
|
411
|
+
this._trySubscribe(subscriber));
|
|
412
|
+
});
|
|
413
|
+
return subscriber;
|
|
414
|
+
}
|
|
415
|
+
_trySubscribe(sink) {
|
|
416
|
+
try {
|
|
417
|
+
return this._subscribe(sink);
|
|
418
|
+
}
|
|
419
|
+
catch (err) {
|
|
420
|
+
sink.error(err);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
forEach(next, promiseCtor) {
|
|
424
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
425
|
+
return new promiseCtor((resolve, reject) => {
|
|
426
|
+
const subscriber = new SafeSubscriber({
|
|
427
|
+
next: (value) => {
|
|
428
|
+
try {
|
|
429
|
+
next(value);
|
|
430
|
+
}
|
|
431
|
+
catch (err) {
|
|
432
|
+
reject(err);
|
|
433
|
+
subscriber.unsubscribe();
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
error: reject,
|
|
437
|
+
complete: resolve,
|
|
438
|
+
});
|
|
439
|
+
this.subscribe(subscriber);
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
_subscribe(subscriber) {
|
|
443
|
+
var _a;
|
|
444
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
|
|
445
|
+
}
|
|
446
|
+
[observable]() {
|
|
447
|
+
return this;
|
|
448
|
+
}
|
|
449
|
+
pipe(...operations) {
|
|
450
|
+
return pipeFromArray(operations)(this);
|
|
451
|
+
}
|
|
452
|
+
toPromise(promiseCtor) {
|
|
453
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
454
|
+
return new promiseCtor((resolve, reject) => {
|
|
455
|
+
let value;
|
|
456
|
+
this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
Observable.create = (subscribe) => {
|
|
461
|
+
return new Observable(subscribe);
|
|
462
|
+
};
|
|
463
|
+
function getPromiseCtor(promiseCtor) {
|
|
464
|
+
var _a;
|
|
465
|
+
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
466
|
+
}
|
|
467
|
+
function isObserver(value) {
|
|
468
|
+
return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
|
|
469
|
+
}
|
|
470
|
+
function isSubscriber(value) {
|
|
471
|
+
return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
|
|
475
|
+
_super(this);
|
|
476
|
+
this.name = 'ObjectUnsubscribedError';
|
|
477
|
+
this.message = 'object unsubscribed';
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
class Subject extends Observable {
|
|
481
|
+
constructor() {
|
|
482
|
+
super();
|
|
483
|
+
this.closed = false;
|
|
484
|
+
this.currentObservers = null;
|
|
485
|
+
this.observers = [];
|
|
486
|
+
this.isStopped = false;
|
|
487
|
+
this.hasError = false;
|
|
488
|
+
this.thrownError = null;
|
|
489
|
+
}
|
|
490
|
+
lift(operator) {
|
|
491
|
+
const subject = new AnonymousSubject(this, this);
|
|
492
|
+
subject.operator = operator;
|
|
493
|
+
return subject;
|
|
494
|
+
}
|
|
495
|
+
_throwIfClosed() {
|
|
496
|
+
if (this.closed) {
|
|
497
|
+
throw new ObjectUnsubscribedError();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
next(value) {
|
|
501
|
+
errorContext(() => {
|
|
502
|
+
this._throwIfClosed();
|
|
503
|
+
if (!this.isStopped) {
|
|
504
|
+
if (!this.currentObservers) {
|
|
505
|
+
this.currentObservers = Array.from(this.observers);
|
|
506
|
+
}
|
|
507
|
+
for (const observer of this.currentObservers) {
|
|
508
|
+
observer.next(value);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
error(err) {
|
|
514
|
+
errorContext(() => {
|
|
515
|
+
this._throwIfClosed();
|
|
516
|
+
if (!this.isStopped) {
|
|
517
|
+
this.hasError = this.isStopped = true;
|
|
518
|
+
this.thrownError = err;
|
|
519
|
+
const { observers } = this;
|
|
520
|
+
while (observers.length) {
|
|
521
|
+
observers.shift().error(err);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
complete() {
|
|
527
|
+
errorContext(() => {
|
|
528
|
+
this._throwIfClosed();
|
|
529
|
+
if (!this.isStopped) {
|
|
530
|
+
this.isStopped = true;
|
|
531
|
+
const { observers } = this;
|
|
532
|
+
while (observers.length) {
|
|
533
|
+
observers.shift().complete();
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
unsubscribe() {
|
|
539
|
+
this.isStopped = this.closed = true;
|
|
540
|
+
this.observers = this.currentObservers = null;
|
|
541
|
+
}
|
|
542
|
+
get observed() {
|
|
543
|
+
var _a;
|
|
544
|
+
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
545
|
+
}
|
|
546
|
+
_trySubscribe(subscriber) {
|
|
547
|
+
this._throwIfClosed();
|
|
548
|
+
return super._trySubscribe(subscriber);
|
|
549
|
+
}
|
|
550
|
+
_subscribe(subscriber) {
|
|
551
|
+
this._throwIfClosed();
|
|
552
|
+
this._checkFinalizedStatuses(subscriber);
|
|
553
|
+
return this._innerSubscribe(subscriber);
|
|
554
|
+
}
|
|
555
|
+
_innerSubscribe(subscriber) {
|
|
556
|
+
const { hasError, isStopped, observers } = this;
|
|
557
|
+
if (hasError || isStopped) {
|
|
558
|
+
return EMPTY_SUBSCRIPTION;
|
|
559
|
+
}
|
|
560
|
+
this.currentObservers = null;
|
|
561
|
+
observers.push(subscriber);
|
|
562
|
+
return new Subscription(() => {
|
|
563
|
+
this.currentObservers = null;
|
|
564
|
+
arrRemove(observers, subscriber);
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
_checkFinalizedStatuses(subscriber) {
|
|
568
|
+
const { hasError, thrownError, isStopped } = this;
|
|
569
|
+
if (hasError) {
|
|
570
|
+
subscriber.error(thrownError);
|
|
571
|
+
}
|
|
572
|
+
else if (isStopped) {
|
|
573
|
+
subscriber.complete();
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
asObservable() {
|
|
577
|
+
const observable = new Observable();
|
|
578
|
+
observable.source = this;
|
|
579
|
+
return observable;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
Subject.create = (destination, source) => {
|
|
583
|
+
return new AnonymousSubject(destination, source);
|
|
584
|
+
};
|
|
585
|
+
class AnonymousSubject extends Subject {
|
|
586
|
+
constructor(destination, source) {
|
|
587
|
+
super();
|
|
588
|
+
this.destination = destination;
|
|
589
|
+
this.source = source;
|
|
590
|
+
}
|
|
591
|
+
next(value) {
|
|
592
|
+
var _a, _b;
|
|
593
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
|
594
|
+
}
|
|
595
|
+
error(err) {
|
|
596
|
+
var _a, _b;
|
|
597
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
598
|
+
}
|
|
599
|
+
complete() {
|
|
600
|
+
var _a, _b;
|
|
601
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
602
|
+
}
|
|
603
|
+
_subscribe(subscriber) {
|
|
604
|
+
var _a, _b;
|
|
605
|
+
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
class BehaviorSubject extends Subject {
|
|
610
|
+
constructor(_value) {
|
|
611
|
+
super();
|
|
612
|
+
this._value = _value;
|
|
613
|
+
}
|
|
614
|
+
get value() {
|
|
615
|
+
return this.getValue();
|
|
616
|
+
}
|
|
617
|
+
_subscribe(subscriber) {
|
|
618
|
+
const subscription = super._subscribe(subscriber);
|
|
619
|
+
!subscription.closed && subscriber.next(this._value);
|
|
620
|
+
return subscription;
|
|
621
|
+
}
|
|
622
|
+
getValue() {
|
|
623
|
+
const { hasError, thrownError, _value } = this;
|
|
624
|
+
if (hasError) {
|
|
625
|
+
throw thrownError;
|
|
626
|
+
}
|
|
627
|
+
this._throwIfClosed();
|
|
628
|
+
return _value;
|
|
629
|
+
}
|
|
630
|
+
next(value) {
|
|
631
|
+
super.next((this._value = value));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
class FormController {
|
|
636
|
+
constructor(schema) {
|
|
637
|
+
this.values = new BehaviorSubject({});
|
|
638
|
+
this.errors = new BehaviorSubject({});
|
|
639
|
+
this._initialValues = {};
|
|
640
|
+
this._values = {};
|
|
641
|
+
this._errors = {};
|
|
642
|
+
this._isValid = true;
|
|
643
|
+
this._schema = schema;
|
|
644
|
+
}
|
|
645
|
+
processArrayError(obj, property, remainingProperties, message) {
|
|
646
|
+
// Extract array name and index from the property string
|
|
647
|
+
const [arrayName, indexStr] = property
|
|
648
|
+
.match(/^([a-zA-Z0-9]+)\[(\d+)\]/)
|
|
649
|
+
.slice(1);
|
|
650
|
+
const index = parseInt(indexStr, 10);
|
|
651
|
+
// Ensure the array exists and has an entry at the given index
|
|
652
|
+
obj[arrayName] = obj[arrayName] || [];
|
|
653
|
+
obj[arrayName][index] = obj[arrayName][index] || {};
|
|
654
|
+
// Recursively set the error if there are remaining properties, else set the error message
|
|
655
|
+
if (remainingProperties.length) {
|
|
656
|
+
this.setNestedError(obj[arrayName][index], remainingProperties, message);
|
|
657
|
+
}
|
|
658
|
+
else {
|
|
659
|
+
obj[arrayName][index] = message;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
processRegularError(obj, property, remainingProperties, message) {
|
|
663
|
+
// Ensure the property exists
|
|
664
|
+
obj[property] = obj[property] || {};
|
|
665
|
+
// Recursively set the error if there are remaining properties, else set the error message
|
|
666
|
+
if (remainingProperties.length) {
|
|
667
|
+
this.setNestedError(obj[property], remainingProperties, message);
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
obj[property] = message;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
setNestedError(obj, properties, message) {
|
|
674
|
+
const property = properties.shift();
|
|
675
|
+
const isArrayError = property.includes('[');
|
|
676
|
+
if (isArrayError) {
|
|
677
|
+
this.processArrayError(obj, property, properties, message);
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
this.processRegularError(obj, property, properties, message);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
setError(obj, path, message) {
|
|
684
|
+
// Convert path to properties array
|
|
685
|
+
const properties = Array.isArray(path) ? path : path.split('.');
|
|
686
|
+
this.setNestedError(obj, properties, message);
|
|
687
|
+
}
|
|
688
|
+
async validate(context) {
|
|
689
|
+
this._isValid = true;
|
|
690
|
+
this._errors = {};
|
|
691
|
+
try {
|
|
692
|
+
await this._schema.validate(this._values, { context, abortEarly: false });
|
|
693
|
+
}
|
|
694
|
+
catch (err) {
|
|
695
|
+
this._isValid = false;
|
|
696
|
+
err.inner.forEach((item) => {
|
|
697
|
+
this.setError(this._errors, item.path, item.message);
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
this.errors.next(this._errors);
|
|
701
|
+
return this._isValid;
|
|
702
|
+
}
|
|
703
|
+
async validateAndSubmit(submitHandler, context) {
|
|
704
|
+
const isValid = await this.validate(context || {});
|
|
705
|
+
if (isValid) {
|
|
706
|
+
submitHandler();
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
setInitialValues(values) {
|
|
710
|
+
this._initialValues = values;
|
|
711
|
+
this._values = values;
|
|
712
|
+
this.values.next(this._values);
|
|
713
|
+
}
|
|
714
|
+
setValues(values) {
|
|
715
|
+
this._values = Object.assign(Object.assign({}, this._values), values);
|
|
716
|
+
this.values.next(this._values);
|
|
717
|
+
}
|
|
718
|
+
resetValues() {
|
|
719
|
+
this._values = this._initialValues;
|
|
720
|
+
this.values.next(this._values);
|
|
721
|
+
}
|
|
722
|
+
getInitialValues() {
|
|
723
|
+
return this._initialValues;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export { FormController as F };
|
|
728
|
+
|
|
729
|
+
//# sourceMappingURL=form-32cf3d1e.js.map
|