@justifi/webcomponents 6.0.0-rc.1 → 6.0.0-rc.11
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-CPuq_15r.js → Api-DyimBzKT.js} +2 -2
- package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BefKONu4.js} +6 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +9 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-C3BdUPlm.js → business.service-BB6zl4Gc.js} +2 -2
- package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +9 -6
- package/dist/cjs/{check-pkg-version-D_lazhBQ.js → check-pkg-version-B85-DAz3.js} +9 -3
- package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-B-R80p4f.js} +2 -2
- package/dist/cjs/checkout.store-CDQXaOcP.js +90 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-DjMdEiEW.js} +3 -3
- package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-B5tITFAh.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-BfgRmNL4.js} +2 -2
- package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-Bnfv2tEN.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
- package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
- package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
- package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
- package/dist/cjs/index-D-dD-aC2.js +30 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +8 -8
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +782 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +21 -19
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1421 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +26 -48
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -15
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cp_7Ls2E.js → package-BL9z319y.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -15
- package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service-aR96UW5e.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
- package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
- package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-BE8u0-i0.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -11
- package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-6Cl_yXXQ.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
- package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
- package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-BbydhJUr.js} +3 -3
- package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
- package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
- package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
- package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B4HjERrK.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-D1FAYZzd.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
- package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
- package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-C79Xc4FI.js} +3 -3
- package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
- package/dist/cjs/{utils-BaGF9XIe.js → utils-ChCUZgUy.js} +6 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/Payment.js +5 -2
- package/dist/collection/api/index.js +1 -2
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
- package/dist/collection/components/checkout/card-form/card-form.js +6 -3
- package/dist/collection/components/checkout/checkout.js +17 -39
- package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +263 -150
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +509 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +853 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +125 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +25 -8
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +82 -34
- package/dist/collection/index.js +1 -0
- package/dist/collection/store/checkout.store.js +48 -2
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +5 -5
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +4 -4
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +1061 -212
- package/dist/esm/{Api-N_veT2p6.js → Api-DAWuvzbl.js} +2 -2
- package/dist/esm/{Refund-Di6J0oN2.js → Refund-CVh70dXA.js} +7 -4
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +8 -8
- package/dist/esm/bank-account-form.entry.js +10 -7
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-Bdvhdc_d.js → business.service-cQrH5BqF.js} +2 -2
- package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
- package/dist/esm/card-form.entry.js +10 -7
- package/dist/esm/{check-pkg-version-Bb69ihTN.js → check-pkg-version-CeFbumLK.js} +9 -3
- package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-Bbgi1I6V.js} +2 -2
- package/dist/esm/checkout.store-CKOWX2jL.js +85 -0
- package/dist/esm/checkouts-list-core.entry.js +12 -12
- package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-Ddf2I-Ul.js} +4 -4
- package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +4 -4
- package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-CrZsNDW8.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +5 -5
- package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-0VzpMNY9.js} +2 -2
- package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-9UMbyFiT.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
- package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
- package/dist/esm/index-CbL73B6U.js +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay.entry.js +780 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +22 -20
- package/dist/esm/justifi-business-details.entry.js +11 -11
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1413 -0
- package/dist/esm/justifi-checkout.entry.js +26 -48
- package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +10 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-owner-form_3.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js +12 -12
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +16 -16
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +18 -13
- package/dist/esm/justifi-skeleton.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-O3LY2Da6.js → package-CxLeEBSa.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-BWO84KlP.js → payment.service-TxyxCg0E.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +13 -13
- package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-gkJV5GNK.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-BOwZ4wWh.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +13 -13
- package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-0PtktGRd.js} +4 -4
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
- package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
- package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +12 -12
- package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DTBSIMlJ.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-E6dZlM43.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +12 -12
- package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-TGUKTi7I.js} +4 -4
- package/dist/esm/{utils-lb8p1Exq.js → utils-BscIVFn8.js} +6 -1
- package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Analytics.js +6 -0
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +5 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form.js +5 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +5 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +49 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/index.js +1 -0
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +811 -0
- package/dist/module/justifi-checkout.js +63 -75
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-radio-list-item2.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +5 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +214 -106
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +635 -0
- package/dist/module/plaid.service.js +26 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +3 -1
- package/dist/module/saved-payment-methods.js +7 -5
- package/dist/module/sezzle-payment-method.js +14 -22
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/tokenize-payment-method.js +45 -34
- package/dist/module/utils2.js +6 -1
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/Checkout.d.ts +9 -14
- package/dist/types/api/Payment.d.ts +4 -3
- package/dist/types/api/index.d.ts +2 -2
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +6 -7
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +31 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +14 -6
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +79 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +8 -6
- package/dist/types/components.d.ts +182 -19
- package/dist/types/index.d.ts +3 -0
- package/dist/types/store/checkout.store.d.ts +16 -3
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-06283633.entry.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-0Om7jLBs.js} +1 -1
- package/dist/webcomponents/{p-283cd78b.entry.js → p-0ff04742.entry.js} +1 -1
- package/dist/webcomponents/p-19c7e6a5.entry.js +1 -0
- package/dist/webcomponents/p-2430761e.entry.js +1 -0
- package/dist/webcomponents/{p-f01953ea.entry.js → p-2953b537.entry.js} +1 -1
- package/dist/webcomponents/{p-f47095cd.entry.js → p-29d05416.entry.js} +1 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +1 -0
- package/dist/webcomponents/{p-7c51805a.entry.js → p-2d14f144.entry.js} +1 -1
- package/dist/webcomponents/{p-1d53f0b8.entry.js → p-2f658457.entry.js} +1 -1
- package/dist/webcomponents/{p-08ea8974.entry.js → p-33311d41.entry.js} +1 -1
- package/dist/webcomponents/p-35ae3497.entry.js +1 -0
- package/dist/webcomponents/{p-6849bf8e.entry.js → p-3fe420c4.entry.js} +1 -1
- package/dist/webcomponents/p-402caa84.entry.js +1 -0
- package/dist/webcomponents/p-406ebea6.entry.js +1 -0
- package/dist/webcomponents/p-42d4ea58.entry.js +1 -0
- package/dist/webcomponents/{p-4ba144ac.entry.js → p-431ba789.entry.js} +1 -1
- package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/{p-28c7bef7.entry.js → p-46b6142b.entry.js} +4 -4
- package/dist/webcomponents/p-48e32b40.entry.js +1 -0
- package/dist/webcomponents/p-4c3d8cef.entry.js +1 -0
- package/dist/webcomponents/p-4e1653c2.entry.js +1 -0
- package/dist/webcomponents/{p-df199396.entry.js → p-522e7b24.entry.js} +1 -1
- package/dist/webcomponents/p-52cbd667.entry.js +1 -0
- package/dist/webcomponents/p-537aa971.entry.js +1 -0
- package/dist/webcomponents/{p-ae4297dd.entry.js → p-53daaca6.entry.js} +1 -1
- package/dist/webcomponents/{p-7322c86e.entry.js → p-5c17360c.entry.js} +1 -1
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
- package/dist/webcomponents/p-62d3d62c.entry.js +1 -0
- package/dist/webcomponents/p-63300c63.entry.js +1 -0
- package/dist/webcomponents/p-65ed60bf.entry.js +1 -0
- package/dist/webcomponents/{p-bea4309d.entry.js → p-67332ff8.entry.js} +1 -1
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +1 -0
- package/dist/webcomponents/p-71f9c48a.entry.js +1 -0
- package/dist/webcomponents/p-778e9fe9.entry.js +1 -0
- package/dist/webcomponents/p-77948b46.entry.js +1 -0
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/{p-I8XpD1TX.js → p-7s1gsXM5.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-80331983.entry.js} +1 -1
- package/dist/webcomponents/{p-79055216.entry.js → p-8687e5d6.entry.js} +1 -1
- package/dist/webcomponents/{p-a7d5e434.entry.js → p-8d743490.entry.js} +1 -1
- package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-9be67b19.entry.js} +1 -1
- package/dist/webcomponents/p-9c997d0b.entry.js +1 -0
- package/dist/webcomponents/{p-c3a2c619.entry.js → p-9c9a4eb7.entry.js} +1 -1
- package/dist/webcomponents/p-9d37b85f.entry.js +1 -0
- package/dist/webcomponents/p-9fc567d8.entry.js +1 -0
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-BF4U0yVj.js +1 -0
- package/dist/webcomponents/{p-zdIeCUeh.js → p-BHf9IqGw.js} +1 -1
- package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/p-BY1mRAvj.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BdKWuCys.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-BbYVgLcf.js → p-BjVfIXWC.js} +1 -1
- package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-BsGE9UDv.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-CsNubTqD.js → p-CAJnQLZF.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CY7N7-0P.js +1 -0
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-Cb0FhuyU.js +1 -0
- package/dist/webcomponents/p-CbL73B6U.js +1 -0
- package/dist/webcomponents/p-CpaS1Lex.js +1 -0
- package/dist/webcomponents/p-CxLeEBSa.js +1 -0
- package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
- package/dist/webcomponents/p-DDUmOl3v.js +1 -0
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/{p-UD2JhYS2.js → p-DK2sRMlx.js} +1 -1
- package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/{p-BTkXk7ol.js → p-DRXvcLy9.js} +1 -1
- package/dist/webcomponents/p-Da3idOSV.js +1 -0
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
- package/dist/webcomponents/p-DsZZxRXY.js +1 -0
- package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
- package/dist/webcomponents/p-ED_TzwCp.js +1 -0
- package/dist/webcomponents/p-JyHlIFWl.js +1 -0
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/{p-DWUnL_zj.js → p-Wh1V0gvF.js} +1 -1
- package/dist/webcomponents/{p-36d72e2d.entry.js → p-a6748a1d.entry.js} +1 -1
- package/dist/webcomponents/{p-ded22005.entry.js → p-a7ac285c.entry.js} +1 -1
- package/dist/webcomponents/{p-40ba49e4.entry.js → p-aa6194ef.entry.js} +1 -1
- package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +1 -0
- package/dist/webcomponents/p-bc81d165.entry.js +1 -0
- package/dist/webcomponents/p-c4c88660.entry.js +1 -0
- package/dist/webcomponents/p-c8bed49a.entry.js +1 -0
- package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
- package/dist/webcomponents/{p-cebe360b.entry.js → p-e13d6ed3.entry.js} +1 -1
- package/dist/webcomponents/p-e6d1ed81.entry.js +1 -0
- package/dist/webcomponents/p-e7b66120.entry.js +1 -0
- package/dist/webcomponents/p-e9a5c837.entry.js +1 -0
- package/dist/webcomponents/p-eP3fmhta.js +1 -0
- package/dist/webcomponents/p-eb2d9e5b.entry.js +1 -0
- package/dist/webcomponents/{p-d77908ca.entry.js → p-ed901f9d.entry.js} +1 -1
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/{p-828a61b9.entry.js → p-f3c312b1.entry.js} +1 -1
- package/dist/webcomponents/p-f499a8de.entry.js +1 -0
- package/dist/webcomponents/{p-818f51fd.entry.js → p-f680e617.entry.js} +1 -1
- package/dist/webcomponents/p-f849a34e.entry.js +1 -0
- package/dist/webcomponents/p-fa1884b4.entry.js +1 -0
- package/dist/webcomponents/p-sw5RO19U.js +1 -0
- package/dist/webcomponents/{p-BNz6wy4f.js → p-xuDuc7qr.js} +1 -1
- package/dist/webcomponents/p-z-5r0gWn.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/checkout.store-CV_fuGQw.js +0 -39
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
- package/dist/esm/checkout.store-B60siz2l.js +0 -36
- package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
- package/dist/webcomponents/p-0932f6a9.entry.js +0 -1
- package/dist/webcomponents/p-09e768fe.entry.js +0 -1
- package/dist/webcomponents/p-0dcc83ac.entry.js +0 -1
- package/dist/webcomponents/p-131d799c.entry.js +0 -1
- package/dist/webcomponents/p-1bdce018.entry.js +0 -1
- package/dist/webcomponents/p-1f8cd44e.entry.js +0 -1
- package/dist/webcomponents/p-22be0859.entry.js +0 -1
- package/dist/webcomponents/p-2f31a4e5.entry.js +0 -1
- package/dist/webcomponents/p-3a4ca4df.entry.js +0 -1
- package/dist/webcomponents/p-424f491c.entry.js +0 -1
- package/dist/webcomponents/p-466f33d7.entry.js +0 -1
- package/dist/webcomponents/p-57802e57.entry.js +0 -1
- package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
- package/dist/webcomponents/p-77515be6.entry.js +0 -1
- package/dist/webcomponents/p-7WIgS5RM.js +0 -1
- package/dist/webcomponents/p-89e27079.entry.js +0 -1
- package/dist/webcomponents/p-8f0339de.entry.js +0 -1
- package/dist/webcomponents/p-9106fd74.entry.js +0 -1
- package/dist/webcomponents/p-9b75aced.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BVD7g3cE.js +0 -1
- package/dist/webcomponents/p-Bb6FBEPP.js +0 -1
- package/dist/webcomponents/p-Bpcb3SsP.js +0 -1
- package/dist/webcomponents/p-Bt388eye.js +0 -1
- package/dist/webcomponents/p-BySyDTv5.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-CCME-fyU.js +0 -1
- package/dist/webcomponents/p-CLwzqWk2.js +0 -1
- package/dist/webcomponents/p-CVQyw7ao.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DD74a16D.js +0 -1
- package/dist/webcomponents/p-DaDsBt65.js +0 -1
- package/dist/webcomponents/p-JgbsbAhz.js +0 -1
- package/dist/webcomponents/p-O3LY2Da6.js +0 -1
- package/dist/webcomponents/p-WEguiGt1.js +0 -1
- package/dist/webcomponents/p-a4172773.entry.js +0 -1
- package/dist/webcomponents/p-ae5a3c2a.entry.js +0 -1
- package/dist/webcomponents/p-ba8ae31f.entry.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-d0e24727.entry.js +0 -1
- package/dist/webcomponents/p-dd257e60.entry.js +0 -1
- package/dist/webcomponents/p-dd689b5e.entry.js +0 -1
- package/dist/webcomponents/p-dd6d6ddb.entry.js +0 -1
- package/dist/webcomponents/p-dfd7c212.entry.js +0 -1
- package/dist/webcomponents/p-e830a580.entry.js +0 -1
- package/dist/webcomponents/p-e859ece8.entry.js +0 -1
- package/dist/webcomponents/p-eaea7cc1.entry.js +0 -1
- package/dist/webcomponents/p-f3a757b2.entry.js +0 -1
- package/dist/webcomponents/p-fa33df9f.entry.js +0 -1
- package/dist/webcomponents/p-ff3377e7.entry.js +0 -1
- package/dist/webcomponents/p-ff869ded.entry.js +0 -1
- package/dist/webcomponents/p-pska2q1M.js +0 -1
- package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
- package/dist/webcomponents/p-vRhNRfmB.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -2,8 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { StyledHost } from "../../ui-components";
|
|
3
3
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
4
|
import JustifiAnalytics from "../../api/Analytics";
|
|
5
|
-
import { PaymentMethodTypes } from "../../api
|
|
6
|
-
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
|
|
5
|
+
import { ComponentErrorCodes, ComponentErrorSeverity, PaymentMethodTypes } from "../../api";
|
|
7
6
|
import { checkoutStore } from "../../store/checkout.store";
|
|
8
7
|
// Constants
|
|
9
8
|
const PAYMENT_METHOD_TYPE_LABELS = {
|
|
@@ -18,14 +17,12 @@ const ERROR_MESSAGES = {
|
|
|
18
17
|
};
|
|
19
18
|
export class TokenizePaymentMethod {
|
|
20
19
|
constructor() {
|
|
21
|
-
this.isLoading = false;
|
|
22
20
|
this.computedHideSubmitButton = false;
|
|
21
|
+
this.isLoading = false;
|
|
23
22
|
this.submitButtonText = 'Submit';
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.analytics = new JustifiAnalytics(this);
|
|
28
|
-
this.validateRequiredProps();
|
|
24
|
+
paymentMethodsChanged() {
|
|
25
|
+
this.setDefaultSelectedPaymentMethod();
|
|
29
26
|
}
|
|
30
27
|
connectedCallback() {
|
|
31
28
|
this.setDefaultSelectedPaymentMethod();
|
|
@@ -34,12 +31,17 @@ export class TokenizePaymentMethod {
|
|
|
34
31
|
disconnectedCallback() {
|
|
35
32
|
var _a;
|
|
36
33
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
34
|
+
if (this.unsubscribeFromStore) {
|
|
35
|
+
this.unsubscribeFromStore();
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
componentWillLoad() {
|
|
39
|
+
checkPkgVersion();
|
|
40
|
+
this.analytics = new JustifiAnalytics(this);
|
|
40
41
|
}
|
|
41
42
|
handleRadioClick(event) {
|
|
42
|
-
this.
|
|
43
|
+
this.selectedPaymentMethod = event.detail;
|
|
44
|
+
checkoutStore.selectedPaymentMethod = { type: event.detail };
|
|
43
45
|
}
|
|
44
46
|
async fillBillingForm(fields) {
|
|
45
47
|
var _a;
|
|
@@ -47,6 +49,7 @@ export class TokenizePaymentMethod {
|
|
|
47
49
|
}
|
|
48
50
|
async tokenizePaymentMethod(event) {
|
|
49
51
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
52
|
+
this.validateRequiredProps();
|
|
50
53
|
this.isLoading = true;
|
|
51
54
|
try {
|
|
52
55
|
const validation = await this.validate();
|
|
@@ -89,11 +92,27 @@ export class TokenizePaymentMethod {
|
|
|
89
92
|
this.billingFormRef.validate(),
|
|
90
93
|
this.paymentMethodFormRef.validate(),
|
|
91
94
|
]);
|
|
92
|
-
|
|
95
|
+
const result = {
|
|
93
96
|
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
94
97
|
errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
|
|
95
98
|
};
|
|
99
|
+
return result;
|
|
96
100
|
}
|
|
101
|
+
async tokenize() {
|
|
102
|
+
try {
|
|
103
|
+
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
104
|
+
const config = {
|
|
105
|
+
clientId: this.authToken || checkoutStore.authToken,
|
|
106
|
+
account: this.accountId || checkoutStore.accountId,
|
|
107
|
+
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
108
|
+
};
|
|
109
|
+
return await this.paymentMethodFormRef.tokenize(config);
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
return error;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// 9. Local methods
|
|
97
116
|
validateRequiredProps() {
|
|
98
117
|
if (!this.authToken && !checkoutStore.authToken) {
|
|
99
118
|
this.emitError({
|
|
@@ -109,14 +128,16 @@ export class TokenizePaymentMethod {
|
|
|
109
128
|
}
|
|
110
129
|
}
|
|
111
130
|
setDefaultSelectedPaymentMethod() {
|
|
112
|
-
if (this.
|
|
131
|
+
if (this.selectedPaymentMethod) {
|
|
113
132
|
return;
|
|
114
133
|
}
|
|
115
134
|
if (!this.disableCreditCard) {
|
|
116
|
-
this.
|
|
135
|
+
this.selectedPaymentMethod = PaymentMethodTypes.card;
|
|
136
|
+
checkoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.card };
|
|
117
137
|
}
|
|
118
138
|
else if (!this.disableBankAccount) {
|
|
119
|
-
this.
|
|
139
|
+
this.selectedPaymentMethod = PaymentMethodTypes.bankAccount;
|
|
140
|
+
checkoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.bankAccount };
|
|
120
141
|
}
|
|
121
142
|
}
|
|
122
143
|
setComputedHideSubmitButton() {
|
|
@@ -182,7 +203,8 @@ export class TokenizePaymentMethod {
|
|
|
182
203
|
},
|
|
183
204
|
};
|
|
184
205
|
}
|
|
185
|
-
|
|
206
|
+
const result = await this.performTokenization();
|
|
207
|
+
return result;
|
|
186
208
|
}
|
|
187
209
|
catch (error) {
|
|
188
210
|
return { error };
|
|
@@ -200,20 +222,6 @@ export class TokenizePaymentMethod {
|
|
|
200
222
|
data: tokenizeResponseData,
|
|
201
223
|
};
|
|
202
224
|
}
|
|
203
|
-
async tokenize() {
|
|
204
|
-
try {
|
|
205
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
206
|
-
const config = {
|
|
207
|
-
clientId: this.authToken || checkoutStore.authToken,
|
|
208
|
-
account: this.accountId || checkoutStore.accountId,
|
|
209
|
-
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
210
|
-
};
|
|
211
|
-
return await this.paymentMethodFormRef.tokenize(config);
|
|
212
|
-
}
|
|
213
|
-
catch (error) {
|
|
214
|
-
return error;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
225
|
buildPaymentMethodMetadata(billingFormFieldValues) {
|
|
218
226
|
return this.shouldSavePaymentMethod
|
|
219
227
|
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
|
|
@@ -228,17 +236,17 @@ export class TokenizePaymentMethod {
|
|
|
228
236
|
return this.disableCreditCard || this.disableBankAccount;
|
|
229
237
|
}
|
|
230
238
|
renderPaymentMethodOption(paymentMethodType) {
|
|
231
|
-
const isSelected = this.
|
|
239
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType && checkoutStore.selectedPaymentMethod.id === undefined;
|
|
232
240
|
return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
233
241
|
}
|
|
234
242
|
renderSelectedPaymentMethodForm(paymentMethodId) {
|
|
235
|
-
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId })), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID })));
|
|
243
|
+
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId })), h("div", { class: "mt-4" }, h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID, label: this.savePaymentMethodLabel }))));
|
|
236
244
|
}
|
|
237
245
|
renderPaymentMethodForm(paymentMethodId) {
|
|
238
246
|
return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
239
247
|
}
|
|
240
248
|
render() {
|
|
241
|
-
return (h(StyledHost, { key: '
|
|
249
|
+
return (h(StyledHost, { key: '8a7983cbb634e39612d9f464c3dde43c646356dd' }, h("form", { key: 'ef1d8bc768aeb880445283d4b00d41cd85b77d16' }, h("fieldset", { key: 'be8f72bb4aab7b52098f034a06ad8586fe3b89cb' }, h("div", { key: '0155b97ff6bf1c9364b2b71b337e981c89774bbe', class: "row gy-3" }, h("div", { key: '27bf72ad4b2729a94be20b8a22e196cb5550c078', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '3a9c4c7bf7830f66d22fa99fc1ca12f3dcaad390', class: "col-12" }, h("justifi-button", { key: '860fbcdc509a72abecc1e6abe2c8ff45a565ea46', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
242
250
|
}
|
|
243
251
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
244
252
|
static get properties() {
|
|
@@ -414,14 +422,33 @@ export class TokenizePaymentMethod {
|
|
|
414
422
|
"setter": false,
|
|
415
423
|
"reflect": false,
|
|
416
424
|
"defaultValue": "'Submit'"
|
|
425
|
+
},
|
|
426
|
+
"savePaymentMethodLabel": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"attribute": "save-payment-method-label",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string",
|
|
432
|
+
"resolved": "string",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": ""
|
|
440
|
+
},
|
|
441
|
+
"getter": false,
|
|
442
|
+
"setter": false,
|
|
443
|
+
"reflect": false
|
|
417
444
|
}
|
|
418
445
|
};
|
|
419
446
|
}
|
|
420
447
|
static get states() {
|
|
421
448
|
return {
|
|
449
|
+
"computedHideSubmitButton": {},
|
|
422
450
|
"isLoading": {},
|
|
423
|
-
"
|
|
424
|
-
"computedHideSubmitButton": {}
|
|
451
|
+
"selectedPaymentMethod": {}
|
|
425
452
|
};
|
|
426
453
|
}
|
|
427
454
|
static get events() {
|
|
@@ -552,6 +579,27 @@ export class TokenizePaymentMethod {
|
|
|
552
579
|
"text": "",
|
|
553
580
|
"tags": []
|
|
554
581
|
}
|
|
582
|
+
},
|
|
583
|
+
"tokenize": {
|
|
584
|
+
"complexType": {
|
|
585
|
+
"signature": "() => Promise<any>",
|
|
586
|
+
"parameters": [],
|
|
587
|
+
"references": {
|
|
588
|
+
"Promise": {
|
|
589
|
+
"location": "global",
|
|
590
|
+
"id": "global::Promise"
|
|
591
|
+
},
|
|
592
|
+
"TokenizeConfig": {
|
|
593
|
+
"location": "global",
|
|
594
|
+
"id": "global::TokenizeConfig"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"return": "Promise<any>"
|
|
598
|
+
},
|
|
599
|
+
"docs": {
|
|
600
|
+
"text": "",
|
|
601
|
+
"tags": []
|
|
602
|
+
}
|
|
555
603
|
}
|
|
556
604
|
};
|
|
557
605
|
}
|
package/dist/collection/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
|
+
import { PaymentMethodTypes } from "../api";
|
|
3
|
+
import { PAYMENT_METHODS } from "../components/modular-checkout/ModularCheckout";
|
|
2
4
|
const initialState = {
|
|
3
5
|
accountId: '',
|
|
4
6
|
authToken: '',
|
|
@@ -6,23 +8,28 @@ const initialState = {
|
|
|
6
8
|
address_postal_code: '',
|
|
7
9
|
},
|
|
8
10
|
bnplEnabled: false,
|
|
11
|
+
insuranceEnabled: false,
|
|
9
12
|
bnplProviderApiVersion: '',
|
|
10
13
|
bnplProviderCheckoutUrl: '',
|
|
11
14
|
bnplProviderClientId: '',
|
|
12
15
|
bnplProviderMode: '',
|
|
13
16
|
checkoutId: '',
|
|
17
|
+
bankAccountVerification: undefined,
|
|
14
18
|
disableBankAccount: false,
|
|
15
19
|
disableBnpl: false,
|
|
16
20
|
disableCreditCard: false,
|
|
17
21
|
disablePaymentMethodGroup: false,
|
|
18
22
|
paymentAmount: 0,
|
|
23
|
+
paymentCurrency: 'USD',
|
|
19
24
|
paymentDescription: '',
|
|
20
25
|
paymentMethodGroupId: undefined,
|
|
21
26
|
paymentMethods: [],
|
|
22
27
|
paymentToken: undefined,
|
|
23
28
|
savePaymentMethod: false,
|
|
24
|
-
selectedPaymentMethod:
|
|
29
|
+
selectedPaymentMethod: { type: PaymentMethodTypes.card },
|
|
25
30
|
totalAmount: 0,
|
|
31
|
+
plaidPublicToken: undefined,
|
|
32
|
+
plaidLinkTokenId: undefined,
|
|
26
33
|
};
|
|
27
34
|
const { state: checkoutStore, onChange } = createStore(initialState);
|
|
28
35
|
Object.keys(initialState).forEach((key) => {
|
|
@@ -31,4 +38,43 @@ Object.keys(initialState).forEach((key) => {
|
|
|
31
38
|
checkoutStore[key] = newValue;
|
|
32
39
|
});
|
|
33
40
|
});
|
|
34
|
-
|
|
41
|
+
// Helper: compute available payment methods based on store flags
|
|
42
|
+
export function getAvailablePaymentMethodTypes() {
|
|
43
|
+
var _a;
|
|
44
|
+
const methods = [];
|
|
45
|
+
if (!checkoutStore.disablePaymentMethodGroup &&
|
|
46
|
+
((_a = checkoutStore.paymentMethods) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
47
|
+
const hasSavedCard = checkoutStore.paymentMethods.some((pm) => pm.type === 'card');
|
|
48
|
+
const hasSavedBank = checkoutStore.paymentMethods.some((pm) => pm.type === 'bank_account');
|
|
49
|
+
if (hasSavedCard && !checkoutStore.disableCreditCard) {
|
|
50
|
+
methods.push(PAYMENT_METHODS.SAVED_CARD);
|
|
51
|
+
}
|
|
52
|
+
if (hasSavedBank && !checkoutStore.disableBankAccount) {
|
|
53
|
+
methods.push(PAYMENT_METHODS.SAVED_BANK_ACCOUNT);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (!checkoutStore.disableCreditCard) {
|
|
57
|
+
methods.push(PAYMENT_METHODS.NEW_CARD);
|
|
58
|
+
}
|
|
59
|
+
if (!checkoutStore.disableBankAccount) {
|
|
60
|
+
methods.push(PAYMENT_METHODS.NEW_BANK_ACCOUNT);
|
|
61
|
+
}
|
|
62
|
+
if (checkoutStore.bnplEnabled && !checkoutStore.disableBnpl) {
|
|
63
|
+
methods.push(PAYMENT_METHODS.SEZZLE);
|
|
64
|
+
}
|
|
65
|
+
if (checkoutStore.bankAccountVerification === true &&
|
|
66
|
+
!checkoutStore.disableBankAccount) {
|
|
67
|
+
methods.push(PAYMENT_METHODS.PLAID);
|
|
68
|
+
}
|
|
69
|
+
return methods;
|
|
70
|
+
}
|
|
71
|
+
export function isNewCardSelected() {
|
|
72
|
+
return checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.card;
|
|
73
|
+
}
|
|
74
|
+
export { checkoutStore as checkoutStore, onChange };
|
|
75
|
+
export function onAnyChange(callback) {
|
|
76
|
+
Object.keys(initialState).forEach((key) => {
|
|
77
|
+
// @ts-ignore - onChange is generically typed by stencil/store but not exported here
|
|
78
|
+
onChange(key, (newValue) => callback(key, newValue));
|
|
79
|
+
});
|
|
80
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ApplePayButtonType, ApplePayButtonStyle } from "../api/ApplePay";
|
|
3
|
+
const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' }, h("div", { class: 'spinner' }), h("span", null, "Processing...")));
|
|
4
|
+
export const ApplePayButton = (props) => {
|
|
5
|
+
const getApplePayButtonClass = () => {
|
|
6
|
+
let classes = "apple-pay-button";
|
|
7
|
+
switch (props.buttonStyle) {
|
|
8
|
+
case ApplePayButtonStyle.WHITE:
|
|
9
|
+
classes += " apple-pay-button-white";
|
|
10
|
+
break;
|
|
11
|
+
case ApplePayButtonStyle.WHITE_OUTLINE:
|
|
12
|
+
classes += " apple-pay-button-white-outline";
|
|
13
|
+
break;
|
|
14
|
+
case ApplePayButtonStyle.BLACK:
|
|
15
|
+
default:
|
|
16
|
+
classes += " apple-pay-button-black";
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
switch (props.buttonType) {
|
|
20
|
+
case ApplePayButtonType.BUY:
|
|
21
|
+
classes += " apple-pay-button-type-buy";
|
|
22
|
+
break;
|
|
23
|
+
case ApplePayButtonType.DONATE:
|
|
24
|
+
classes += " apple-pay-button-type-donate";
|
|
25
|
+
break;
|
|
26
|
+
case ApplePayButtonType.PLAIN:
|
|
27
|
+
default:
|
|
28
|
+
classes += " apple-pay-button-type-plain";
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
if (props.disabled || props.isProcessing || !props.isAvailable) {
|
|
32
|
+
classes += " disabled";
|
|
33
|
+
}
|
|
34
|
+
return classes;
|
|
35
|
+
};
|
|
36
|
+
const getButtonStyles = () => {
|
|
37
|
+
return {
|
|
38
|
+
width: props.width || "200px",
|
|
39
|
+
height: props.height || "48px",
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const handleClick = () => {
|
|
43
|
+
if (!props.disabled &&
|
|
44
|
+
!props.isProcessing &&
|
|
45
|
+
props.isAvailable &&
|
|
46
|
+
props.clickHandler) {
|
|
47
|
+
props.clickHandler();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return (h("div", { class: 'apple-pay-button-container' }, h("button", Object.assign({ class: getApplePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()), h("style", null, `
|
|
51
|
+
.apple-pay-button-container {
|
|
52
|
+
display: inline-block;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Apple Pay CSS classes - these are the official Apple Pay button styles */
|
|
57
|
+
.apple-pay-button {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
-webkit-appearance: -apple-pay-button;
|
|
60
|
+
-apple-pay-button-type: plain; /* default */
|
|
61
|
+
-apple-pay-button-style: black; /* default */
|
|
62
|
+
border-radius: 8px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
border: none;
|
|
65
|
+
outline: none;
|
|
66
|
+
transition: opacity 0.2s ease;
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Button styles */
|
|
71
|
+
.apple-pay-button.apple-pay-button-black {
|
|
72
|
+
-apple-pay-button-style: black;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.apple-pay-button.apple-pay-button-white {
|
|
76
|
+
-apple-pay-button-style: white;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.apple-pay-button.apple-pay-button-white-outline {
|
|
80
|
+
-apple-pay-button-style: white-outline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Button types */
|
|
84
|
+
.apple-pay-button.apple-pay-button-type-plain {
|
|
85
|
+
-apple-pay-button-type: plain;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.apple-pay-button.apple-pay-button-type-buy {
|
|
89
|
+
-apple-pay-button-type: buy;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.apple-pay-button.apple-pay-button-type-donate {
|
|
93
|
+
-apple-pay-button-type: donate;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Hover and disabled states */
|
|
97
|
+
.apple-pay-button:hover:not(.disabled) {
|
|
98
|
+
opacity: 0.9;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.apple-pay-button.disabled {
|
|
102
|
+
opacity: 0.5;
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Processing overlay */
|
|
107
|
+
.processing-overlay {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
right: 0;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
background: rgba(0, 0, 0, 0.8);
|
|
118
|
+
color: white;
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
font-weight: 500;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.spinner {
|
|
125
|
+
width: 16px;
|
|
126
|
+
height: 16px;
|
|
127
|
+
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
128
|
+
border-top: 2px solid #fff;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
animation: spin 1s linear infinite;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes spin {
|
|
134
|
+
0% { transform: rotate(0deg); }
|
|
135
|
+
100% { transform: rotate(360deg); }
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Responsive design */
|
|
139
|
+
@media (max-width: 480px) {
|
|
140
|
+
.apple-pay-button {
|
|
141
|
+
width: 100% !important;
|
|
142
|
+
min-width: 200px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`)));
|
|
146
|
+
};
|
|
@@ -80,7 +80,7 @@ export class CustomPopper {
|
|
|
80
80
|
this.hideEvent.emit();
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '934b4f1a706507deb0fc3611d058abc4b6139554' }, h("style", { key: '7616b56bacde615f8cb1fa5c395feecae067eed4' }, `
|
|
84
84
|
.popper-content {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ export class CustomPopper {
|
|
|
88
88
|
display: block;
|
|
89
89
|
z-index: 1030;
|
|
90
90
|
}
|
|
91
|
-
`), h("div", { key: '
|
|
91
|
+
`), h("div", { key: '356093b1adf4a56d1bd9f636b199f32cc6eecd8d', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '55c408d7f9ca66c67f6965cdfd0b7c7ce2c330e6' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "custom-popper"; }
|
|
94
94
|
static get properties() {
|
|
@@ -31,10 +31,10 @@ export class CheckboxInput {
|
|
|
31
31
|
return inputCheckbox;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'cb4fce894bdb9a24689e6a8b4078727b00001b3a' }, h("div", { key: 'da4671582783f5ebace5105434e484d816215f9e', class: 'form-group d-flex flex-column' }, h("div", { key: 'b8cd2036001fa732528391b6dbf1d0ae53043579', class: "form-check" }, h("input", { key: 'ae87dba4cdf3786e3c9a48c466deb9ef622cb5a9', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
35
35
|
this.isFocused = false;
|
|
36
36
|
this.formControlBlur.emit();
|
|
37
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
37
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: 'bd2521e5b1af0a415f0780ee9708ff3c59707bcb', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '29ac1320b027c81203fd4f5f424a25dd83bfbb80', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'a9206d48a18006459f7ae079413e7a5cc528aab5', errorText: this.errorText, name: this.name }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "form-control-checkbox"; }
|
|
40
40
|
static get properties() {
|
|
@@ -42,10 +42,10 @@ export class DateInput {
|
|
|
42
42
|
return part;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'bbeb4c2a8177f067f448d8dbdd1a3cb4231edca0' }, h("div", { key: '73cbd532399f7c1f3b8165d1b4e32c91698cb8af', class: "form-group d-flex flex-column" }, h("div", { key: 'bda1044c15ef82183369dee491d37bec84ef76bc', class: "d-flex gap-2" }, h("label", { key: '858e0dbe67055585a108604f8ee142047431938f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'de42e98c63b984570a420ccef8dee18038164b23', helpText: this.helpText })), h("input", { key: '87148f5d0d56720377293de8856a0cb5a6c04333', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
48
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '526352380506480c7e60bd0d3a9b2dad6a96278e', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "form-control-date"; }
|
|
51
51
|
static get properties() {
|
|
@@ -26,21 +26,21 @@ export class RadioInput {
|
|
|
26
26
|
return inputRadio;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '215443342d15bd2ab9ad4103e3798ed77a3c6d48', class: 'form-group d-flex flex-column' }, h("div", { key: 'a7ec61cb97c5fc10b799a90d1df55e11bee7945c', class: "form-check" }, h("input", { key: 'ee46d4ae13daca74f42ce2c472e08255c90a0a80', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
30
30
|
this.isFocused = false;
|
|
31
31
|
this.formControlBlur.emit();
|
|
32
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
32
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '87bf82a7c8512f598c00091d56a35488ad6f26b7', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: '905f1c94bf8538cd7550840935c2951007ed33c2', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0a0a531f057ab7bd2658ea8f1dc4b028a87b39a3', errorText: this.errorText, name: this.name })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "form-control-radio"; }
|
|
35
35
|
static get properties() {
|
|
36
36
|
return {
|
|
37
37
|
"label": {
|
|
38
|
-
"type": "
|
|
38
|
+
"type": "any",
|
|
39
39
|
"attribute": "label",
|
|
40
40
|
"mutable": false,
|
|
41
41
|
"complexType": {
|
|
42
|
-
"original": "
|
|
43
|
-
"resolved": "
|
|
42
|
+
"original": "any",
|
|
43
|
+
"resolved": "any",
|
|
44
44
|
"references": {}
|
|
45
45
|
},
|
|
46
46
|
"required": false,
|
|
@@ -35,10 +35,10 @@ export class SelectInput {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'a7428cd8a89414d877dafe9948f5652f28c36a5f' }, h("div", { key: 'c9d5d5d2f8a6292484d3606d883dbb9d168aa316', class: "form-group d-flex flex-column" }, h("div", { key: 'c1aba6560934b966de02e9afef77428c6060eefb', class: "d-flex align-items-start gap-2" }, h("label", { key: '5fbbb09c3955ff3285b006f24c3873082394d39c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'f756a05a8273ab6fd65205bb5c32cd34c30a9db3', helpText: this.helpText })), h("select", { key: 'ffd0fa461d3c35da5595e705a7c4068066d8f971', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
39
39
|
this.isFocused = false;
|
|
40
40
|
this.formControlBlur.emit();
|
|
41
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '
|
|
41
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '6ee60bb236ccf7cea7bc8ccf946a363d2cd26906', errorText: this.errorText, name: this.name }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "form-control-select"; }
|
|
44
44
|
static get properties() {
|
|
@@ -10,7 +10,7 @@ export class JustifiRadioListItem {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(StyledHost, { key: '
|
|
13
|
+
return (h(StyledHost, { key: '1ae40f787970160e38b72f917bda96f480d2a890' }, h("div", { key: '2130596c8294cc38365e6126806735da0f93ef4a', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '7d5524f518430f2bfd1c9863f354318929353cfb', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "justifi-radio-list-item"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,12 +55,12 @@ export class JustifiRadioListItem {
|
|
|
55
55
|
"reflect": false
|
|
56
56
|
},
|
|
57
57
|
"label": {
|
|
58
|
-
"type": "
|
|
58
|
+
"type": "any",
|
|
59
59
|
"attribute": "label",
|
|
60
60
|
"mutable": false,
|
|
61
61
|
"complexType": {
|
|
62
|
-
"original": "
|
|
63
|
-
"resolved": "
|
|
62
|
+
"original": "any",
|
|
63
|
+
"resolved": "any",
|
|
64
64
|
"references": {}
|
|
65
65
|
},
|
|
66
66
|
"required": true,
|
|
@@ -5,6 +5,12 @@ const latestVersion = async (packageName) => {
|
|
|
5
5
|
return json.version;
|
|
6
6
|
};
|
|
7
7
|
export const checkPkgVersion = async () => {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
// Skip version check in test environments to avoid async logs after tests complete
|
|
10
|
+
if (typeof process !== 'undefined' &&
|
|
11
|
+
(((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test' || ((_b = process.env) === null || _b === void 0 ? void 0 : _b.JEST_WORKER_ID))) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
8
14
|
const version = packageJson.version;
|
|
9
15
|
const packageName = packageJson.name;
|
|
10
16
|
const latest = await latestVersion(packageName);
|
|
@@ -177,3 +177,8 @@ export function generateId(length = 10) {
|
|
|
177
177
|
}
|
|
178
178
|
return result;
|
|
179
179
|
}
|
|
180
|
+
export function generateTabId() {
|
|
181
|
+
var _a;
|
|
182
|
+
return (((_a = crypto.randomUUID) === null || _a === void 0 ? void 0 : _a.call(crypto)) ||
|
|
183
|
+
`${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
184
|
+
}
|