@justifi/webcomponents 5.3.4 → 5.3.5
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-2fb20059.js → Analytics-e91a5523.js} +1 -1
- package/dist/cjs/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
- package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-f9069337.js} +70 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-86a6a7f8.js → badge-6abf6ed3.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
- package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{button-5f6c437f.js → button-aed2ce1a.js} +1 -1
- package/dist/cjs/{check-pkg-version-f5a3d421.js → check-pkg-version-d19c6fdb.js} +1 -1
- package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-0643396e.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -7
- package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-f88ad3c8.js} +2 -2
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
- package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-53c80520.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-9905e3b8.js → form-control-error-text-74fb8498.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -4
- package/dist/cjs/{form-control-help-text-8d031bfb.js → form-control-help-text-3cffd918.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-13d68dab.js → get-payout-csv-bdd7d9c0.js} +2 -2
- package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-40c4a0b6.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-b202dbbb.js → header-1-cc98bae2.js} +1 -1
- package/dist/cjs/{header-3-5f78acd1.js → header-3-05ce2ad0.js} +1 -1
- package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-211cd636.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +71 -108
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -24
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +114 -21
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -25
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8aa0c51.js → package-82b16c28.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-c2655003.js → parts-63f60e81.js} +3 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-f53022c3.js → payment.service-23b0dcb8.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payments-status-92abe577.js → payments-status-b9192db7.js} +1 -1
- package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-dba2f145.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payouts-status-703d62af.js → payouts-status-385a794d.js} +1 -1
- package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-8cd537de.js} +2 -2
- package/dist/cjs/{skeleton-84102a44.js → skeleton-65afa2f5.js} +1 -1
- package/dist/cjs/{spinner-70f38e5e.js → spinner-a95e9b8d.js} +1 -1
- package/dist/cjs/{table-fc82fa81.js → table-ad35ff09.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +61 -8
- package/dist/cjs/terminal-orders-table-8baa5461.js +51 -0
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
- package/dist/cjs/terminal.service-2f41898f.js +30 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-c4c01dc3.js} +6 -4
- package/dist/cjs/{utils-7c5b2837.js → utils-f752bd45.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/TerminalModel.js +15 -0
- package/dist/collection/api/TerminalOrder.js +51 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/terminal.service.js +6 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
- package/dist/collection/components/order-terminals/order-terminals.js +79 -16
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-order-status.js +18 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-table.js +4 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +2 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/docs.json +428 -36
- package/dist/esm/{Analytics-759c7da5.js → Analytics-d0f79dc3.js} +1 -1
- package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
- package/dist/esm/{SubAccount-9aad3891.js → SubAccount-f31bdeb4.js} +69 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-2eb79416.js → badge-7768a2b1.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form_9.entry.js +4 -4
- package/dist/esm/billing-form_3.entry.js +6 -6
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{button-cc455199.js → button-b3d07089.js} +1 -1
- package/dist/esm/{check-pkg-version-1d6e48c8.js → check-pkg-version-2e9f961e.js} +1 -1
- package/dist/esm/{checkout.service-bb45d248.js → checkout.service-020aaf97.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +7 -7
- package/dist/esm/{checkouts-table-53981285.js → checkouts-table-974c57ba.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
- package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-b234b5c7.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-923afdfa.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -4
- package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-c7bdd493.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-9528b0a2.js} +2 -2
- package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-212c162d.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-797ca789.js → header-1-649109a3.js} +1 -1
- package/dist/esm/{header-3-544afa0b.js → header-3-ca7bb57b.js} +1 -1
- package/dist/esm/{insurance-state-307335d6.js → insurance-state-e3b48bb2.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
- package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +31 -24
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +115 -22
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +8 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +11 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +12 -12
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -24
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-49477570.js → package-b9d805ae.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-489f0af6.js → parts-18c966b1.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-a8ee345c.js → payment.service-81752187.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-status-35255b2c.js → payments-status-f451caf6.js} +1 -1
- package/dist/esm/{payments-table-6e97396a.js → payments-table-a7836555.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-bfae9f42.js} +1 -1
- package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-55f1a8a3.js} +2 -2
- package/dist/esm/{skeleton-74fbfb68.js → skeleton-ca37b248.js} +1 -1
- package/dist/esm/{spinner-6b708842.js → spinner-30abb9b0.js} +1 -1
- package/dist/esm/{table-e287f1c0.js → table-03e4dfc0.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +61 -8
- package/dist/esm/terminal-orders-table-a340c409.js +47 -0
- package/dist/esm/terminal-quantity-selector.entry.js +32 -0
- package/dist/esm/terminal.service-3c3f2c3f.js +28 -0
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/{terminals-table-c6258344.js → terminals-table-88549e54.js} +6 -4
- package/dist/esm/{utils-6c26bccc.js → utils-e7df4815.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +6 -1
- package/dist/module/SubAccount.js +69 -1
- package/dist/module/additional-statement.js +9 -14
- package/dist/module/cancellation-policy.js +9 -14
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +9 -14
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +22 -14
- package/dist/module/duplicate-charge.js +9 -14
- package/dist/module/electronic-evidence.js +9 -14
- package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +2 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-order-terminals.js +134 -18
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -16
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +3 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/product-or-service.js +17 -16
- package/dist/module/refund-policy.js +9 -14
- package/dist/module/shipping-details.js +9 -12
- package/dist/module/terminal-orders-list-core2.js +92 -7
- package/dist/module/terminal-quantity-selector.d.ts +11 -0
- package/dist/module/terminal-quantity-selector.js +6 -0
- package/dist/module/terminal-quantity-selector2.js +66 -0
- package/dist/module/terminal.service.js +28 -0
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -0
- package/dist/types/api/TerminalModel.d.ts +31 -0
- package/dist/types/api/TerminalOrder.d.ts +53 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/terminal.service.d.ts +2 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +12 -2
- package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -3
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
- package/dist/types/components.d.ts +61 -4
- package/dist/types/global.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +2 -0
- package/dist/webcomponents/{p-b57cfe54.entry.js → p-0a271654.entry.js} +1 -1
- package/dist/webcomponents/{p-553dba95.entry.js → p-0ef25316.entry.js} +1 -1
- package/dist/webcomponents/{p-1aa22806.js → p-0ef50c81.js} +1 -1
- package/dist/webcomponents/{p-d279545a.entry.js → p-0f85fde5.entry.js} +1 -1
- package/dist/webcomponents/{p-c2196cb8.entry.js → p-0faaae79.entry.js} +1 -1
- package/dist/webcomponents/{p-b2d57b2c.entry.js → p-121e9167.entry.js} +1 -1
- package/dist/webcomponents/p-140836f1.entry.js +1 -0
- package/dist/webcomponents/{p-4fbdf440.entry.js → p-1a9d60b1.entry.js} +1 -1
- package/dist/webcomponents/p-1d019dda.entry.js +1 -0
- package/dist/webcomponents/p-1e3cc191.entry.js +1 -0
- package/dist/webcomponents/p-1fcde0de.entry.js +1 -0
- package/dist/webcomponents/{p-8548edd6.entry.js → p-229c841e.entry.js} +1 -1
- package/dist/webcomponents/p-2481c1d3.entry.js +1 -0
- package/dist/webcomponents/{p-ebbe93ac.entry.js → p-29988e8f.entry.js} +1 -1
- package/dist/webcomponents/p-31507b3a.entry.js +1 -0
- package/dist/webcomponents/p-348fc9b1.js +1 -0
- package/dist/webcomponents/{p-794cce10.entry.js → p-36060c36.entry.js} +1 -1
- package/dist/webcomponents/{p-1278dedf.js → p-3744006f.js} +1 -1
- package/dist/webcomponents/{p-89ecfbf4.entry.js → p-4014d084.entry.js} +1 -1
- package/dist/webcomponents/p-418ab812.entry.js +1 -0
- package/dist/webcomponents/{p-fea43254.entry.js → p-420d6572.entry.js} +1 -1
- package/dist/webcomponents/{p-0b38cfbf.js → p-45bed1b7.js} +1 -1
- package/dist/webcomponents/{p-235abbd1.entry.js → p-49fc12b2.entry.js} +1 -1
- package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-4a580682.entry.js} +1 -1
- package/dist/webcomponents/p-4bb0d6fd.js +1 -0
- package/dist/webcomponents/{p-ff1f2d65.js → p-4c4a2c48.js} +1 -1
- package/dist/webcomponents/p-4f9a2f1f.js +1 -0
- package/dist/webcomponents/{p-e3e0d791.entry.js → p-54502491.entry.js} +1 -1
- package/dist/webcomponents/{p-9a4d0e1d.entry.js → p-55a6599a.entry.js} +1 -1
- package/dist/webcomponents/{p-5a96a2a2.entry.js → p-566883fb.entry.js} +1 -1
- package/dist/webcomponents/{p-a90d8f4f.entry.js → p-57ddf983.entry.js} +1 -1
- package/dist/webcomponents/p-5bf5f7d7.entry.js +1 -0
- package/dist/webcomponents/p-5dc767d8.js +1 -0
- package/dist/webcomponents/{p-a31ba276.entry.js → p-6501cb6e.entry.js} +1 -1
- package/dist/webcomponents/{p-06f5b709.js → p-66cdd475.js} +1 -1
- package/dist/webcomponents/{p-bfe339d5.js → p-6776df16.js} +1 -1
- package/dist/webcomponents/{p-a6b66c88.entry.js → p-6815a6cb.entry.js} +1 -1
- package/dist/webcomponents/{p-dfebd7a4.js → p-69ae193c.js} +1 -1
- package/dist/webcomponents/{p-53b660a3.entry.js → p-76d1036b.entry.js} +1 -1
- package/dist/webcomponents/{p-8a7266b4.js → p-77245638.js} +1 -1
- package/dist/webcomponents/p-77e3ed67.js +1 -0
- package/dist/webcomponents/p-7d43c1d6.entry.js +1 -0
- package/dist/webcomponents/{p-e007002a.entry.js → p-7dc34297.entry.js} +1 -1
- package/dist/webcomponents/{p-3ab7a49e.entry.js → p-7e4c84f7.entry.js} +1 -1
- package/dist/webcomponents/{p-09496255.js → p-808f61aa.js} +1 -1
- package/dist/webcomponents/p-834c12a0.entry.js +1 -0
- package/dist/webcomponents/p-8548d8de.js +1 -0
- package/dist/webcomponents/{p-39a63e0c.entry.js → p-867e34b8.entry.js} +1 -1
- package/dist/webcomponents/p-8a3f1a56.entry.js +1 -0
- package/dist/webcomponents/p-8a9debac.entry.js +1 -0
- package/dist/webcomponents/p-8b3842ce.js +1 -0
- package/dist/webcomponents/{p-300a99ee.js → p-913d51b9.js} +1 -1
- package/dist/webcomponents/{p-906a6027.js → p-930e2e05.js} +1 -1
- package/dist/webcomponents/p-96a491aa.js +1 -0
- package/dist/webcomponents/{p-08a17c5c.entry.js → p-9a6eacd0.entry.js} +1 -1
- package/dist/webcomponents/{p-4a71c90b.entry.js → p-9d8cf927.entry.js} +1 -1
- package/dist/webcomponents/{p-14f40baa.js → p-9ffed802.js} +1 -1
- package/dist/webcomponents/{p-060896c4.entry.js → p-adf30888.entry.js} +1 -1
- package/dist/webcomponents/p-b0335a17.entry.js +1 -0
- package/dist/webcomponents/{p-939d0a35.entry.js → p-b075211e.entry.js} +1 -1
- package/dist/webcomponents/{p-8b16a20f.js → p-b40bcf59.js} +1 -1
- package/dist/webcomponents/p-b7a407fb.entry.js +1 -0
- package/dist/webcomponents/{p-d398ce81.js → p-b894423f.js} +1 -1
- package/dist/webcomponents/{p-acca56ec.entry.js → p-bc6e3e59.entry.js} +1 -1
- package/dist/webcomponents/p-bc73a554.entry.js +1 -0
- package/dist/webcomponents/{p-670296bf.entry.js → p-c17af2a4.entry.js} +1 -1
- package/dist/webcomponents/p-c1af1fdb.entry.js +1 -0
- package/dist/webcomponents/{p-df2559c7.js → p-ca19fd2e.js} +1 -1
- package/dist/webcomponents/p-ca55be58.js +1 -0
- package/dist/webcomponents/{p-3b680e50.js → p-d019b800.js} +1 -1
- package/dist/webcomponents/{p-020e7d5d.entry.js → p-d37d20ca.entry.js} +1 -1
- package/dist/webcomponents/p-d979d9ea.entry.js +1 -0
- package/dist/webcomponents/p-d981a599.entry.js +1 -0
- package/dist/webcomponents/{p-75b7dfe7.entry.js → p-da415c08.entry.js} +1 -1
- package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
- package/dist/webcomponents/{p-29688e30.js → p-dd535097.js} +1 -1
- package/dist/webcomponents/p-e0befd51.js +1 -0
- package/dist/webcomponents/{p-7ee5a90e.entry.js → p-e7d2eba7.entry.js} +1 -1
- package/dist/webcomponents/{p-fa843aad.entry.js → p-e895bc2a.entry.js} +1 -1
- package/dist/webcomponents/{p-ae271c06.entry.js → p-ec3f9d80.entry.js} +1 -1
- package/dist/webcomponents/{p-d432f0fd.entry.js → p-ee991c9e.entry.js} +1 -1
- package/dist/webcomponents/p-f1580c62.js +1 -0
- package/dist/webcomponents/{p-19063270.entry.js → p-f48dd1ef.entry.js} +1 -1
- package/dist/webcomponents/p-fe0399a1.js +1 -0
- package/dist/webcomponents/{p-56697a12.entry.js → p-fe439eb2.entry.js} +1 -1
- package/dist/webcomponents/p-fe8be5fa.entry.js +1 -0
- package/dist/webcomponents/p-ffbd95d0.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/terminal-orders-table-61081532.js +0 -18
- package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
- package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
- package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
- package/dist/webcomponents/p-27c72b92.entry.js +0 -1
- package/dist/webcomponents/p-29fbbc93.js +0 -1
- package/dist/webcomponents/p-2e0ae487.js +0 -1
- package/dist/webcomponents/p-2f9af679.js +0 -1
- package/dist/webcomponents/p-37b7b200.entry.js +0 -1
- package/dist/webcomponents/p-3d486f37.entry.js +0 -1
- package/dist/webcomponents/p-42a48c59.js +0 -1
- package/dist/webcomponents/p-49df4962.entry.js +0 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
- package/dist/webcomponents/p-595479da.entry.js +0 -1
- package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
- package/dist/webcomponents/p-78a204f9.entry.js +0 -1
- package/dist/webcomponents/p-7c541199.entry.js +0 -1
- package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
- package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
- package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
- package/dist/webcomponents/p-9edd6ad8.js +0 -1
- package/dist/webcomponents/p-a0082e77.entry.js +0 -1
- package/dist/webcomponents/p-af945fc0.entry.js +0 -1
- package/dist/webcomponents/p-c4ca0038.js +0 -1
- package/dist/webcomponents/p-cba89310.entry.js +0 -1
- package/dist/webcomponents/p-cbe05f11.js +0 -1
- package/dist/webcomponents/p-d5c41ec6.js +0 -1
- package/dist/webcomponents/p-e8cd9691.js +0 -1
- package/dist/webcomponents/p-e9e80a62.js +0 -1
- package/dist/webcomponents/p-ec019b89.js +0 -1
- package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
|
@@ -9,20 +9,30 @@ import { Business } from "../../api/Business";
|
|
|
9
9
|
import { makeGetBusiness } from "../../actions/business/get-business";
|
|
10
10
|
import { OrderTerminalsLoading } from "./order-terminals-loading";
|
|
11
11
|
import { heading4, listGroup, listGroupItem, text } from "../../styles/parts";
|
|
12
|
+
import { TerminalSelectorLoading } from "../terminal-quantity-selector/terminal-quantity-selector-loading";
|
|
13
|
+
import { makeGetTerminalModels } from "../../actions/terminal/get-terminal-models";
|
|
14
|
+
import { TerminalService } from "../../api/services/terminal.service";
|
|
15
|
+
import { TerminalOrder } from "../../api/TerminalOrder";
|
|
12
16
|
export class OrderTerminals {
|
|
13
17
|
constructor() {
|
|
14
18
|
this.businessId = undefined;
|
|
15
19
|
this.authToken = undefined;
|
|
20
|
+
this.accountId = undefined;
|
|
16
21
|
this.errorMessage = undefined;
|
|
17
|
-
this.
|
|
22
|
+
this.businessIsLoading = true;
|
|
23
|
+
this.terminalsIsLoading = true;
|
|
18
24
|
this.business = undefined;
|
|
25
|
+
this.terminalModels = undefined;
|
|
26
|
+
this.orderLimit = undefined;
|
|
27
|
+
this.order = new TerminalOrder({});
|
|
28
|
+
this.totalQuantity = 0;
|
|
19
29
|
}
|
|
20
30
|
componentWillLoad() {
|
|
21
31
|
checkPkgVersion();
|
|
22
32
|
this.analytics = new JustifiAnalytics(this);
|
|
23
|
-
this.
|
|
33
|
+
this.loadData();
|
|
24
34
|
}
|
|
25
|
-
|
|
35
|
+
loadData() {
|
|
26
36
|
if (!this.businessId || !this.authToken) {
|
|
27
37
|
this.errorMessage = 'Invalid business id or auth token';
|
|
28
38
|
this.errorEvent.emit({
|
|
@@ -32,6 +42,10 @@ export class OrderTerminals {
|
|
|
32
42
|
});
|
|
33
43
|
return;
|
|
34
44
|
}
|
|
45
|
+
this.initializeGetBusiness();
|
|
46
|
+
this.initializeGetTerminalModels();
|
|
47
|
+
}
|
|
48
|
+
initializeGetBusiness() {
|
|
35
49
|
const getBusiness = makeGetBusiness({
|
|
36
50
|
id: this.businessId,
|
|
37
51
|
authToken: this.authToken,
|
|
@@ -40,7 +54,30 @@ export class OrderTerminals {
|
|
|
40
54
|
getBusiness({
|
|
41
55
|
onSuccess: ({ business }) => {
|
|
42
56
|
this.business = new Business(business);
|
|
43
|
-
this.
|
|
57
|
+
this.businessIsLoading = false;
|
|
58
|
+
},
|
|
59
|
+
onError: ({ error, code, severity }) => {
|
|
60
|
+
this.errorMessage = error;
|
|
61
|
+
this.errorEvent.emit({
|
|
62
|
+
errorCode: code,
|
|
63
|
+
message: error,
|
|
64
|
+
severity,
|
|
65
|
+
});
|
|
66
|
+
this.businessIsLoading = false;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
initializeGetTerminalModels() {
|
|
71
|
+
const getTerminalModels = makeGetTerminalModels({
|
|
72
|
+
id: this.accountId,
|
|
73
|
+
authToken: this.authToken,
|
|
74
|
+
service: new TerminalService(),
|
|
75
|
+
});
|
|
76
|
+
getTerminalModels({
|
|
77
|
+
onSuccess: ({ terminals, orderLimit }) => {
|
|
78
|
+
this.terminalModels = terminals;
|
|
79
|
+
this.orderLimit = orderLimit;
|
|
80
|
+
this.terminalsIsLoading = false;
|
|
44
81
|
},
|
|
45
82
|
onError: ({ error, code, severity }) => {
|
|
46
83
|
this.errorMessage = error;
|
|
@@ -49,21 +86,25 @@ export class OrderTerminals {
|
|
|
49
86
|
message: error,
|
|
50
87
|
severity,
|
|
51
88
|
});
|
|
52
|
-
this.
|
|
89
|
+
this.terminalsIsLoading = false;
|
|
53
90
|
}
|
|
54
91
|
});
|
|
55
92
|
}
|
|
93
|
+
onSelectedQuantityChange(event) {
|
|
94
|
+
this.order.updateTerminal(event.detail.modelName, event.detail.quantity);
|
|
95
|
+
this.totalQuantity = this.order.totalQuantity;
|
|
96
|
+
}
|
|
56
97
|
render() {
|
|
57
98
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
58
|
-
return (h(StyledHost, { key: '
|
|
59
|
-
_b.name), h("li", { key: '
|
|
60
|
-
_d.title), h("li", { key: '
|
|
61
|
-
_f.email), h("li", { key: '
|
|
62
|
-
_h.phone))), h("div", { key: '
|
|
63
|
-
_j.line1), h("li", { key: '
|
|
64
|
-
_l.postal_code), h("li", { key: '
|
|
65
|
-
_m.city), h("li", { key: '
|
|
66
|
-
_o.state))))))));
|
|
99
|
+
return (h(StyledHost, { key: 'd0839c5f8e62091959cfac6c19fd8e6010ed17fa' }, this.businessIsLoading && h(OrderTerminalsLoading, { key: '4f2e27a144af74dc7a5b24afd04319169af85975' }), !this.businessIsLoading && this.errorMessage && ErrorState(this.errorMessage), !this.businessIsLoading && !this.errorMessage && this.business && (h("div", { key: '275c0bdc797dd7deb0b9a6e0bcb4b8bb1bb5a0c7', class: "gap-5 pt-5", part: text }, h("div", { key: '34cff142a272edd3ee7ac19da4e897dcbd29053a', class: "row" }, h("div", { key: '5ced2a28b10f3c3a6df1967df4ff3963fa210aeb', class: "col-12" }, h("h2", { key: 'cddb025d86d3b20e0fdbe44f38a01f4c9f8b0cc9', part: heading4 }, "Business Information:"), h("p", { key: '1729e714fbde0db3bfa2335b984191c88a821d48' }, "Business Name: ", this.business.legal_name))), h("div", { key: '07e0124bf74aa1e6019f3831e1101612ea22a974', class: "row" }, h("div", { key: '984fa3b23a5f963c0132db5629a84a0f33b5876f', class: "col-6" }, h("h2", { key: '620518c99e7c24323908964069a845bdc6bc7977', part: heading4 }, "Representative:"), h("ul", { key: '2a647948f4dd177f727caeb564874025e685154d', class: "list-group", part: listGroup }, h("li", { key: 'eef9b978a739e423e500f2c684adbd29b615d672', class: "list-group-item", part: listGroupItem }, "Name: ", (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 :
|
|
100
|
+
_b.name), h("li", { key: 'f668a95618f4f9f15a3f393e0f832edf019495d4', class: "list-group-item", part: listGroupItem }, "Title: ", (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 :
|
|
101
|
+
_d.title), h("li", { key: '7b0f4f9b59ce658b2589d794759a8eb2d286618d', class: "list-group-item", part: listGroupItem }, "Email: ", (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 :
|
|
102
|
+
_f.email), h("li", { key: '6868db3079895895817b46f577a4aec763370c8a', class: "list-group-item", part: listGroupItem }, "Phone: ", (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 :
|
|
103
|
+
_h.phone))), h("div", { key: '58e3a903859cfcb48ee9c94eae603e6013b49ddc', class: "col-6" }, h("h2", { key: '5575e0a3882f6118784f0a2ae5ba3b16ca2cf3d0', part: heading4 }, "Shipping Address:"), h("ul", { key: 'a786f951ba416a8a87b2cbd041208a00316a654c', class: "list-group", part: listGroup }, h("li", { key: 'f195e9fe86e532e5082fa6cec74d498fd3721b9f', class: "list-group-item", part: listGroupItem }, "Street: ", (_j = this.business.legal_address) === null || _j === void 0 ? void 0 :
|
|
104
|
+
_j.line1), h("li", { key: 'cc3effbf28ed5529ab453c9a3df593faed8453b0', class: "list-group-item", part: listGroupItem }, (_k = this.business.legal_address) === null || _k === void 0 ? void 0 : _k.line2), h("li", { key: '024d702c7483ff81ad3ac877b5ae708ca18f0441', class: "list-group-item", part: listGroupItem }, "Postal Code: ", (_l = this.business.legal_address) === null || _l === void 0 ? void 0 :
|
|
105
|
+
_l.postal_code), h("li", { key: 'b49173b42d91e1bad378912fb9ecf8cd74c38110', class: "list-group-item", part: listGroupItem }, "City: ", (_m = this.business.legal_address) === null || _m === void 0 ? void 0 :
|
|
106
|
+
_m.city), h("li", { key: '87656e83f01433a2f8116996d42e482a906fbc43', class: "list-group-item", part: listGroupItem }, "State: ", (_o = this.business.legal_address) === null || _o === void 0 ? void 0 :
|
|
107
|
+
_o.state)))))), this.terminalsIsLoading && (h("div", { key: 'f136b3b5ea1d28b8d4f2dcf18445c21afc8ff94b', class: "mt-5" }, h(TerminalSelectorLoading, { key: 'eaf847a6fa517aae9af8abd6138ea6b7084e26ab' }), h(TerminalSelectorLoading, { key: '9bc4ca1106c9c96b30d8318e11bca7d5b976dde2' }), h(TerminalSelectorLoading, { key: 'eb8885c81374329c42194e7a32c9031eeccf68ba' }))), !this.terminalsIsLoading && this.terminalModels && this.terminalModels.map((terminal) => (h("terminal-quantity-selector", { modelName: terminal.model_name, description: terminal.description, imageUrl: terminal.image_url, helpUrl: terminal.help_url, limit: this.orderLimit - this.order.totalQuantity, onSelectedQuantityChange: this.onSelectedQuantityChange.bind(this) })))));
|
|
67
108
|
}
|
|
68
109
|
static get is() { return "justifi-order-terminals"; }
|
|
69
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,14 +143,36 @@ export class OrderTerminals {
|
|
|
102
143
|
},
|
|
103
144
|
"attribute": "auth-token",
|
|
104
145
|
"reflect": false
|
|
146
|
+
},
|
|
147
|
+
"accountId": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"attribute": "account-id",
|
|
162
|
+
"reflect": false
|
|
105
163
|
}
|
|
106
164
|
};
|
|
107
165
|
}
|
|
108
166
|
static get states() {
|
|
109
167
|
return {
|
|
110
168
|
"errorMessage": {},
|
|
111
|
-
"
|
|
112
|
-
"
|
|
169
|
+
"businessIsLoading": {},
|
|
170
|
+
"terminalsIsLoading": {},
|
|
171
|
+
"business": {},
|
|
172
|
+
"terminalModels": {},
|
|
173
|
+
"orderLimit": {},
|
|
174
|
+
"order": {},
|
|
175
|
+
"totalQuantity": {}
|
|
113
176
|
};
|
|
114
177
|
}
|
|
115
178
|
static get events() {
|
|
@@ -39,14 +39,14 @@ export class PaymentDetailsCore {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(StyledHost, { key: '
|
|
43
|
-
this.payment && (h("justifi-details", { key: '
|
|
44
|
-
h(DetailSectionTitle, { key: '
|
|
45
|
-
h("div", { key: '
|
|
42
|
+
return (h(StyledHost, { key: '1978689b8278990966596fa7d5a155208ddbf7e2' }, this.loading && h(PaymentDetailsLoading, { key: 'c9e75ceefc675e7f198d395f53ae90b056526261' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
43
|
+
this.payment && (h("justifi-details", { key: '629457b2841589c47e4d9e0127b530a40f79569e', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '8433e393af0bc9c12dd1bfc1c74c7e71d1bd7533', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '899e2e0bfcf92ee28af12a882a0390792865e56d', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '87e38c31d21643bf9e9d532f8351c5e6cdf86ce0', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '71e629744d267e75037e226a46911ad121107855', title: "ID", value: this.payment.id })), h("div", { key: 'b1ad6c37738d078d4d0c50943fa484f73bed19ae', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '4b2407c4e45bb062c9d29da68321d58dd8f5cdb2', sectionTitle: "Details" }), h("div", { key: 'e8b1208771061477f00a2f5d5160464117b21421', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '9ac1b4794f5afac73a307dfff7b78f6d9b936b77', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '4d36bfa5117c66288a41803df1373c3f09311c5a', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'edc981480e3bb975170fe8de4ec76c3074c732da', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '290a04ecac3267ee71389668321fcbf9987a4f2c', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'f6995f8ba441eb7c5fdbea7ede2e5baccca79489', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '96b1788fda31eb7090c7bf5ae61ad1c4c6517acd', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '2e78ed29b424f8edcb5f62dcca1583aa92696797', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'd1d7025e7557f6566e519933cdbc6d3fb153b08f', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '8e369df9afaf1368cfe67928c9ffd3d761f7e4c5', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
|
|
44
|
+
h(DetailSectionTitle, { key: '4275caef28d50b41b4f1cf573ef21f5cad3ad137', sectionTitle: "Payment Method" }),
|
|
45
|
+
h("div", { key: '0e5414c43a1273ae8fdfab4ac2f123a584aa0015', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'fe15b439f0eaadcd44d0dd4313fa8a432f13d47a', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'e13a36067875455c89eaf466618507903ae515c3', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '04e73a55bc15db2103c10ccdaa09417a77d5ec4b', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'f7213832d1ddbabafe31080d8f4d9ac8b29436a6', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '105b7aa79ff05c0f2837ca0de9a84b05da411c7d', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
46
46
|
], this.payment.payment_method.bank_account && [
|
|
47
|
-
h(DetailSectionTitle, { key: '
|
|
48
|
-
h("div", { key: '
|
|
49
|
-
], h(DetailSectionTitle, { key: '
|
|
47
|
+
h(DetailSectionTitle, { key: '0e98838bfda48e8680bc4732c28956df01e24e1e', sectionTitle: "Payment Method" }),
|
|
48
|
+
h("div", { key: '6d18b4960dc81742a7fc7c9d687fb47a2001026c', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'af4221654d5f15767a77660d34dd1e110a55f178', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '5ada65c0a6e924f2de218f3e75d8e72e3cebe032', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: 'aab41f9c2221a91ce4acceba59bd8a47ab4866fa', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '7c3cf837177b6fe60a311e0044d17a9b67885ac8', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
49
|
+
], h(DetailSectionTitle, { key: 'f84f8d6078683651793b2021aa992aac96f015a0', sectionTitle: 'Metadata' }), h("div", { key: '06f0a1b0f18cea6f2804043dd432fe42f7352c9a', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '06273e39e83b0bc1fa5316c65f848986b0f4c1a1', metadata: this.payment.metadata })))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "payment-details-core"; }
|
|
52
52
|
static get properties() {
|
|
@@ -88,7 +88,7 @@ export class PaymentsListCore {
|
|
|
88
88
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: '43aa1d53dc7c63eda036624d897d92670ff4dec7' }, h("div", { key: '84ac82efec3738e1a07bcf5fbfdf62426bacaad0', class: "table-wrapper" }, h("table", { key: '65e2ab73a63fa1d89b1b7fb0cd9809d951de657a', class: "table table-hover", part: table }, h("thead", { key: '81ff867eb4b86905049e57c9c9ee331ad9a43f22', class: "table-head sticky-top" }, h("tr", { key: 'edecfccffc49b21f4d9d01396ab4d22dda6f853b', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: '1df70e89ad33f83dbf18c6c5135bcda2753413a8', class: "table-body" }, h(TableLoadingState, { key: '23cfc404da1ccfada68146b83343e9ee348bac05', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '9929a89448678aa010ecfb43377c38f53b1896d2', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '1734903104bb6c6e9b382661bc353731c5cf92aa', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '08277c1742a8ff36079a2fd4d4c3a31e628617dc', class: "sticky-bottom" }, h("tr", { key: '6012aa5a86f140007504d056f53eba3a21aacc40', class: "table-light align-middle" }, h("td", { key: 'e67d2f48a9d1002086a18ebd4ca00a5b22903c06', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'afcfbab93aa8bb33d6aac50b11c803ebb3284bf1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "payments-list-core"; }
|
|
94
94
|
static get properties() {
|
|
@@ -48,8 +48,8 @@ export class PaymentsListFilters {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
51
|
-
return (h(StyledHost, { key: '
|
|
52
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
51
|
+
return (h(StyledHost, { key: 'c00c7c279eeaacb8acc1ea3154c29b2cddd99faa' }, h("table-filters-menu", { key: 'c47ba2b6da0f9463a22e50f1a8ffd26e886c1a99', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'e93077f53d6d22fc286701c28352872175b8db3b', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'a101154b3b747eb20667e64dac36e00d7f35f56c', class: "p-2" }, h("form-control-text", { key: '3042199c9a79162c5c5bc6053c46bc76b9f553ee', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '8877a68b1dfc50116f59e503db6d8a3afc53616d', class: "p-2" }, h("form-control-text", { key: '40747d56f2907151ee86468ecb5b72457fa4c3f6', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: 'ddb445d4da2e8f625c091c41ac080be8ae0a7b8d', class: "p-2" }, h("form-control-select", { key: '9cfe853ab39f60ed7c9130f49059b731ce308af9', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '4a22a12131ae097c774d6f3af3a93de7c984ff76', class: "p-2" }, h("form-control-date", { key: '0ab671ac93fe922a72f85de5bd0b00781176a61f', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
52
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '11d71b25672f27f3457386f960ac85f644e162de', class: "p-2" }, h("form-control-date", { key: 'd03ee67df04aa591c655944465fec021684f2b3a', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
53
53
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "justifi-payments-list-filters"; }
|
|
@@ -49,7 +49,7 @@ export class PaymentsList {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(StyledHost, { key: '
|
|
52
|
+
return (h(StyledHost, { key: '8df5e9111900d12bb5e4eea2ad44c59b7864cf58' }, h("payments-list-core", { key: 'ad6c2795436b8fc38f5fb7b031d3b41251a6281d', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "justifi-payments-list"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@ export class PayoutDetailsCore {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a;
|
|
57
|
-
return (h(StyledHost, { key: '
|
|
57
|
+
return (h(StyledHost, { key: '7d648508011ea664a85dcd3e83d45835d769f195' }, this.loading && h(PayoutDetailsLoading, { key: 'c5aa47291bd8a66174c0caf11d4043d5c8084183' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'bbb88f0e6895ab4e4a03fbcc2c33dd925ede8731', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'c8cc282e0e53bd605d47e30f38bc924cfb20b19e', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ada8dc55c9ad5324cf406cd8118b5087542d9958', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'f590cc91cd49709c8f47bfb2285d335f55153f44', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '95d767d779203c9d78734d35933f5d1672ae6ec9', title: "ID", value: this.payout.id }), h("div", { key: '83a7e4dd33af9d5a62a1ec7e898d0c56c71e633a', class: "m-4" }, h(Button, { key: '0f622ebc090782a89d506d22b67f43177dbfda79', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '35300a91f58a9ce822323c03cbc139d35312bc3d', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '34db8325ff9e72e166e80e4f1e3cb98b6757f750', sectionTitle: "Details" }), h("div", { key: '7515ec409c0b31c530d072684694e3721ddb1562', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '544be85ea95c951c85ffd539a8ef73fc8a65f747', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'ebc505407ae3e436143d3a10c59541bef5459488', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '3ae0229489cb9f287c3141e090b3cd260f98affd', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e11e04fc8e57d5036cfdcaf8a928886a6d1ac6bc', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: 'd98c8c10d875aa9ce4a561f1813188d8ec2fe88d', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: '65d1ea7d5ff2e25ac89b2de8a0fdf59850a3d4ed', sectionTitle: "Account" }), h("div", { key: '0d593cec0b5ddc1ed45880410fb91acb4a210e37', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '356dab04877a39166ad2cc68154c03125acb3f49', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '2a4b60d5d695fd102f8ed8bc3ad8d61d47886c89', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1bd1c40fac3a0e409a7d6082c70f0695f0b850bc', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9d08a53899f17c7fd7bdcab7a6e11f9b02ff9694', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'e2e8487b4555ae6e9c6ff799150a6bef49eeb82a', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '82408f25fc1700cb7c55afd7b0ef116ad43659c0', sectionTitle: 'Metadata' }), h("div", { key: '16c5967632b3a95bc8cbc787a2e8400319537184', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'e3b2041e7c2e76c8994754be30a885b92673b75d', metadata: this.payout.metadata })))))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "payout-details-core"; }
|
|
60
60
|
static get properties() {
|
|
@@ -142,7 +142,7 @@ export class PayoutsListCore {
|
|
|
142
142
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("div", { key: '
|
|
145
|
+
return (h("div", { key: 'b7befcaf0a42986dc821d97e371fb93920b16358' }, h("div", { key: 'c405055d05c2f1b5e622ab28fc9744962f1907a1', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'db36400212d74c17e0aad133717475ce3b142308', class: "table table-hover", part: table }, h("thead", { key: 'a3e208126c4d2c0ab2b6d9ef27f8c1410e029907', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '37f25650e0c03cf8985ec68211eefc0980dd5a92', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '7879e0b39a52ef735ff71960498e1405ff8f98b0', class: "table-body" }, h(TableLoadingState, { key: '91fdd3ed14d5c63ac8c536a5d8da05bb491d49a1', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '577748b2fa32b265a6a1afbad3460c4628d21ba6', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '351848f6ee13c7be8735757ce3dcbcce18bb4fff', 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 }, data)))), this.paging && (h("tfoot", { key: '889ef01055c10f969d4d51f6d114bd3654a06ce3', class: "sticky-bottom" }, h("tr", { key: '6c49a3b386a64023d0701445e7589cced7f4f4df', class: "table-light align-middle" }, h("td", { key: '7782a9152e0d8037afb6528897a9358da204bfb7', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: 'eac386f11674a29452831bdbe183bfefe4347389', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
146
146
|
}
|
|
147
147
|
static get is() { return "payouts-list-core"; }
|
|
148
148
|
static get properties() {
|
|
@@ -28,8 +28,8 @@ export class PayoutsListFilters {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
31
|
-
return (h(StyledHost, { key: '
|
|
32
|
-
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '
|
|
31
|
+
return (h(StyledHost, { key: '42c48bbbfa426540d33c49d5ef927d2da316fda5' }, h("table-filters-menu", { key: '7741ef6667ed7dc6ebbc312f145590939ce1b071', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '0f983dc3e6a735ad12aea940d7663bab98cf623d', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '27faddc94394d5e52de9d1a65a69ecda2f840360', class: "p-2" }, h("form-control-date", { key: '58cd7720a5dbcc31b32151de1402b2c4b09b94de', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
|
|
32
|
+
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'a2a8d153acc9fa8371c8effb4cfd0146e31a3018', class: "p-2" }, h("form-control-date", { key: '9fc58f04079445952586d0913fad92305fa537a8', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
|
|
33
33
|
convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "justifi-payouts-list-filters"; }
|
|
@@ -70,7 +70,7 @@ export class PayoutsList {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h(StyledHost, { key: '
|
|
73
|
+
return (h(StyledHost, { key: '1dc2cb28607d7afaaf9d463633a3c127e79acdfb', exportedparts: tableExportedParts }, h("payouts-list-core", { key: 'c404ee62ba0a0e6ed800073d0740182e831b3610', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "justifi-payouts-list"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -74,7 +74,7 @@ export class RefundForm {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
var _a;
|
|
77
|
-
return (h(StyledHost, { key: '
|
|
77
|
+
return (h(StyledHost, { key: 'b5540793d02eca530f994d28487dbb17d4a7bde9' }, h("h1", { key: '4fdee343ce80c42f4592b8399d2608cf21388ef3' }, "Refund"), this.refundInfoText && (h("div", { key: '592e0e5bf3f34d2deacf6bde6d55305afad9ed93', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '0d1f91e3e31d9205bdc87988a3d153c82c288316', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '5509b76cdd8fc744b243342c70f9f17a53998f58', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '54c976a7e5f2eabef889051900065fdc689929dc', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '8c8b2a532b0eb147b6618e4d9f5a6eff459a876f', class: "form-group" }, h("form-control-monetary", { key: 'b5e5101c9c3a911d5188b7fcf1bc8b6a6a3ea79f', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: 'df2344c5721515f540a880e0fd69c44dc9782c7f', class: "form-group" }, h("form-control-text", { key: 'fc736f897af16d21bae503593b7dea26de8775c8', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: 'db7b4908952001857d7a56d2bce6804fa4c77176', class: "form-group d-flex flex-row-reverse" }, h("button", { key: 'f4a186765f14c59e4c096bf48dba5f371f1a65fb', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "justifi-refund-form"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Badge, BadgeVariant } from "../../ui-components/badge/badge";
|
|
3
|
+
export const MapTerminalOrderStatusToBadge = (status) => {
|
|
4
|
+
const statusToBadgeProps = {
|
|
5
|
+
submitted: {
|
|
6
|
+
variant: BadgeVariant.PRIMARY,
|
|
7
|
+
title: 'This order is submitted',
|
|
8
|
+
text: 'Submitted',
|
|
9
|
+
},
|
|
10
|
+
completed: {
|
|
11
|
+
variant: BadgeVariant.SUCCESS,
|
|
12
|
+
title: 'This order has been completed',
|
|
13
|
+
text: 'Completed',
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const badgeProps = statusToBadgeProps[status];
|
|
17
|
+
return h(Badge, Object.assign({}, badgeProps));
|
|
18
|
+
};
|
|
@@ -4,6 +4,7 @@ import { table, tableCell } from "../../styles/parts";
|
|
|
4
4
|
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
5
5
|
import { pagingDefaults } from "../../api";
|
|
6
6
|
import { terminalOrdersTableCells, terminalOrdersTableColumns } from "./terminal-orders-table";
|
|
7
|
+
import mockTerminalOrders from "../../../../../mockData/mockTerminalOrdersListSuccess.json";
|
|
7
8
|
export class TerminalOrdersListCore {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.handleClickPrevious = (beforeCursor) => {
|
|
@@ -20,7 +21,7 @@ export class TerminalOrdersListCore {
|
|
|
20
21
|
};
|
|
21
22
|
this.getTerminalOrders = undefined;
|
|
22
23
|
this.columns = undefined;
|
|
23
|
-
this.terminalOrders =
|
|
24
|
+
this.terminalOrders = mockTerminalOrders.data;
|
|
24
25
|
this.terminalOrdersTable = undefined;
|
|
25
26
|
this.loading = true;
|
|
26
27
|
this.errorMessage = undefined;
|
|
@@ -54,7 +55,7 @@ export class TerminalOrdersListCore {
|
|
|
54
55
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
55
56
|
}
|
|
56
57
|
render() {
|
|
57
|
-
return (h("div", { key: '
|
|
58
|
+
return (h("div", { key: 'e07bb592d2d419079a00fe017789c98dc5814202' }, h("div", { key: '1090df8ad75e0fdcd07a625c608c2fc0d38391d9', class: "table-wrapper" }, h("table", { key: '31637db0926f2cd88d1333d5f512842406b1e0ef', class: "table table-hover", part: table }, h("thead", { key: '2af2d35a486433b2cb2bab0b7d61d4be9e8d70ab', class: "table-head sticky-top" }, h("tr", { key: 'a42e578f3369b6466a331abeb34d63d9c09c0122', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '16c4a9e940268fe2da49a9b14680d34a0f160ccc', class: "table-body" }, h(TableLoadingState, { key: 'a1ce6dcc9799bdd215b5d686d05e3014e594d975', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '135df5499de4e17855643d8ce4ebeb7f71aa5e85', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '00d2f0bc0bceb46178970c1eb0a0eb87c6fa6054', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '49ce37b7ea5e979c8d754d48b9c803a163623387', class: "sticky-bottom" }, h("tr", { key: 'b73f32023e01d82c3eb91120c7eae907a9367517', class: "table-light align-middle" }, h("td", { key: 'cae073d169507d459d60f150fecbaad287996c74', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '9a9fa1cd2c520ee09814adf6d060d048bd77dcc1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
58
59
|
}
|
|
59
60
|
static get is() { return "terminal-orders-list-core"; }
|
|
60
61
|
static get properties() {
|
|
@@ -26,7 +26,7 @@ export class TerminalOrdersList {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(StyledHost, { key: '
|
|
29
|
+
return (h(StyledHost, { key: 'f64c444f9e93c3f520bd5c119b49b6b51163e03b' }, h("terminal-orders-list-core", { key: 'd7601588a25fd5ee08ad8faddc02807a61015d15', getTerminalOrders: this.getTerminalOrders, columns: this.columns })));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "justifi-terminal-orders-list"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { getAlternateTableCellPart, tableHeadCell } from "../../styles/parts";
|
|
3
|
-
|
|
3
|
+
import { convertToLocal } from "../../utils/utils";
|
|
4
|
+
import { MapTerminalOrderStatusToBadge } from "./terminal-order-status";
|
|
5
|
+
export const defaultColumnsKeys = 'created_at,updated_at,order_status,quantity';
|
|
4
6
|
export const terminalOrdersTableColumns = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
created_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time the order was created" }, "Created At")),
|
|
8
|
+
updated_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time the order was last updated" }, "Updated At")),
|
|
9
|
+
order_status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of the order" }, "Order Status")),
|
|
10
|
+
business_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The business ID associated with the order" }, "Business ID")),
|
|
11
|
+
provider: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider associated with the order" }, "Provider")),
|
|
12
|
+
order_type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of order" }, "Order Type")),
|
|
13
|
+
quantity: () => (h("th", { part: tableHeadCell, scope: "col", title: "The number of terminals associated with the order" }, "Order Quantity")),
|
|
7
14
|
};
|
|
8
15
|
export const terminalOrdersTableCells = {
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
created_at: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.created_at, { showDisplayDate: true })), h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.created_at, { showTime: true })))),
|
|
17
|
+
updated_at: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.updated_at, { showDisplayDate: true })), h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.updated_at, { showTime: true })))),
|
|
18
|
+
order_status: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, MapTerminalOrderStatusToBadge(terminalOrder.order_status))),
|
|
19
|
+
business_id: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.business_id)),
|
|
20
|
+
provider: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.provider)),
|
|
21
|
+
order_type: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.order_type)),
|
|
22
|
+
quantity: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.terminals.length)),
|
|
11
23
|
};
|
package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector-loading.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Skeleton } from "../../ui-components";
|
|
3
|
+
export const TerminalSelectorLoading = () => {
|
|
4
|
+
return (h("div", { class: "terminal-selector-skeleton mt-4 rounded shadow-sm" }, h("div", { class: "d-flex align-items-center gap-3" }, h(Skeleton, { width: "125px", height: "125px", styles: { borderRadius: '8px' } }), h("div", { class: "flex-grow-1" }, h("div", { class: "d-flex row flex-row" }, h("div", { class: "col-6 flex-column" }, h(Skeleton, null), h(Skeleton, { width: "60%" })), h("div", { class: "d-flex justify-content-end align-items-center gap-2 col-6" }, h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }), h(Skeleton, { width: "80px", height: "32px" }), h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }))), h("div", { class: "mt-4" }, h("div", { class: "d-flex flex-column gap-2" }, h(Skeleton, null), h(Skeleton, null)))))));
|
|
5
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { buttonLink, image, text } from "../../styles/parts";
|
|
3
|
+
export class TerminalQuantitySelector {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.removeUnit = () => {
|
|
6
|
+
if (this.selectedQuantity > 0) {
|
|
7
|
+
this.selectedQuantity--;
|
|
8
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
this.addUnit = () => {
|
|
12
|
+
if (this.limit > 0) {
|
|
13
|
+
this.selectedQuantity++;
|
|
14
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.modelName = undefined;
|
|
18
|
+
this.imageUrl = undefined;
|
|
19
|
+
this.description = undefined;
|
|
20
|
+
this.helpUrl = undefined;
|
|
21
|
+
this.limit = Infinity;
|
|
22
|
+
this.selectedQuantity = 0;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h("div", { key: 'a357a6bd3454287325a10d381d4587c39552e2a6', class: "rounded shadow-sm", part: text }, h("div", { key: '9e34e99cf6f5cefd4ef28c0fb98ad163d331c5d8', class: "d-flex gap-3" }, h("div", { key: '2dad93d7ad2cdecfd0848862bfc6a30bf0900ae6', class: "d-flex align-items-center" }, h("img", { key: '91929adc5f870eb024226a90d699ae68705f80ec', src: this.imageUrl, alt: this.modelName, height: 125, width: 125, part: image })), h("div", { key: '2fdd8c22699c09830f20f39a86a1e306702dc435', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'f25c1fbe3b6bc4cb2f262e7acce3232e3a726d7d', class: "row" }, h("div", { key: 'b18358391814b283ee5f9f4984301a3c44340986', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '2c2dc0b58140144b63be06ad273b9567ca107d9a', helpText: this.description })), h("div", { key: '7b20f58d55f9413d04185df7ecc04ebe37a3854e', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '27d472613a8146985bfb2f7f9149ac97d71039a5', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '45136a5b9dcb7aeeb58407f51fbb76c0f924ff93', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'e07c48829ebe9106d4a26e9a17728ecef01574b6', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "terminal-quantity-selector"; }
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"modelName": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "TerminalModelName",
|
|
35
|
+
"resolved": "TerminalModelName.e285 | TerminalModelName.p400 | TerminalModelName.v400",
|
|
36
|
+
"references": {
|
|
37
|
+
"TerminalModelName": {
|
|
38
|
+
"location": "import",
|
|
39
|
+
"path": "../../api",
|
|
40
|
+
"id": "src/api/index.ts::TerminalModelName"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "model-name",
|
|
51
|
+
"reflect": false
|
|
52
|
+
},
|
|
53
|
+
"imageUrl": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"attribute": "image-url",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"description": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "description",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"helpUrl": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "help-url",
|
|
102
|
+
"reflect": false
|
|
103
|
+
},
|
|
104
|
+
"limit": {
|
|
105
|
+
"type": "number",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "number",
|
|
109
|
+
"resolved": "number",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"attribute": "limit",
|
|
119
|
+
"reflect": false,
|
|
120
|
+
"defaultValue": "Infinity"
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get states() {
|
|
125
|
+
return {
|
|
126
|
+
"selectedQuantity": {}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get events() {
|
|
130
|
+
return [{
|
|
131
|
+
"method": "selectedQuantityChange",
|
|
132
|
+
"name": "selectedQuantityChange",
|
|
133
|
+
"bubbles": true,
|
|
134
|
+
"cancelable": true,
|
|
135
|
+
"composed": true,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": ""
|
|
139
|
+
},
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "{ modelName: TerminalModelName, quantity: number }",
|
|
142
|
+
"resolved": "{ modelName: TerminalModelName; quantity: number; }",
|
|
143
|
+
"references": {
|
|
144
|
+
"TerminalModelName": {
|
|
145
|
+
"location": "import",
|
|
146
|
+
"path": "../../api",
|
|
147
|
+
"id": "src/api/index.ts::TerminalModelName"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}];
|
|
152
|
+
}
|
|
153
|
+
}
|