@justifi/webcomponents 4.19.3-rc-2 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-adc90fc6.js → Analytics-03981aad.js} +4 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
- package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
- package/dist/cjs/config-05767cba.js +15 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +17 -14
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -7
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -8
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-22d30c5d.js → package-7fdd14b9.js} +4 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- package/dist/collection/api/services/analytics.service.js +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +2 -1
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +7 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +6 -3
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +2 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/config.js +11 -0
- package/dist/docs.json +531 -27
- package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-3103f8e9.js} +4 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
- package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
- package/dist/esm/config-27764a9d.js +13 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +8 -5
- package/dist/esm/justifi-business-form.entry.js +16 -13
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +10 -7
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +7 -4
- package/dist/esm/justifi-payment-form.entry.js +11 -8
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -6
- package/dist/esm/justifi-payments-list.entry.js +7 -4
- package/dist/esm/justifi-payout-details.entry.js +7 -4
- package/dist/esm/justifi-payouts-list.entry.js +7 -4
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -6
- package/dist/esm/loader.js +1 -1
- package/dist/{webcomponents/p-2e8f4937.js → esm/package-0e3cc41e.js} +4 -2
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +16 -11
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +4 -4
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/{webcomponents/p-83125497.js → esm/utils-e66d8bca.js} +1 -16
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +4 -3
- package/dist/module/business.service.js +6 -5
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/config.js +13 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +7 -5
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +7 -4
- package/dist/module/justifi-gross-payment-chart.js +4 -1
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +6 -3
- package/dist/module/justifi-payment-provisioning.js +5 -2
- package/dist/module/justifi-payments-list.js +42 -10
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +6 -3
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -5
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/payments-list-core2.js +52 -18
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +3 -3
- package/dist/module/saved-payment-method.js +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/api/Payment.d.ts +8 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components.d.ts +89 -10
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +0 -1
- package/dist/webcomponents/p-056e75be.entry.js +1 -0
- package/dist/webcomponents/p-05718341.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0de026dd.entry.js +1 -0
- package/dist/webcomponents/p-0e84986e.entry.js +10 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-1612894d.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-20dafb46.entry.js +1 -0
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-277aee05.js +1 -0
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
- package/dist/webcomponents/p-3c7fac29.entry.js +1 -0
- package/dist/webcomponents/p-401d6607.js +1 -0
- package/dist/webcomponents/p-428e9b64.entry.js +1 -0
- package/dist/webcomponents/p-430f81c6.entry.js +1 -0
- package/dist/webcomponents/p-437f9114.js +1 -0
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/p-4628cc9b.entry.js +1 -0
- package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
- package/dist/webcomponents/p-5022f21c.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/p-5540a47c.entry.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-570a0f02.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-59cf5391.entry.js +1 -0
- package/dist/webcomponents/p-5a62fca2.js +1 -0
- package/dist/webcomponents/p-5e2c9ec8.js +1 -0
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
- package/dist/webcomponents/p-7d3be485.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
- package/dist/webcomponents/p-7ff329b1.js +1 -0
- package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-8281f09a.js +1 -0
- package/dist/webcomponents/p-8921a478.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
- package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-938bf2b4.entry.js +1 -0
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
- package/dist/webcomponents/p-aedb421f.entry.js +1 -0
- package/dist/webcomponents/p-b14da2fd.entry.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bdc91c61.entry.js +1 -0
- package/dist/webcomponents/p-c64ce69d.entry.js +1 -0
- package/dist/webcomponents/p-d76002d5.entry.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-da1d174d.entry.js +1 -0
- package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3f4a2a6.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-eea79a55.entry.js +1 -0
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-f6a2dc78.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/esm/Analytics-a8eb7344.js +0 -77
- package/dist/esm/package-ccb774a9.js +0 -79
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/esm/utils-3c1dd2fa.js +0 -4027
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-0e1bc91e.js +0 -28
- package/dist/webcomponents/p-10875f3d.entry.js +0 -97
- package/dist/webcomponents/p-157acba8.entry.js +0 -98
- package/dist/webcomponents/p-18fa0479.entry.js +0 -131
- package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
- package/dist/webcomponents/p-24dc023a.entry.js +0 -791
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
- package/dist/webcomponents/p-29c0b182.js +0 -114
- package/dist/webcomponents/p-3395e896.entry.js +0 -74
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-47d79529.js +0 -18
- package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-75fd6367.entry.js +0 -149
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-af244664.js +0 -126
- package/dist/webcomponents/p-b4b8b531.js +0 -44
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba4bae6f.js +0 -12
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
- package/dist/webcomponents/p-cc39384f.entry.js +0 -99
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-dad3e069.entry.js +0 -298
- package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -3,19 +3,21 @@ import { A as Api } from './Api.js';
|
|
|
3
3
|
import './Pagination.js';
|
|
4
4
|
import './Payment.js';
|
|
5
5
|
import './Payout.js';
|
|
6
|
+
import { c as config } from './config.js';
|
|
6
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
|
|
7
8
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
|
|
8
9
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
10
|
+
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
9
11
|
import { d as defineCustomElement$2 } from './season-interruption-insurance-core.js';
|
|
10
12
|
|
|
11
13
|
class InsuranceService {
|
|
12
14
|
async fetchQuote(authToken, payload) {
|
|
13
15
|
const endpoint = 'insurance/quotes';
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
16
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
15
17
|
}
|
|
16
18
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
17
19
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
18
|
-
return Api({ authToken, apiOrigin:
|
|
20
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -101,6 +103,7 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
|
|
|
101
103
|
return this.seasonInterruptionCoreRef.validate();
|
|
102
104
|
}
|
|
103
105
|
componentWillLoad() {
|
|
106
|
+
checkPkgVersion();
|
|
104
107
|
this.analytics = new JustifiAnalytics(this);
|
|
105
108
|
this.initializeServiceMethods();
|
|
106
109
|
}
|
|
@@ -126,7 +129,7 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
|
|
|
126
129
|
});
|
|
127
130
|
}
|
|
128
131
|
render() {
|
|
129
|
-
return (h("justifi-season-interruption-insurance-core", { key: '
|
|
132
|
+
return (h("justifi-season-interruption-insurance-core", { key: '0ef99882f70c9886e8a5b49da5fe89dd4421067a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
|
|
130
133
|
}
|
|
131
134
|
}, [1, "justifi-season-interruption-insurance", {
|
|
132
135
|
"authToken": [1, "auth-token"],
|
|
@@ -3,7 +3,6 @@ import { a as addressSchema } from './business-address-schema.js';
|
|
|
3
3
|
import { F as FormController } from './form.js';
|
|
4
4
|
import { b as Address } from './Business.js';
|
|
5
5
|
import { S as StateOptions } from './state-options.js';
|
|
6
|
-
import { c as parseAddressInfo } from './payload-parsers.js';
|
|
7
6
|
import { n as numberOnlyHandler } from './utils4.js';
|
|
8
7
|
import { d as defineCustomElement$4 } from './form-control-error-text2.js';
|
|
9
8
|
import { d as defineCustomElement$3 } from './form-control-help-text2.js';
|
|
@@ -72,8 +71,8 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
|
|
|
72
71
|
}
|
|
73
72
|
;
|
|
74
73
|
get patchPayload() {
|
|
75
|
-
let formValues =
|
|
76
|
-
return
|
|
74
|
+
let formValues = new Address(this.formController.values.getValue()).payload;
|
|
75
|
+
return { legal_address: formValues };
|
|
77
76
|
}
|
|
78
77
|
componentWillLoad() {
|
|
79
78
|
this.getBusiness && this.getData();
|
|
@@ -87,7 +86,7 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
|
|
|
87
86
|
render() {
|
|
88
87
|
var _a, _b, _c, _d, _e, _f;
|
|
89
88
|
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
90
|
-
return (h("form", { key: '
|
|
89
|
+
return (h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
91
90
|
// just for now so we skip handling country specificities
|
|
92
91
|
disabled: true }))))));
|
|
93
92
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as config } from './config.js';
|
|
2
3
|
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
3
4
|
import { d as defineCustomElement$6 } from './form-control-help-text2.js';
|
|
4
5
|
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
@@ -19,7 +20,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
19
20
|
this.onPaymentMethodOptionClick = () => {
|
|
20
21
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
21
22
|
};
|
|
22
|
-
this.iframeOrigin =
|
|
23
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
23
24
|
this.authToken = undefined;
|
|
24
25
|
this.accountId = undefined;
|
|
25
26
|
this.paymentMethodOption = undefined;
|
|
@@ -27,9 +28,6 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
27
28
|
this.isSelected = undefined;
|
|
28
29
|
this.saveNewPaymentMethodChecked = false;
|
|
29
30
|
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
32
|
-
}
|
|
33
31
|
handleCheckboxChanged(event) {
|
|
34
32
|
this.saveNewPaymentMethodChecked = event.detail;
|
|
35
33
|
}
|
|
@@ -82,7 +80,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
82
80
|
}
|
|
83
81
|
render() {
|
|
84
82
|
var _a, _b, _c, _d;
|
|
85
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '7b17c9f060764f959286e739a2c05a43d1363f0e', class: "payment-method" }, h("div", { key: '5f09658f3be4cf75ee6df659d02b9bb29a0af2c3', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '5187b4d23e10272df064b554130b856332b77e43', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '1814812e3246a5f9a5734cbb40af529a61e73f21', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
86
84
|
}
|
|
87
85
|
}, [0, "justifi-new-payment-method", {
|
|
88
86
|
"iframeOrigin": [1025, "iframe-origin"],
|
|
@@ -3,7 +3,6 @@ import { F as FormController } from './form.js';
|
|
|
3
3
|
import { O as Owner } from './Business.js';
|
|
4
4
|
import { b as BusinessFormClickActions } from './business-form-types.js';
|
|
5
5
|
import { i as identitySchema } from './business-identity-schema.js';
|
|
6
|
-
import { b as parseIdentityInfo } from './payload-parsers.js';
|
|
7
6
|
import { B as Button } from './button.js';
|
|
8
7
|
import { d as defineCustomElement$8 } from './form-control-date2.js';
|
|
9
8
|
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
@@ -144,12 +143,12 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
|
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
get payload() {
|
|
147
|
-
let formValues =
|
|
146
|
+
let formValues = new Owner(this.formController.values.getValue()).payload;
|
|
148
147
|
if (this.ownerId) {
|
|
149
|
-
return
|
|
148
|
+
return formValues;
|
|
150
149
|
}
|
|
151
150
|
else {
|
|
152
|
-
return
|
|
151
|
+
return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
153
152
|
}
|
|
154
153
|
}
|
|
155
154
|
get formTitle() {
|
|
@@ -180,7 +179,7 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
|
|
|
180
179
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
181
180
|
}
|
|
182
181
|
render() {
|
|
183
|
-
return (h("form", { key: '
|
|
182
|
+
return (h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
|
|
184
183
|
}
|
|
185
184
|
static get watchers() { return {
|
|
186
185
|
"isLoading": ["loadingWatcher"]
|
package/dist/module/package.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "4.
|
|
2
|
+
const version = "4.20.0";
|
|
3
3
|
const description = "JustiFi Web Components";
|
|
4
4
|
const collection = "dist/collection/collection-manifest.json";
|
|
5
5
|
const main = "dist/index.cjs.js";
|
|
@@ -27,6 +27,7 @@ const scripts = {
|
|
|
27
27
|
"test:file": "stencil test --spec --watch --"
|
|
28
28
|
};
|
|
29
29
|
const dependencies = {
|
|
30
|
+
"@popperjs/core": "^2.11.8",
|
|
30
31
|
"@stencil/core": "^4.0.5",
|
|
31
32
|
"@stencil/store": "^2.0.8",
|
|
32
33
|
bootstrap: "^5.2.3",
|
|
@@ -35,6 +36,7 @@ const dependencies = {
|
|
|
35
36
|
"dinero.js": "^1.9.1",
|
|
36
37
|
"iframe-resizer": "^4.3.7",
|
|
37
38
|
imask: "^7.6.0",
|
|
39
|
+
lodash: "^4.17.21",
|
|
38
40
|
rxjs: "^7.8.1",
|
|
39
41
|
"ts-dedent": "^2.2.0",
|
|
40
42
|
uuid: "^9.0.0",
|
|
@@ -44,7 +46,7 @@ const devDependencies = {
|
|
|
44
46
|
"@babel/preset-env": "^7.21.5",
|
|
45
47
|
"@babel/preset-react": "^7.18.6",
|
|
46
48
|
"@babel/preset-typescript": "^7.21.5",
|
|
47
|
-
"@rollup/plugin-replace": "^
|
|
49
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
48
50
|
"@stencil/sass": "^3.0.1",
|
|
49
51
|
"@types/jest": "27.0.3",
|
|
50
52
|
"@types/react": "^18.0.37",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { M as MapPaymentStatusToBadge, a as formatCurrency,
|
|
2
|
+
import { M as MapPaymentStatusToBadge, a as formatCurrency, e as formatDate, j as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
|
|
3
3
|
import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem, D as DetailSectionTitle, a as DetailItem, C as CodeBlock } from './utils.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './details.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as config } from './config.js';
|
|
2
3
|
import { P as PaymentMethodTypes } from './Payment.js';
|
|
3
4
|
import { d as defineCustomElement$2, P as PaymentMethodOption } from './saved-payment-method.js';
|
|
4
5
|
import { d as defineCustomElement$a } from './form-control-error-text2.js';
|
|
@@ -31,7 +32,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
31
32
|
this.insuranceToggled = undefined;
|
|
32
33
|
this.authToken = undefined;
|
|
33
34
|
this.accountId = undefined;
|
|
34
|
-
this.iframeOrigin =
|
|
35
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
35
36
|
this.savedPaymentMethods = [];
|
|
36
37
|
this.paymentAmount = undefined;
|
|
37
38
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -77,7 +78,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
77
78
|
}
|
|
78
79
|
render() {
|
|
79
80
|
var _a;
|
|
80
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
81
82
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
82
83
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
83
84
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -2,16 +2,17 @@ import { A as Api } from './Api.js';
|
|
|
2
2
|
import './Pagination.js';
|
|
3
3
|
import './Payment.js';
|
|
4
4
|
import './Payout.js';
|
|
5
|
+
import { c as config } from './config.js';
|
|
5
6
|
|
|
6
7
|
class PaymentService {
|
|
7
8
|
async fetchPayments(accountId, authToken, params) {
|
|
8
|
-
const api = Api({ authToken, apiOrigin:
|
|
9
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
9
10
|
const endpoint = `account/${accountId}/payments`;
|
|
10
11
|
return api.get(endpoint, params);
|
|
11
12
|
}
|
|
12
13
|
async fetchPayment(paymentId, authToken) {
|
|
13
14
|
const endpoint = `payments/${paymentId}`;
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
15
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -2,13 +2,18 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { p as pagingDefaults } from './Pagination.js';
|
|
3
3
|
import './Payment.js';
|
|
4
4
|
import './Payout.js';
|
|
5
|
-
import {
|
|
5
|
+
import { e as formatDate, j as formatTime, a as formatCurrency, M as MapPaymentStatusToBadge } from './utils2.js';
|
|
6
6
|
import { t as tableExportedParts, T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './exported-parts.js';
|
|
7
7
|
import { S as StyledHost } from './styled-host.js';
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
8
|
+
import { d as defineCustomElement$1, o as onFilterChange } from './table-filters-menu2.js';
|
|
9
|
+
import { d as defineCustomElement$9 } from './custom-popper2.js';
|
|
10
|
+
import { d as defineCustomElement$8 } from './form-control-date2.js';
|
|
11
|
+
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './form-control-help-text2.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './form-control-text2.js';
|
|
15
|
+
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './payments-list-filters2.js';
|
|
12
17
|
|
|
13
18
|
const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore extends HTMLElement {
|
|
14
19
|
constructor() {
|
|
@@ -32,15 +37,19 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
|
|
|
32
37
|
return;
|
|
33
38
|
this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
|
|
34
39
|
};
|
|
35
|
-
this.
|
|
36
|
-
|
|
40
|
+
this.setParamsOnChange = (name, value) => {
|
|
41
|
+
let newParams = { [name]: value };
|
|
42
|
+
this.params = onFilterChange(newParams, this.params);
|
|
43
|
+
};
|
|
44
|
+
this.clearParams = () => {
|
|
45
|
+
this.params = {};
|
|
37
46
|
};
|
|
38
|
-
this.getPayments = undefined;
|
|
39
47
|
this.payments = [];
|
|
40
48
|
this.loading = true;
|
|
41
49
|
this.errorMessage = undefined;
|
|
42
50
|
this.paging = pagingDefaults;
|
|
43
|
-
this.params =
|
|
51
|
+
this.params = {};
|
|
52
|
+
this.getPayments = undefined;
|
|
44
53
|
}
|
|
45
54
|
updateOnPropChange() {
|
|
46
55
|
this.fetchData();
|
|
@@ -89,8 +98,8 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
|
|
|
89
98
|
{
|
|
90
99
|
type: 'head',
|
|
91
100
|
value: `
|
|
92
|
-
<div class=
|
|
93
|
-
<div class=
|
|
101
|
+
<div class="fw-bold">${formatDate(payment.created_at)}</div>
|
|
102
|
+
<div class="fw-bold">${formatTime(payment.created_at)}</div>
|
|
94
103
|
`,
|
|
95
104
|
},
|
|
96
105
|
formatCurrency(payment.amount),
|
|
@@ -115,8 +124,8 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
|
|
|
115
124
|
}
|
|
116
125
|
render() {
|
|
117
126
|
var _a, _b;
|
|
118
|
-
return (h(StyledHost, { key: '
|
|
119
|
-
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ?
|
|
127
|
+
return (h(StyledHost, { key: 'aa139e92669ea06532373a64f08a9926f9ddb4d0', exportparts: tableExportedParts }, h("payments-list-filters", { key: 'd5338eb8899dc99a9633cd892400fc4749edb4b6', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: 'dd452f6a2920ef50fb24324efdf65407f7d964f7', class: "table-wrapper" }, h("table", { key: '64d2d4304549595b80a45ee5684f7ac3cd296245', class: "table table-hover" }, h("thead", { key: '256145c2eea8ac35f1c83663cba68d85287f33fc', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '43a9d75516e80bb5cd04f2575370c863f6413528', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : "" }, !Array.isArray(column) ? column : column[0]))))), h("tbody", { key: 'f95b3b11a9fe046a14a78aaa9f08a5522bead677', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'f92ed5822f5f3946463b89ed746ab641cbf3b2b3', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ddd2a229c0bb493480504ddcd855d2957b5acedd', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: '0a42c24d04d0cb23804e4a55d185cb9da4b205ab', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
128
|
+
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data.map((dataEntry) => {
|
|
120
129
|
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
121
130
|
if (nestedHtml) {
|
|
122
131
|
return h("td", { part: "table-cell", innerHTML: dataEntry.value });
|
|
@@ -124,7 +133,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
|
|
|
124
133
|
else {
|
|
125
134
|
return h("td", { part: "table-cell" }, dataEntry);
|
|
126
135
|
}
|
|
127
|
-
}))))), this.paging && (h("tfoot", { key: '
|
|
136
|
+
}))))), this.paging && (h("tfoot", { key: '20f135407c3d167359b1e2dd1f12b751b31ac80e', class: "sticky-bottom" }, h("tr", { key: 'dae4f695a77846739f2cc80f1e210f0d24d4671e', class: "table-light align-middle" }, h("td", { key: '6f2ed8b9b062a008f521aad3fe7f2ac923316955', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: '18c83657e78378ce8b59d6216479047f7728691f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
128
137
|
}
|
|
129
138
|
static get watchers() { return {
|
|
130
139
|
"params": ["updateOnPropChange"],
|
|
@@ -145,29 +154,54 @@ function defineCustomElement() {
|
|
|
145
154
|
if (typeof customElements === "undefined") {
|
|
146
155
|
return;
|
|
147
156
|
}
|
|
148
|
-
const components = ["payments-list-core", "form-control-date", "form-control-error-text", "form-control-help-text", "pagination-menu"];
|
|
157
|
+
const components = ["payments-list-core", "custom-popper", "form-control-date", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "pagination-menu", "payments-list-filters", "table-filters-menu"];
|
|
149
158
|
components.forEach(tagName => { switch (tagName) {
|
|
150
159
|
case "payments-list-core":
|
|
151
160
|
if (!customElements.get(tagName)) {
|
|
152
161
|
customElements.define(tagName, PaymentsListCore);
|
|
153
162
|
}
|
|
154
163
|
break;
|
|
164
|
+
case "custom-popper":
|
|
165
|
+
if (!customElements.get(tagName)) {
|
|
166
|
+
defineCustomElement$9();
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
155
169
|
case "form-control-date":
|
|
156
170
|
if (!customElements.get(tagName)) {
|
|
157
|
-
defineCustomElement$
|
|
171
|
+
defineCustomElement$8();
|
|
158
172
|
}
|
|
159
173
|
break;
|
|
160
174
|
case "form-control-error-text":
|
|
161
175
|
if (!customElements.get(tagName)) {
|
|
162
|
-
defineCustomElement$
|
|
176
|
+
defineCustomElement$7();
|
|
163
177
|
}
|
|
164
178
|
break;
|
|
165
179
|
case "form-control-help-text":
|
|
166
180
|
if (!customElements.get(tagName)) {
|
|
167
|
-
defineCustomElement$
|
|
181
|
+
defineCustomElement$6();
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
case "form-control-select":
|
|
185
|
+
if (!customElements.get(tagName)) {
|
|
186
|
+
defineCustomElement$5();
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case "form-control-text":
|
|
190
|
+
if (!customElements.get(tagName)) {
|
|
191
|
+
defineCustomElement$4();
|
|
168
192
|
}
|
|
169
193
|
break;
|
|
170
194
|
case "pagination-menu":
|
|
195
|
+
if (!customElements.get(tagName)) {
|
|
196
|
+
defineCustomElement$3();
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
case "payments-list-filters":
|
|
200
|
+
if (!customElements.get(tagName)) {
|
|
201
|
+
defineCustomElement$2();
|
|
202
|
+
}
|
|
203
|
+
break;
|
|
204
|
+
case "table-filters-menu":
|
|
171
205
|
if (!customElements.get(tagName)) {
|
|
172
206
|
defineCustomElement$1();
|
|
173
207
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PaymentsListFilters extends Components.PaymentsListFilters, HTMLElement {}
|
|
4
|
+
export const PaymentsListFilters: {
|
|
5
|
+
prototype: PaymentsListFilters;
|
|
6
|
+
new (): PaymentsListFilters;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|