@justifi/webcomponents 4.22.1 → 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-0d90fa0d.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-19f08938.js → business-additional-questions-schema-0cddd038.js} +2 -2
- package/dist/cjs/{business-identity-schema-a8bb2276.js → business-identity-schema-f5a3b008.js} +1 -1
- package/dist/cjs/{check-pkg-version-fafb21ae.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-596f102c.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-184a4356.js → schema-validations-e8a17401.js} +0 -13
- 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 -11
- 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-a46c0c00.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-97f52255.js → business-additional-questions-schema-af4aa8ae.js} +2 -2
- package/dist/esm/{business-identity-schema-434e16bc.js → business-identity-schema-1a5cb306.js} +1 -1
- package/dist/esm/{check-pkg-version-ed46fa3b.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-6c5cc174.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-c1728516.js → schema-validations-5dc879a9.js} +0 -13
- 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 -13
- 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-4c0c88e4.entry.js → p-10277025.entry.js} +1 -1
- package/dist/webcomponents/{p-c4df0098.entry.js → p-157ddb71.entry.js} +1 -1
- package/dist/webcomponents/p-17984027.entry.js +1 -0
- package/dist/webcomponents/{p-11ff46df.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-1c44712a.entry.js → p-3ec27a31.entry.js} +1 -1
- package/dist/webcomponents/{p-927a147c.entry.js → p-3ed7fc42.entry.js} +1 -1
- package/dist/webcomponents/{p-18afa159.entry.js → p-4046e45c.entry.js} +1 -1
- package/dist/webcomponents/p-420adedb.entry.js +1 -0
- package/dist/webcomponents/{p-74822344.js → p-4408a32d.js} +1 -1
- package/dist/webcomponents/p-448826a7.entry.js +1 -0
- package/dist/webcomponents/{p-fb2005de.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-c8b2f11d.entry.js → p-74340f69.entry.js} +1 -1
- package/dist/webcomponents/p-7fc27a1a.js +1 -0
- package/dist/webcomponents/{p-0eb0d813.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-3fbbdbba.entry.js → p-a9775002.entry.js} +1 -1
- package/dist/webcomponents/p-ada9ac19.entry.js +1 -0
- package/dist/webcomponents/{p-16fc16aa.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-c5175bd7.js +1 -0
- package/dist/webcomponents/p-c8243721.js +1 -0
- package/dist/webcomponents/p-cd19c597.entry.js +1 -0
- package/dist/webcomponents/{p-7fea661a.js → p-ce94232f.js} +1 -1
- package/dist/webcomponents/{p-84987cd4.entry.js → p-d09e9336.entry.js} +1 -1
- package/dist/webcomponents/{p-7fec2bcb.js → p-d1f75fa6.js} +1 -1
- package/dist/webcomponents/{p-69ea7334.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-d5cd727b.entry.js → p-eab21e1f.entry.js} +1 -1
- package/dist/webcomponents/{p-eee24bb2.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-32a782c8.entry.js → p-fea520c6.entry.js} +1 -1
- package/dist/webcomponents/{p-5f10b3e9.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-088826fe.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.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-2c2b57b3.js +0 -1
- package/dist/webcomponents/p-2c51d29f.js +0 -1
- package/dist/webcomponents/p-366c49b6.entry.js +0 -1
- package/dist/webcomponents/p-3d3468a8.js +0 -1
- package/dist/webcomponents/p-4422ca71.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-8480e3ab.entry.js +0 -1
- package/dist/webcomponents/p-8ec550d7.entry.js +0 -1
- package/dist/webcomponents/p-8f26db63.entry.js +0 -1
- package/dist/webcomponents/p-907ba963.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-c65b78cf.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-e07d5e0f.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-fc4de0d2.js +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import './Checkout-0b4086f8.js';
|
|
3
3
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
|
-
import './Payment-
|
|
5
|
-
import './SubAccount-
|
|
6
|
-
import { a as formatDate, f as formatTime, b as formatCurrency } from './utils-3daada24.js';
|
|
4
|
+
import './Payment-2a868d0c.js';
|
|
5
|
+
import './SubAccount-99a00594.js';
|
|
7
6
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
h("path", { d: 'M11 4h2v9h-2z' }),
|
|
14
|
-
h("path", { d: 'M5 18h14v2H5z' })));
|
|
7
|
+
import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table-44e3d1e7.js';
|
|
8
|
+
import { o as onFilterChange } from './utils-4006c425.js';
|
|
9
|
+
import { p as payoutTableColumns, a as payoutTableCells } from './payouts-table-edff9bbe.js';
|
|
10
|
+
import './utils-1df1e55a.js';
|
|
11
|
+
import './payouts-status-cd58e525.js';
|
|
15
12
|
|
|
16
13
|
const PayoutsListCore = class {
|
|
17
14
|
constructor(hostRef) {
|
|
@@ -30,9 +27,6 @@ const PayoutsListCore = class {
|
|
|
30
27
|
},
|
|
31
28
|
});
|
|
32
29
|
};
|
|
33
|
-
this.handleDateChange = (name, value) => {
|
|
34
|
-
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
35
|
-
};
|
|
36
30
|
this.handleClickPrevious = (beforeCursor) => {
|
|
37
31
|
const newParams = Object.assign({}, this.params);
|
|
38
32
|
delete newParams.after_cursor;
|
|
@@ -49,29 +43,72 @@ const PayoutsListCore = class {
|
|
|
49
43
|
return;
|
|
50
44
|
this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
|
|
51
45
|
};
|
|
46
|
+
this.setParamsOnChange = (name, value) => {
|
|
47
|
+
let newParams = { [name]: value };
|
|
48
|
+
this.params = onFilterChange(newParams, this.params);
|
|
49
|
+
};
|
|
50
|
+
this.clearParams = () => {
|
|
51
|
+
this.errorMessage = '';
|
|
52
|
+
this.params = {};
|
|
53
|
+
};
|
|
52
54
|
this.getPayouts = undefined;
|
|
55
|
+
this.getSubAccounts = undefined;
|
|
53
56
|
this.getPayoutCSV = undefined;
|
|
57
|
+
this.columns = undefined;
|
|
54
58
|
this.payouts = [];
|
|
59
|
+
this.payoutsTable = undefined;
|
|
60
|
+
this.subAccounts = [];
|
|
55
61
|
this.loading = true;
|
|
56
62
|
this.errorMessage = undefined;
|
|
57
63
|
this.paging = pagingDefaults;
|
|
58
|
-
this.params =
|
|
64
|
+
this.params = {};
|
|
59
65
|
}
|
|
60
66
|
updateOnPropChange() {
|
|
61
|
-
this.
|
|
67
|
+
this.fetchPayouts();
|
|
62
68
|
}
|
|
63
69
|
componentWillLoad() {
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
this.payoutsTable = new Table(this.payouts, this.columns, payoutTableColumns, payoutTableCells(this.downloadCSV));
|
|
71
|
+
if (this.getPayouts && this.getSubAccounts) {
|
|
72
|
+
this.fetchPayouts();
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
|
-
|
|
75
|
+
fetchPayouts() {
|
|
69
76
|
this.loading = true;
|
|
70
77
|
this.getPayouts({
|
|
71
78
|
params: this.params,
|
|
72
79
|
onSuccess: ({ payouts, pagingInfo }) => {
|
|
73
80
|
this.payouts = payouts;
|
|
74
81
|
this.paging = pagingInfo;
|
|
82
|
+
this.payoutsTable.collectionData = this.payouts;
|
|
83
|
+
const shouldFetchSubAccounts = this.payoutsTable.columnKeys.includes('sub_account_name');
|
|
84
|
+
if (shouldFetchSubAccounts) {
|
|
85
|
+
this.fetchSubAccounts();
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
this.loading = false;
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
onError: ({ error, code, severity }) => {
|
|
92
|
+
this.errorMessage = error;
|
|
93
|
+
this.errorEvent.emit({
|
|
94
|
+
errorCode: code,
|
|
95
|
+
message: error,
|
|
96
|
+
severity,
|
|
97
|
+
});
|
|
98
|
+
this.loading = false;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
async fetchSubAccounts() {
|
|
103
|
+
this.getSubAccounts({
|
|
104
|
+
params: this.subAccountParams,
|
|
105
|
+
onSuccess: ({ subAccounts }) => {
|
|
106
|
+
this.subAccounts = subAccounts;
|
|
107
|
+
this.payouts = this.payouts.map((payout) => {
|
|
108
|
+
var _a;
|
|
109
|
+
payout.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === payout.account_id)) === null || _a === void 0 ? void 0 : _a.name;
|
|
110
|
+
return payout;
|
|
111
|
+
});
|
|
75
112
|
this.loading = false;
|
|
76
113
|
},
|
|
77
114
|
onError: ({ error, code, severity }) => {
|
|
@@ -85,61 +122,31 @@ const PayoutsListCore = class {
|
|
|
85
122
|
},
|
|
86
123
|
});
|
|
87
124
|
}
|
|
125
|
+
get subAccountParams() {
|
|
126
|
+
let accountIdNumbers = this.payouts.map((payout) => payout.account_id);
|
|
127
|
+
let uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
128
|
+
let accountIdString = uniqueAccountIds.join(',');
|
|
129
|
+
return { sub_account_id: accountIdString };
|
|
130
|
+
}
|
|
88
131
|
get entityId() {
|
|
89
132
|
return this.payouts.map((payout) => payout.id);
|
|
90
133
|
}
|
|
91
|
-
get columnData() {
|
|
92
|
-
return [
|
|
93
|
-
['Paid Out On', 'The date each transaction occurred'],
|
|
94
|
-
['Type', 'The type of each transaction'],
|
|
95
|
-
['Account', 'The ID of the account associated with each payout'],
|
|
96
|
-
['Paid Out To', 'The bank account to which each payout was transferred'],
|
|
97
|
-
['Payments', 'Sum of payments in each payout'],
|
|
98
|
-
['Refunds', 'Sum of refunds in each payout'],
|
|
99
|
-
['Fees', 'Sum of fees in each payout'],
|
|
100
|
-
['Other', 'Sum of less common transactions in each payout'],
|
|
101
|
-
['Payout Amount', 'The net sum of all transactions in each payout'],
|
|
102
|
-
['Status', 'The real-time status of each payout'],
|
|
103
|
-
['Actions', ''],
|
|
104
|
-
];
|
|
105
|
-
}
|
|
106
|
-
get rowData() {
|
|
107
|
-
return this.payouts.map((payout) => [
|
|
108
|
-
{
|
|
109
|
-
type: 'head',
|
|
110
|
-
value: `
|
|
111
|
-
<div class='fw-bold'>${formatDate(payout.created_at)}</div>
|
|
112
|
-
<div class='fw-bold'>${formatTime(payout.created_at)}</div>
|
|
113
|
-
`,
|
|
114
|
-
},
|
|
115
|
-
payout.payout_type,
|
|
116
|
-
payout.account_id,
|
|
117
|
-
`${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
|
|
118
|
-
formatCurrency(payout.payments_total),
|
|
119
|
-
formatCurrency(payout.refunds_total),
|
|
120
|
-
formatCurrency(payout.fees_total),
|
|
121
|
-
formatCurrency(payout.other_total),
|
|
122
|
-
formatCurrency(payout.amount),
|
|
123
|
-
{ type: 'inner', value: MapPayoutStatusToBadge(payout.status) },
|
|
124
|
-
(h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } })),
|
|
125
|
-
]);
|
|
126
|
-
}
|
|
127
134
|
get showEmptyState() {
|
|
128
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
135
|
+
return !this.loading && !this.errorMessage && this.payoutsTable.rowData.length < 1;
|
|
129
136
|
}
|
|
130
137
|
get showErrorState() {
|
|
131
138
|
return !this.loading && !!this.errorMessage;
|
|
132
139
|
}
|
|
133
140
|
get showRowData() {
|
|
134
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
141
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
135
142
|
}
|
|
136
143
|
render() {
|
|
137
|
-
return (h("div", { key: '
|
|
138
|
-
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (h("tfoot", { key: 'd2a1b0dd2340cf64816ad05c1c03f136b21df0a6', class: "sticky-bottom" }, h("tr", { key: 'abb87b7c026475da175a6bec772887bf3ac08933', class: "table-light align-middle" }, h("td", { key: '32070f512aebc77a42693a93e717d31ef9ed4509', part: "pagination-bar", colSpan: this.columnData.length }, h("pagination-menu", { key: '57ee656553f4afee96f5dbdac5866f103cde97eb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
144
|
+
return (h("div", { key: '3768192e14155536f0fb53d2abc5f1e92b04cc01' }, h("payouts-list-filters", { key: '3fec8cfc6b9d68798148e9eea0725079d32e3406', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '291b7a53bb5657c87568169ebccc1dead39d10c9', class: "table-wrapper" }, h("table", { key: '624389fddf8b00dcaf70a75693b542b2f4af4982', class: "table table-hover" }, h("thead", { key: '1e28a2a6988eac106c40b8f029d9fa2118cbdb6d', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '1f05dd4c54fb350545cf6b1b3e86b80d96932585', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '3af09dc61461f31f61c2cfdf7896b7dfe9441450', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '715a3d0732e45810bdfdcbe5c7db8f29934a1a62', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '3aac2554828eac0c6b0645da5df811b5e5463235', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: 'cf2b312830b9f59550346085f00bc519e496b2b2', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.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: '3d7389fb825a7eafcd456b3ae95b115a4218fea3', class: "sticky-bottom" }, h("tr", { key: '4c10aa64144a281d8303b04f013bfcc2390f4d04', class: "table-light align-middle" }, h("td", { key: '63614e636203a5f15beb26b4d19eed393b6ea481', part: "pagination-bar", colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '7708ac8b21d2db0ec9ade773dd46cd944374ede5', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
139
145
|
}
|
|
140
146
|
static get watchers() { return {
|
|
141
147
|
"params": ["updateOnPropChange"],
|
|
142
|
-
"getPayouts": ["updateOnPropChange"]
|
|
148
|
+
"getPayouts": ["updateOnPropChange"],
|
|
149
|
+
"getSubAccounts": ["updateOnPropChange"]
|
|
143
150
|
}; }
|
|
144
151
|
};
|
|
145
152
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
+
import { g as convertToUTC, c as convertToLocal } from './utils-1df1e55a.js';
|
|
3
|
+
|
|
4
|
+
const PayoutsListFilters = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this.handleDateInput = (name, value) => {
|
|
8
|
+
const utcDate = convertToUTC(value, { setEndOfDay: true });
|
|
9
|
+
this.setParamsOnChange(name, utcDate);
|
|
10
|
+
};
|
|
11
|
+
this.params = undefined;
|
|
12
|
+
this.setParamsOnChange = undefined;
|
|
13
|
+
this.clearParams = undefined;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
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 }) })))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { PayoutsListFilters as payouts_list_filters };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { h } from './index-57431c24.js';
|
|
2
|
+
import { c as convertToLocal, b as formatCurrency } from './utils-1df1e55a.js';
|
|
3
|
+
import { M as MapPayoutStatusToBadge } from './payouts-status-cd58e525.js';
|
|
4
|
+
|
|
5
|
+
const defaultColumnsKeys = 'created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv';
|
|
6
|
+
const payoutTableColumns = {
|
|
7
|
+
created_at: () => (h("th", { part: "table-head-cell", scope: "col", title: "The date the payout was deposited" }, "Created")),
|
|
8
|
+
sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the payout" }, "Sub Account")),
|
|
9
|
+
payments_total: () => (h("th", { part: "table-head-cell", scope: "col", title: "The total payments amount associated with the payout" }, "Payments")),
|
|
10
|
+
refunds_total: () => (h("th", { part: "table-head-cell", scope: "col", title: "The total refunds amount associated with the payout" }, "Refunds")),
|
|
11
|
+
fees_total: () => (h("th", { part: "table-head-cell", scope: "col", title: "The total fees amount associated with the payout" }, "Fees")),
|
|
12
|
+
other_total: () => (h("th", { part: "table-head-cell", scope: "col", title: "The total other amount" }, "Other")),
|
|
13
|
+
amount: () => (h("th", { part: "table-head-cell", scope: "col", title: "The total amount of the payout" }, "Amount")),
|
|
14
|
+
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The real-time status of each payout" }, "Status")),
|
|
15
|
+
csv: () => (h("th", { part: "table-head-cell", scope: "col", title: "Export CSV" })),
|
|
16
|
+
};
|
|
17
|
+
const payoutTableCells = (downloadCSV) => ({
|
|
18
|
+
created_at: (value) => (h("td", { part: "table-cell" },
|
|
19
|
+
h("div", { class: "fw-bold" },
|
|
20
|
+
convertToLocal(value, { showDisplayDate: true }),
|
|
21
|
+
" "))),
|
|
22
|
+
sub_account_name: (value) => (h("td", { part: "table-cell" }, value)),
|
|
23
|
+
payments_total: (value) => (h("td", { part: "table-cell" }, formatCurrency(value))),
|
|
24
|
+
refunds_total: (value) => (h("td", { part: "table-cell" }, formatCurrency(value))),
|
|
25
|
+
fees_total: (value) => (h("td", { part: "table-cell" }, formatCurrency(value))),
|
|
26
|
+
other_total: (value) => (h("td", { part: "table-cell" }, formatCurrency(value))),
|
|
27
|
+
amount: (value) => (h("td", { part: "table-cell" }, formatCurrency(value))),
|
|
28
|
+
status: (value) => (h("td", { part: "table-cell", innerHTML: MapPayoutStatusToBadge(value) })),
|
|
29
|
+
csv: (value) => (h("td", { part: "table-cell" },
|
|
30
|
+
h("a", { href: "#", onClick: (event) => { event.preventDefault(); downloadCSV(value); } }, "CSV"))),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { payoutTableCells as a, defaultColumnsKeys as d, payoutTableColumns as p };
|
|
@@ -18,13 +18,10 @@ const validateRoutingNumber = (routingNumber) => {
|
|
|
18
18
|
}
|
|
19
19
|
return false;
|
|
20
20
|
};
|
|
21
|
-
const businessNameRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
|
|
22
21
|
const phoneRegex = /^\d{10}$/;
|
|
23
22
|
const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
24
|
-
const stringLettersOnlyRegex = /^(?!^\s+$)[a-zA-Z\s]*$/;
|
|
25
23
|
const numbersOnlyRegex = /^\d+$/;
|
|
26
24
|
const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
|
|
27
|
-
const streetAddressRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
|
|
28
25
|
const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
|
|
29
26
|
|
|
30
27
|
var EntityDocumentType;
|
|
@@ -92,12 +89,10 @@ const phoneValidation = create$6()
|
|
|
92
89
|
const businessNameValidation = create$6()
|
|
93
90
|
.min(2, 'Name must be at least 2 characters')
|
|
94
91
|
.max(100, 'Name must be less than 100 characters')
|
|
95
|
-
.matches(businessNameRegex, 'Enter valid business name')
|
|
96
92
|
.transform(transformEmptyString);
|
|
97
93
|
const doingBusinessAsValidation = create$6()
|
|
98
94
|
.min(2, 'Name must be at least 2 characters')
|
|
99
95
|
.max(100, 'Name must be less than 100 characters')
|
|
100
|
-
.matches(businessNameRegex, 'Enter valid doing business as')
|
|
101
96
|
.transform(transformEmptyString);
|
|
102
97
|
const websiteUrlValidation = create$6()
|
|
103
98
|
.matches(urlRegex, 'Enter valid website url')
|
|
@@ -108,7 +103,6 @@ const businessClassificationValidation = create$6()
|
|
|
108
103
|
const industryValidation = create$6()
|
|
109
104
|
.min(2, 'Industry must be at least 2 characters')
|
|
110
105
|
.max(50, 'Industry must be less than 50 characters')
|
|
111
|
-
.matches(stringLettersOnlyRegex, 'Enter valid industry')
|
|
112
106
|
.transform(transformEmptyString);
|
|
113
107
|
const taxIdValidation = create$6()
|
|
114
108
|
.matches(numbersOnlyRegex, 'Enter valid tax id, SSN, or EIN')
|
|
@@ -130,12 +124,10 @@ const dateOfIncorporationValidation = create$6()
|
|
|
130
124
|
const identityNameValidation = create$6()
|
|
131
125
|
.min(2, 'Name must be at least 2 characters')
|
|
132
126
|
.max(100, 'Name must be less than 100 characters')
|
|
133
|
-
.matches(stringLettersOnlyRegex, 'Enter valid name')
|
|
134
127
|
.transform(transformEmptyString);
|
|
135
128
|
const identityTitleValidation = create$6()
|
|
136
129
|
.min(2, 'Title must be at least 2 characters')
|
|
137
130
|
.max(50, 'Title must be less than 50 characters')
|
|
138
|
-
.matches(stringLettersOnlyRegex, 'Enter valid title')
|
|
139
131
|
.transform(transformEmptyString);
|
|
140
132
|
const dobValidation = (role) => {
|
|
141
133
|
return (create$6()
|
|
@@ -170,14 +162,12 @@ const ssnValidation = create$6()
|
|
|
170
162
|
const lineOneValidation = create$6()
|
|
171
163
|
.min(5, 'Address must be at least 5 characters')
|
|
172
164
|
.max(100, 'Address must be less than 100 characters')
|
|
173
|
-
.matches(streetAddressRegex, 'Enter valid address line 1')
|
|
174
165
|
.test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
|
|
175
166
|
return !poBoxRegex.test(value);
|
|
176
167
|
})
|
|
177
168
|
.transform(transformEmptyString);
|
|
178
169
|
const lineTwoValidation = create$6()
|
|
179
170
|
.max(100, 'Address must be less than 100 characters')
|
|
180
|
-
.matches(streetAddressRegex, 'Enter valid address line 2')
|
|
181
171
|
.test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
|
|
182
172
|
return !poBoxRegex.test(value);
|
|
183
173
|
})
|
|
@@ -185,7 +175,6 @@ const lineTwoValidation = create$6()
|
|
|
185
175
|
const cityValidation = create$6()
|
|
186
176
|
.min(2, 'City must be at least 2 characters')
|
|
187
177
|
.max(50, 'City must be less than 50 characters')
|
|
188
|
-
.matches(stringLettersOnlyRegex, 'Enter valid city')
|
|
189
178
|
.transform(transformEmptyString);
|
|
190
179
|
const stateValidation = create$6()
|
|
191
180
|
.oneOf(StateOptions.map((option) => option.value), 'Select state')
|
|
@@ -222,12 +211,10 @@ const otherPaymentDetailsValidation = create$6()
|
|
|
222
211
|
const bankNameValidation = create$6()
|
|
223
212
|
.min(2, 'Name must be at least 2 characters')
|
|
224
213
|
.max(50, 'Name must be less than 50 characters')
|
|
225
|
-
.matches(stringLettersOnlyRegex, 'Enter valid bank name')
|
|
226
214
|
.transform(transformEmptyString);
|
|
227
215
|
const nicknameValidation = create$6()
|
|
228
216
|
.min(2, 'Name must be at least 2 characters')
|
|
229
217
|
.max(50, 'Name must be less than 50 characters')
|
|
230
|
-
.matches(stringLettersOnlyRegex, 'Enter valid nickname')
|
|
231
218
|
.transform(transformEmptyString);
|
|
232
219
|
const accountTypeValidation = create$6()
|
|
233
220
|
.oneOf(bankAccountTypeOptions.map((option) => option.value), 'Select account type')
|
|
@@ -31,4 +31,24 @@ const TableLoadingState = (props) => {
|
|
|
31
31
|
h("span", { class: "visually-hidden" }, "Loading...")))));
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
class Table {
|
|
35
|
+
get columnData() {
|
|
36
|
+
return this.columnKeys.map((key) => this.tableColumns[key]());
|
|
37
|
+
}
|
|
38
|
+
get rowData() {
|
|
39
|
+
return this.collection.map((dataEntry) => {
|
|
40
|
+
return this.columnKeys.map((key) => this.tableCells[key](dataEntry[key]));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
set collectionData(collection) {
|
|
44
|
+
this.collection = collection;
|
|
45
|
+
}
|
|
46
|
+
constructor(collection, columns, tableColumns, tableCells) {
|
|
47
|
+
this.columnKeys = columns.split(',');
|
|
48
|
+
this.collection = collection;
|
|
49
|
+
this.tableColumns = tableColumns;
|
|
50
|
+
this.tableCells = tableCells;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { Table as T, TableLoadingState as a, TableEmptyState as b, TableErrorState as c };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import './Checkout-0b4086f8.js';
|
|
3
3
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
|
-
import './Payment-
|
|
5
|
-
import './SubAccount-
|
|
6
|
-
import { T as
|
|
7
|
-
import { o as onFilterChange } from './utils-
|
|
8
|
-
import { t as terminalTableColumns, a as terminalTableCells } from './terminals-table-
|
|
9
|
-
import { T as Table } from './table-5da154e7.js';
|
|
4
|
+
import './Payment-2a868d0c.js';
|
|
5
|
+
import './SubAccount-99a00594.js';
|
|
6
|
+
import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table-44e3d1e7.js';
|
|
7
|
+
import { o as onFilterChange } from './utils-4006c425.js';
|
|
8
|
+
import { t as terminalTableColumns, a as terminalTableCells } from './terminals-table-dc787616.js';
|
|
10
9
|
|
|
11
10
|
const TerminalsListCore = class {
|
|
12
11
|
constructor(hostRef) {
|
|
@@ -126,7 +125,7 @@ const TerminalsListCore = class {
|
|
|
126
125
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
127
126
|
}
|
|
128
127
|
render() {
|
|
129
|
-
return (h("div", { key: '
|
|
128
|
+
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 })))))))));
|
|
130
129
|
}
|
|
131
130
|
static get watchers() { return {
|
|
132
131
|
"params": ["updateOnPropChange"],
|
|
@@ -21,7 +21,7 @@ const TerminalsListFilters = class {
|
|
|
21
21
|
];
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h("table-filters-menu", { key: '
|
|
24
|
+
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 || '' })))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -19,10 +19,10 @@ const terminalTableColumns = {
|
|
|
19
19
|
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
20
20
|
};
|
|
21
21
|
const terminalTableCells = {
|
|
22
|
-
nickname: (value) => (h("td",
|
|
23
|
-
provider_id: (value) => (h("td",
|
|
24
|
-
sub_account_name: (value) => (h("td",
|
|
25
|
-
status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
22
|
+
nickname: (value) => (h("td", { part: "table-cell" }, value)),
|
|
23
|
+
provider_id: (value) => (h("td", { part: "table-cell" }, value)),
|
|
24
|
+
sub_account_name: (value) => (h("td", { part: "table-cell" }, value)),
|
|
25
|
+
status: (value) => (h("td", { part: "table-cell", innerHTML: MapTerminalStatusToBadge(value) })),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export { terminalTableCells as a, defaultColumnsKeys as d, terminalTableColumns as t };
|
|
@@ -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, formatCurrency as b,
|
|
3989
|
+
export { formatDate as a, formatCurrency as b, convertToLocal as c, formatDisplayDate as d, formatMediumDate as e, formatTime as f, convertToUTC as g, snakeToCamel as h, isEmptyObject as i, isInRange as j, formatTimeSeconds as k, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
|
|
@@ -1,3 +1,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
|
+
}
|
|
1
12
|
const onFilterChange = (newFilters, params) => {
|
|
2
13
|
let newParams = Object.assign({}, params);
|
|
3
14
|
delete newParams.before_cursor;
|
|
@@ -19,4 +30,4 @@ const hasFilters = (params) => {
|
|
|
19
30
|
return !!filterKeys.length;
|
|
20
31
|
};
|
|
21
32
|
|
|
22
|
-
export { hasFilters as h, onFilterChange as o };
|
|
33
|
+
export { composeQueryParams as c, hasFilters as h, onFilterChange as o };
|