@justifi/webcomponents 4.20.1 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-3c89cfb4.js → Analytics-9db96975.js} +2 -2
- package/dist/cjs/{Api-b98b256f.js → Api-f5280a80.js} +6 -4
- package/dist/cjs/Checkout-a528241d.js +85 -0
- package/dist/cjs/{Payment-1a8a8ca6.js → Payment-04a842f4.js} +15 -0
- package/dist/cjs/SubAccount-cc95a4a0.js +106 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-26b0eecb.js → business-additional-questions-schema-19f08938.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{business-form-types-6e1fcda3.js → business-form-types-719b7f52.js} +11 -0
- package/dist/cjs/{business-identity-schema-503ecb77.js → business-identity-schema-a8bb2276.js} +2 -2
- package/dist/cjs/{business.service-031c0084.js → business.service-7faffa0b.js} +1 -1
- package/dist/cjs/{check-pkg-version-4fa0367d.js → check-pkg-version-23a1cabd.js} +1 -1
- package/dist/cjs/checkout.service-160f3a9c.js +36 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +181 -0
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +106 -2
- package/dist/cjs/dispute-30c806f6.js +10 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +56 -33
- package/dist/cjs/form-control-date.cjs.entry.js +83 -0
- package/dist/cjs/form-control-error-text.cjs.entry.js +21 -0
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +21 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +99 -0
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/form-control-radio.cjs.entry.js +44 -0
- package/dist/cjs/form-control-textarea.cjs.entry.js +49 -0
- package/dist/cjs/{get-payout-csv-3a3260ec.js → get-payout-csv-12dc9540.js} +4 -3
- package/dist/cjs/get-subaccounts-8f7a930f.js +54 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +30 -17
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +173 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1679 -14
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -10
- package/dist/cjs/justifi-checkout.cjs.entry.js +13 -28
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +119 -0
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +28 -0
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/{justifi-new-payment-method_4.cjs.entry.js → justifi-new-payment-method_5.cjs.entry.js} +23 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payment-form.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -6
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +137 -0
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +59 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/{esm/payments-list-filters_2.entry.js → cjs/lodash-dbf6a6a4.js} +2 -57
- package/dist/cjs/{package-3a9ac89d.js → package-41c8f38c.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +11 -10
- package/dist/cjs/{payment.service-47e2d84e.js → payment.service-83da752a.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +17 -17
- package/dist/cjs/payments-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/payments-status-58e45b2e.js +26 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +8 -24
- package/dist/cjs/payouts-status-2f7be07d.js +24 -0
- package/dist/cjs/{schema-validations-0a7e46a3.js → schema-validations-184a4356.js} +1 -1
- package/dist/cjs/styled-host-1adf46c3.js +14 -0
- package/dist/cjs/table-bb114e2f.js +20 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +35 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +166 -0
- package/dist/cjs/terminals-list-filters.cjs.entry.js +32 -0
- package/dist/cjs/{utils-af1b60a9.js → utils-3d84442d.js} +3 -44
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +6 -4
- package/dist/collection/api/Checkout.js +77 -1
- package/dist/collection/api/Payment.js +15 -0
- package/dist/collection/api/SubAccount.js +33 -0
- package/dist/collection/api/Terminal.js +25 -0
- package/dist/collection/api/get-subaccounts.js +31 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/checkout.service.js +10 -1
- package/dist/collection/api/services/subaccounts.service.js +13 -0
- package/dist/collection/api/services/terminal.service.js +20 -0
- package/dist/collection/collection-manifest.json +37 -14
- package/dist/collection/components/billing-form/billing-form.js +3 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-details/business-details.js +1 -1
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -4
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +43 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +33 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +26 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +25 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +25 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +26 -3
- 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/input-configurations.js +17 -17
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +26 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +25 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +11 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +257 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +84 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +208 -0
- package/dist/collection/components/checkouts-list/checkouts-status.js +13 -0
- package/dist/collection/components/checkouts-list/checkouts-table.js +20 -0
- package/dist/collection/components/checkouts-list/get-checkouts.js +31 -0
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +90 -0
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +16 -0
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +12 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +53 -0
- package/dist/collection/components/dispute-management/dispute-management.js +8 -0
- package/dist/collection/components/dispute-management/dispute-notification.js +48 -0
- package/dist/collection/components/dispute-management/dispute.js +8 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +10 -9
- package/dist/collection/components/payment-details/payment-details.js +1 -1
- package/dist/collection/components/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +14 -14
- package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
- package/dist/collection/components/payments-list/payments-list.js +3 -5
- package/dist/collection/components/payments-list/payments-status.js +23 -0
- package/dist/collection/components/payout-details/payout-details-core.js +4 -3
- package/dist/collection/components/payout-details/payout-details.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +6 -22
- package/dist/collection/components/payouts-list/payouts-list.js +4 -7
- package/dist/collection/components/payouts-list/payouts-status.js +21 -0
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/components/terminals-list/get-terminal-detail.js +29 -0
- package/dist/collection/components/terminals-list/get-terminals.js +31 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +257 -0
- package/dist/collection/components/terminals-list/terminals-list-filters.js +81 -0
- package/dist/collection/components/terminals-list/terminals-list.js +209 -0
- package/dist/collection/components/terminals-list/terminals-status.js +11 -0
- package/dist/collection/components/terminals-list/terminals-table.js +15 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +9 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +276 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +8 -4
- package/dist/collection/{components → ui-components}/details/details.js +1 -1
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-checkbox.js +1 -1
- package/dist/collection/ui-components/form/form-control-date.js +284 -0
- package/dist/collection/{components → ui-components}/form/form-control-file.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-monetary.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number-masked.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number.js +1 -1
- package/dist/collection/{components/form/form-control-date.js → ui-components/form/form-control-radio.js} +54 -36
- package/dist/collection/{components → ui-components}/form/form-control-select.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-text.js +1 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +229 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +63 -0
- package/dist/collection/ui-components/index.js +1 -0
- package/dist/collection/utils/table.js +16 -0
- package/dist/collection/utils/utils.js +3 -42
- package/dist/docs.json +9561 -6219
- package/dist/esm/{Analytics-b0f6936a.js → Analytics-777962a4.js} +2 -2
- package/dist/esm/{Api-c8abc2e0.js → Api-391d00e2.js} +6 -4
- package/dist/esm/Checkout-0b4086f8.js +83 -0
- package/dist/esm/{Payment-6bf26fe2.js → Payment-30790721.js} +15 -0
- package/dist/esm/SubAccount-7f7e4c56.js +102 -0
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-a5583cf8.js → business-additional-questions-schema-97f52255.js} +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-1bc5fe08.js → business-form-types-8fd61b0e.js} +12 -1
- package/dist/esm/{business-identity-schema-9e3269fb.js → business-identity-schema-434e16bc.js} +2 -2
- package/dist/esm/{business.service-1f589b6e.js → business.service-97a3da69.js} +1 -1
- package/dist/esm/{check-pkg-version-10cadb08.js → check-pkg-version-bac8fac0.js} +1 -1
- package/dist/esm/checkout.service-ef1549c6.js +34 -0
- package/dist/esm/checkouts-list-core.entry.js +177 -0
- package/dist/esm/checkouts-list-filters.entry.js +31 -0
- package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +105 -4
- package/dist/esm/dispute-4d2e0a04.js +10 -0
- package/dist/esm/form-alert_5.entry.js +3 -3
- package/dist/esm/form-control-checkbox_9.entry.js +56 -33
- package/dist/esm/form-control-date.entry.js +79 -0
- package/dist/esm/form-control-error-text.entry.js +17 -0
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-help-text.entry.js +17 -0
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number-masked_2.entry.js +94 -0
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/form-control-radio.entry.js +40 -0
- package/dist/esm/form-control-textarea.entry.js +45 -0
- package/dist/esm/{get-payout-csv-93427146.js → get-payout-csv-70974763.js} +4 -3
- package/dist/esm/get-subaccounts-16c8ce40.js +51 -0
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +30 -17
- package/dist/esm/justifi-additional-statement_11.entry.js +159 -0
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +1680 -15
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +14 -13
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +4 -4
- package/dist/esm/justifi-checkout-core.entry.js +4 -9
- package/dist/esm/justifi-checkout.entry.js +11 -26
- package/dist/esm/justifi-checkouts-list.entry.js +115 -0
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +24 -0
- package/dist/esm/justifi-dispute-management.entry.js +12 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/{justifi-new-payment-method_4.entry.js → justifi-new-payment-method_5.entry.js} +23 -7
- package/dist/esm/justifi-owner-form_3.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +9 -8
- package/dist/esm/justifi-payment-form.entry.js +12 -11
- package/dist/esm/justifi-payment-method-selector.entry.js +4 -3
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +11 -12
- package/dist/esm/justifi-payout-details.entry.js +9 -8
- package/dist/esm/justifi-payouts-list.entry.js +12 -14
- package/dist/esm/justifi-refund-form.entry.js +7 -6
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -7
- package/dist/esm/justifi-terminals-list.entry.js +133 -0
- package/dist/esm/justifi-tokenize-payment-method.entry.js +55 -0
- package/dist/esm/loader.js +1 -1
- package/dist/{cjs/payments-list-filters_2.cjs.entry.js → esm/lodash-faeb5a52.js} +1 -63
- package/dist/esm/{package-2ef16e2c.js → package-5144835c.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +11 -10
- package/dist/esm/{payment.service-21a3e2d3.js → payment.service-2f67410b.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +16 -16
- package/dist/esm/payments-list-filters.entry.js +31 -0
- package/dist/esm/payments-status-4937a170.js +24 -0
- package/dist/esm/payout-details-core.entry.js +5 -4
- package/dist/esm/payouts-list-core.entry.js +8 -24
- package/dist/esm/payouts-status-cd58e525.js +22 -0
- package/dist/esm/{schema-validations-e725d701.js → schema-validations-c1728516.js} +1 -1
- package/dist/esm/styled-host-e0ddb759.js +12 -0
- package/dist/esm/table-75364107.js +18 -0
- package/dist/esm/table-filters-menu.entry.js +31 -0
- package/dist/esm/terminals-list-core.entry.js +162 -0
- package/dist/esm/terminals-list-filters.entry.js +28 -0
- package/dist/esm/{utils-e66d8bca.js → utils-3daada24.js} +4 -43
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +6 -4
- package/dist/module/Checkout.js +83 -0
- package/dist/module/Payment.js +15 -0
- package/dist/module/SubAccount.js +102 -0
- package/dist/module/additional-questions.js +22 -10
- package/dist/module/additional-statement.js +63 -0
- package/dist/module/billing-form.js +14 -8
- package/dist/module/business-additional-questions-form-step-core.js +42 -11
- package/dist/module/business-additional-questions-form-step.js +23 -11
- package/dist/module/business-bank-account-form-step.js +25 -11
- package/dist/module/business-core-info-form-step-core.js +19 -10
- package/dist/module/business-core-info-form-step.js +16 -10
- package/dist/module/business-core-info.js +16 -10
- package/dist/module/business-document-upload-form-step.js +14 -5
- package/dist/module/business-document-upload-input-group.js +28 -22
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +12 -1
- package/dist/module/business-owners-form-step-core.js +20 -12
- package/dist/module/business-owners-form-step.js +16 -10
- package/dist/module/business-representative-form-inputs.js +16 -10
- package/dist/module/business-representative-form-step-core.js +19 -10
- package/dist/module/business-representative-form-step.js +16 -10
- package/dist/module/business-representative.js +15 -9
- package/dist/module/business-terms-conditions-form-step.js +6 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/cancellation-policy.js +63 -0
- package/dist/module/checkout-core.js +16 -15
- package/dist/module/checkout.service.js +34 -0
- package/dist/module/checkouts-list-core.d.ts +11 -0
- package/dist/module/checkouts-list-core.js +6 -0
- package/dist/module/checkouts-list-core2.js +249 -0
- package/dist/module/checkouts-list-filters.d.ts +11 -0
- package/dist/module/checkouts-list-filters.js +6 -0
- package/dist/module/checkouts-list-filters2.js +80 -0
- package/dist/module/counter-dispute.js +189 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +69 -0
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +160 -0
- package/dist/module/dispute-notification.js +36 -0
- package/dist/module/dispute-reason.js +45 -0
- package/dist/module/duplicate-charge.js +69 -0
- package/dist/module/electronic-evidence.js +63 -0
- package/dist/module/exported-parts.js +1 -34
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +59 -10
- package/dist/module/form-control-file2.js +10 -4
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +10 -4
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-radio.d.ts +11 -0
- package/dist/module/form-control-radio.js +6 -0
- package/dist/module/form-control-radio2.js +78 -0
- package/dist/module/form-control-select2.js +10 -4
- package/dist/module/form-control-text2.js +10 -4
- package/dist/module/form-control-textarea.d.ts +11 -0
- package/dist/module/form-control-textarea.js +6 -0
- package/dist/module/form-control-textarea2.js +84 -0
- package/dist/module/form-control-tooltip.d.ts +11 -0
- package/dist/module/form-control-tooltip.js +6 -0
- package/dist/module/form-control-tooltip2.js +49 -0
- package/dist/module/get-payout-csv.js +2 -1
- package/dist/module/get-subaccounts.js +51 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/identity-address-form.js +14 -8
- package/dist/module/justifi-additional-statement.d.ts +11 -0
- package/dist/module/justifi-additional-statement.js +6 -0
- package/dist/module/justifi-business-form.js +32 -19
- package/dist/module/justifi-cancellation-policy.d.ts +11 -0
- package/dist/module/justifi-cancellation-policy.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +16 -31
- package/dist/module/justifi-checkouts-list.d.ts +11 -0
- package/dist/module/justifi-checkouts-list.js +191 -0
- package/dist/module/justifi-counter-dispute.d.ts +11 -0
- package/dist/module/justifi-counter-dispute.js +6 -0
- package/dist/module/justifi-customer-details.d.ts +11 -0
- package/dist/module/justifi-customer-details.js +6 -0
- package/dist/module/justifi-dispute-management-core.d.ts +11 -0
- package/dist/module/justifi-dispute-management-core.js +6 -0
- package/dist/module/justifi-dispute-management.d.ts +11 -0
- package/dist/module/justifi-dispute-management.js +157 -0
- package/dist/module/justifi-dispute-notification.d.ts +11 -0
- package/dist/module/justifi-dispute-notification.js +6 -0
- package/dist/module/justifi-dispute-reason.d.ts +11 -0
- package/dist/module/justifi-dispute-reason.js +6 -0
- package/dist/module/justifi-duplicate-charge.d.ts +11 -0
- package/dist/module/justifi-duplicate-charge.js +6 -0
- package/dist/module/justifi-electronic-evidence.d.ts +11 -0
- package/dist/module/justifi-electronic-evidence.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +18 -11
- package/dist/module/justifi-payment-provisioning.js +30 -18
- package/dist/module/justifi-payments-list.js +12 -13
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +14 -10
- package/dist/module/justifi-product-or-service.d.ts +11 -0
- package/dist/module/justifi-product-or-service.js +6 -0
- package/dist/module/justifi-refund-form.js +23 -10
- package/dist/module/justifi-refund-policy.d.ts +11 -0
- package/dist/module/justifi-refund-policy.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-shipping-details.d.ts +11 -0
- package/dist/module/justifi-shipping-details.js +6 -0
- package/dist/module/justifi-terminals-list.d.ts +11 -0
- package/dist/module/justifi-terminals-list.js +216 -0
- package/dist/module/justifi-tokenize-payment-method.d.ts +11 -0
- package/dist/module/justifi-tokenize-payment-method.js +153 -0
- package/dist/module/legal-address-form-step-core.js +17 -8
- package/dist/module/legal-address-form-step.js +14 -8
- package/dist/module/legal-address-form.js +14 -8
- package/dist/module/lodash.js +17204 -0
- package/dist/module/new-payment-method.js +14 -8
- package/dist/module/owner-form-core2.js +17 -11
- package/dist/module/owner-form-inputs2.js +16 -10
- package/dist/module/owner-form.js +15 -9
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +9 -8
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +14 -8
- package/dist/module/payment-method-selector.js +3 -2
- package/dist/module/payment-provisioning-core.js +31 -19
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +30 -18
- package/dist/module/payment.service.js +2 -1
- package/dist/module/payments-list-core2.js +23 -22
- package/dist/module/payments-list-filters2.js +9 -17211
- package/dist/module/payments-status.js +24 -0
- package/dist/module/payout-details-core2.js +3 -2
- package/dist/module/payouts-list-core2.js +17 -26
- package/dist/module/payouts-status.js +22 -0
- package/dist/module/product-or-service.js +60 -0
- package/dist/module/refund-policy.js +63 -0
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +2 -2
- package/dist/module/season-interruption-insurance-core.js +3 -3
- package/dist/module/sezzle-payment-method.js +2 -2
- package/dist/module/shipping-details.js +79 -0
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table-loading-state.js +34 -0
- package/dist/module/table.js +18 -0
- package/dist/module/terminals-list-core.d.ts +11 -0
- package/dist/module/terminals-list-core.js +6 -0
- package/dist/module/terminals-list-core2.js +240 -0
- package/dist/module/terminals-list-filters.d.ts +11 -0
- package/dist/module/terminals-list-filters.js +6 -0
- package/dist/module/terminals-list-filters2.js +83 -0
- package/dist/module/utils2.js +4 -43
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Checkout.d.ts +74 -2
- package/dist/types/api/Payment.d.ts +7 -0
- package/dist/types/api/SubAccount.d.ts +51 -0
- package/dist/types/api/Terminal.d.ts +48 -0
- package/dist/types/api/get-subaccounts.d.ts +10 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/checkout.service.d.ts +3 -1
- package/dist/types/api/services/subaccounts.service.d.ts +7 -0
- package/dist/types/api/services/terminal.service.d.ts +9 -0
- package/dist/types/components/billing-form/billing-form.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +5 -2
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -2
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +3 -2
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +3 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +3 -2
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +3 -2
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +35 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +15 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +44 -0
- package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +17 -0
- package/dist/types/components/checkouts-list/get-checkouts.d.ts +10 -0
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +14 -0
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +4 -0
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +7 -0
- package/dist/types/components/dispute-management/dispute-management.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute.d.ts +7 -0
- package/dist/types/components/payments-list/payments-status.d.ts +1 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -2
- package/dist/types/components/payouts-list/payouts-status.d.ts +1 -0
- package/dist/types/components/terminals-list/get-terminal-detail.d.ts +8 -0
- package/dist/types/components/terminals-list/get-terminals.d.ts +10 -0
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +35 -0
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +13 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +44 -0
- package/dist/types/components/terminals-list/terminals-status.d.ts +1 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +13 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +22 -0
- package/dist/types/components.d.ts +779 -16
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +1 -1
- package/dist/types/{components → ui-components}/form/form-control-date.d.ts +6 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +19 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +20 -0
- package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +8 -0
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/utils/table.d.ts +13 -0
- package/dist/types/utils/utils.d.ts +1 -3
- package/dist/webcomponents/p-037e3545.entry.js +1 -0
- package/dist/webcomponents/{p-232016ba.entry.js → p-04d12939.entry.js} +1 -1
- package/dist/webcomponents/p-0ac35b39.entry.js +1 -0
- package/dist/webcomponents/p-0b686ada.entry.js +1 -0
- package/dist/webcomponents/p-0c79e368.entry.js +1 -0
- package/dist/webcomponents/p-0de9e97b.entry.js +1 -0
- package/dist/webcomponents/{p-7d3be485.js → p-0e180654.js} +1 -1
- package/dist/webcomponents/{p-056e75be.entry.js → p-11ff46df.entry.js} +1 -1
- package/dist/webcomponents/p-16d2932d.js +1 -0
- package/dist/webcomponents/p-206fde40.js +1 -0
- package/dist/webcomponents/p-24392a86.entry.js +1 -0
- package/dist/webcomponents/p-269ba6fe.entry.js +1 -0
- package/dist/webcomponents/{p-1eee25f3.entry.js → p-286a4e72.entry.js} +2 -2
- package/dist/webcomponents/p-2c2b57b3.js +1 -0
- package/dist/webcomponents/{p-d76002d5.entry.js → p-2c8c214f.entry.js} +1 -1
- package/dist/webcomponents/p-2de65000.entry.js +1 -0
- package/dist/webcomponents/{p-277aee05.js → p-3d3468a8.js} +1 -1
- package/dist/webcomponents/p-47dbe17d.js +1 -0
- package/dist/webcomponents/p-4b14abbf.entry.js +1 -0
- package/dist/webcomponents/p-4c0c88e4.entry.js +1 -0
- package/dist/webcomponents/p-52ca72cd.entry.js +1 -0
- package/dist/webcomponents/{p-707bdf68.js → p-56bda985.js} +1 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +1 -0
- package/dist/webcomponents/p-638c6285.entry.js +1 -0
- package/dist/webcomponents/p-69ea7334.entry.js +1 -0
- package/dist/webcomponents/p-6caf6f09.entry.js +1 -0
- package/dist/webcomponents/{p-da1d174d.entry.js → p-72819173.entry.js} +1 -1
- package/dist/webcomponents/p-74da98da.js +1 -0
- package/dist/webcomponents/p-7fec2bcb.js +1 -0
- package/dist/webcomponents/p-8480e3ab.entry.js +1 -0
- package/dist/webcomponents/p-869ae0c7.entry.js +1 -0
- package/dist/webcomponents/p-8ec550d7.entry.js +1 -0
- package/dist/webcomponents/p-8f212554.entry.js +1 -0
- package/dist/webcomponents/p-907ba963.js +1 -0
- package/dist/webcomponents/p-919e6e67.entry.js +1 -0
- package/dist/webcomponents/p-927a147c.entry.js +1 -0
- package/dist/webcomponents/p-935188c8.entry.js +1 -0
- package/dist/webcomponents/p-9bd13e22.js +1 -0
- package/dist/webcomponents/p-9f56ad71.js +1 -0
- package/dist/webcomponents/p-a2be972d.entry.js +1 -0
- package/dist/webcomponents/p-a3143d62.entry.js +1 -0
- package/dist/webcomponents/p-a76ece26.js +1 -0
- package/dist/webcomponents/{p-5e2c9ec8.js → p-a8f22d4d.js} +1 -1
- package/dist/webcomponents/p-ad443df5.entry.js +1 -0
- package/dist/webcomponents/p-b0686897.entry.js +1 -0
- package/dist/webcomponents/p-b1aacd6b.entry.js +1 -0
- package/dist/webcomponents/p-b4a7307b.entry.js +1 -0
- package/dist/webcomponents/p-bfb990fc.entry.js +1 -0
- package/dist/webcomponents/p-c1bf9285.entry.js +1 -0
- package/dist/webcomponents/{p-35846553.js → p-c1cf7d5b.js} +1 -1
- package/dist/webcomponents/p-c30c8f39.entry.js +1 -0
- package/dist/webcomponents/p-c5c6e61d.js +1 -0
- package/dist/webcomponents/{p-d99a5f30.entry.js → p-c63825d8.entry.js} +1 -1
- package/dist/webcomponents/{p-5022f21c.js → p-c65b78cf.js} +1 -1
- package/dist/webcomponents/p-c6be72b0.js +10 -0
- package/dist/webcomponents/p-c717646f.entry.js +1 -0
- package/dist/webcomponents/{p-d9579cd6.entry.js → p-cb79f06c.entry.js} +1 -1
- package/dist/webcomponents/p-ccbff4fa.entry.js +1 -0
- package/dist/webcomponents/p-cd4eaeb7.js +1 -0
- package/dist/webcomponents/p-cd7e866c.entry.js +1 -0
- package/dist/webcomponents/p-d1248039.entry.js +1 -0
- package/dist/webcomponents/{p-c64ce69d.entry.js → p-d2eb61e6.entry.js} +1 -1
- package/dist/webcomponents/p-d516e700.js +1 -0
- package/dist/webcomponents/p-dae9b10e.entry.js +1 -0
- package/dist/webcomponents/p-e412a713.entry.js +1 -0
- package/dist/webcomponents/p-e69b2ff8.entry.js +1 -0
- package/dist/webcomponents/p-e6be8845.entry.js +1 -0
- package/dist/webcomponents/{p-b91bcbfc.js → p-e7d6609d.js} +1 -1
- package/dist/webcomponents/p-e8797be0.entry.js +1 -0
- package/dist/webcomponents/p-eb9ba917.entry.js +1 -0
- package/dist/webcomponents/p-ec7e69eb.entry.js +1 -0
- package/dist/webcomponents/p-eeb70281.entry.js +1 -0
- package/dist/webcomponents/{p-e31f0f3e.entry.js → p-efb56234.entry.js} +1 -1
- package/dist/webcomponents/p-f4a8215b.entry.js +1 -0
- package/dist/webcomponents/{p-401d6607.js → p-f6f8dabc.js} +1 -1
- package/dist/webcomponents/{p-1c04aacd.entry.js → p-f7077f93.entry.js} +1 -1
- package/dist/webcomponents/p-fc4de0d2.js +1 -0
- package/dist/webcomponents/{p-3c7fac29.entry.js → p-ffe27126.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Payout-a2dd7b01.js +0 -45
- package/dist/cjs/form-control-date_3.cjs.entry.js +0 -136
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +0 -118
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1688
- package/dist/cjs/styled-host-9e0b67b3.js +0 -14
- package/dist/esm/Payout-dfe15b00.js +0 -43
- package/dist/esm/form-control-date_3.entry.js +0 -130
- package/dist/esm/form-control-error-text_4.entry.js +0 -111
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1684
- package/dist/esm/styled-host-3171ae1f.js +0 -12
- package/dist/module/Payout.js +0 -43
- package/dist/webcomponents/p-034fc302.entry.js +0 -1
- package/dist/webcomponents/p-37888614.entry.js +0 -1
- package/dist/webcomponents/p-430f81c6.entry.js +0 -1
- package/dist/webcomponents/p-44055818.js +0 -1
- package/dist/webcomponents/p-538fd427.entry.js +0 -1
- package/dist/webcomponents/p-55182a59.js +0 -1
- package/dist/webcomponents/p-570a0f02.entry.js +0 -1
- package/dist/webcomponents/p-57d7534f.entry.js +0 -1
- package/dist/webcomponents/p-59cf5391.entry.js +0 -1
- package/dist/webcomponents/p-60d3571e.entry.js +0 -1
- package/dist/webcomponents/p-6ac806ff.entry.js +0 -1
- package/dist/webcomponents/p-75139399.entry.js +0 -1
- package/dist/webcomponents/p-7771f64b.entry.js +0 -1
- package/dist/webcomponents/p-7ddfce86.entry.js +0 -1
- package/dist/webcomponents/p-7ff329b1.js +0 -1
- package/dist/webcomponents/p-8a7112a0.entry.js +0 -1
- package/dist/webcomponents/p-9add7d3e.entry.js +0 -1
- package/dist/webcomponents/p-9b154d98.entry.js +0 -1
- package/dist/webcomponents/p-ab92abb1.entry.js +0 -1
- package/dist/webcomponents/p-ad47f37c.entry.js +0 -1
- package/dist/webcomponents/p-aedb421f.entry.js +0 -1
- package/dist/webcomponents/p-b14da2fd.entry.js +0 -1
- package/dist/webcomponents/p-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-bdc91c61.entry.js +0 -1
- package/dist/webcomponents/p-c1772671.entry.js +0 -1
- package/dist/webcomponents/p-c740b6ca.entry.js +0 -1
- package/dist/webcomponents/p-ce5fe369.entry.js +0 -10
- package/dist/webcomponents/p-d8355f91.entry.js +0 -1
- package/dist/webcomponents/p-d89bad72.js +0 -1
- package/dist/webcomponents/p-dc048c3c.entry.js +0 -1
- package/dist/webcomponents/p-df21aaad.js +0 -1
- package/dist/webcomponents/p-e2c88817.entry.js +0 -1
- package/dist/webcomponents/p-e3fab0e2.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-f2924369.js +0 -1
- package/dist/webcomponents/p-fb7f7a8c.entry.js +0 -1
- package/dist/webcomponents/p-ffddac99.entry.js +0 -1
- /package/dist/cjs/{exported-parts-b18c68c2.js → exported-parts-a994d693.js} +0 -0
- /package/dist/cjs/{index.esm-52757963.js → index.esm-97cf6825.js} +0 -0
- /package/dist/cjs/{utils-c1d2e426.js → utils-189dc30d.js} +0 -0
- /package/dist/cjs/{utils-ddacfc44.js → utils-bc03ca40.js} +0 -0
- /package/dist/collection/{components → ui-components}/details/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-alert/form-alert.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form.js +0 -0
- /package/dist/collection/{components → ui-components}/form/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/table/exported-parts.js +0 -0
- /package/dist/esm/{exported-parts-abd4c027.js → exported-parts-70e7a12b.js} +0 -0
- /package/dist/esm/{index.esm-fc4f5c0c.js → index.esm-ed37201b.js} +0 -0
- /package/dist/esm/{utils-3bb6347a.js → utils-20cdf321.js} +0 -0
- /package/dist/esm/{utils-01413a95.js → utils-218275b7.js} +0 -0
- /package/dist/types/{components → ui-components}/details/details.d.ts +0 -0
- /package/dist/types/{components → ui-components}/details/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-checkbox.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-file.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-monetary.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number-masked.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-select.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-alert/form-alert.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/table/exported-parts.d.ts +0 -0
- /package/dist/webcomponents/{p-2eab3c90.js → p-3c654c07.js} +0 -0
- /package/dist/webcomponents/{p-2b6c9c4f.js → p-6cc30da2.js} +0 -0
- /package/dist/webcomponents/{p-dce846bf.js → p-a8b4f429.js} +0 -0
- /package/dist/webcomponents/{p-8df7bde8.js → p-e3c22aa9.js} +0 -0
|
@@ -43,7 +43,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
|
|
|
43
43
|
this.menu.classList.remove('show');
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'de116fd5406fcc4feb36df24f8fc3162b39567e8', class: "d-flex gap-2" }, h("div", { key: '07c7d885acc4816d28e3c2653d5e4c9a7ea42108', class: "dropdown pb-3" }, h(Button, { key: '34cee2bf49991340c4291c5014d17bfa9c3593d8', 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: '19640a1ab19bdda14398c4a76392584c6bf1e6d9', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'a72ce2a8ab9fc317236128980bd4bc9be92faf2c', class: "dropdown-menu", part: "dropdown-menu", "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '008b23e2dc775ec59247df27379780d1ccdd81eb' })))), h("div", { key: '5b60c0821e4cfe5395c6eca11957e18446039cd7' }, h(Button, { key: '56d032309bdff48f6501ae6be6344860d008f481', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
47
47
|
}
|
|
48
48
|
static get watchers() { return {
|
|
49
49
|
"params": ["watchParamsHandler"]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const TableEmptyState = (props) => {
|
|
4
|
+
const { columnSpan, isEmpty } = props;
|
|
5
|
+
if (!columnSpan || !isEmpty) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (h("tr", null,
|
|
9
|
+
h("td", { class: "empty-state", part: "empty-state", colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const TableErrorState = (props) => {
|
|
13
|
+
const { columnSpan, errorMessage } = props;
|
|
14
|
+
if (!columnSpan || !errorMessage) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return (h("tr", null,
|
|
18
|
+
h("td", { class: "error-state", part: "error-state", colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } },
|
|
19
|
+
"An unexpected error occurred: ",
|
|
20
|
+
errorMessage)));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const TableLoadingState = (props) => {
|
|
24
|
+
const { columnSpan, isLoading } = props;
|
|
25
|
+
if (!columnSpan || !isLoading) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return (h("tr", null,
|
|
29
|
+
h("td", { class: "loading-state", part: "loading-state-cell", colSpan: columnSpan, style: { textAlign: 'center' } },
|
|
30
|
+
h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" },
|
|
31
|
+
h("span", { class: "visually-hidden" }, "Loading...")))));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { TableLoadingState as T, TableEmptyState as a, TableErrorState as b };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
class Table {
|
|
2
|
+
get columnData() {
|
|
3
|
+
return this.columnKeys.map((key) => this.tableColumns[key]());
|
|
4
|
+
}
|
|
5
|
+
get rowData() {
|
|
6
|
+
return this.collection.map((checkout) => {
|
|
7
|
+
return this.columnKeys.map((key) => this.tableCells[key](checkout[key]));
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
constructor(collection, columns, tableColumns, tableCells) {
|
|
11
|
+
this.columnKeys = columns.split(',');
|
|
12
|
+
this.collection = collection;
|
|
13
|
+
this.tableColumns = tableColumns;
|
|
14
|
+
this.tableCells = tableCells;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Table as T };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TerminalsListCore extends Components.TerminalsListCore, HTMLElement {}
|
|
4
|
+
export const TerminalsListCore: {
|
|
5
|
+
prototype: TerminalsListCore;
|
|
6
|
+
new (): TerminalsListCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
+
import './Checkout.js';
|
|
3
|
+
import { p as pagingDefaults } from './Pagination.js';
|
|
4
|
+
import './Payment.js';
|
|
5
|
+
import './SubAccount.js';
|
|
6
|
+
import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './table-loading-state.js';
|
|
7
|
+
import { d as defineCustomElement$2, o as onFilterChange } from './table-filters-menu2.js';
|
|
8
|
+
import { T as Table } from './table.js';
|
|
9
|
+
import { d as defineCustomElement$8 } from './custom-popper2.js';
|
|
10
|
+
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
11
|
+
import { d as defineCustomElement$6 } from './form-control-select2.js';
|
|
12
|
+
import { d as defineCustomElement$5 } from './form-control-text2.js';
|
|
13
|
+
import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
|
|
14
|
+
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './terminals-list-filters2.js';
|
|
16
|
+
|
|
17
|
+
const MapTerminalStatusToBadge = (status) => {
|
|
18
|
+
switch (status) {
|
|
19
|
+
case 'connected':
|
|
20
|
+
return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
|
|
21
|
+
case 'disconnected':
|
|
22
|
+
return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
|
|
23
|
+
case 'unknown':
|
|
24
|
+
return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const defaultColumnsKeys = 'nickname,provider_id,status';
|
|
29
|
+
const terminalTableColumns = {
|
|
30
|
+
nickname: () => (h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
31
|
+
provider_id: () => (h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
32
|
+
sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
33
|
+
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
34
|
+
};
|
|
35
|
+
const terminalTableCells = {
|
|
36
|
+
nickname: (value) => (h("td", null, value)),
|
|
37
|
+
provider_id: (value) => (h("td", null, value)),
|
|
38
|
+
sub_account_name: (value) => (h("td", null, value)),
|
|
39
|
+
status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCore extends HTMLElement {
|
|
43
|
+
constructor() {
|
|
44
|
+
super();
|
|
45
|
+
this.__registerHost();
|
|
46
|
+
this.rowClicked = createEvent(this, "terminal-row-clicked", 7);
|
|
47
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
48
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
49
|
+
const newParams = Object.assign({}, this.params);
|
|
50
|
+
delete newParams.after_cursor;
|
|
51
|
+
this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
|
|
52
|
+
};
|
|
53
|
+
this.handleClickNext = (afterCursor) => {
|
|
54
|
+
const newParams = Object.assign({}, this.params);
|
|
55
|
+
delete newParams.before_cursor;
|
|
56
|
+
this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
|
|
57
|
+
};
|
|
58
|
+
this.rowClickHandler = (e) => {
|
|
59
|
+
const clickedTerminalID = e.target.closest('tr').dataset.rowEntityId;
|
|
60
|
+
if (!clickedTerminalID)
|
|
61
|
+
return;
|
|
62
|
+
this.rowClicked.emit(this.terminals.find((terminal) => terminal.id === clickedTerminalID));
|
|
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 = {};
|
|
71
|
+
};
|
|
72
|
+
this.getTerminals = undefined;
|
|
73
|
+
this.getSubAccounts = undefined;
|
|
74
|
+
this.columns = defaultColumnsKeys;
|
|
75
|
+
this.terminals = [];
|
|
76
|
+
this.terminalsTable = new Table([], this.columns, terminalTableColumns, terminalTableCells);
|
|
77
|
+
this.subAccounts = [];
|
|
78
|
+
this.loading = true;
|
|
79
|
+
this.errorMessage = undefined;
|
|
80
|
+
this.paging = pagingDefaults;
|
|
81
|
+
this.params = {};
|
|
82
|
+
}
|
|
83
|
+
updateOnPropChange() {
|
|
84
|
+
this.fetchTerminals();
|
|
85
|
+
}
|
|
86
|
+
componentWillLoad() {
|
|
87
|
+
if (this.getTerminals && this.getSubAccounts) {
|
|
88
|
+
this.fetchTerminals();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
fetchTerminals() {
|
|
92
|
+
this.loading = true;
|
|
93
|
+
this.getTerminals({
|
|
94
|
+
params: this.params,
|
|
95
|
+
onSuccess: async ({ terminals, pagingInfo }) => {
|
|
96
|
+
this.terminals = terminals;
|
|
97
|
+
this.paging = pagingInfo;
|
|
98
|
+
this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
|
|
99
|
+
const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
|
|
100
|
+
if (shouldFetchSubAccounts) {
|
|
101
|
+
await this.fetchSubAccounts();
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.loading = false;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
onError: ({ error, code, severity }) => {
|
|
108
|
+
this.errorMessage = error;
|
|
109
|
+
this.errorEvent.emit({
|
|
110
|
+
errorCode: code,
|
|
111
|
+
message: error,
|
|
112
|
+
severity,
|
|
113
|
+
});
|
|
114
|
+
this.loading = false;
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
async fetchSubAccounts() {
|
|
119
|
+
this.getSubAccounts({
|
|
120
|
+
params: this.subAccountParams,
|
|
121
|
+
onSuccess: ({ subAccounts }) => {
|
|
122
|
+
this.subAccounts = subAccounts;
|
|
123
|
+
this.terminals = this.terminals.map((terminal) => {
|
|
124
|
+
var _a;
|
|
125
|
+
terminal.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === terminal.account_id)) === null || _a === void 0 ? void 0 : _a.name;
|
|
126
|
+
return terminal;
|
|
127
|
+
});
|
|
128
|
+
this.loading = false;
|
|
129
|
+
},
|
|
130
|
+
onError: ({ error, code, severity }) => {
|
|
131
|
+
this.errorMessage = error;
|
|
132
|
+
this.errorEvent.emit({
|
|
133
|
+
errorCode: code,
|
|
134
|
+
message: error,
|
|
135
|
+
severity,
|
|
136
|
+
});
|
|
137
|
+
this.loading = false;
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
get subAccountParams() {
|
|
142
|
+
let accountIdNumbers = this.terminals.map((terminal) => terminal.account_id);
|
|
143
|
+
let uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
144
|
+
let accountIdString = uniqueAccountIds.join(',');
|
|
145
|
+
return { sub_account_id: accountIdString };
|
|
146
|
+
}
|
|
147
|
+
get entityId() {
|
|
148
|
+
return this.terminals.map((terminal) => terminal.id);
|
|
149
|
+
}
|
|
150
|
+
get showEmptyState() {
|
|
151
|
+
return !this.loading && !this.errorMessage && this.terminalsTable.rowData.length < 1;
|
|
152
|
+
}
|
|
153
|
+
get showErrorState() {
|
|
154
|
+
return !this.loading && !!this.errorMessage;
|
|
155
|
+
}
|
|
156
|
+
get showRowData() {
|
|
157
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
return (h("div", { key: 'd6bd09387fc558286f09cc98e7b5423a57410440' }, h("terminals-list-filters", { key: '27f3b5ca45bad96695364e96f0c047db8465f061', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '693ef5e9383ad2d4433a79872d51a922f1bb0cbb', class: "table-wrapper" }, h("table", { key: 'd6779ca5094593e21ddee4f0b236b0fa94c7cfe5', class: "table table-hover" }, h("thead", { key: '5b7524c86b32d61d2b087c9ace5673276a6525e2', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '6f3f3f560f5eaa38a700aacf850c01ce7224c617', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'd65612fc80a216dbbce686e1e5cdd06bc7c934ad', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '9ffbafb5105380d685e9cad76b627afe96c8e724', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '692c6cb35da2c9057bbac4e5d8e7536017ef1694', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '5072ca0cb9f9ca3d77fc394c935cc1ae473b8864', 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, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'b043af164be76a5bdbaf53e5a0563f48049925b0', class: "sticky-bottom" }, h("tr", { key: '2fed67d847e113c371213643c07a79208701c1e5', class: "table-light align-middle" }, h("td", { key: 'b3fac5af2d92a8ea93daefd24310ed5b45d32764', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '4e5a82670a7aa1fee01b71fbc20b65824300a07f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
161
|
+
}
|
|
162
|
+
static get watchers() { return {
|
|
163
|
+
"params": ["updateOnPropChange"],
|
|
164
|
+
"getTerminals": ["updateOnPropChange"],
|
|
165
|
+
"getSubAccounts": ["updateOnPropChange"],
|
|
166
|
+
"columns": ["updateOnPropChange"]
|
|
167
|
+
}; }
|
|
168
|
+
}, [0, "terminals-list-core", {
|
|
169
|
+
"getTerminals": [16],
|
|
170
|
+
"getSubAccounts": [16],
|
|
171
|
+
"columns": [1],
|
|
172
|
+
"terminals": [32],
|
|
173
|
+
"terminalsTable": [32],
|
|
174
|
+
"subAccounts": [32],
|
|
175
|
+
"loading": [32],
|
|
176
|
+
"errorMessage": [32],
|
|
177
|
+
"paging": [32],
|
|
178
|
+
"params": [32]
|
|
179
|
+
}, undefined, {
|
|
180
|
+
"params": ["updateOnPropChange"],
|
|
181
|
+
"getTerminals": ["updateOnPropChange"],
|
|
182
|
+
"getSubAccounts": ["updateOnPropChange"],
|
|
183
|
+
"columns": ["updateOnPropChange"]
|
|
184
|
+
}]);
|
|
185
|
+
function defineCustomElement() {
|
|
186
|
+
if (typeof customElements === "undefined") {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const components = ["terminals-list-core", "custom-popper", "form-control-error-text", "form-control-select", "form-control-text", "form-control-tooltip", "pagination-menu", "table-filters-menu", "terminals-list-filters"];
|
|
190
|
+
components.forEach(tagName => { switch (tagName) {
|
|
191
|
+
case "terminals-list-core":
|
|
192
|
+
if (!customElements.get(tagName)) {
|
|
193
|
+
customElements.define(tagName, TerminalsListCore);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case "custom-popper":
|
|
197
|
+
if (!customElements.get(tagName)) {
|
|
198
|
+
defineCustomElement$8();
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
case "form-control-error-text":
|
|
202
|
+
if (!customElements.get(tagName)) {
|
|
203
|
+
defineCustomElement$7();
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case "form-control-select":
|
|
207
|
+
if (!customElements.get(tagName)) {
|
|
208
|
+
defineCustomElement$6();
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case "form-control-text":
|
|
212
|
+
if (!customElements.get(tagName)) {
|
|
213
|
+
defineCustomElement$5();
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
case "form-control-tooltip":
|
|
217
|
+
if (!customElements.get(tagName)) {
|
|
218
|
+
defineCustomElement$4();
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
case "pagination-menu":
|
|
222
|
+
if (!customElements.get(tagName)) {
|
|
223
|
+
defineCustomElement$3();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
case "table-filters-menu":
|
|
227
|
+
if (!customElements.get(tagName)) {
|
|
228
|
+
defineCustomElement$2();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case "terminals-list-filters":
|
|
232
|
+
if (!customElements.get(tagName)) {
|
|
233
|
+
defineCustomElement$1();
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
} });
|
|
237
|
+
}
|
|
238
|
+
defineCustomElement();
|
|
239
|
+
|
|
240
|
+
export { TerminalsListCore as T, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TerminalsListFilters extends Components.TerminalsListFilters, HTMLElement {}
|
|
4
|
+
export const TerminalsListFilters: {
|
|
5
|
+
prototype: TerminalsListFilters;
|
|
6
|
+
new (): TerminalsListFilters;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { T as TerminalsListFilters$1, d as defineCustomElement$1 } from './terminals-list-filters2.js';
|
|
2
|
+
|
|
3
|
+
const TerminalsListFilters = TerminalsListFilters$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { TerminalsListFilters, defineCustomElement };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { l as lodash } from './lodash.js';
|
|
3
|
+
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './form-control-error-text2.js';
|
|
5
|
+
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './form-control-text2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './table-filters-menu2.js';
|
|
9
|
+
|
|
10
|
+
const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsListFilters extends HTMLElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.__registerHost();
|
|
14
|
+
this.params = {};
|
|
15
|
+
this.setParamsOnChange = undefined;
|
|
16
|
+
this.clearParams = undefined;
|
|
17
|
+
}
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
// debounced input handler for text input
|
|
20
|
+
this.debouncedSetParamsOnChange = lodash.exports.debounce(this.setParamsOnChange, 300);
|
|
21
|
+
}
|
|
22
|
+
get terminalStatusOptions() {
|
|
23
|
+
return [
|
|
24
|
+
{ label: 'All', value: '' },
|
|
25
|
+
{ label: 'Connected', value: 'connected' },
|
|
26
|
+
{ label: 'Disconnected', value: 'disconnected' },
|
|
27
|
+
{ label: 'Unknown', value: 'unknown' },
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h("table-filters-menu", { key: '4bfd04cf078878811b2692ff166598deb22b7d92', params: this.params, clearParams: this.clearParams }, h("div", { key: '470d4eb34429c887d03beb0caedd8c9486d18900', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '34d34e8c90c36b7cab1fb3442cb04e58f9ebb334', class: "p-2" }, h("form-control-text", { key: '5234008261646f1a090686fc0d795a6e846c9e04', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.terminal_id })), h("div", { key: 'fdd089fa29bf030ed3825993ff4e50a9ecefa1dc', class: "p-2" }, h("form-control-select", { key: '0c078ec1ecffea26e0cec5633cb4748337a75643', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.status || '' })))));
|
|
32
|
+
}
|
|
33
|
+
}, [0, "terminals-list-filters", {
|
|
34
|
+
"params": [16],
|
|
35
|
+
"setParamsOnChange": [16],
|
|
36
|
+
"clearParams": [16]
|
|
37
|
+
}]);
|
|
38
|
+
function defineCustomElement() {
|
|
39
|
+
if (typeof customElements === "undefined") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const components = ["terminals-list-filters", "custom-popper", "form-control-error-text", "form-control-select", "form-control-text", "form-control-tooltip", "table-filters-menu"];
|
|
43
|
+
components.forEach(tagName => { switch (tagName) {
|
|
44
|
+
case "terminals-list-filters":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
customElements.define(tagName, TerminalsListFilters);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
case "custom-popper":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
defineCustomElement$6();
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case "form-control-error-text":
|
|
55
|
+
if (!customElements.get(tagName)) {
|
|
56
|
+
defineCustomElement$5();
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
case "form-control-select":
|
|
60
|
+
if (!customElements.get(tagName)) {
|
|
61
|
+
defineCustomElement$4();
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case "form-control-text":
|
|
65
|
+
if (!customElements.get(tagName)) {
|
|
66
|
+
defineCustomElement$3();
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
case "form-control-tooltip":
|
|
70
|
+
if (!customElements.get(tagName)) {
|
|
71
|
+
defineCustomElement$2();
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
case "table-filters-menu":
|
|
75
|
+
if (!customElements.get(tagName)) {
|
|
76
|
+
defineCustomElement$1();
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
} });
|
|
80
|
+
}
|
|
81
|
+
defineCustomElement();
|
|
82
|
+
|
|
83
|
+
export { TerminalsListFilters as T, defineCustomElement as d };
|
package/dist/module/utils2.js
CHANGED
|
@@ -3848,14 +3848,15 @@ var Dinero = function Dinero(options) {
|
|
|
3848
3848
|
|
|
3849
3849
|
var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
3850
3850
|
|
|
3851
|
-
function formatCurrency(amount, withSymbol = true) {
|
|
3851
|
+
function formatCurrency(amount, withSymbol = true, withCurrencyName = false) {
|
|
3852
3852
|
if (!amount)
|
|
3853
3853
|
amount = 0;
|
|
3854
3854
|
function format(amount) {
|
|
3855
3855
|
const formattedString = withSymbol ? '$0,0.00' : '0,0.00';
|
|
3856
3856
|
return dinero({ amount: amount, currency: 'USD' }).toFormat(formattedString);
|
|
3857
3857
|
}
|
|
3858
|
-
|
|
3858
|
+
const formattedAmount = amount < 0 ? `(${format(-amount)})` : format(amount);
|
|
3859
|
+
return withCurrencyName ? `${formattedAmount} USD` : formattedAmount;
|
|
3859
3860
|
}
|
|
3860
3861
|
function formatDate(dateString) {
|
|
3861
3862
|
if (!dateString)
|
|
@@ -3908,46 +3909,6 @@ function extractComputedFontsToLoad() {
|
|
|
3908
3909
|
const computedStyles = getComputedStyle(document.body);
|
|
3909
3910
|
return (((_a = computedStyles === null || computedStyles === void 0 ? void 0 : computedStyles.getPropertyValue('--jfi-load-google-font')) === null || _a === void 0 ? void 0 : _a.trim().replace(/'|"/g, '').replace(' ', '+')) || null);
|
|
3910
3911
|
}
|
|
3911
|
-
const MapPaymentStatusToBadge = (status) => {
|
|
3912
|
-
switch (status) {
|
|
3913
|
-
case 'authorized':
|
|
3914
|
-
return "<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";
|
|
3915
|
-
case 'disputed':
|
|
3916
|
-
return "<span class='badge bg-primary' title='The account holder disputed this payment. The amount has been returned and a fee assessed.'>Disputed</span>";
|
|
3917
|
-
case 'achFailed':
|
|
3918
|
-
return "<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";
|
|
3919
|
-
case 'failed':
|
|
3920
|
-
return "<span class='badge bg-danger' title='This card payment didn't go through (it won't appear in a payout)'>Failed</span>";
|
|
3921
|
-
case 'fully_refunded':
|
|
3922
|
-
return "<span class='badge bg-primary' title='The full amount of this payment has been refunded'>Fully Refunded</span>";
|
|
3923
|
-
case 'partially_refunded':
|
|
3924
|
-
return "<span class='badge bg-primary' title='A portion of this payment has been refunded'>Partially Refunded</span>";
|
|
3925
|
-
case 'pending':
|
|
3926
|
-
return "<span class='badge bg-secondary' title='This ACH payment was processed, but the funds haven't settled. It could still succeed or fail.'>Pending</span>";
|
|
3927
|
-
case 'succeeded':
|
|
3928
|
-
return "<span class='badge bg-success' title='This payment was successfully captured'>Successful</span>";
|
|
3929
|
-
}
|
|
3930
|
-
};
|
|
3931
|
-
const MapPayoutStatusToBadge = (status) => {
|
|
3932
|
-
switch (status) {
|
|
3933
|
-
case 'canceled':
|
|
3934
|
-
return "<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";
|
|
3935
|
-
case 'failed':
|
|
3936
|
-
return "<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";
|
|
3937
|
-
case 'forwarded':
|
|
3938
|
-
return "<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";
|
|
3939
|
-
case 'in_transit':
|
|
3940
|
-
return "<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";
|
|
3941
|
-
case 'paid':
|
|
3942
|
-
return "<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";
|
|
3943
|
-
case 'pending':
|
|
3944
|
-
return "<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";
|
|
3945
|
-
case 'scheduled':
|
|
3946
|
-
return "<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";
|
|
3947
|
-
case 'withdrawn':
|
|
3948
|
-
return "<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>";
|
|
3949
|
-
}
|
|
3950
|
-
};
|
|
3951
3912
|
/**
|
|
3952
3913
|
* Converts a snake_case string to a human-readable format by replacing underscores with spaces and capitalizing the first letter of each word.
|
|
3953
3914
|
*
|
|
@@ -4009,4 +3970,4 @@ const isInRange = (num, min, max) => {
|
|
|
4009
3970
|
return num >= min && num <= max;
|
|
4010
3971
|
};
|
|
4011
3972
|
|
|
4012
|
-
export {
|
|
3973
|
+
export { formatDate as a, formatTime as b, formatCurrency as c, formatDisplayDate as d, composeQueryParams as e, formatMediumDate as f, isInRange as g, formatTimeSeconds as h, isEmptyObject as i, snakeToCamel as j, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
|
package/dist/types/api/Api.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface IApiProps {
|
|
|
21
21
|
apiOrigin: string;
|
|
22
22
|
}
|
|
23
23
|
declare const Api: ({ authToken, apiOrigin }: IApiProps) => {
|
|
24
|
-
get: (endpoint: string, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
24
|
+
get: (endpoint: string, params?: any, signal?: AbortSignal, headers?: HeadersInit) => Promise<any>;
|
|
25
25
|
post: (endpoint: string, body?: any, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
26
26
|
put: (endpoint: string, body?: any, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
27
27
|
patch: (endpoint: string, body?: any, params?: any, signal?: AbortSignal) => Promise<any>;
|
|
@@ -7,7 +7,40 @@ export interface IBnpl {
|
|
|
7
7
|
provider_order_id: string;
|
|
8
8
|
provider_api_version: string;
|
|
9
9
|
}
|
|
10
|
+
interface ICompletion {
|
|
11
|
+
payment_mode?: ICheckoutPaymentMode;
|
|
12
|
+
payment_token?: string | null;
|
|
13
|
+
payment_status?: string | null;
|
|
14
|
+
payment_response?: any;
|
|
15
|
+
payment_error_code?: string | null;
|
|
16
|
+
payment_error_description?: string | null;
|
|
17
|
+
checkout_id?: string;
|
|
18
|
+
additional_transactions?: any[];
|
|
19
|
+
payment_id?: string;
|
|
20
|
+
payment_method_id?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
created_at: string;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class Completion implements ICompletion {
|
|
26
|
+
payment_mode?: ICheckoutPaymentMode;
|
|
27
|
+
payment_token?: string | null;
|
|
28
|
+
payment_status?: string | null;
|
|
29
|
+
payment_response?: any;
|
|
30
|
+
payment_error_code?: string | null;
|
|
31
|
+
payment_error_description?: string | null;
|
|
32
|
+
checkout_id?: string;
|
|
33
|
+
additional_transactions?: any[];
|
|
34
|
+
payment_id?: string;
|
|
35
|
+
payment_method_id?: string;
|
|
36
|
+
status?: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
constructor(data: ICompletion);
|
|
40
|
+
}
|
|
10
41
|
export interface ICheckout {
|
|
42
|
+
id: string;
|
|
43
|
+
description: string;
|
|
11
44
|
payment_intent_id: string;
|
|
12
45
|
account_id: string;
|
|
13
46
|
platform_account_id: string;
|
|
@@ -37,8 +70,18 @@ export interface ICheckout {
|
|
|
37
70
|
total_amount: number;
|
|
38
71
|
insurance_amount: number;
|
|
39
72
|
status: ICheckoutStatus;
|
|
73
|
+
payment_currency?: string;
|
|
74
|
+
mode?: string | null;
|
|
75
|
+
statement_descriptor?: string | null;
|
|
76
|
+
application_fees?: any[] | null;
|
|
77
|
+
successful_payment_id?: string | null;
|
|
78
|
+
created_at: string;
|
|
79
|
+
updated_at: string;
|
|
80
|
+
completions?: ICompletion[];
|
|
40
81
|
}
|
|
41
82
|
export declare class Checkout implements ICheckout {
|
|
83
|
+
id: string;
|
|
84
|
+
description: string;
|
|
42
85
|
payment_intent_id: string;
|
|
43
86
|
account_id: string;
|
|
44
87
|
platform_account_id: string;
|
|
@@ -68,10 +111,33 @@ export declare class Checkout implements ICheckout {
|
|
|
68
111
|
total_amount: number;
|
|
69
112
|
insurance_amount: number;
|
|
70
113
|
status: ICheckoutStatus;
|
|
114
|
+
payment_currency?: string;
|
|
115
|
+
mode?: string | null;
|
|
116
|
+
statement_descriptor?: string | null;
|
|
117
|
+
application_fees?: any[] | null;
|
|
118
|
+
successful_payment_id?: string | null;
|
|
119
|
+
created_at: string;
|
|
120
|
+
updated_at: string;
|
|
121
|
+
completions?: ICompletion[];
|
|
122
|
+
sub_account_name?: string;
|
|
71
123
|
constructor(data: ICheckout);
|
|
124
|
+
get payment_mode(): ICheckoutPaymentMode;
|
|
125
|
+
}
|
|
126
|
+
export declare enum ICheckoutPaymentMode {
|
|
127
|
+
bnpl = "Buy Now Pay Later",
|
|
128
|
+
ecom = "E-commerce",
|
|
129
|
+
card = "Card",
|
|
130
|
+
bank_account = "Bank Account",
|
|
131
|
+
card_present = "Card Present",
|
|
132
|
+
unknown = ""
|
|
133
|
+
}
|
|
134
|
+
export declare enum CompletionStatuses {
|
|
135
|
+
failed = "failed",
|
|
136
|
+
succeeded = "succeeded"
|
|
72
137
|
}
|
|
138
|
+
export type ICheckoutStatus = 'created' | 'completed' | 'attempted' | 'expired';
|
|
73
139
|
export type ICheckoutCompleteResponse = IApiResponse<{
|
|
74
|
-
payment_mode:
|
|
140
|
+
payment_mode: ICheckoutPaymentMode;
|
|
75
141
|
payment_token: null;
|
|
76
142
|
payment_status: string;
|
|
77
143
|
payment_response: null;
|
|
@@ -79,7 +145,13 @@ export type ICheckoutCompleteResponse = IApiResponse<{
|
|
|
79
145
|
additional_transactions: any[];
|
|
80
146
|
checkout: ICheckout;
|
|
81
147
|
}>;
|
|
82
|
-
export type ICheckoutStatus = 'created' | 'completed' | 'attempted' | 'expired';
|
|
83
148
|
export type ILoadedEventResponse = {
|
|
84
149
|
checkout_status: ICheckoutStatus;
|
|
85
150
|
};
|
|
151
|
+
export interface ICheckoutsParams {
|
|
152
|
+
status?: ICheckoutStatus;
|
|
153
|
+
payment_mode?: ICheckoutPaymentMode;
|
|
154
|
+
after_cursor?: string;
|
|
155
|
+
before_cursor?: string;
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
@@ -8,12 +8,18 @@ export declare enum PaymentMethodTypes {
|
|
|
8
8
|
sezzle = "sezzle",
|
|
9
9
|
saved = "saved"
|
|
10
10
|
}
|
|
11
|
+
export declare enum PaymentTypes {
|
|
12
|
+
card = "Card",
|
|
13
|
+
bankAccount = "ACH",
|
|
14
|
+
unknown = "Unknown"
|
|
15
|
+
}
|
|
11
16
|
export declare enum PaymentStatuses {
|
|
12
17
|
pending = "pending",
|
|
13
18
|
automatic = "automatic",
|
|
14
19
|
authorized = "authorized",
|
|
15
20
|
succeeded = "succeeded",
|
|
16
21
|
failed = "failed",
|
|
22
|
+
canceled = "canceled",
|
|
17
23
|
disputed = "disputed",
|
|
18
24
|
fully_refunded = "fully_refunded",
|
|
19
25
|
partially_refunded = "partially_refunded"
|
|
@@ -150,6 +156,7 @@ export declare class Payment implements IPayment {
|
|
|
150
156
|
transaction_hold: null;
|
|
151
157
|
constructor(payment: IPayment);
|
|
152
158
|
get disputedStatus(): PaymentDisputedStatuses | null;
|
|
159
|
+
get paymentType(): PaymentTypes;
|
|
153
160
|
}
|
|
154
161
|
export interface IRefund {
|
|
155
162
|
id: string;
|