@justifi/webcomponents 4.22.2 → 4.23.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-99a3c7f8.js → Analytics-25d3d168.js} +1 -1
- package/dist/cjs/{Payment-04a842f4.js → Payment-87b47c43.js} +7 -1
- package/dist/cjs/{SubAccount-cc95a4a0.js → SubAccount-fda5ec5b.js} +3 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-d82355b0.js → business-additional-questions-schema-0cddd038.js} +2 -2
- package/dist/cjs/{business-identity-schema-3d241053.js → business-identity-schema-f5a3b008.js} +1 -1
- package/dist/cjs/{check-pkg-version-9bd49ad6.js → check-pkg-version-f5b03b02.js} +1 -1
- package/dist/cjs/{checkout.service-160f3a9c.js → checkout.service-aae1996c.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -8
- package/dist/cjs/{checkouts-table-24c065ff.js → checkouts-table-00b6482f.js} +7 -7
- package/dist/cjs/custom-popper_4.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +6 -37
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
- package/dist/cjs/form-control-textarea.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-12dc9540.js → get-payout-csv-1eed32ee.js} +17 -8
- package/dist/cjs/{get-subaccounts-8f7a930f.js → get-subaccounts-1d2fb201.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +42 -20
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e25f61a8.js → package-bc606eae.js} +2 -2
- package/dist/cjs/{pagination-menu.cjs.entry.js → pagination-menu_2.cjs.entry.js} +29 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-83da752a.js → payment.service-86871f43.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -52
- package/dist/cjs/payments-list-filters.cjs.entry.js +6 -1
- package/dist/cjs/{payments-status-58e45b2e.js → payments-status-68ac449d.js} +2 -2
- package/dist/cjs/payments-table-7087e771.js +31 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +66 -59
- package/dist/cjs/payouts-list-filters.cjs.entry.js +24 -0
- package/dist/cjs/payouts-table-4858eb84.js +37 -0
- package/dist/cjs/{schema-validations-7a9afa7c.js → schema-validations-e8a17401.js} +0 -12
- package/dist/cjs/{table-loading-state-8b406852.js → table-ec9ce9f7.js} +21 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +6 -7
- package/dist/cjs/terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/{terminals-table-99a7b87b.js → terminals-table-12410159.js} +4 -4
- package/dist/cjs/{utils-f8a6962c.js → utils-ba79e868.js} +12 -0
- package/dist/cjs/{utils-3d84442d.js → utils-e88fbc94.js} +49 -32
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +7 -1
- package/dist/collection/api/Payout.js +4 -0
- package/dist/collection/api/services/payout.service.js +15 -6
- package/dist/collection/api/services/terminal.service.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -10
- package/dist/collection/components/checkouts-list/checkouts-list.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-table.js +6 -6
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +4 -4
- package/dist/collection/components/dispute-management/dispute-management-core.js +3 -3
- package/dist/collection/components/dispute-management/dispute-notification.js +4 -4
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +32 -47
- package/dist/collection/components/payments-list/payments-list-filters.js +6 -1
- package/dist/collection/components/payments-list/payments-list.js +22 -3
- package/dist/collection/components/payments-list/payments-status.js +2 -2
- package/dist/collection/components/payments-list/payments-table.js +22 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/get-payouts.js +3 -4
- package/dist/collection/components/payouts-list/payouts-list-core.js +102 -51
- package/dist/collection/components/payouts-list/payouts-list-filters.js +72 -0
- package/dist/collection/components/payouts-list/payouts-list.js +71 -12
- package/dist/collection/components/payouts-list/payouts-table.js +26 -0
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +2 -2
- package/dist/collection/components/terminals-list/terminals-table.js +4 -4
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/utils.js +11 -0
- package/dist/collection/ui-components/form/form-control-checkbox.js +1 -1
- package/dist/collection/ui-components/form/form-control-date.js +6 -55
- package/dist/collection/ui-components/form/form-control-file.js +1 -1
- package/dist/collection/ui-components/form/form-control-monetary.js +1 -1
- package/dist/collection/ui-components/form/form-control-number-masked.js +1 -1
- package/dist/collection/ui-components/form/form-control-number.js +1 -1
- package/dist/collection/ui-components/form/form-control-radio.js +1 -1
- package/dist/collection/ui-components/form/form-control-text.js +1 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +1 -1
- package/dist/collection/utils/table.js +2 -2
- package/dist/collection/utils/utils.js +49 -52
- package/dist/docs.json +276 -49
- package/dist/esm/{Analytics-f4e959b2.js → Analytics-810c3026.js} +1 -1
- package/dist/esm/{Payment-30790721.js → Payment-2a868d0c.js} +7 -1
- package/dist/esm/{SubAccount-7f7e4c56.js → SubAccount-99a00594.js} +3 -0
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-a5072d2b.js → business-additional-questions-schema-af4aa8ae.js} +2 -2
- package/dist/esm/{business-identity-schema-b31178a1.js → business-identity-schema-1a5cb306.js} +1 -1
- package/dist/esm/{check-pkg-version-5e658940.js → check-pkg-version-434f72bf.js} +1 -1
- package/dist/esm/{checkout.service-ef1549c6.js → checkout.service-c1e44e0c.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +6 -7
- package/dist/esm/{checkouts-table-62c44909.js → checkouts-table-cd33b57c.js} +7 -7
- package/dist/esm/custom-popper_4.entry.js +3 -3
- package/dist/esm/form-control-checkbox_9.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +6 -37
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number-masked_2.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-textarea.entry.js +1 -1
- package/dist/esm/{get-payout-csv-70974763.js → get-payout-csv-3b83b088.js} +17 -8
- package/dist/esm/{get-subaccounts-16c8ce40.js → get-subaccounts-dd20cfa4.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +3 -3
- package/dist/esm/justifi-additional-statement_11.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_5.entry.js +2 -2
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-form.entry.js +6 -6
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +11 -7
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +42 -20
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-95aca142.js → package-16f4801d.js} +2 -2
- package/dist/esm/{pagination-menu.entry.js → pagination-menu_2.entry.js} +29 -1
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-2f67410b.js → payment.service-ca6b5bc5.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +18 -52
- package/dist/esm/payments-list-filters.entry.js +6 -1
- package/dist/esm/{payments-status-4937a170.js → payments-status-a7c18f2a.js} +2 -2
- package/dist/esm/payments-table-bba91324.js +27 -0
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +67 -60
- package/dist/esm/payouts-list-filters.entry.js +20 -0
- package/dist/esm/payouts-table-edff9bbe.js +33 -0
- package/dist/esm/{schema-validations-cd8c5f69.js → schema-validations-5dc879a9.js} +0 -12
- package/dist/esm/{table-loading-state-356c7215.js → table-44e3d1e7.js} +21 -1
- package/dist/esm/terminals-list-core.entry.js +6 -7
- package/dist/esm/terminals-list-filters.entry.js +1 -1
- package/dist/esm/{terminals-table-059c473e.js → terminals-table-dc787616.js} +4 -4
- package/dist/esm/{utils-3daada24.js → utils-1df1e55a.js} +48 -32
- package/dist/esm/{utils-3a4d8f3a.js → utils-4006c425.js} +12 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +7 -1
- package/dist/module/SubAccount.js +3 -0
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/checkouts-list-core2.js +9 -9
- package/dist/module/counter-dispute.js +3 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +3 -3
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +6 -38
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-radio2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/form-control-textarea2.js +1 -1
- package/dist/module/get-payout-csv.js +16 -7
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-checkout.js +1 -1
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-form.js +1 -1
- package/dist/module/justifi-payments-list.js +5 -3
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +63 -28
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/package.js +2 -2
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payments-list-core2.js +43 -52
- package/dist/module/payments-list-filters2.js +6 -1
- package/dist/module/payments-status.js +2 -2
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +118 -67
- package/dist/module/payouts-list-filters.d.ts +11 -0
- package/dist/module/payouts-list-filters.js +6 -0
- package/dist/module/payouts-list-filters2.js +69 -0
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +0 -12
- package/dist/module/table-filters-menu2.js +2 -22
- package/dist/module/table.js +36 -3
- package/dist/module/terminals-list-core2.js +8 -8
- package/dist/module/terminals-list-filters2.js +1 -1
- package/dist/module/utils2.js +48 -32
- package/dist/module/utils3.js +30 -25
- package/dist/module/utils4.js +24 -23
- package/dist/module/utils5.js +27 -0
- package/dist/types/api/Payment.d.ts +3 -1
- package/dist/types/api/Payout.d.ts +8 -0
- package/dist/types/api/services/payout.service.d.ts +5 -5
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +1 -1
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-notification.d.ts +1 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +4 -6
- package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -0
- package/dist/types/components/payments-list/payments-list.d.ts +1 -0
- package/dist/types/components/payments-list/payments-status.d.ts +1 -1
- package/dist/types/components/payments-list/payments-table.d.ts +19 -0
- package/dist/types/components/payouts-list/get-payouts.d.ts +2 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +15 -7
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +8 -3
- package/dist/types/components/payouts-list/payouts-table.d.ts +23 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +1 -1
- package/dist/types/components.d.ts +41 -12
- package/dist/types/ui-components/filters/utils.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-date.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +15 -16
- package/dist/webcomponents/p-0a963f7e.entry.js +1 -0
- package/dist/webcomponents/{p-8e228e5a.js → p-0d6ddff2.js} +1 -1
- package/dist/webcomponents/p-0fbab710.entry.js +1 -0
- package/dist/webcomponents/{p-91711083.entry.js → p-10277025.entry.js} +1 -1
- package/dist/webcomponents/{p-09fb7dd6.entry.js → p-157ddb71.entry.js} +1 -1
- package/dist/webcomponents/p-17984027.entry.js +1 -0
- package/dist/webcomponents/{p-7a8c13ba.entry.js → p-229f2096.entry.js} +1 -1
- package/dist/webcomponents/p-286b87ab.js +1 -0
- package/dist/webcomponents/p-28bd6dcd.js +1 -0
- package/dist/webcomponents/p-2f422aad.entry.js +1 -0
- package/dist/webcomponents/{p-869ae0c7.entry.js → p-3186d1fb.entry.js} +1 -1
- package/dist/webcomponents/p-3db8b3c7.js +1 -0
- package/dist/webcomponents/p-3ec27a31.entry.js +1 -0
- package/dist/webcomponents/{p-927a147c.entry.js → p-3ed7fc42.entry.js} +1 -1
- package/dist/webcomponents/{p-83b01812.entry.js → p-4046e45c.entry.js} +1 -1
- package/dist/webcomponents/p-420adedb.entry.js +1 -0
- package/dist/webcomponents/{p-b459d0b0.js → p-4408a32d.js} +1 -1
- package/dist/webcomponents/p-448826a7.entry.js +1 -0
- package/dist/webcomponents/{p-22e38d5b.js → p-44d3f5ed.js} +1 -1
- package/dist/webcomponents/{p-6caf6f09.entry.js → p-469804a9.entry.js} +1 -1
- package/dist/webcomponents/{p-0de9e97b.entry.js → p-486da67e.entry.js} +1 -1
- package/dist/webcomponents/{p-a3143d62.entry.js → p-4a5e5574.entry.js} +1 -1
- package/dist/webcomponents/p-54145a37.entry.js +1 -0
- package/dist/webcomponents/p-544a4e7a.js +1 -0
- package/dist/webcomponents/p-59959934.entry.js +1 -0
- package/dist/webcomponents/{p-286a4e72.entry.js → p-628693c1.entry.js} +1 -1
- package/dist/webcomponents/{p-02cf5e6f.js → p-673cf8c4.js} +1 -1
- package/dist/webcomponents/{p-c30c8f39.entry.js → p-69527219.entry.js} +1 -1
- package/dist/webcomponents/{p-9ef4d294.entry.js → p-74340f69.entry.js} +1 -1
- package/dist/webcomponents/p-7fc27a1a.js +1 -0
- package/dist/webcomponents/{p-c458fc48.entry.js → p-81635086.entry.js} +1 -1
- package/dist/webcomponents/p-89f6691e.js +1 -0
- package/dist/webcomponents/p-91de21cc.js +1 -0
- package/dist/webcomponents/p-95ec39f6.entry.js +1 -0
- package/dist/webcomponents/p-9690eca9.entry.js +1 -0
- package/dist/webcomponents/{p-efb56234.entry.js → p-a7830e98.entry.js} +1 -1
- package/dist/webcomponents/p-a856444a.entry.js +1 -0
- package/dist/webcomponents/{p-a91a2152.entry.js → p-a9775002.entry.js} +1 -1
- package/dist/webcomponents/p-ada9ac19.entry.js +1 -0
- package/dist/webcomponents/{p-eed325b7.entry.js → p-b607a07f.entry.js} +1 -1
- package/dist/webcomponents/p-bb71cef3.js +1 -0
- package/dist/webcomponents/{p-c5c6e61d.js → p-bc8205ec.js} +1 -1
- package/dist/webcomponents/{p-a8f22d4d.js → p-c13a7d10.js} +1 -1
- package/dist/webcomponents/p-c3fb5d3a.entry.js +1 -0
- package/dist/webcomponents/p-c420cb7d.entry.js +1 -0
- package/dist/webcomponents/{p-90b8acc6.js → p-c5175bd7.js} +1 -1
- package/dist/webcomponents/p-c8243721.js +1 -0
- package/dist/webcomponents/p-cd19c597.entry.js +1 -0
- package/dist/webcomponents/{p-9e7204b5.js → p-ce94232f.js} +1 -1
- package/dist/webcomponents/{p-92a766d8.entry.js → p-d09e9336.entry.js} +1 -1
- package/dist/webcomponents/{p-7fec2bcb.js → p-d1f75fa6.js} +1 -1
- package/dist/webcomponents/{p-55f78fcc.entry.js → p-daa7872f.entry.js} +1 -1
- package/dist/webcomponents/{p-2c8c214f.entry.js → p-dcb288a3.entry.js} +1 -1
- package/dist/webcomponents/p-dd43bf3d.entry.js +1 -0
- package/dist/webcomponents/p-df3ca87f.entry.js +1 -0
- package/dist/webcomponents/p-df5a1202.entry.js +1 -0
- package/dist/webcomponents/p-e2ce097c.js +1 -0
- package/dist/webcomponents/{p-eeb70281.entry.js → p-e5790011.entry.js} +1 -1
- package/dist/webcomponents/p-e9919d54.entry.js +1 -0
- package/dist/webcomponents/p-e99957ff.entry.js +1 -0
- package/dist/webcomponents/p-eab21e1f.entry.js +1 -0
- package/dist/webcomponents/{p-8e2e24d8.entry.js → p-ed05a597.entry.js} +1 -1
- package/dist/webcomponents/p-ed95feec.entry.js +1 -0
- package/dist/webcomponents/{p-8f212554.entry.js → p-f698d6d9.entry.js} +1 -1
- package/dist/webcomponents/p-fd5f2836.js +1 -0
- package/dist/webcomponents/{p-5fd72c29.entry.js → p-fea520c6.entry.js} +1 -1
- package/dist/webcomponents/{p-2dc7751f.entry.js → p-ff4bac14.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/table-20e9a053.js +0 -23
- package/dist/cjs/table-filters-menu.cjs.entry.js +0 -35
- package/dist/esm/table-5da154e7.js +0 -21
- package/dist/esm/table-filters-menu.entry.js +0 -31
- package/dist/module/table-loading-state.js +0 -34
- package/dist/webcomponents/p-0c03a971.entry.js +0 -1
- package/dist/webcomponents/p-0ec27543.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
- package/dist/webcomponents/p-1251a3f5.entry.js +0 -1
- package/dist/webcomponents/p-1ab798f4.entry.js +0 -1
- package/dist/webcomponents/p-269ba6fe.entry.js +0 -1
- package/dist/webcomponents/p-2a9f48f0.entry.js +0 -1
- package/dist/webcomponents/p-2c2b57b3.js +0 -1
- package/dist/webcomponents/p-2c51d29f.js +0 -1
- package/dist/webcomponents/p-3f82f724.entry.js +0 -1
- package/dist/webcomponents/p-44f7f729.entry.js +0 -1
- package/dist/webcomponents/p-47dbe17d.js +0 -1
- package/dist/webcomponents/p-4b14abbf.entry.js +0 -1
- package/dist/webcomponents/p-638c6285.entry.js +0 -1
- package/dist/webcomponents/p-7285c687.js +0 -1
- package/dist/webcomponents/p-8480e3ab.entry.js +0 -1
- package/dist/webcomponents/p-88efdd31.js +0 -1
- package/dist/webcomponents/p-8ec550d7.entry.js +0 -1
- package/dist/webcomponents/p-919e6e67.entry.js +0 -1
- package/dist/webcomponents/p-935188c8.entry.js +0 -1
- package/dist/webcomponents/p-9f56ad71.js +0 -1
- package/dist/webcomponents/p-ad443df5.entry.js +0 -1
- package/dist/webcomponents/p-b16269d7.js +0 -1
- package/dist/webcomponents/p-bba131f9.entry.js +0 -1
- package/dist/webcomponents/p-c717646f.entry.js +0 -1
- package/dist/webcomponents/p-cd4eaeb7.js +0 -1
- package/dist/webcomponents/p-cd7e866c.entry.js +0 -1
- package/dist/webcomponents/p-e333620e.js +0 -1
- package/dist/webcomponents/p-e412a713.entry.js +0 -1
- package/dist/webcomponents/p-e6be8845.entry.js +0 -1
- package/dist/webcomponents/p-e8797be0.entry.js +0 -1
- package/dist/webcomponents/p-f45197b9.entry.js +0 -1
- package/dist/webcomponents/p-fc4de0d2.js +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { k as convertToUTC, j as convertToLocal } from './utils2.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './form-control-date2.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './form-control-error-text2.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
|
|
7
|
+
import { d as defineCustomElement$1 } from './table-filters-menu2.js';
|
|
8
|
+
|
|
9
|
+
const PayoutsListFilters = /*@__PURE__*/ proxyCustomElement(class PayoutsListFilters extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.handleDateInput = (name, value) => {
|
|
14
|
+
const utcDate = convertToUTC(value, { setEndOfDay: true });
|
|
15
|
+
this.setParamsOnChange(name, utcDate);
|
|
16
|
+
};
|
|
17
|
+
this.params = undefined;
|
|
18
|
+
this.setParamsOnChange = undefined;
|
|
19
|
+
this.clearParams = undefined;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h("table-filters-menu", { key: '2f80b6ac3308af53f20f1c8c8fbc596937eeda1d', params: this.params, clearParams: this.clearParams }, h("div", { key: '6e0bf319268d1bcbbd81e922f0855eb1c497815f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '8c29a63ea0c4836a0b002db9adc75ea69cdde988', class: "p-2" }, h("form-control-date", { key: '74399fdd150d71758f817454944ef34c9b443240', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.params.created_after, { showInputDate: true }) })), h("div", { key: 'e98911d5b92ed5a6642d8f59b23abbebf4f1f85b', class: "p-2" }, h("form-control-date", { key: '4f233e95aeae496357938c69f25336123fbf1f0f', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.params.created_before, { showInputDate: true }) })))));
|
|
23
|
+
}
|
|
24
|
+
}, [0, "payouts-list-filters", {
|
|
25
|
+
"params": [16],
|
|
26
|
+
"setParamsOnChange": [16],
|
|
27
|
+
"clearParams": [16]
|
|
28
|
+
}]);
|
|
29
|
+
function defineCustomElement() {
|
|
30
|
+
if (typeof customElements === "undefined") {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const components = ["payouts-list-filters", "custom-popper", "form-control-date", "form-control-error-text", "form-control-tooltip", "table-filters-menu"];
|
|
34
|
+
components.forEach(tagName => { switch (tagName) {
|
|
35
|
+
case "payouts-list-filters":
|
|
36
|
+
if (!customElements.get(tagName)) {
|
|
37
|
+
customElements.define(tagName, PayoutsListFilters);
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
case "custom-popper":
|
|
41
|
+
if (!customElements.get(tagName)) {
|
|
42
|
+
defineCustomElement$5();
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
case "form-control-date":
|
|
46
|
+
if (!customElements.get(tagName)) {
|
|
47
|
+
defineCustomElement$4();
|
|
48
|
+
}
|
|
49
|
+
break;
|
|
50
|
+
case "form-control-error-text":
|
|
51
|
+
if (!customElements.get(tagName)) {
|
|
52
|
+
defineCustomElement$3();
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
case "form-control-tooltip":
|
|
56
|
+
if (!customElements.get(tagName)) {
|
|
57
|
+
defineCustomElement$2();
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case "table-filters-menu":
|
|
61
|
+
if (!customElements.get(tagName)) {
|
|
62
|
+
defineCustomElement$1();
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
} });
|
|
66
|
+
}
|
|
67
|
+
defineCustomElement();
|
|
68
|
+
|
|
69
|
+
export { PayoutsListFilters as P, defineCustomElement as d };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as config } from './config.js';
|
|
3
|
-
import {
|
|
3
|
+
import { h as snakeToCamel } from './utils2.js';
|
|
4
4
|
|
|
5
5
|
class PaymentMethodOption {
|
|
6
6
|
constructor(paymentMethod) {
|
|
@@ -19,13 +19,10 @@ const validateRoutingNumber = (routingNumber) => {
|
|
|
19
19
|
}
|
|
20
20
|
return false;
|
|
21
21
|
};
|
|
22
|
-
const businessNameRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
|
|
23
22
|
const phoneRegex = /^\d{10}$/;
|
|
24
23
|
const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
25
|
-
const stringLettersOnlyRegex = /^(?!^\s+$)[a-zA-Z\s]*$/;
|
|
26
24
|
const numbersOnlyRegex = /^\d+$/;
|
|
27
25
|
const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
|
|
28
|
-
const streetAddressRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
|
|
29
26
|
const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
|
|
30
27
|
|
|
31
28
|
// Common Validations
|
|
@@ -39,12 +36,10 @@ const phoneValidation = create$6()
|
|
|
39
36
|
const businessNameValidation = create$6()
|
|
40
37
|
.min(2, 'Name must be at least 2 characters')
|
|
41
38
|
.max(100, 'Name must be less than 100 characters')
|
|
42
|
-
.matches(businessNameRegex, 'Enter valid business name')
|
|
43
39
|
.transform(transformEmptyString);
|
|
44
40
|
const doingBusinessAsValidation = create$6()
|
|
45
41
|
.min(2, 'Name must be at least 2 characters')
|
|
46
42
|
.max(100, 'Name must be less than 100 characters')
|
|
47
|
-
.matches(businessNameRegex, 'Enter valid doing business as')
|
|
48
43
|
.transform(transformEmptyString);
|
|
49
44
|
const websiteUrlValidation = create$6()
|
|
50
45
|
.matches(urlRegex, 'Enter valid website url')
|
|
@@ -55,7 +50,6 @@ const businessClassificationValidation = create$6()
|
|
|
55
50
|
const industryValidation = create$6()
|
|
56
51
|
.min(2, 'Industry must be at least 2 characters')
|
|
57
52
|
.max(50, 'Industry must be less than 50 characters')
|
|
58
|
-
.matches(stringLettersOnlyRegex, 'Enter valid industry')
|
|
59
53
|
.transform(transformEmptyString);
|
|
60
54
|
const taxIdValidation = create$6()
|
|
61
55
|
.matches(numbersOnlyRegex, 'Enter valid tax id, SSN, or EIN')
|
|
@@ -81,7 +75,6 @@ const identityNameValidation = create$6()
|
|
|
81
75
|
const identityTitleValidation = create$6()
|
|
82
76
|
.min(2, 'Title must be at least 2 characters')
|
|
83
77
|
.max(50, 'Title must be less than 50 characters')
|
|
84
|
-
.matches(stringLettersOnlyRegex, 'Enter valid title')
|
|
85
78
|
.transform(transformEmptyString);
|
|
86
79
|
const dobValidation = (role) => {
|
|
87
80
|
return (create$6()
|
|
@@ -116,14 +109,12 @@ const ssnValidation = create$6()
|
|
|
116
109
|
const lineOneValidation = create$6()
|
|
117
110
|
.min(5, 'Address must be at least 5 characters')
|
|
118
111
|
.max(100, 'Address must be less than 100 characters')
|
|
119
|
-
.matches(streetAddressRegex, 'Enter valid address line 1')
|
|
120
112
|
.test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
|
|
121
113
|
return !poBoxRegex.test(value);
|
|
122
114
|
})
|
|
123
115
|
.transform(transformEmptyString);
|
|
124
116
|
const lineTwoValidation = create$6()
|
|
125
117
|
.max(100, 'Address must be less than 100 characters')
|
|
126
|
-
.matches(streetAddressRegex, 'Enter valid address line 2')
|
|
127
118
|
.test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
|
|
128
119
|
return !poBoxRegex.test(value);
|
|
129
120
|
})
|
|
@@ -131,7 +122,6 @@ const lineTwoValidation = create$6()
|
|
|
131
122
|
const cityValidation = create$6()
|
|
132
123
|
.min(2, 'City must be at least 2 characters')
|
|
133
124
|
.max(50, 'City must be less than 50 characters')
|
|
134
|
-
.matches(stringLettersOnlyRegex, 'Enter valid city')
|
|
135
125
|
.transform(transformEmptyString);
|
|
136
126
|
const stateValidation = create$6()
|
|
137
127
|
.oneOf(StateOptions.map((option) => option.value), 'Select state')
|
|
@@ -168,12 +158,10 @@ const otherPaymentDetailsValidation = create$6()
|
|
|
168
158
|
const bankNameValidation = create$6()
|
|
169
159
|
.min(2, 'Name must be at least 2 characters')
|
|
170
160
|
.max(50, 'Name must be less than 50 characters')
|
|
171
|
-
.matches(stringLettersOnlyRegex, 'Enter valid bank name')
|
|
172
161
|
.transform(transformEmptyString);
|
|
173
162
|
const nicknameValidation = create$6()
|
|
174
163
|
.min(2, 'Name must be at least 2 characters')
|
|
175
164
|
.max(50, 'Name must be less than 50 characters')
|
|
176
|
-
.matches(stringLettersOnlyRegex, 'Enter valid nickname')
|
|
177
165
|
.transform(transformEmptyString);
|
|
178
166
|
const accountTypeValidation = create$6()
|
|
179
167
|
.oneOf(bankAccountTypeOptions.map((option) => option.value), 'Select account type')
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { B as Button } from './button.js';
|
|
3
|
+
import { h as hasFilters } from './utils3.js';
|
|
3
4
|
import { d as defineCustomElement$1 } from './custom-popper2.js';
|
|
4
5
|
|
|
5
|
-
const onFilterChange = (newFilters, params) => {
|
|
6
|
-
let newParams = Object.assign({}, params);
|
|
7
|
-
delete newParams.before_cursor;
|
|
8
|
-
delete newParams.after_cursor;
|
|
9
|
-
Object.keys(newFilters).forEach((key) => {
|
|
10
|
-
if (newFilters[key].length) {
|
|
11
|
-
newParams[key] = newFilters[key];
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
delete newParams[key];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return newParams;
|
|
18
|
-
};
|
|
19
|
-
const hasFilters = (params) => {
|
|
20
|
-
const paginationKeys = ['after_cursor', 'before_cursor'];
|
|
21
|
-
const paramKeys = Object.keys(params);
|
|
22
|
-
const filterKeys = paramKeys.filter((paramKey) => !paginationKeys.includes(paramKey));
|
|
23
|
-
return !!filterKeys.length;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
6
|
const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu extends HTMLElement {
|
|
27
7
|
constructor() {
|
|
28
8
|
super();
|
|
@@ -77,4 +57,4 @@ function defineCustomElement() {
|
|
|
77
57
|
}
|
|
78
58
|
defineCustomElement();
|
|
79
59
|
|
|
80
|
-
export { TableFiltersMenu as T, defineCustomElement as d
|
|
60
|
+
export { TableFiltersMenu as T, defineCustomElement as d };
|
package/dist/module/table.js
CHANGED
|
@@ -1,10 +1,43 @@
|
|
|
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
|
+
|
|
1
34
|
class Table {
|
|
2
35
|
get columnData() {
|
|
3
36
|
return this.columnKeys.map((key) => this.tableColumns[key]());
|
|
4
37
|
}
|
|
5
38
|
get rowData() {
|
|
6
|
-
return this.collection.map((
|
|
7
|
-
return this.columnKeys.map((key) => this.tableCells[key](
|
|
39
|
+
return this.collection.map((dataEntry) => {
|
|
40
|
+
return this.columnKeys.map((key) => this.tableCells[key](dataEntry[key]));
|
|
8
41
|
});
|
|
9
42
|
}
|
|
10
43
|
set collectionData(collection) {
|
|
@@ -18,4 +51,4 @@ class Table {
|
|
|
18
51
|
}
|
|
19
52
|
}
|
|
20
53
|
|
|
21
|
-
export { Table as T };
|
|
54
|
+
export { Table as T, TableLoadingState as a, TableEmptyState as b, TableErrorState as c };
|
|
@@ -3,15 +3,15 @@ import './Checkout.js';
|
|
|
3
3
|
import { p as pagingDefaults } from './Pagination.js';
|
|
4
4
|
import './Payment.js';
|
|
5
5
|
import './SubAccount.js';
|
|
6
|
-
import { T as
|
|
7
|
-
import {
|
|
8
|
-
import { T as Table } from './table.js';
|
|
6
|
+
import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
|
|
7
|
+
import { o as onFilterChange } from './utils3.js';
|
|
9
8
|
import { d as defineCustomElement$8 } from './custom-popper2.js';
|
|
10
9
|
import { d as defineCustomElement$7 } from './form-control-error-text2.js';
|
|
11
10
|
import { d as defineCustomElement$6 } from './form-control-select2.js';
|
|
12
11
|
import { d as defineCustomElement$5 } from './form-control-text2.js';
|
|
13
12
|
import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
|
|
14
13
|
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './table-filters-menu2.js';
|
|
15
15
|
import { d as defineCustomElement$1 } from './terminals-list-filters2.js';
|
|
16
16
|
|
|
17
17
|
const MapTerminalStatusToBadge = (status) => {
|
|
@@ -33,10 +33,10 @@ const terminalTableColumns = {
|
|
|
33
33
|
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
34
34
|
};
|
|
35
35
|
const terminalTableCells = {
|
|
36
|
-
nickname: (value) => (h("td",
|
|
37
|
-
provider_id: (value) => (h("td",
|
|
38
|
-
sub_account_name: (value) => (h("td",
|
|
39
|
-
status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
36
|
+
nickname: (value) => (h("td", { part: "table-cell" }, value)),
|
|
37
|
+
provider_id: (value) => (h("td", { part: "table-cell" }, value)),
|
|
38
|
+
sub_account_name: (value) => (h("td", { part: "table-cell" }, value)),
|
|
39
|
+
status: (value) => (h("td", { part: "table-cell", innerHTML: MapTerminalStatusToBadge(value) })),
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCore extends HTMLElement {
|
|
@@ -158,7 +158,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
158
158
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return (h("div", { key: '
|
|
161
|
+
return (h("div", { key: 'd022a41666a6483bcb405bfe477b7eba1e5ca5dd' }, h("terminals-list-filters", { key: 'cb0d38d4b51c5cb9482c1f567dce4462bf12a055', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '82cbf05382d9ecaf0d01c4e0b5f61618b1442690', class: "table-wrapper" }, h("table", { key: '5c8bd36b6523cf56542b016e3195188781b2cb03', class: "table table-hover" }, h("thead", { key: 'f35d86ae84f673437e0fc51ad3e26b1839153590', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '7727a4e30dddd62d6dc3c405c7ca505f91a71643', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '4e0ee2053a33622037e7961ec289036e52632e3f', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '96cb647d4f5c2e4a1ecb33be46b868e1318762ca', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '062aeeb69a149b2f15e49c81bb3bd16a6d5a5dfd', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '750a04c3ecb53271b3affced7e9245733c64bd57', 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: '19edc599b2ccd6212c03045b754fe251335fa665', class: "sticky-bottom" }, h("tr", { key: 'dd793c33355dd6b0448e327a62b3cc08a0d09bad', class: "table-light align-middle" }, h("td", { key: '0b142d2c1b658e1bb084741fa461d7f350c3449c', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '757d9ba17e1a768aa0bcf573a2d02b455bac3df3', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"params": ["updateOnPropChange"],
|
|
@@ -28,7 +28,7 @@ const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsLis
|
|
|
28
28
|
];
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("table-filters-menu", { key: '
|
|
31
|
+
return (h("table-filters-menu", { key: '486847f69064b497b72521312d27097690eb19b2', params: this.params, clearParams: this.clearParams }, h("div", { key: '622e3572ff1cf85a60ffa30c4fa5d39780375abb', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '2cef9085c3d09e96907cdaa8330e8b8b80d8ceec', class: "p-2" }, h("form-control-text", { key: 'a3922b71cbdc93bbdddd519e44bad25379c6b5f4', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.terminal_id })), h("div", { key: '1027edf52dc1ceacc4779b29bda4b7d08c8a3c8c', class: "p-2" }, h("form-control-select", { key: 'e1f122b2868282a64dccc99b3e9d19fe7cc768fb', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.status || '' })))));
|
|
32
32
|
}
|
|
33
33
|
}, [0, "terminals-list-filters", {
|
|
34
34
|
"params": [16],
|
package/dist/module/utils2.js
CHANGED
|
@@ -3848,6 +3848,7 @@ var Dinero = function Dinero(options) {
|
|
|
3848
3848
|
|
|
3849
3849
|
var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
3850
3850
|
|
|
3851
|
+
// Currency Formatting
|
|
3851
3852
|
function formatCurrency(amount, withSymbol = true, withCurrencyName = false) {
|
|
3852
3853
|
if (!amount)
|
|
3853
3854
|
amount = 0;
|
|
@@ -3858,13 +3859,13 @@ function formatCurrency(amount, withSymbol = true, withCurrencyName = false) {
|
|
|
3858
3859
|
const formattedAmount = amount < 0 ? `(${format(-amount)})` : format(amount);
|
|
3859
3860
|
return withCurrencyName ? `${formattedAmount} USD` : formattedAmount;
|
|
3860
3861
|
}
|
|
3862
|
+
// Date Formatting and Conversion
|
|
3861
3863
|
function formatDate(dateString) {
|
|
3862
3864
|
if (!dateString)
|
|
3863
3865
|
return '';
|
|
3864
3866
|
const date = new Date(dateString);
|
|
3865
3867
|
return format(date, 'MMM d, yyyy');
|
|
3866
3868
|
}
|
|
3867
|
-
// eg. Oct 9, 2023
|
|
3868
3869
|
function formatMediumDate(input) {
|
|
3869
3870
|
// Check if input is a string and convert to Date object
|
|
3870
3871
|
if (typeof input === 'string') {
|
|
@@ -3904,21 +3905,40 @@ function formatTimeSeconds(dateString) {
|
|
|
3904
3905
|
const date = new Date(dateString);
|
|
3905
3906
|
return format(date, 'h:mm:ssaaa');
|
|
3906
3907
|
}
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3908
|
+
const convertToUTC = (dateString, options) => {
|
|
3909
|
+
const { setEndOfDay, setExactTime } = options;
|
|
3910
|
+
if (!dateString)
|
|
3911
|
+
return '';
|
|
3912
|
+
const dateObj = new Date(dateString);
|
|
3913
|
+
if (setEndOfDay) {
|
|
3914
|
+
// Adjust the time to be at the very end of the day
|
|
3915
|
+
dateObj.setUTCHours(23, 59, 59, 999);
|
|
3916
|
+
return new Date(dateObj.toUTCString()).toISOString();
|
|
3917
|
+
}
|
|
3918
|
+
else if (setExactTime) {
|
|
3919
|
+
return new Date(dateObj.toUTCString()).toISOString();
|
|
3920
|
+
}
|
|
3921
|
+
};
|
|
3922
|
+
const convertToLocal = (dateString, options) => {
|
|
3923
|
+
const { showDisplayDate, showInputDate, showTime, showInputDateTime } = options;
|
|
3924
|
+
if (!dateString)
|
|
3925
|
+
return '';
|
|
3926
|
+
const dateObj = new Date(dateString);
|
|
3927
|
+
const localDate = new Date(dateObj.toLocaleString('en-US', { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone }));
|
|
3928
|
+
if (showDisplayDate) {
|
|
3929
|
+
return format(localDate, 'MMM d, yyyy');
|
|
3930
|
+
}
|
|
3931
|
+
else if (showInputDate) {
|
|
3932
|
+
return format(localDate, 'yyyy-MM-dd');
|
|
3933
|
+
}
|
|
3934
|
+
else if (showTime) {
|
|
3935
|
+
return format(localDate, 'h:mmaaa');
|
|
3936
|
+
}
|
|
3937
|
+
else if (showInputDateTime) {
|
|
3938
|
+
return format(localDate, 'yyyy-MM-dd\'T\'HH:mm');
|
|
3939
|
+
}
|
|
3940
|
+
};
|
|
3941
|
+
// String Manipulation
|
|
3922
3942
|
function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
3923
3943
|
if (!snakeCaseStr)
|
|
3924
3944
|
return '';
|
|
@@ -3932,17 +3952,14 @@ function snakeToCamel(str) {
|
|
|
3932
3952
|
return '';
|
|
3933
3953
|
return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
|
|
3934
3954
|
}
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
return (value = `?${value}`);
|
|
3939
|
-
}
|
|
3940
|
-
else {
|
|
3941
|
-
return (value = `&${value}`);
|
|
3942
|
-
}
|
|
3943
|
-
});
|
|
3944
|
-
return queryParams.join('');
|
|
3955
|
+
// Object Utilities
|
|
3956
|
+
function isEmptyObject(obj) {
|
|
3957
|
+
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
3945
3958
|
}
|
|
3959
|
+
const isInRange = (num, min, max) => {
|
|
3960
|
+
return num >= min && num <= max;
|
|
3961
|
+
};
|
|
3962
|
+
// Font Loading
|
|
3946
3963
|
async function loadFontsOnParent() {
|
|
3947
3964
|
const parent = document.body;
|
|
3948
3965
|
const fontsToLoad = extractComputedFontsToLoad();
|
|
@@ -3963,11 +3980,10 @@ async function loadFontsOnParent() {
|
|
|
3963
3980
|
fonts.href = fontHref;
|
|
3964
3981
|
parent.append(fonts);
|
|
3965
3982
|
}
|
|
3966
|
-
function
|
|
3967
|
-
|
|
3983
|
+
function extractComputedFontsToLoad() {
|
|
3984
|
+
var _a;
|
|
3985
|
+
const computedStyles = getComputedStyle(document.body);
|
|
3986
|
+
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);
|
|
3968
3987
|
}
|
|
3969
|
-
const isInRange = (num, min, max) => {
|
|
3970
|
-
return num >= min && num <= max;
|
|
3971
|
-
};
|
|
3972
3988
|
|
|
3973
|
-
export { formatDate as a, formatTime as b, formatCurrency as c, formatDisplayDate as d,
|
|
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 };
|
package/dist/module/utils3.js
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
function composeQueryParams(values) {
|
|
2
|
+
const queryParams = values.map((value) => {
|
|
3
|
+
if (value === values[0]) {
|
|
4
|
+
return (value = `?${value}`);
|
|
5
|
+
}
|
|
6
|
+
else {
|
|
7
|
+
return (value = `&${value}`);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return queryParams.join('');
|
|
11
|
+
}
|
|
12
|
+
const onFilterChange = (newFilters, params) => {
|
|
13
|
+
let newParams = Object.assign({}, params);
|
|
14
|
+
delete newParams.before_cursor;
|
|
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;
|
|
15
25
|
};
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return ComponentErrorCodes.INVALID_PARAMETER;
|
|
22
|
-
// add more cases as needed
|
|
23
|
-
default:
|
|
24
|
-
return ComponentErrorCodes.FETCH_ERROR;
|
|
25
|
-
}
|
|
26
|
+
const hasFilters = (params) => {
|
|
27
|
+
const paginationKeys = ['after_cursor', 'before_cursor'];
|
|
28
|
+
const paramKeys = Object.keys(params);
|
|
29
|
+
const filterKeys = paramKeys.filter((paramKey) => !paginationKeys.includes(paramKey));
|
|
30
|
+
return !!filterKeys.length;
|
|
26
31
|
};
|
|
27
32
|
|
|
28
|
-
export {
|
|
33
|
+
export { composeQueryParams as c, hasFilters as h, onFilterChange as o };
|
package/dist/module/utils4.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
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;
|
|
20
13
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
return error.message;
|
|
15
|
+
};
|
|
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;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
export {
|
|
28
|
+
export { getErrorCode as a, getErrorMessage as g };
|
|
@@ -0,0 +1,27 @@
|
|
|
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;
|
|
7
|
+
}
|
|
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();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { numberOnlyHandler as n };
|
|
@@ -156,7 +156,9 @@ export declare class Payment implements IPayment {
|
|
|
156
156
|
transaction_hold: null;
|
|
157
157
|
constructor(payment: IPayment);
|
|
158
158
|
get disputedStatus(): PaymentDisputedStatuses | null;
|
|
159
|
-
get
|
|
159
|
+
get payment_type(): PaymentTypes;
|
|
160
|
+
get payers_name(): string | null;
|
|
161
|
+
get last_four_digits(): string | null;
|
|
160
162
|
}
|
|
161
163
|
export interface IRefund {
|
|
162
164
|
id: string;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { IBankAccount } from './BankAccount';
|
|
2
|
+
export interface PayoutsTableFilterParams {
|
|
3
|
+
created_after?: string;
|
|
4
|
+
created_before?: string;
|
|
5
|
+
before_cursor?: string;
|
|
6
|
+
after_cursor?: string;
|
|
7
|
+
}
|
|
2
8
|
export declare enum PayoutStatuses {
|
|
3
9
|
paid = "paid",
|
|
4
10
|
failed = "failed",
|
|
@@ -56,5 +62,7 @@ export declare class Payout implements IPayout {
|
|
|
56
62
|
metadata: Object | null;
|
|
57
63
|
created_at: string;
|
|
58
64
|
updated_at: string;
|
|
65
|
+
sub_account_name?: string;
|
|
59
66
|
constructor(payout: IPayout);
|
|
67
|
+
get csv(): string;
|
|
60
68
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IApiResponse, IApiResponseCollection, IPayout } from '..';
|
|
2
2
|
export interface IPayoutService {
|
|
3
|
-
fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
|
|
4
|
-
fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
|
|
3
|
+
fetchPayouts(accountId: string, authToken: string, params: any, apiOrigin?: string): Promise<IApiResponseCollection<IPayout[]>>;
|
|
4
|
+
fetchPayout(payoutId: string, authToken: string, apiOrigin?: string): Promise<IApiResponse<IPayout>>;
|
|
5
5
|
fetchCSV(payoutId: string, authToken: string): Promise<IApiResponse<any>>;
|
|
6
6
|
}
|
|
7
7
|
export declare class PayoutService implements IPayoutService {
|
|
8
|
-
fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
|
|
9
|
-
fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
|
|
10
|
-
fetchCSV(payoutId: string, authToken: string): Promise<IApiResponse<any>>;
|
|
8
|
+
fetchPayouts(accountId: string, authToken: string, params: any, apiOrigin?: string): Promise<IApiResponseCollection<IPayout[]>>;
|
|
9
|
+
fetchPayout(payoutId: string, authToken: string, apiOrigin?: string): Promise<IApiResponse<IPayout>>;
|
|
10
|
+
fetchCSV(payoutId: string, authToken: string, apiOrigin?: string): Promise<IApiResponse<any>>;
|
|
11
11
|
}
|