@justifi/webcomponents 4.23.1 → 5.0.0-rc-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-aa799fec.js → Business-cfd6a2dd.js} +5 -0
- package/dist/cjs/Dispute-eb6bad54.js +59 -0
- package/dist/cjs/{Payment-87b47c43.js → Payment-d074b246.js} +7 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +9 -28
- package/dist/cjs/bank-account-form_9.cjs.entry.js +493 -0
- package/dist/cjs/{business-additional-questions-schema-f5591026.js → business-additional-questions-schema-caa23e95.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +26 -4
- package/dist/cjs/{business-form-options-5db0bd5e.js → business-form-options-4bcb8943.js} +1 -1
- package/dist/cjs/{business-identity-schema-804a4bd7.js → business-identity-schema-0c537067.js} +2 -2
- package/dist/cjs/button-94bdc1f0.js +20 -0
- package/dist/cjs/{Analytics-7ab90cae.js → check-pkg-version-23c816dd.js} +22 -2
- package/dist/cjs/{checkout.service-aae1996c.js → checkout.service-9891a349.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/checkouts-list-params-state-418c75a3.js +14 -0
- package/dist/cjs/checkouts-table-17648e93.js +48 -0
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -107
- package/dist/cjs/dispute.service-2064ae0f.js +29 -0
- package/dist/cjs/event-types-180a85a9.js +23 -0
- package/dist/cjs/{table-ec9ce9f7.js → event-types-4df47396.js} +16 -8
- package/dist/cjs/event-types-8edaabbb.js +22 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +9 -8
- package/dist/cjs/form-control-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/form-control-date.cjs.entry.js +21 -2
- package/dist/cjs/form-control-error-text-a2fd5fc1.js +14 -0
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +90 -0
- package/dist/cjs/form-control-file.cjs.entry.js +21 -2
- package/dist/cjs/form-control-help-text-b6f7ae6e.js +14 -0
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +22 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +21 -3
- package/dist/cjs/form-control-number.cjs.entry.js +21 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +25 -17
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-1eed32ee.js → get-payout-csv-4e60474e.js} +1 -1
- package/dist/cjs/{get-subaccounts-1d2fb201.js → get-subaccounts-2ea9676c.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -8
- package/dist/cjs/header-1-cb7af794.js +10 -0
- package/dist/cjs/header-3-75e50713.js +10 -0
- package/dist/cjs/iframe-input-styles-state-d0de0b24.js +26 -0
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → iframe-input.cjs.entry.js} +73 -180
- package/dist/cjs/{index-fb499e95.js → index-5b9a3b5f.js} +1 -93
- package/dist/cjs/{insurance-state-80e24caf.js → index-d2d0b181.js} +2 -24
- package/dist/cjs/{index.esm-97cf6825.js → index.esm-a397536a.js} +1 -1
- package/dist/cjs/insurance-state-001cfe12.js +34 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_8.cjs.entry.js +591 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +41 -41
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +413 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +24 -31
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +15 -19
- package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +38 -0
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +50 -11
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +87 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +378 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +16 -26
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +13 -8
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +43 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +27 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +6 -9
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +17 -18
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-6d1daab8.js → package-1a3b3cdf.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +26 -0
- package/dist/cjs/parts-811ddb9c.js +119 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +13 -11
- package/dist/cjs/{payment.service-86871f43.js → payment.service-0a8c3a01.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +34 -27
- package/dist/cjs/payments-list-params-state-0ff968a7.js +14 -0
- package/dist/cjs/payments-table-cf5d1c33.js +32 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -5
- package/dist/cjs/payouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/payouts-list-params-state-16348184.js +14 -0
- package/dist/cjs/payouts-table-58881d95.js +38 -0
- package/dist/cjs/{schema-validations-f0363047.js → schema-validations-0be8068a.js} +2 -2
- package/dist/cjs/skeleton-5ca03840.js +13 -0
- package/dist/cjs/spinner-c11fcb44.js +12 -0
- package/dist/cjs/styled-host-94309bab.js +14 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +45 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +36 -29
- package/dist/cjs/terminals-list-params-state-95ff6a64.js +14 -0
- package/dist/cjs/terminals-table-91985249.js +33 -0
- package/dist/cjs/{utils-e88fbc94.js → utils-a21b7453.js} +31 -28
- package/dist/cjs/utils-fc17191b.js +29 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/api/Business.js +5 -0
- package/dist/collection/api/Dispute.js +55 -0
- package/dist/collection/api/DisputeEvidenceDocument.js +44 -0
- package/dist/collection/api/Payment.js +6 -9
- package/dist/collection/api/services/dispute.service.js +20 -0
- package/dist/collection/collection-manifest.json +16 -17
- package/dist/collection/components/billing-form/billing-form.js +2 -19
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -19
- package/dist/collection/components/business-details/business-details-core.js +8 -7
- package/dist/collection/components/business-details/business-details-loading.js +6 -0
- package/dist/collection/components/business-details/business-details.js +5 -13
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -11
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -11
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -11
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -19
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +18 -59
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +22 -52
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +19 -44
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -47
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +17 -39
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +21 -42
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +18 -39
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +32 -23
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -20
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -11
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +30 -31
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -11
- package/dist/collection/components/business-forms/utils/event-types.js +21 -0
- package/dist/collection/components/business-forms/utils/index.js +4 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +65 -0
- package/dist/collection/components/checkout/card-form/card-form.js +67 -0
- package/dist/collection/components/checkout/checkout-core.js +19 -28
- package/dist/collection/components/checkout/checkout.js +7 -7
- package/dist/collection/components/checkout/message-event-types.js +4 -0
- package/dist/collection/components/checkout/new-payment-method.js +23 -15
- package/dist/collection/components/checkout/payment-method-options.js +1 -11
- package/dist/collection/components/checkout/save-new-payment-method.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +6 -5
- package/dist/collection/components/checkout/sezzle-payment-method.js +6 -4
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +43 -36
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -61
- package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +8 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +7 -29
- package/dist/collection/components/checkouts-list/checkouts-table.js +13 -12
- package/dist/collection/components/dispute-management/dispute-actions.js +31 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +131 -17
- package/dist/collection/components/dispute-management/dispute-management.js +143 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +135 -15
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +110 -0
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +117 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +362 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-form-types.js +12 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +186 -0
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/additional-statement-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/customer-details-schema.js +7 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/dispute-reason-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/product-or-service-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/refund-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/shipping-details-schema.js +8 -0
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +106 -0
- package/dist/collection/components/dispute-management/event-types.js +20 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +8 -17
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +5 -5
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +19 -22
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -6
- package/dist/collection/components/pagination-menu/pagination-menu.js +5 -4
- package/dist/collection/components/payment-details/payment-details-core.js +15 -13
- package/dist/collection/components/payment-details/payment-details.js +5 -28
- package/dist/collection/components/payments-list/payments-list-core.js +40 -33
- package/dist/collection/components/payments-list/payments-list-filters.js +8 -61
- package/dist/collection/components/payments-list/payments-list-params-state.js +8 -0
- package/dist/collection/components/payments-list/payments-list.js +7 -29
- package/dist/collection/components/payments-list/payments-table.js +15 -14
- package/dist/collection/components/payout-details/payout-details-core.js +10 -8
- package/dist/collection/components/payout-details/payout-details.js +5 -5
- package/dist/collection/components/payouts-list/payouts-list-core.js +43 -36
- package/dist/collection/components/payouts-list/payouts-list-filters.js +8 -60
- package/dist/collection/components/payouts-list/payouts-list-params-state.js +8 -0
- package/dist/collection/components/payouts-list/payouts-list.js +6 -28
- package/dist/collection/components/payouts-list/payouts-table.js +19 -18
- package/dist/collection/components/refund-form/refund-form.js +1 -11
- package/dist/collection/components/refund-form/refund-form.stories.js +1 -60
- package/dist/collection/components/terminals-list/terminals-list-core.js +43 -36
- package/dist/collection/components/terminals-list/terminals-list-filters.js +8 -61
- package/dist/collection/components/terminals-list/terminals-list-params-state.js +8 -0
- package/dist/collection/components/terminals-list/terminals-list.js +7 -29
- package/dist/collection/components/terminals-list/terminals-table.js +9 -8
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -24
- package/dist/collection/styles/parts.js +74 -0
- package/dist/collection/ui-components/button.js +6 -12
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +2 -4
- package/dist/collection/ui-components/details/utils.js +7 -10
- package/dist/collection/ui-components/filters/table-filters-menu.js +5 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +31 -16
- package/dist/collection/ui-components/form/form-control-date.js +25 -1
- package/dist/collection/ui-components/form/form-control-file-v2.js +177 -0
- package/dist/collection/ui-components/form/form-control-file.js +22 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +25 -1
- package/dist/collection/ui-components/form/form-control-number-masked.js +24 -1
- package/dist/collection/ui-components/form/form-control-number.js +24 -1
- package/dist/collection/ui-components/form/form-control-radio.js +50 -40
- package/dist/collection/ui-components/form/form-control-select.js +25 -1
- package/dist/collection/ui-components/form/form-control-text.js +24 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +27 -2
- package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -1
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-help-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -1
- package/dist/collection/ui-components/form/form.js +1 -1
- package/dist/collection/ui-components/form/hidden-input.js +85 -0
- package/dist/collection/ui-components/form/iframe-input-styles-state.js +21 -0
- package/dist/collection/ui-components/form/iframe-input.js +215 -0
- package/dist/collection/ui-components/headers/header-1.js +5 -0
- package/dist/collection/ui-components/headers/header-2.js +5 -0
- package/dist/collection/ui-components/headers/header-3.js +5 -0
- package/dist/collection/ui-components/index.js +6 -0
- package/dist/collection/ui-components/skeleton.js +4 -34
- package/dist/collection/ui-components/spinner.js +6 -0
- package/dist/collection/ui-components/table/event-types.js +6 -0
- package/dist/collection/ui-components/table-empty-state.js +2 -1
- package/dist/collection/ui-components/table-error-state.js +2 -1
- package/dist/collection/ui-components/table-loading-state.js +3 -1
- package/dist/collection/utils/table.js +2 -2
- package/dist/collection/utils/utils.js +27 -26
- package/dist/docs.json +3573 -4721
- package/dist/esm/{Business-b73d5055.js → Business-29c69f22.js} +6 -1
- package/dist/esm/Dispute-5fd28ec9.js +57 -0
- package/dist/esm/{Payment-2a868d0c.js → Payment-4f72d277.js} +7 -9
- package/dist/esm/additional-questions-details_5.entry.js +9 -28
- package/dist/esm/bank-account-form_9.entry.js +481 -0
- package/dist/esm/{business-additional-questions-schema-d94f8975.js → business-additional-questions-schema-48e93928.js} +2 -2
- package/dist/esm/business-details-core.entry.js +26 -4
- package/dist/esm/{business-form-options-d790973e.js → business-form-options-018f62a5.js} +1 -1
- package/dist/esm/{business-identity-schema-2756dbc6.js → business-identity-schema-75126188.js} +2 -2
- package/dist/esm/button-1886a33d.js +18 -0
- package/dist/esm/{Analytics-77dc80f3.js → check-pkg-version-c2078b31.js} +22 -3
- package/dist/esm/{checkout.service-c1e44e0c.js → checkout.service-925ded8e.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +36 -29
- package/dist/esm/checkouts-list-params-state-1d968971.js +10 -0
- package/dist/esm/checkouts-table-8b116232.js +44 -0
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -105
- package/dist/esm/dispute.service-588dd905.js +27 -0
- package/dist/esm/{table-44e3d1e7.js → event-types-01dcdcbd.js} +17 -9
- package/dist/esm/event-types-07cdb9a0.js +22 -0
- package/dist/esm/event-types-5c87de02.js +23 -0
- package/dist/esm/form-alert_5.entry.js +9 -8
- package/dist/esm/form-control-checkbox.entry.js +53 -0
- package/dist/esm/form-control-date.entry.js +21 -2
- package/dist/esm/form-control-error-text-3b2553b5.js +12 -0
- package/dist/esm/form-control-file-v2_2.entry.js +85 -0
- package/dist/esm/form-control-file.entry.js +21 -2
- package/dist/esm/form-control-help-text-a2fc3617.js +12 -0
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +22 -2
- package/dist/esm/form-control-number-masked_2.entry.js +21 -3
- package/dist/esm/form-control-number.entry.js +21 -2
- package/dist/esm/form-control-radio.entry.js +25 -17
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-3b83b088.js → get-payout-csv-b95a5d54.js} +1 -1
- package/dist/esm/{get-subaccounts-dd20cfa4.js → get-subaccounts-b9a00d48.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +6 -8
- package/dist/esm/header-1-c6a00a22.js +8 -0
- package/dist/esm/header-3-a1c6d475.js +8 -0
- package/dist/esm/iframe-input-styles-state-ff730fe5.js +23 -0
- package/dist/esm/{justifi-billing-form_2.entry.js → iframe-input.entry.js} +73 -179
- package/dist/esm/{index-57431c24.js → index-29fcfdf5.js} +1 -93
- package/dist/esm/{insurance-state-8ce01e59.js → index-a47fdc7f.js} +2 -21
- package/dist/esm/{index.esm-ed37201b.js → index.esm-0b6849c2.js} +1 -1
- package/dist/esm/insurance-state-8fc9376f.js +28 -0
- package/dist/esm/justifi-additional-questions-form-step-core_8.entry.js +580 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +41 -41
- package/dist/esm/justifi-additional-statement_8.entry.js +402 -0
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +20 -27
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -2
- package/dist/esm/justifi-checkout-core.entry.js +15 -19
- package/dist/esm/justifi-checkout.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +34 -0
- package/dist/esm/justifi-checkouts-list.entry.js +12 -12
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +50 -11
- package/dist/esm/justifi-dispute-management.entry.js +87 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +372 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-owner-form_3.entry.js +14 -24
- package/dist/esm/justifi-payment-details.entry.js +8 -7
- package/dist/esm/justifi-payment-provisioning-core.entry.js +12 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +39 -0
- package/dist/esm/justifi-payments-list.entry.js +11 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -7
- package/dist/esm/justifi-payouts-list-filters.entry.js +23 -0
- package/dist/esm/justifi-payouts-list.entry.js +18 -12
- package/dist/esm/justifi-refund-form.entry.js +6 -9
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +17 -18
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-terminals-list-filters.entry.js +31 -0
- package/dist/esm/justifi-terminals-list.entry.js +10 -10
- package/dist/esm/justifi-tokenize-payment-method.entry.js +9 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-627f73c1.js → package-84f77b11.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +22 -0
- package/dist/esm/parts-186d437f.js +72 -0
- package/dist/esm/payment-details-core.entry.js +13 -11
- package/dist/esm/{payment.service-ca6b5bc5.js → payment.service-064fac31.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +33 -26
- package/dist/esm/payments-list-params-state-b3dab8bc.js +10 -0
- package/dist/esm/payments-table-d6fbab5b.js +28 -0
- package/dist/esm/payout-details-core.entry.js +8 -5
- package/dist/esm/payouts-list-core.entry.js +36 -29
- package/dist/esm/payouts-list-params-state-49618e7a.js +10 -0
- package/dist/esm/payouts-table-2e61a116.js +34 -0
- package/dist/esm/{schema-validations-93a9d504.js → schema-validations-c7d4f9df.js} +2 -2
- package/dist/esm/skeleton-8f71cdf7.js +11 -0
- package/dist/esm/spinner-879489b3.js +10 -0
- package/dist/esm/styled-host-32228b45.js +12 -0
- package/dist/esm/table-filters-menu.entry.js +41 -0
- package/dist/esm/terminals-list-core.entry.js +35 -28
- package/dist/esm/terminals-list-params-state-2c48d35f.js +10 -0
- package/dist/esm/terminals-table-8e42977c.js +29 -0
- package/dist/esm/{utils-1df1e55a.js → utils-54543523.js} +31 -30
- package/dist/esm/utils-d7633e66.js +22 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +6 -1
- package/dist/module/Payment.js +62 -10
- package/dist/module/additional-questions-details2.js +1 -5
- package/dist/module/additional-questions.js +4 -15
- package/dist/module/additional-statement.js +52 -13
- package/dist/module/{justifi-card-form.d.ts → bank-account-form.d.ts} +4 -4
- package/dist/module/bank-account-form.js +6 -0
- package/dist/module/bank-account-form2.js +44 -0
- package/dist/module/billing-form.js +6 -18
- package/dist/module/business-additional-questions-form-step-core.js +8 -21
- package/dist/module/business-additional-questions-form-step.js +3 -15
- package/dist/module/business-bank-account-form-step.js +11 -18
- package/dist/module/business-core-info-form-step-core.js +11 -18
- package/dist/module/business-core-info-form-step.js +5 -11
- package/dist/module/business-core-info.js +6 -11
- package/dist/module/business-details-core2.js +25 -3
- package/dist/module/business-document-upload-form-step.js +12 -18
- package/dist/module/business-document-upload-input-group.js +3 -9
- package/dist/module/business-documents-on-file.js +4 -3
- package/dist/module/business-owners-form-step-core.js +12 -18
- package/dist/module/business-owners-form-step.js +5 -11
- package/dist/module/business-representative-form-inputs.js +6 -11
- package/dist/module/business-representative-form-step-core.js +9 -17
- package/dist/module/business-representative-form-step.js +5 -11
- package/dist/module/business-representative.js +6 -11
- package/dist/module/business-terms-conditions-form-step.js +16 -22
- package/dist/module/business-terms-conditions-text.js +2 -5
- package/dist/module/button.js +6 -12
- package/dist/module/cancellation-policy.js +49 -13
- package/dist/module/{justifi-payment-form.d.ts → card-form.d.ts} +4 -4
- package/dist/module/card-form.js +6 -0
- package/dist/module/card-form2.js +46 -0
- package/dist/module/check-pkg-version.js +76 -1
- package/dist/module/checkout-core.js +55 -30
- package/dist/module/checkouts-list-core2.js +47 -77
- package/dist/module/checkouts-list-params-state.js +10 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +50 -13
- package/dist/module/details.js +3 -5
- package/dist/module/dispute-management-core.js +74 -39
- package/dist/module/dispute-notification.js +41 -8
- package/dist/module/dispute-response-actions.js +117 -0
- package/dist/module/dispute-response-core.js +280 -0
- package/dist/module/dispute-response-form-types.js +59 -0
- package/dist/module/dispute-response.js +198 -0
- package/dist/module/duplicate-charge.js +49 -13
- package/dist/module/electronic-evidence.js +49 -20
- package/dist/module/{table.js → event-types.js} +16 -8
- package/dist/module/event-types2.js +23 -0
- package/dist/module/event-types3.js +22 -0
- package/dist/module/form-alert2.js +2 -1
- package/dist/module/form-control-checkbox2.js +29 -27
- package/dist/module/form-control-date2.js +25 -10
- package/dist/module/form-control-error-text.js +10 -4
- package/dist/module/{payouts-list-filters.d.ts → form-control-file-v2.d.ts} +4 -4
- package/dist/module/form-control-file-v2.js +6 -0
- package/dist/module/form-control-file-v22.js +59 -0
- package/dist/module/form-control-file2.js +25 -10
- package/dist/module/form-control-help-text.js +1 -1
- package/dist/module/form-control-help-text2.js +9 -32
- package/dist/module/form-control-help-text3.js +35 -0
- package/dist/module/form-control-monetary2.js +26 -16
- package/dist/module/form-control-number-masked2.js +25 -11
- package/dist/module/form-control-number.js +24 -15
- package/dist/module/form-control-radio2.js +31 -30
- package/dist/module/form-control-select2.js +25 -10
- package/dist/module/form-control-text2.js +24 -10
- package/dist/module/form-control-textarea2.js +26 -11
- package/dist/module/form-control-tooltip2.js +2 -1
- package/dist/module/form.js +1 -1
- package/dist/module/generic-info-details2.js +1 -5
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +3 -6
- package/dist/module/header-1.js +8 -0
- package/dist/module/{payments-list-filters.d.ts → hidden-input.d.ts} +4 -4
- package/dist/module/hidden-input.js +6 -0
- package/dist/module/hidden-input2.js +100 -0
- package/dist/module/identity-address-form.js +4 -10
- package/dist/module/iframe-input-styles-state.js +23 -0
- package/dist/module/iframe-input.d.ts +11 -0
- package/dist/module/iframe-input.js +6 -0
- package/dist/module/{payment-method-form.js → iframe-input2.js} +83 -131
- package/dist/module/index2.js +167 -3572
- package/dist/module/index3.js +3599 -0
- package/dist/module/insurance-state.js +6 -191
- package/dist/module/justifi-business-details.js +2 -3
- package/dist/module/justifi-business-form.js +16 -36
- package/dist/module/justifi-checkout.js +52 -23
- package/dist/module/justifi-checkouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-checkouts-list-filters.js +77 -0
- package/dist/module/justifi-checkouts-list.js +8 -45
- package/dist/module/justifi-dispute-management.js +109 -34
- package/dist/module/justifi-dispute-response-core.d.ts +11 -0
- package/dist/module/justifi-dispute-response-core.js +6 -0
- package/dist/module/justifi-dispute-response.d.ts +11 -0
- package/dist/module/justifi-dispute-response.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-payment-details.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +12 -24
- package/dist/module/justifi-payments-list-filters.d.ts +11 -0
- package/dist/module/justifi-payments-list-filters.js +94 -0
- package/dist/module/justifi-payments-list.js +9 -58
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-payouts-list-filters.js +66 -0
- package/dist/module/justifi-payouts-list.js +14 -45
- package/dist/module/justifi-refund-form.js +4 -19
- package/dist/module/justifi-season-interruption-insurance.js +16 -5
- package/dist/module/justifi-terminals-list-filters.d.ts +11 -0
- package/dist/module/{terminals-list-filters2.js → justifi-terminals-list-filters.js} +25 -28
- package/dist/module/justifi-terminals-list.js +8 -51
- package/dist/module/justifi-tokenize-payment-method.js +51 -25
- package/dist/module/legal-address-details2.js +1 -5
- package/dist/module/legal-address-form-step-core.js +10 -17
- package/dist/module/legal-address-form-step.js +3 -9
- package/dist/module/legal-address-form.js +5 -10
- package/dist/module/new-payment-method.js +72 -30
- package/dist/module/owner-details2.js +1 -5
- package/dist/module/owner-form-core2.js +10 -25
- package/dist/module/owner-form-inputs2.js +5 -11
- package/dist/module/owner-form.js +5 -11
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -3
- package/dist/module/parts.js +72 -0
- package/dist/module/payment-details-core2.js +11 -9
- package/dist/module/payment-method-options.js +47 -24
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +21 -28
- package/dist/module/payment-provisioning-form-buttons.js +4 -2
- package/dist/module/payment-provisioning-form-steps.js +11 -24
- package/dist/module/payments-list-core2.js +46 -88
- package/dist/module/payments-list-params-state.js +10 -0
- package/dist/module/payout-details-core2.js +6 -3
- package/dist/module/payouts-list-core2.js +53 -83
- package/dist/module/payouts-list-params-state.js +10 -0
- package/dist/module/product-or-service.js +46 -13
- package/dist/module/refund-policy.js +49 -13
- package/dist/module/representative-details2.js +1 -5
- package/dist/module/save-new-payment-method.js +10 -5
- package/dist/module/saved-payment-method.js +19 -6
- package/dist/module/season-interruption-insurance-core.js +29 -19
- package/dist/module/sezzle-payment-method.js +19 -5
- package/dist/module/shipping-details.js +53 -19
- package/dist/module/skeleton.js +4 -34
- package/dist/module/spinner.js +10 -0
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu2.js +12 -2
- package/dist/module/terminals-list-core2.js +43 -79
- package/dist/module/terminals-list-params-state.js +10 -0
- package/dist/module/utils.js +14 -19
- package/dist/module/utils2.js +31 -30
- package/dist/module/utils3.js +25 -30
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Business.d.ts +4 -0
- package/dist/types/api/Checkout.d.ts +1 -3
- package/dist/types/api/ComponentError.d.ts +0 -6
- package/dist/types/api/ComponentEvents.d.ts +23 -0
- package/dist/types/api/Dispute.d.ts +76 -0
- package/dist/types/api/DisputeEvidenceDocument.d.ts +23 -0
- package/dist/types/api/Payment.d.ts +6 -11
- package/dist/types/api/Payout.d.ts +1 -3
- package/dist/types/api/Terminal.d.ts +1 -4
- package/dist/types/api/services/dispute.service.d.ts +14 -0
- package/dist/types/components/billing-form/billing-form.d.ts +0 -5
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +0 -8
- package/dist/types/components/business-details/business-details-core.d.ts +2 -2
- package/dist/types/components/business-details/business-details-loading.d.ts +1 -0
- package/dist/types/components/business-details/business-details.d.ts +2 -10
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +0 -8
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +0 -5
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -11
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -5
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +4 -6
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -8
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +4 -6
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +5 -5
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +5 -5
- package/dist/types/components/business-forms/utils/event-types.d.ts +19 -0
- package/dist/types/components/business-forms/utils/index.d.ts +4 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +7 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +9 -0
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +2 -2
- package/dist/types/components/checkout/message-event-types.d.ts +4 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +3 -3
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +7 -8
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -3
- package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +5 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +2 -24
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +6 -6
- package/dist/types/components/dispute-management/dispute-actions.d.ts +9 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +14 -3
- package/dist/types/components/dispute-management/dispute-management.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +9 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +17 -0
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-actions.d.ts +40 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +46 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-form-types.d.ts +20 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response.d.ts +35 -0
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/additional-statement-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/customer-details-schema.d.ts +10 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/dispute-reason-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/product-or-service-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/refund-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/shipping-details-schema.d.ts +12 -0
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +15 -0
- package/dist/types/components/dispute-management/event-types.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +2 -2
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +3 -3
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +4 -4
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details-core.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details.d.ts +2 -25
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -7
- package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -4
- package/dist/types/components/payments-list/payments-list-params-state.d.ts +5 -0
- package/dist/types/components/payments-list/payments-list.d.ts +2 -24
- package/dist/types/components/payments-list/payments-table.d.ts +7 -7
- package/dist/types/components/payout-details/payout-details-core.d.ts +2 -2
- package/dist/types/components/payout-details/payout-details.d.ts +3 -3
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +7 -8
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +0 -3
- package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +5 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +2 -24
- package/dist/types/components/payouts-list/payouts-table.d.ts +9 -9
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +7 -8
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -4
- package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +5 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +2 -24
- package/dist/types/components/terminals-list/terminals-table.d.ts +4 -4
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -5
- package/dist/types/components.d.ts +465 -1338
- package/dist/types/styles/parts.d.ts +58 -0
- package/dist/types/ui-components/details/utils.d.ts +0 -1
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +3 -3
- package/dist/types/ui-components/form/form-control-date.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +15 -0
- package/dist/types/ui-components/form/form-control-file.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-monetary.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +6 -7
- package/dist/types/ui-components/form/form-control-select.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-text.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -0
- package/dist/types/ui-components/form/form-helpers/form-control-error-text.d.ts +4 -0
- package/dist/types/ui-components/form/form-helpers/form-control-help-text.d.ts +4 -0
- package/dist/types/ui-components/form/form.d.ts +1 -1
- package/dist/types/ui-components/form/hidden-input.d.ts +11 -0
- package/dist/types/ui-components/form/iframe-input-styles-state.d.ts +3 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +21 -0
- package/dist/types/ui-components/headers/header-1.d.ts +6 -0
- package/dist/types/ui-components/headers/header-2.d.ts +6 -0
- package/dist/types/ui-components/headers/header-3.d.ts +6 -0
- package/dist/types/ui-components/index.d.ts +6 -0
- package/dist/types/ui-components/skeleton.d.ts +1 -2
- package/dist/types/ui-components/spinner.d.ts +2 -0
- package/dist/types/ui-components/table/event-types.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +3 -2
- package/dist/webcomponents/p-0201ec6c.entry.js +1 -0
- package/dist/webcomponents/p-02a0b21e.js +1 -0
- package/dist/webcomponents/p-08b8d1f0.entry.js +1 -0
- package/dist/webcomponents/p-0aa63869.entry.js +1 -0
- package/dist/webcomponents/p-0cc6c539.js +1 -0
- package/dist/webcomponents/p-0ccbc022.entry.js +1 -0
- package/dist/webcomponents/{p-1815a43b.js → p-0ea387a2.js} +1 -1
- package/dist/webcomponents/p-0eb86b3f.entry.js +1 -0
- package/dist/webcomponents/p-16ba9bea.js +1 -0
- package/dist/webcomponents/p-174b151e.js +1 -0
- package/dist/webcomponents/p-1ce22da6.entry.js +1 -0
- package/dist/webcomponents/p-1dbae48b.entry.js +1 -0
- package/dist/webcomponents/p-22034555.entry.js +1 -0
- package/dist/webcomponents/p-275f2154.js +1 -0
- package/dist/webcomponents/p-2783e363.js +2 -0
- package/dist/webcomponents/p-2a6f8329.entry.js +1 -0
- package/dist/webcomponents/p-2ed8e8db.entry.js +1 -0
- package/dist/webcomponents/p-323ba4df.entry.js +1 -0
- package/dist/webcomponents/p-32a5bf4e.js +1 -0
- package/dist/webcomponents/p-34c14f59.js +1 -0
- package/dist/webcomponents/p-438df53f.entry.js +1 -0
- package/dist/webcomponents/p-4a576796.js +1 -0
- package/dist/webcomponents/p-4cc3c7f9.js +1 -0
- package/dist/webcomponents/p-4d916b2d.js +1 -0
- package/dist/webcomponents/p-4f569cbf.entry.js +1 -0
- package/dist/webcomponents/p-53cf5687.entry.js +1 -0
- package/dist/webcomponents/{p-544a4e7a.js → p-54d36e97.js} +1 -1
- package/dist/webcomponents/p-57281853.entry.js +1 -0
- package/dist/webcomponents/p-5844a0f0.js +1 -0
- package/dist/webcomponents/p-597bd1e1.entry.js +1 -0
- package/dist/webcomponents/p-5cb947bc.entry.js +1 -0
- package/dist/webcomponents/p-5d3f81c0.entry.js +1 -0
- package/dist/webcomponents/p-663a00cd.entry.js +1 -0
- package/dist/webcomponents/p-6677c60d.entry.js +1 -0
- package/dist/webcomponents/p-667ebd79.js +1 -0
- package/dist/webcomponents/p-66c63ef7.entry.js +1 -0
- package/dist/webcomponents/p-68694a17.entry.js +1 -0
- package/dist/webcomponents/p-6b840696.entry.js +1 -0
- package/dist/webcomponents/p-6fbd6abb.js +1 -0
- package/dist/webcomponents/p-6feeb9f2.js +1 -0
- package/dist/webcomponents/p-7216ef00.entry.js +1 -0
- package/dist/webcomponents/p-733dc19b.entry.js +1 -0
- package/dist/webcomponents/p-73a18b5a.entry.js +1 -0
- package/dist/webcomponents/p-73f9be7c.js +1 -0
- package/dist/webcomponents/{p-4cf7f4ae.js → p-79b7c30d.js} +1 -1
- package/dist/webcomponents/p-7a975a3c.js +1 -0
- package/dist/webcomponents/p-7b9f21cd.entry.js +1 -0
- package/dist/webcomponents/p-808bb677.entry.js +1 -0
- package/dist/webcomponents/p-8a550a5e.entry.js +1 -0
- package/dist/webcomponents/p-8a94d2c8.js +1 -0
- package/dist/webcomponents/p-8c7a81c1.js +1 -0
- package/dist/webcomponents/p-8da3667c.js +1 -0
- package/dist/webcomponents/p-90dc2f2c.js +1 -0
- package/dist/webcomponents/p-95e688bd.entry.js +1 -0
- package/dist/webcomponents/p-96ea95ce.entry.js +1 -0
- package/dist/webcomponents/p-99c92f1f.entry.js +1 -0
- package/dist/webcomponents/p-9c2e00cc.js +1 -0
- package/dist/webcomponents/p-9c652bc3.entry.js +1 -0
- package/dist/webcomponents/p-9e990e7d.entry.js +1 -0
- package/dist/webcomponents/p-9f773228.js +1 -0
- package/dist/webcomponents/p-a17be58e.entry.js +1 -0
- package/dist/webcomponents/p-a3949f32.js +1 -0
- package/dist/webcomponents/p-a41a1843.entry.js +1 -0
- package/dist/webcomponents/p-a520766d.entry.js +1 -0
- package/dist/webcomponents/p-abdbcd8e.js +1 -0
- package/dist/webcomponents/p-ac147eef.entry.js +1 -0
- package/dist/webcomponents/p-af620972.js +1 -0
- package/dist/webcomponents/{p-b0311e88.js → p-af834eb8.js} +1 -1
- package/dist/webcomponents/p-b056034f.entry.js +1 -0
- package/dist/webcomponents/p-b1d4e520.entry.js +1 -0
- package/dist/webcomponents/p-b392ec21.js +1 -0
- package/dist/webcomponents/p-bb61c6e0.js +1 -0
- package/dist/webcomponents/p-bfe9748b.js +1 -0
- package/dist/webcomponents/p-c092cbb2.js +1 -0
- package/dist/webcomponents/p-c2a2b9fe.entry.js +1 -0
- package/dist/webcomponents/p-c740f609.entry.js +1 -0
- package/dist/webcomponents/p-c9670f3c.entry.js +1 -0
- package/dist/webcomponents/{p-bc8205ec.js → p-cb00d4f3.js} +1 -1
- package/dist/webcomponents/{p-89f6691e.js → p-d1c93dd3.js} +1 -1
- package/dist/webcomponents/p-d53c5ea5.entry.js +1 -0
- package/dist/webcomponents/p-d67bb568.entry.js +1 -0
- package/dist/webcomponents/p-d75b52c8.entry.js +1 -0
- package/dist/webcomponents/p-d960db89.entry.js +1 -0
- package/dist/webcomponents/{p-c8243721.js → p-e19589a2.js} +1 -1
- package/dist/webcomponents/p-ecced6e5.entry.js +1 -0
- package/dist/webcomponents/p-ed8918d1.entry.js +1 -0
- package/dist/webcomponents/p-ee4a2aac.entry.js +1 -0
- package/dist/webcomponents/p-ef4c49b9.js +1 -0
- package/dist/webcomponents/p-f0f3442e.entry.js +1 -0
- package/dist/webcomponents/p-f20b6ce1.js +1 -0
- package/dist/webcomponents/{p-c13a7d10.js → p-f4722957.js} +1 -1
- package/dist/webcomponents/p-f88d5c0d.entry.js +1 -0
- package/dist/webcomponents/{p-628693c1.entry.js → p-f9fdcc1a.entry.js} +4 -4
- package/dist/webcomponents/p-fa2e3dc7.entry.js +1 -0
- package/dist/webcomponents/{p-ccbff4fa.entry.js → p-faa35b47.entry.js} +1 -1
- package/dist/webcomponents/p-fc3daedd.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-form-types-719b7f52.js +0 -50
- package/dist/cjs/button-3f400a66.js +0 -26
- package/dist/cjs/check-pkg-version-fe8c72a9.js +0 -24
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +0 -35
- package/dist/cjs/checkouts-table-00b6482f.js +0 -47
- package/dist/cjs/dispute-30c806f6.js +0 -10
- package/dist/cjs/exported-parts-a994d693.js +0 -9
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +0 -641
- package/dist/cjs/form-control-error-text.cjs.entry.js +0 -21
- package/dist/cjs/form-control-textarea.cjs.entry.js +0 -49
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +0 -173
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -79
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -80
- package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +0 -320
- package/dist/cjs/justifi-payment-form.cjs.entry.js +0 -141
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +0 -34
- package/dist/cjs/pagination-menu_2.cjs.entry.js +0 -54
- package/dist/cjs/payments-list-filters.cjs.entry.js +0 -40
- package/dist/cjs/payments-table-7087e771.js +0 -31
- package/dist/cjs/payouts-list-filters.cjs.entry.js +0 -24
- package/dist/cjs/payouts-table-4858eb84.js +0 -37
- package/dist/cjs/skeleton-748c5dde.js +0 -43
- package/dist/cjs/styled-host-1adf46c3.js +0 -14
- package/dist/cjs/terminals-list-filters.cjs.entry.js +0 -32
- package/dist/cjs/terminals-table-12410159.js +0 -32
- package/dist/cjs/utils-189dc30d.js +0 -35
- package/dist/cjs/utils-ba79e868.js +0 -37
- package/dist/collection/components/bank-account-form/bank-account-form.js +0 -281
- package/dist/collection/components/billing-form/billing-form.css +0 -51
- package/dist/collection/components/business-details/shared-business-details.css +0 -3
- package/dist/collection/components/business-forms/business-form/business-form.css +0 -121
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +0 -18
- package/dist/collection/components/business-forms/utils/business-form-types.js +0 -48
- package/dist/collection/components/card-form/card-form.js +0 -300
- package/dist/collection/components/checkout/checkout-core.css +0 -110
- package/dist/collection/components/checkout/form-check-input.css +0 -20
- package/dist/collection/components/checkout/header.css +0 -4
- package/dist/collection/components/checkout/payment-method-options.css +0 -15
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +0 -90
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +0 -16
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +0 -12
- package/dist/collection/components/dispute-management/dispute.js +0 -8
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +0 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +0 -11
- package/dist/collection/components/payment-form/payment-form.css +0 -97
- package/dist/collection/components/payment-form/payment-form.js +0 -372
- package/dist/collection/components/payment-form/payment-method-selector.css +0 -39
- package/dist/collection/components/payment-form/payment-method-selector.js +0 -74
- package/dist/collection/components/payment-method-form/message-event-types.js +0 -16
- package/dist/collection/components/payment-method-form/payment-method-form.css +0 -13
- package/dist/collection/components/payment-method-form/payment-method-form.js +0 -298
- package/dist/collection/components/refund-form/refund-form.css +0 -59
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +0 -9
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -52
- package/dist/collection/utils/get-computed-theme.js +0 -50
- package/dist/esm/business-form-types-8fd61b0e.js +0 -50
- package/dist/esm/button-34e75e0f.js +0 -24
- package/dist/esm/check-pkg-version-fbf01ce7.js +0 -22
- package/dist/esm/checkouts-list-filters.entry.js +0 -31
- package/dist/esm/checkouts-table-cd33b57c.js +0 -43
- package/dist/esm/dispute-4d2e0a04.js +0 -10
- package/dist/esm/exported-parts-70e7a12b.js +0 -7
- package/dist/esm/form-control-checkbox_9.entry.js +0 -629
- package/dist/esm/form-control-error-text.entry.js +0 -17
- package/dist/esm/form-control-textarea.entry.js +0 -45
- package/dist/esm/justifi-additional-statement_11.entry.js +0 -159
- package/dist/esm/justifi-bank-account-form.entry.js +0 -75
- package/dist/esm/justifi-card-form.entry.js +0 -76
- package/dist/esm/justifi-new-payment-method_5.entry.js +0 -312
- package/dist/esm/justifi-payment-form.entry.js +0 -137
- package/dist/esm/justifi-payment-method-selector.entry.js +0 -30
- package/dist/esm/pagination-menu_2.entry.js +0 -49
- package/dist/esm/payments-list-filters.entry.js +0 -36
- package/dist/esm/payments-table-bba91324.js +0 -27
- package/dist/esm/payouts-list-filters.entry.js +0 -20
- package/dist/esm/payouts-table-edff9bbe.js +0 -33
- package/dist/esm/skeleton-145a80d4.js +0 -41
- package/dist/esm/styled-host-e0ddb759.js +0 -12
- package/dist/esm/terminals-list-filters.entry.js +0 -28
- package/dist/esm/terminals-table-dc787616.js +0 -28
- package/dist/esm/utils-218275b7.js +0 -27
- package/dist/esm/utils-4006c425.js +0 -33
- package/dist/module/Analytics.js +0 -78
- package/dist/module/business-form-types.js +0 -50
- package/dist/module/checkouts-list-filters.d.ts +0 -11
- package/dist/module/checkouts-list-filters.js +0 -6
- package/dist/module/checkouts-list-filters2.js +0 -80
- package/dist/module/counter-dispute.js +0 -189
- package/dist/module/dispute-reason.js +0 -45
- package/dist/module/exported-parts.js +0 -7
- package/dist/module/form-control-error-text.d.ts +0 -11
- package/dist/module/form-control-error-text2.js +0 -35
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -104
- package/dist/module/justifi-card-form.js +0 -106
- package/dist/module/justifi-counter-dispute.d.ts +0 -11
- package/dist/module/justifi-counter-dispute.js +0 -6
- package/dist/module/justifi-dispute-reason.d.ts +0 -11
- package/dist/module/justifi-dispute-reason.js +0 -6
- package/dist/module/justifi-payment-form.js +0 -216
- package/dist/module/justifi-payment-method-form.d.ts +0 -11
- package/dist/module/justifi-payment-method-form.js +0 -6
- package/dist/module/justifi-payment-method-selector.d.ts +0 -11
- package/dist/module/justifi-payment-method-selector.js +0 -6
- package/dist/module/payment-method-selector.js +0 -47
- package/dist/module/payments-list-filters.js +0 -6
- package/dist/module/payments-list-filters2.js +0 -97
- package/dist/module/payouts-list-filters.js +0 -6
- package/dist/module/payouts-list-filters2.js +0 -69
- package/dist/module/terminals-list-filters.d.ts +0 -11
- package/dist/module/terminals-list-filters.js +0 -6
- package/dist/module/utils5.js +0 -27
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -62
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -76
- package/dist/types/components/card-form/card-form.d.ts +0 -72
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +0 -14
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +0 -4
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +0 -3
- package/dist/types/components/dispute-management/dispute.d.ts +0 -7
- package/dist/types/components/payment-form/payment-form.d.ts +0 -36
- package/dist/types/components/payment-form/payment-method-selector.d.ts +0 -10
- package/dist/types/components/payment-form/tokenize.d.ts +0 -5
- package/dist/types/components/payment-method-form/message-event-types.d.ts +0 -16
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +0 -25
- package/dist/types/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -5
- package/dist/types/utils/get-computed-theme.d.ts +0 -3
- package/dist/webcomponents/p-08b0fb31.js +0 -1
- package/dist/webcomponents/p-0a963f7e.entry.js +0 -1
- package/dist/webcomponents/p-0d6ddff2.js +0 -1
- package/dist/webcomponents/p-0fbab710.entry.js +0 -1
- package/dist/webcomponents/p-2338affa.js +0 -1
- package/dist/webcomponents/p-25d2ed4c.js +0 -1
- package/dist/webcomponents/p-286b87ab.js +0 -1
- package/dist/webcomponents/p-28bd6dcd.js +0 -1
- package/dist/webcomponents/p-297faf3d.js +0 -1
- package/dist/webcomponents/p-29c8fa3d.entry.js +0 -1
- package/dist/webcomponents/p-2f422aad.entry.js +0 -1
- package/dist/webcomponents/p-3186d1fb.entry.js +0 -1
- package/dist/webcomponents/p-3bfb4f80.entry.js +0 -1
- package/dist/webcomponents/p-3c654c07.js +0 -1
- package/dist/webcomponents/p-3ed7fc42.entry.js +0 -1
- package/dist/webcomponents/p-404a847c.entry.js +0 -1
- package/dist/webcomponents/p-41c1c1f7.entry.js +0 -1
- package/dist/webcomponents/p-41c7ee13.entry.js +0 -1
- package/dist/webcomponents/p-420adedb.entry.js +0 -1
- package/dist/webcomponents/p-431d7a9e.entry.js +0 -1
- package/dist/webcomponents/p-448826a7.entry.js +0 -1
- package/dist/webcomponents/p-469804a9.entry.js +0 -1
- package/dist/webcomponents/p-486da67e.entry.js +0 -1
- package/dist/webcomponents/p-4a5e5574.entry.js +0 -1
- package/dist/webcomponents/p-52f9d8a0.entry.js +0 -1
- package/dist/webcomponents/p-54145a37.entry.js +0 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +0 -1
- package/dist/webcomponents/p-57125bd1.js +0 -1
- package/dist/webcomponents/p-5e7c60d8.js +0 -1
- package/dist/webcomponents/p-5ec82df8.entry.js +0 -1
- package/dist/webcomponents/p-673cf8c4.js +0 -1
- package/dist/webcomponents/p-69527219.entry.js +0 -1
- package/dist/webcomponents/p-6cc30da2.js +0 -1
- package/dist/webcomponents/p-6d51aed8.entry.js +0 -1
- package/dist/webcomponents/p-72819173.entry.js +0 -1
- package/dist/webcomponents/p-74da98da.js +0 -1
- package/dist/webcomponents/p-8037704c.js +0 -1
- package/dist/webcomponents/p-91de21cc.js +0 -1
- package/dist/webcomponents/p-942be28b.entry.js +0 -1
- package/dist/webcomponents/p-95ec39f6.entry.js +0 -1
- package/dist/webcomponents/p-9690eca9.entry.js +0 -1
- package/dist/webcomponents/p-9c9c7dac.js +0 -1
- package/dist/webcomponents/p-a76ece26.js +0 -1
- package/dist/webcomponents/p-a7830e98.entry.js +0 -1
- package/dist/webcomponents/p-a8b4f429.js +0 -1
- package/dist/webcomponents/p-abe513e6.entry.js +0 -1
- package/dist/webcomponents/p-ada9ac19.entry.js +0 -1
- package/dist/webcomponents/p-b0dc68b3.entry.js +0 -1
- package/dist/webcomponents/p-b3cac576.entry.js +0 -1
- package/dist/webcomponents/p-b97233cc.entry.js +0 -1
- package/dist/webcomponents/p-bc1984ec.entry.js +0 -1
- package/dist/webcomponents/p-bfb990fc.entry.js +0 -1
- package/dist/webcomponents/p-c1bf9285.entry.js +0 -1
- package/dist/webcomponents/p-c3fb5d3a.entry.js +0 -1
- package/dist/webcomponents/p-c420cb7d.entry.js +0 -1
- package/dist/webcomponents/p-cd19c597.entry.js +0 -1
- package/dist/webcomponents/p-d1f75fa6.js +0 -1
- package/dist/webcomponents/p-d291dc4c.entry.js +0 -1
- package/dist/webcomponents/p-d2eb61e6.entry.js +0 -1
- package/dist/webcomponents/p-d516e700.js +0 -1
- package/dist/webcomponents/p-da176d01.entry.js +0 -1
- package/dist/webcomponents/p-dcb288a3.entry.js +0 -1
- package/dist/webcomponents/p-df3ca87f.entry.js +0 -1
- package/dist/webcomponents/p-df5a1202.entry.js +0 -1
- package/dist/webcomponents/p-e2ce097c.js +0 -1
- package/dist/webcomponents/p-e5790011.entry.js +0 -1
- package/dist/webcomponents/p-e69b2ff8.entry.js +0 -1
- package/dist/webcomponents/p-e8be1b55.entry.js +0 -1
- package/dist/webcomponents/p-e99957ff.entry.js +0 -1
- package/dist/webcomponents/p-eb9ba917.entry.js +0 -1
- package/dist/webcomponents/p-ed95feec.entry.js +0 -1
- package/dist/webcomponents/p-f28a4c03.entry.js +0 -1
- package/dist/webcomponents/p-f698d6d9.entry.js +0 -1
- package/dist/webcomponents/p-fad19d75.js +0 -2
- package/dist/webcomponents/p-fc6f697d.entry.js +0 -1
- package/dist/webcomponents/p-ffe27126.entry.js +0 -1
- package/dist/webcomponents/webcomponents.css +0 -6
- /package/dist/collection/{components/payment-form/tokenize.js → api/ComponentEvents.js} +0 -0
- /package/dist/collection/components/{payment-method-form → checkout}/payment-method-responses.js +0 -0
- /package/dist/types/components/{payment-method-form → checkout}/payment-method-responses.d.ts +0 -0
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { B as Button } from './button.js';
|
|
3
|
-
import {
|
|
3
|
+
import { R as dropdownMenu } from './parts.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './custom-popper2.js';
|
|
5
5
|
|
|
6
|
+
const hasFilters = (params) => {
|
|
7
|
+
const paginationKeys = ['after_cursor', 'before_cursor'];
|
|
8
|
+
const paramKeys = Object.keys(params);
|
|
9
|
+
const filterKeys = paramKeys.filter((paramKey) => !paginationKeys.includes(paramKey));
|
|
10
|
+
return !!filterKeys.length;
|
|
11
|
+
};
|
|
12
|
+
|
|
6
13
|
const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu extends HTMLElement {
|
|
7
14
|
constructor() {
|
|
8
15
|
super();
|
|
@@ -22,8 +29,11 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
|
|
|
22
29
|
hide() {
|
|
23
30
|
this.menu.classList.remove('show');
|
|
24
31
|
}
|
|
32
|
+
componentWillLoad() {
|
|
33
|
+
this.showClearButton = hasFilters(this.params);
|
|
34
|
+
}
|
|
25
35
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'b50b85bc459e9f217a70c49505479944572b5daf', class: "d-flex gap-2" }, h("div", { key: 'eedc2d34795d42f10b1db7b7f163096f06b519ff', class: "dropdown pb-3" }, h(Button, { key: '97d365b9c8ac6e5f33fa98768ffa55b988c90a17', variant: "primary", type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: 'e0f52c3aeb555de14d1e999818468debc59a9fa7', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'bd83ec6ea2949b2313078431c91c711682c5ed53', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '08a53808fffd6f029ac83229fa86d13bacf39a7b' })))), h("div", { key: 'f28533474420ac5d80ba3ab6bb5e919ebf644779' }, h(Button, { key: 'cde26e935489d12a34758cf766bcb87296e0f5e8', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
27
37
|
}
|
|
28
38
|
static get watchers() { return {
|
|
29
39
|
"params": ["watchParamsHandler"]
|
|
@@ -3,16 +3,11 @@ import './Checkout.js';
|
|
|
3
3
|
import { p as pagingDefaults } from './Pagination.js';
|
|
4
4
|
import './Payment.js';
|
|
5
5
|
import './SubAccount.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$5 } from './form-control-text2.js';
|
|
12
|
-
import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
|
|
13
|
-
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
14
|
-
import { d as defineCustomElement$2 } from './table-filters-menu2.js';
|
|
15
|
-
import { d as defineCustomElement$1 } from './terminals-list-filters2.js';
|
|
6
|
+
import { f as tableHeadCell, g as getAlternateTableCellPart, j as table, k as tableCell } from './parts.js';
|
|
7
|
+
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types.js';
|
|
8
|
+
import './details.js';
|
|
9
|
+
import { o as onQueryParamsChange, q as queryParams } from './terminals-list-params-state.js';
|
|
10
|
+
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
16
11
|
|
|
17
12
|
const MapTerminalStatusToBadge = (status) => {
|
|
18
13
|
switch (status) {
|
|
@@ -27,47 +22,38 @@ const MapTerminalStatusToBadge = (status) => {
|
|
|
27
22
|
|
|
28
23
|
const defaultColumnsKeys = 'nickname,provider_id,status';
|
|
29
24
|
const terminalTableColumns = {
|
|
30
|
-
nickname: () => (h("th", { part:
|
|
31
|
-
provider_id: () => (h("th", { part:
|
|
32
|
-
sub_account_name: () => (h("th", { part:
|
|
33
|
-
status: () => (h("th", { part:
|
|
25
|
+
nickname: () => (h("th", { part: tableHeadCell, scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
26
|
+
provider_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
27
|
+
sub_account_name: () => (h("th", { part: tableHeadCell, scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
28
|
+
status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
34
29
|
};
|
|
35
30
|
const terminalTableCells = {
|
|
36
|
-
nickname: (value) => (h("td", { part:
|
|
37
|
-
provider_id: (value) => (h("td", { part:
|
|
38
|
-
sub_account_name: (value) => (h("td", { part:
|
|
39
|
-
status: (value) => (h("td", { part:
|
|
31
|
+
nickname: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
|
|
32
|
+
provider_id: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
|
|
33
|
+
sub_account_name: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
|
|
34
|
+
status: (value, index) => (h("td", { part: getAlternateTableCellPart(index), innerHTML: MapTerminalStatusToBadge(value) })),
|
|
40
35
|
};
|
|
41
36
|
|
|
42
37
|
const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCore extends HTMLElement {
|
|
43
38
|
constructor() {
|
|
44
39
|
super();
|
|
45
40
|
this.__registerHost();
|
|
46
|
-
this.
|
|
41
|
+
this.clickEvent = createEvent(this, "click-event", 7);
|
|
47
42
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
48
43
|
this.handleClickPrevious = (beforeCursor) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
|
|
44
|
+
this.pagingParams = { before_cursor: beforeCursor };
|
|
45
|
+
this.clickEvent.emit({ name: TableClickActions.previous });
|
|
52
46
|
};
|
|
53
47
|
this.handleClickNext = (afterCursor) => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
|
|
48
|
+
this.pagingParams = { after_cursor: afterCursor };
|
|
49
|
+
this.clickEvent.emit({ name: TableClickActions.next });
|
|
57
50
|
};
|
|
58
51
|
this.rowClickHandler = (e) => {
|
|
59
52
|
const clickedTerminalID = e.target.closest('tr').dataset.rowEntityId;
|
|
60
53
|
if (!clickedTerminalID)
|
|
61
54
|
return;
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
this.setParamsOnChange = (name, value) => {
|
|
65
|
-
let newParams = { [name]: value };
|
|
66
|
-
this.params = onFilterChange(newParams, this.params);
|
|
67
|
-
};
|
|
68
|
-
this.clearParams = () => {
|
|
69
|
-
this.errorMessage = '';
|
|
70
|
-
this.params = {};
|
|
55
|
+
const terminalData = this.terminals.find((terminal) => terminal.id === clickedTerminalID);
|
|
56
|
+
this.clickEvent.emit({ name: TableClickActions.row, data: terminalData });
|
|
71
57
|
};
|
|
72
58
|
this.getTerminals = undefined;
|
|
73
59
|
this.getSubAccounts = undefined;
|
|
@@ -78,21 +64,28 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
78
64
|
this.loading = true;
|
|
79
65
|
this.errorMessage = undefined;
|
|
80
66
|
this.paging = pagingDefaults;
|
|
81
|
-
this.
|
|
67
|
+
this.pagingParams = {};
|
|
82
68
|
}
|
|
83
69
|
updateOnPropChange() {
|
|
84
|
-
this.
|
|
70
|
+
this.fetchData();
|
|
85
71
|
}
|
|
86
72
|
componentWillLoad() {
|
|
87
73
|
this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
|
|
88
74
|
if (this.getTerminals && this.getSubAccounts) {
|
|
89
|
-
this.
|
|
75
|
+
this.fetchData();
|
|
90
76
|
}
|
|
77
|
+
onQueryParamsChange('set', () => {
|
|
78
|
+
this.pagingParams = {};
|
|
79
|
+
});
|
|
80
|
+
onQueryParamsChange('reset', () => {
|
|
81
|
+
this.pagingParams = {};
|
|
82
|
+
this.errorMessage = '';
|
|
83
|
+
});
|
|
91
84
|
}
|
|
92
|
-
|
|
85
|
+
fetchData() {
|
|
93
86
|
this.loading = true;
|
|
94
87
|
this.getTerminals({
|
|
95
|
-
params: this.
|
|
88
|
+
params: this.requestParams,
|
|
96
89
|
onSuccess: async ({ terminals, pagingInfo }) => {
|
|
97
90
|
this.terminals = terminals;
|
|
98
91
|
this.paging = pagingInfo;
|
|
@@ -139,6 +132,10 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
139
132
|
},
|
|
140
133
|
});
|
|
141
134
|
}
|
|
135
|
+
get requestParams() {
|
|
136
|
+
const combinedParams = Object.assign(Object.assign({}, queryParams), this.pagingParams);
|
|
137
|
+
return combinedParams;
|
|
138
|
+
}
|
|
142
139
|
get subAccountParams() {
|
|
143
140
|
let accountIdNumbers = this.terminals.map((terminal) => terminal.account_id);
|
|
144
141
|
let uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
@@ -158,10 +155,11 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
158
155
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
159
156
|
}
|
|
160
157
|
render() {
|
|
161
|
-
return (h("div", { key: '
|
|
158
|
+
return (h("div", { key: 'a293f76edb152df4636282a1bdb64526743ba62b' }, h("div", { key: '91c87549f3da243bcbc5e8c3f30690b4f3568312', class: "table-wrapper" }, h("table", { key: 'b8666ef07d7cddecfd576520004cb9ae369816d0', class: "table table-hover", part: table }, h("thead", { key: '82f882e9c8ad8cb8b86fdd8054b2db202f31aee6', class: "table-head sticky-top" }, h("tr", { key: 'db96b27008b1cdfb394f7480d163ba98a564e654', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'afe168ca0facd25953f8e23c82ee40b37ff56418', class: "table-body" }, h(TableLoadingState, { key: 'fa4a276edaa35687efd922d987b51248670aad4c', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a7450b6fc3b6e659c46c57c4bb1e06c8102da809', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '89894e4c62d1ec4b4d10f1ca8fd50098e655dcf1', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'ba93ff43a8562b4e77b48a0a026d75d9f84e5249', class: "sticky-bottom" }, h("tr", { key: 'bd75b89450eec1db55c7e92b2e79eab559605bba', class: "table-light align-middle" }, h("td", { key: 'b27b8a0bbe6c2d38393684752809d5e909948567', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '959649b1f3c8099c5b929543557823eccd3e9dd9', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
162
159
|
}
|
|
163
160
|
static get watchers() { return {
|
|
164
|
-
"
|
|
161
|
+
"queryParams": ["updateOnPropChange"],
|
|
162
|
+
"pagingParams": ["updateOnPropChange"],
|
|
165
163
|
"getTerminals": ["updateOnPropChange"],
|
|
166
164
|
"getSubAccounts": ["updateOnPropChange"],
|
|
167
165
|
"columns": ["updateOnPropChange"]
|
|
@@ -176,9 +174,10 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
176
174
|
"loading": [32],
|
|
177
175
|
"errorMessage": [32],
|
|
178
176
|
"paging": [32],
|
|
179
|
-
"
|
|
177
|
+
"pagingParams": [32]
|
|
180
178
|
}, undefined, {
|
|
181
|
-
"
|
|
179
|
+
"queryParams": ["updateOnPropChange"],
|
|
180
|
+
"pagingParams": ["updateOnPropChange"],
|
|
182
181
|
"getTerminals": ["updateOnPropChange"],
|
|
183
182
|
"getSubAccounts": ["updateOnPropChange"],
|
|
184
183
|
"columns": ["updateOnPropChange"]
|
|
@@ -187,49 +186,14 @@ function defineCustomElement() {
|
|
|
187
186
|
if (typeof customElements === "undefined") {
|
|
188
187
|
return;
|
|
189
188
|
}
|
|
190
|
-
const components = ["terminals-list-core", "
|
|
189
|
+
const components = ["terminals-list-core", "pagination-menu"];
|
|
191
190
|
components.forEach(tagName => { switch (tagName) {
|
|
192
191
|
case "terminals-list-core":
|
|
193
192
|
if (!customElements.get(tagName)) {
|
|
194
193
|
customElements.define(tagName, TerminalsListCore);
|
|
195
194
|
}
|
|
196
195
|
break;
|
|
197
|
-
case "custom-popper":
|
|
198
|
-
if (!customElements.get(tagName)) {
|
|
199
|
-
defineCustomElement$8();
|
|
200
|
-
}
|
|
201
|
-
break;
|
|
202
|
-
case "form-control-error-text":
|
|
203
|
-
if (!customElements.get(tagName)) {
|
|
204
|
-
defineCustomElement$7();
|
|
205
|
-
}
|
|
206
|
-
break;
|
|
207
|
-
case "form-control-select":
|
|
208
|
-
if (!customElements.get(tagName)) {
|
|
209
|
-
defineCustomElement$6();
|
|
210
|
-
}
|
|
211
|
-
break;
|
|
212
|
-
case "form-control-text":
|
|
213
|
-
if (!customElements.get(tagName)) {
|
|
214
|
-
defineCustomElement$5();
|
|
215
|
-
}
|
|
216
|
-
break;
|
|
217
|
-
case "form-control-tooltip":
|
|
218
|
-
if (!customElements.get(tagName)) {
|
|
219
|
-
defineCustomElement$4();
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
196
|
case "pagination-menu":
|
|
223
|
-
if (!customElements.get(tagName)) {
|
|
224
|
-
defineCustomElement$3();
|
|
225
|
-
}
|
|
226
|
-
break;
|
|
227
|
-
case "table-filters-menu":
|
|
228
|
-
if (!customElements.get(tagName)) {
|
|
229
|
-
defineCustomElement$2();
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
232
|
-
case "terminals-list-filters":
|
|
233
197
|
if (!customElements.get(tagName)) {
|
|
234
198
|
defineCustomElement$1();
|
|
235
199
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { c as createStore } from './index2.js';
|
|
2
|
+
|
|
3
|
+
const initialState = {};
|
|
4
|
+
const terminalsListQueryParams = createStore(() => initialState);
|
|
5
|
+
const { state: queryParams, on: onQueryParamsChange } = terminalsListQueryParams;
|
|
6
|
+
const clearParams = () => {
|
|
7
|
+
terminalsListQueryParams.reset();
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { clearParams as c, onQueryParamsChange as o, queryParams as q };
|
package/dist/module/utils.js
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
+
import { t as text, h as heading2, a as heading1 } from './parts.js';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
h("
|
|
5
|
-
|
|
6
|
-
const ErrorState = (errorMessage) => (h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
|
|
7
|
-
h("div", null, errorMessage)));
|
|
8
|
-
const DetailSectionTitle = (props) => [
|
|
9
|
-
h("h5", { part: "detail-section-title", class: "mt-4" }, props.sectionTitle),
|
|
10
|
-
h("hr", null),
|
|
11
|
-
];
|
|
4
|
+
const ErrorState = (errorMessage) => (h("main", { class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
|
|
5
|
+
h("p", { part: text }, errorMessage)));
|
|
6
|
+
const DetailSectionTitle = (props) => (h("h2", { part: heading2, class: "mt-4 fs-5 border-bottom pb-3" }, props.sectionTitle));
|
|
12
7
|
const DetailItem = ({ title, value, }) => title && value ? (h("div", { class: "d-table-row gap-2" },
|
|
13
|
-
h("span", {
|
|
14
|
-
h("span", {
|
|
15
|
-
const EntityHeadInfoItem = ({ title, value, classes, }) => (h("div", {
|
|
16
|
-
h("span", {
|
|
17
|
-
h("span", {
|
|
18
|
-
const EntityHeadInfo = ({ title, slot, badge }, children) => (h("div", { slot: slot,
|
|
8
|
+
h("span", { class: "fw-bold d-table-cell px-2", part: text }, title),
|
|
9
|
+
h("span", { class: "flex-1 d-table-cell px-2 text-wrap", part: text, innerHTML: value }))) : null;
|
|
10
|
+
const EntityHeadInfoItem = ({ title, value, classes, }) => (h("div", { class: `d-flex flex-column ${classes}` },
|
|
11
|
+
h("span", { class: "fw-bold border-1 border-bottom ps-2 pe-2", part: heading2 }, title),
|
|
12
|
+
h("span", { class: "pt-2 ps-2 pe-2", part: text }, value)));
|
|
13
|
+
const EntityHeadInfo = ({ title, slot, badge }, children) => (h("div", { slot: slot, class: "p-2" },
|
|
19
14
|
h("div", { class: "d-flex flex-row align-items-center gap-2 mb-2" },
|
|
20
|
-
h("h1", { class: "m-0", part:
|
|
15
|
+
h("h1", { class: "m-0", part: heading1 }, title),
|
|
21
16
|
badge),
|
|
22
|
-
h("div", {
|
|
17
|
+
h("div", { class: "d-flex flex-row align-items-top", part: text }, children)));
|
|
23
18
|
const CodeBlock = ({ metadata }) => metadata && Object.keys(metadata).length ? (h("div", { class: 'mt-4' },
|
|
24
|
-
h("pre", {
|
|
19
|
+
h("pre", { class: "p-2", "aria-label": "metadata content" },
|
|
25
20
|
h("code", null, JSON.stringify(metadata, null, 2))))) : null;
|
|
26
21
|
|
|
27
|
-
export { CodeBlock as C, DetailSectionTitle as D, ErrorState as E,
|
|
22
|
+
export { CodeBlock as C, DetailSectionTitle as D, ErrorState as E, DetailItem as a, EntityHeadInfo as b, EntityHeadInfoItem as c };
|
package/dist/module/utils2.js
CHANGED
|
@@ -3924,7 +3924,9 @@ const convertToLocal = (dateString, options) => {
|
|
|
3924
3924
|
if (!dateString)
|
|
3925
3925
|
return '';
|
|
3926
3926
|
const dateObj = new Date(dateString);
|
|
3927
|
-
const localDate = new Date(dateObj.toLocaleString('en-US', {
|
|
3927
|
+
const localDate = new Date(dateObj.toLocaleString('en-US', {
|
|
3928
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
3929
|
+
}));
|
|
3928
3930
|
if (showDisplayDate) {
|
|
3929
3931
|
return format(localDate, 'MMM d, yyyy');
|
|
3930
3932
|
}
|
|
@@ -3935,7 +3937,7 @@ const convertToLocal = (dateString, options) => {
|
|
|
3935
3937
|
return format(localDate, 'h:mmaaa');
|
|
3936
3938
|
}
|
|
3937
3939
|
else if (showInputDateTime) {
|
|
3938
|
-
return format(localDate,
|
|
3940
|
+
return format(localDate, "yyyy-MM-dd'T'HH:mm");
|
|
3939
3941
|
}
|
|
3940
3942
|
};
|
|
3941
3943
|
// String Manipulation
|
|
@@ -3959,31 +3961,30 @@ function isEmptyObject(obj) {
|
|
|
3959
3961
|
const isInRange = (num, min, max) => {
|
|
3960
3962
|
return num >= min && num <= max;
|
|
3961
3963
|
};
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
}
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
const
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
export { formatDate as a, formatTime as b, formatCurrency as c, formatDisplayDate as d, isInRange as e, formatMediumDate as f, formatTimeSeconds as g, snakeToCamel as h, isEmptyObject as i, convertToLocal as j, convertToUTC as k, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
|
|
3964
|
+
function removeAttribute(htmlString, attribute) {
|
|
3965
|
+
const tempDiv = document.createElement('div');
|
|
3966
|
+
tempDiv.innerHTML = htmlString;
|
|
3967
|
+
const elementsWithStyle = tempDiv.querySelectorAll(`[${attribute}]`);
|
|
3968
|
+
elementsWithStyle.forEach((element) => {
|
|
3969
|
+
element.removeAttribute(attribute);
|
|
3970
|
+
});
|
|
3971
|
+
return tempDiv.innerHTML;
|
|
3972
|
+
}
|
|
3973
|
+
function addAttribute(htmlString, tagName, attribute, value) {
|
|
3974
|
+
const tempDiv = document.createElement('div');
|
|
3975
|
+
tempDiv.innerHTML = htmlString;
|
|
3976
|
+
const elements = tempDiv.getElementsByTagName(tagName);
|
|
3977
|
+
Array.from(elements).forEach((element) => {
|
|
3978
|
+
element.setAttribute(attribute, value);
|
|
3979
|
+
});
|
|
3980
|
+
return tempDiv.innerHTML;
|
|
3981
|
+
}
|
|
3982
|
+
function processHTML(htmlString, functions) {
|
|
3983
|
+
let processedHTML = htmlString;
|
|
3984
|
+
functions.forEach((func) => {
|
|
3985
|
+
processedHTML = func(processedHTML);
|
|
3986
|
+
});
|
|
3987
|
+
return processedHTML;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
export { formatDate as a, formatTime as b, formatCurrency as c, formatDisplayDate as d, isInRange as e, formatMediumDate as f, formatTimeSeconds as g, snakeToCamel as h, isEmptyObject as i, convertToLocal as j, convertToUTC as k, addAttribute as l, processHTML as p, removeAttribute as r, snakeCaseToHumanReadable as s };
|
package/dist/module/utils3.js
CHANGED
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
delete newParams.after_cursor;
|
|
16
|
-
Object.keys(newFilters).forEach((key) => {
|
|
17
|
-
if (newFilters[key].length) {
|
|
18
|
-
newParams[key] = newFilters[key];
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
delete newParams[key];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return newParams;
|
|
1
|
+
import { C as ComponentErrorCodes } from './ComponentError.js';
|
|
2
|
+
|
|
3
|
+
// Errors on [capital]/config/locales/en.yml
|
|
4
|
+
// Add more errors as needed
|
|
5
|
+
const API_ERRORS = {
|
|
6
|
+
NOT_AUTHENTICATED: 'not_authenticated',
|
|
7
|
+
INVALID_PARAMETER: 'invalid_parameter',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const getErrorMessage = (error) => {
|
|
11
|
+
if (typeof error === 'string') {
|
|
12
|
+
return error;
|
|
13
|
+
}
|
|
14
|
+
return error.message;
|
|
25
15
|
};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
const getErrorCode = (code) => {
|
|
17
|
+
switch (code) {
|
|
18
|
+
case API_ERRORS.NOT_AUTHENTICATED:
|
|
19
|
+
return ComponentErrorCodes.NOT_AUTHENTICATED;
|
|
20
|
+
case API_ERRORS.INVALID_PARAMETER:
|
|
21
|
+
return ComponentErrorCodes.INVALID_PARAMETER;
|
|
22
|
+
// add more cases as needed
|
|
23
|
+
default:
|
|
24
|
+
return ComponentErrorCodes.FETCH_ERROR;
|
|
25
|
+
}
|
|
31
26
|
};
|
|
32
27
|
|
|
33
|
-
export {
|
|
28
|
+
export { getErrorCode as a, getErrorMessage as g };
|
package/dist/module/utils4.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
INVALID_PARAMETER: 'invalid_parameter',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const getErrorMessage = (error) => {
|
|
11
|
-
if (typeof error === 'string') {
|
|
12
|
-
return error;
|
|
1
|
+
const numberOnlyHandler = (e) => {
|
|
2
|
+
var _a;
|
|
3
|
+
const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
|
|
4
|
+
// Check if the key is a special key
|
|
5
|
+
if (e instanceof KeyboardEvent && specialKeys.includes(e.key)) {
|
|
6
|
+
return;
|
|
13
7
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
// Allow Ctrl+V / Command+V for pasting
|
|
9
|
+
const isPaste = e instanceof KeyboardEvent && (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
|
|
10
|
+
if (isPaste) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
// Handle paste event
|
|
14
|
+
if (e instanceof ClipboardEvent) {
|
|
15
|
+
const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
16
|
+
if (clipboardData && !/^\d+$/.test(clipboardData)) {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
}
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
// Prevent default action if the key is not a digit
|
|
22
|
+
if (e instanceof KeyboardEvent && !/^\d$/.test(e.key)) {
|
|
23
|
+
e.preventDefault();
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
26
|
|
|
28
|
-
export {
|
|
27
|
+
export { numberOnlyHandler as n };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Identity } from './Identity';
|
|
2
2
|
import { IDocument } from './Document';
|
|
3
3
|
import { IBankAccount } from './BankAccount';
|
|
4
|
+
export declare enum BusinessFormServerErrors {
|
|
5
|
+
fetchData = "Error retrieving business data",
|
|
6
|
+
patchData = "Error updating business data"
|
|
7
|
+
}
|
|
4
8
|
export declare enum BusinessClassification {
|
|
5
9
|
sole_proprietor = "sole_proprietor",
|
|
6
10
|
partnership = "partnership",
|
|
@@ -148,10 +148,8 @@ export type ICheckoutCompleteResponse = IApiResponse<{
|
|
|
148
148
|
export type ILoadedEventResponse = {
|
|
149
149
|
checkout_status: ICheckoutStatus;
|
|
150
150
|
};
|
|
151
|
-
export interface
|
|
151
|
+
export interface CheckoutsQueryParams {
|
|
152
152
|
status?: ICheckoutStatus;
|
|
153
153
|
payment_mode?: ICheckoutPaymentMode;
|
|
154
|
-
after_cursor?: string;
|
|
155
|
-
before_cursor?: string;
|
|
156
154
|
}
|
|
157
155
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BusinessFormClickActions, BusinessFormStep } from "../components/business-forms/utils/event-types";
|
|
2
|
+
import { DisputeManagementClickActions, DisputeResponseFormStep } from "../components/dispute-management/event-types";
|
|
3
|
+
import { TableClickActions } from "../ui-components/table/event-types";
|
|
4
|
+
import { ComponentErrorCodes, ComponentErrorSeverity } from "./ComponentError";
|
|
5
|
+
export interface ComponentClickEvent {
|
|
6
|
+
name: BusinessFormClickActions | DisputeManagementClickActions | TableClickActions;
|
|
7
|
+
data?: any;
|
|
8
|
+
}
|
|
9
|
+
export interface ComponentSubmitEvent {
|
|
10
|
+
response: any;
|
|
11
|
+
metadata?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface ComponentFormStepCompleteEvent {
|
|
14
|
+
formStep: BusinessFormStep | DisputeResponseFormStep;
|
|
15
|
+
response?: any;
|
|
16
|
+
metadata?: any;
|
|
17
|
+
}
|
|
18
|
+
export interface ComponentErrorEvent {
|
|
19
|
+
errorCode: ComponentErrorCodes;
|
|
20
|
+
message: string;
|
|
21
|
+
severity?: ComponentErrorSeverity;
|
|
22
|
+
data?: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare enum DisputeStatus {
|
|
2
|
+
won = "won",
|
|
3
|
+
lost = "lost",
|
|
4
|
+
underReview = "under_review",
|
|
5
|
+
needsResponse = "needs_response"
|
|
6
|
+
}
|
|
7
|
+
export interface IDispute {
|
|
8
|
+
id: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
payment_id: string;
|
|
12
|
+
reason: string;
|
|
13
|
+
due_date: string;
|
|
14
|
+
status: DisputeStatus;
|
|
15
|
+
metadata: any;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
dispute_response?: IDisputeResponse;
|
|
19
|
+
}
|
|
20
|
+
export declare class Dispute implements IDispute {
|
|
21
|
+
id: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
currency: string;
|
|
24
|
+
payment_id: string;
|
|
25
|
+
reason: string;
|
|
26
|
+
due_date: string;
|
|
27
|
+
status: DisputeStatus;
|
|
28
|
+
metadata: any;
|
|
29
|
+
created_at: string;
|
|
30
|
+
updated_at: string;
|
|
31
|
+
dispute_response?: DisputeResponse;
|
|
32
|
+
get needsResponse(): boolean;
|
|
33
|
+
get underReview(): boolean;
|
|
34
|
+
get won(): boolean;
|
|
35
|
+
get lost(): boolean;
|
|
36
|
+
constructor(dispute: IDispute);
|
|
37
|
+
}
|
|
38
|
+
export interface IDisputeResponse {
|
|
39
|
+
additional_statement: string;
|
|
40
|
+
cancellation_policy_disclosure: string;
|
|
41
|
+
cancellation_rebuttal: string;
|
|
42
|
+
customer_billing_address: string;
|
|
43
|
+
customer_email_address: string;
|
|
44
|
+
customer_name: string;
|
|
45
|
+
customer_purchase_ip_address: string;
|
|
46
|
+
duplicate_charge_explanation: string;
|
|
47
|
+
product_description: string;
|
|
48
|
+
refund_policy_disclosure: string;
|
|
49
|
+
refund_refusal_explanation: string;
|
|
50
|
+
service_date: string;
|
|
51
|
+
shipping_address: string;
|
|
52
|
+
shipping_carrier: string;
|
|
53
|
+
shipping_date: string;
|
|
54
|
+
shipping_tracking_number: string;
|
|
55
|
+
duplicate_charge_original_payment_id: string;
|
|
56
|
+
}
|
|
57
|
+
export declare class DisputeResponse implements IDisputeResponse {
|
|
58
|
+
additional_statement: string;
|
|
59
|
+
cancellation_policy_disclosure: string;
|
|
60
|
+
cancellation_rebuttal: string;
|
|
61
|
+
customer_billing_address: string;
|
|
62
|
+
customer_email_address: string;
|
|
63
|
+
customer_name: string;
|
|
64
|
+
customer_purchase_ip_address: string;
|
|
65
|
+
duplicate_charge_explanation: string;
|
|
66
|
+
product_description: string;
|
|
67
|
+
refund_policy_disclosure: string;
|
|
68
|
+
refund_refusal_explanation: string;
|
|
69
|
+
service_date: string;
|
|
70
|
+
shipping_address: string;
|
|
71
|
+
shipping_carrier: string;
|
|
72
|
+
shipping_date: string;
|
|
73
|
+
shipping_tracking_number: string;
|
|
74
|
+
duplicate_charge_original_payment_id: string;
|
|
75
|
+
constructor(response: IDisputeResponse);
|
|
76
|
+
}
|