@justifi/webcomponents 5.3.5 → 5.4.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/{Api-f5280a80.js → Api-83d93333.js} +2 -2
- package/dist/cjs/{SubAccount-f9069337.js → SubAccount-9babbfd3.js} +7 -7
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-6abf6ed3.js → badge-591df67f.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
- 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/{business.service-776142b1.js → business.service-27f67b29.js} +1 -1
- package/dist/cjs/{button-aed2ce1a.js → button-7f272a63.js} +1 -1
- package/dist/cjs/{Analytics-e91a5523.js → check-pkg-version-52c7c2ab.js} +22 -2
- package/dist/cjs/{checkout.service-0643396e.js → checkout.service-46a5b9f2.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -9
- package/dist/cjs/{checkouts-table-f88ad3c8.js → checkouts-table-7f2081df.js} +2 -2
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-53c80520.js → dispute.service-a36c48bf.js} +2 -2
- package/dist/cjs/{table-ad35ff09.js → event-types-921f3555.js} +9 -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-74fb8498.js → form-control-error-text-377bcf59.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-3cffd918.js → form-control-help-text-f7369e16.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 +4 -4
- package/dist/cjs/{get-payout-csv-bdd7d9c0.js → get-payout-csv-c1c7f03f.js} +2 -2
- package/dist/cjs/{get-subaccounts-40c4a0b6.js → get-subaccounts-c1d559a0.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-cc98bae2.js → header-1-a63a16d5.js} +1 -1
- package/dist/cjs/{header-3-05ce2ad0.js → header-3-a6e0f274.js} +1 -1
- package/dist/cjs/{insurance-state-211cd636.js → insurance-state-ff4fca5a.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +108 -55
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- 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 -6
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +70 -0
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +78 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-82b16c28.js → package-53904238.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-63f60e81.js → parts-3118ab4b.js} +12 -5
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-23b0dcb8.js → payment.service-fedf131a.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{payments-status-b9192db7.js → payments-status-96156930.js} +1 -1
- package/dist/cjs/{payments-table-dba2f145.js → payments-table-6f87d43e.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{payouts-status-385a794d.js → payouts-status-aa6842ac.js} +1 -1
- package/dist/cjs/{payouts-table-8cd537de.js → payouts-table-d4c8bbbc.js} +2 -2
- package/dist/cjs/{skeleton-65afa2f5.js → skeleton-32198b92.js} +1 -1
- package/dist/cjs/{spinner-a95e9b8d.js → spinner-a5c0f3c0.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +45 -64
- package/dist/cjs/terminal-orders-list-params-state-c419078f.js +22 -0
- package/dist/cjs/{terminal-orders-table-8baa5461.js → terminal-orders-table-eb95b278.js} +8 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-2f41898f.js → terminal.service-ac44fc14.js} +8 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -9
- package/dist/cjs/{terminals-table-c4c01dc3.js → terminals-table-3f0c33ea.js} +2 -2
- package/dist/cjs/{utils-f752bd45.js → utils-97041614.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
- package/dist/collection/actions/terminal/order-terminals.js +29 -0
- package/dist/collection/api/Api.js +2 -2
- package/dist/collection/api/TerminalOrder.js +4 -4
- package/dist/collection/api/services/terminal.service.js +6 -0
- package/dist/collection/api/services/terminal_orders.service.js +9 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
- package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +109 -48
- package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.js +1 -1
- package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.js +4 -4
- 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 +6 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +67 -9
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +141 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-params-state.js +14 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
- 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/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +7 -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 +1 -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 +275 -18
- package/dist/esm/{Api-391d00e2.js → Api-52242eb0.js} +2 -2
- package/dist/esm/{SubAccount-f31bdeb4.js → SubAccount-0248b5ab.js} +4 -4
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-7768a2b1.js → badge-1555ad1d.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
- 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/{business.service-f7c3b9f7.js → business.service-13890e74.js} +1 -1
- package/dist/esm/{button-b3d07089.js → button-1e756c34.js} +1 -1
- package/dist/{module/Analytics.js → esm/check-pkg-version-0557a5c4.js} +22 -3
- package/dist/esm/{checkout.service-020aaf97.js → checkout.service-fe338804.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +6 -7
- package/dist/esm/{checkouts-table-974c57ba.js → checkouts-table-e339bf0c.js} +2 -2
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/{dispute.service-b234b5c7.js → dispute.service-3e1320fe.js} +2 -2
- package/dist/esm/{table-03e4dfc0.js → event-types-359ef89e.js} +10 -3
- 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-923afdfa.js → form-control-error-text-1391123f.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-c7bdd493.js → form-control-help-text-9918264e.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 +4 -4
- package/dist/esm/{get-payout-csv-9528b0a2.js → get-payout-csv-9021a002.js} +2 -2
- package/dist/esm/{get-subaccounts-212c162d.js → get-subaccounts-6b048fd1.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-649109a3.js → header-1-adb520cc.js} +1 -1
- package/dist/esm/{header-3-ca7bb57b.js → header-3-ca58500e.js} +1 -1
- package/dist/esm/{insurance-state-e3b48bb2.js → insurance-state-24af6ddb.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +4 -4
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +5 -5
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +6 -7
- package/dist/esm/justifi-business-form.entry.js +8 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +6 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
- package/dist/esm/justifi-order-terminals.entry.js +107 -54
- package/dist/esm/justifi-owner-form_3.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +7 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -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 +4 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +66 -0
- package/dist/esm/justifi-terminal-orders-list.entry.js +79 -15
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +10 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-b9d805ae.js → package-25d5d805.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-18c966b1.js → parts-ad835bef.js} +8 -4
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-81752187.js → payment.service-2967c84b.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +8 -9
- package/dist/esm/{payments-status-f451caf6.js → payments-status-d011e114.js} +1 -1
- package/dist/esm/{payments-table-a7836555.js → payments-table-3e33b856.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +8 -9
- package/dist/esm/{payouts-status-bfae9f42.js → payouts-status-181276c5.js} +1 -1
- package/dist/esm/{payouts-table-55f1a8a3.js → payouts-table-199bdf64.js} +2 -2
- package/dist/esm/{skeleton-ca37b248.js → skeleton-0cde7cb6.js} +1 -1
- package/dist/esm/{spinner-30abb9b0.js → spinner-342e71ff.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +44 -63
- package/dist/esm/terminal-orders-list-params-state-8fec0a0b.js +16 -0
- package/dist/esm/{terminal-orders-table-a340c409.js → terminal-orders-table-2884305a.js} +8 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-3c3f2c3f.js → terminal.service-4fab5adc.js} +8 -2
- package/dist/esm/terminals-list-core.entry.js +7 -8
- package/dist/esm/{terminals-table-88549e54.js → terminals-table-4e1644e8.js} +2 -2
- package/dist/esm/{utils-e7df4815.js → utils-96c6292c.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +2 -2
- package/dist/module/SubAccount.js +4 -4
- package/dist/module/check-pkg-version.js +80 -1
- package/dist/module/checkouts-list-core2.js +1 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-response.js +1 -2
- package/dist/module/event-types2.js +55 -1
- 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 +1 -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-business-details.js +1 -2
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-checkouts-list.js +1 -2
- package/dist/module/justifi-dispute-management.js +1 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +105 -51
- package/dist/module/justifi-payment-details.js +1 -2
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-terminal-orders-list-filters.d.ts +11 -0
- package/dist/module/justifi-terminal-orders-list-filters.js +119 -0
- package/dist/module/justifi-terminal-orders-list.js +75 -12
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +3 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +8 -4
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-provisioning-core.js +2 -2
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -3
- package/dist/module/terminal-orders-list-core2.js +44 -59
- package/dist/module/terminal-orders-list-params-state.js +16 -0
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +6 -0
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
- package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/TerminalOrder.d.ts +11 -5
- package/dist/types/api/services/terminal.service.d.ts +2 -0
- package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +20 -3
- package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.d.ts +2 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +19 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-params-state.d.ts +6 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
- package/dist/types/components.d.ts +49 -6
- package/dist/types/styles/parts.d.ts +6 -0
- package/dist/webcomponents/p-00d55a4b.entry.js +1 -0
- package/dist/webcomponents/{p-348fc9b1.js → p-04d59ef8.js} +1 -1
- package/dist/webcomponents/p-073f24ba.entry.js +1 -0
- package/dist/webcomponents/p-07c13189.entry.js +1 -0
- package/dist/webcomponents/p-0bafaf49.entry.js +1 -0
- package/dist/webcomponents/p-0d01d245.entry.js +1 -0
- package/dist/webcomponents/p-13d62477.entry.js +1 -0
- package/dist/webcomponents/{p-930e2e05.js → p-17c4edf7.js} +1 -1
- package/dist/webcomponents/{p-6776df16.js → p-17eea747.js} +1 -1
- package/dist/webcomponents/p-1b3a6c40.entry.js +1 -0
- package/dist/webcomponents/p-1fb5677e.entry.js +1 -0
- package/dist/webcomponents/p-24203209.entry.js +1 -0
- package/dist/webcomponents/{p-ca19fd2e.js → p-251c8e97.js} +1 -1
- package/dist/webcomponents/{p-d37d20ca.entry.js → p-258087a8.entry.js} +1 -1
- package/dist/webcomponents/p-2759d157.entry.js +1 -0
- package/dist/webcomponents/{p-f48dd1ef.entry.js → p-2cd9b608.entry.js} +1 -1
- package/dist/webcomponents/p-2dd39017.js +1 -0
- package/dist/webcomponents/p-3030f5e6.entry.js +1 -0
- package/dist/webcomponents/p-308ec9c7.entry.js +1 -0
- package/dist/webcomponents/{p-9ffed802.js → p-324587d0.js} +1 -1
- package/dist/webcomponents/{p-d019b800.js → p-34a95381.js} +1 -1
- package/dist/webcomponents/{p-b40bcf59.js → p-365e56fc.js} +1 -1
- package/dist/webcomponents/p-36e32bc4.entry.js +1 -0
- package/dist/webcomponents/p-454acd29.entry.js +1 -0
- package/dist/webcomponents/{p-adf30888.entry.js → p-45e68bb3.entry.js} +1 -1
- package/dist/webcomponents/p-485df2fe.entry.js +1 -0
- package/dist/webcomponents/p-50b012a3.entry.js +1 -0
- package/dist/webcomponents/p-52e2cc5e.js +1 -0
- package/dist/webcomponents/{p-ec3f9d80.entry.js → p-55e21977.entry.js} +1 -1
- package/dist/webcomponents/{p-0a271654.entry.js → p-56143442.entry.js} +1 -1
- package/dist/webcomponents/{p-834c12a0.entry.js → p-5cf1898d.entry.js} +1 -1
- package/dist/webcomponents/p-5d600828.js +1 -0
- package/dist/webcomponents/{p-0e180654.js → p-5f6b4bc9.js} +1 -1
- package/dist/webcomponents/{p-6501cb6e.entry.js → p-61a45f7d.entry.js} +1 -1
- package/dist/webcomponents/p-646d007a.js +1 -0
- package/dist/webcomponents/p-651c881b.js +1 -0
- package/dist/webcomponents/{p-0ef25316.entry.js → p-6a4b710e.entry.js} +1 -1
- package/dist/webcomponents/{p-140836f1.entry.js → p-74f6cc28.entry.js} +1 -1
- package/dist/webcomponents/p-78255a04.entry.js +1 -0
- package/dist/webcomponents/p-7d93c28b.js +1 -0
- package/dist/webcomponents/{p-808f61aa.js → p-88af0d7d.js} +1 -1
- package/dist/webcomponents/p-8946edfd.js +1 -0
- package/dist/webcomponents/p-8ffd9f7c.js +1 -0
- package/dist/webcomponents/{p-29988e8f.entry.js → p-92b18902.entry.js} +1 -1
- package/dist/webcomponents/{p-57ddf983.entry.js → p-92f29922.entry.js} +1 -1
- package/dist/webcomponents/{p-66cdd475.js → p-944f1cc7.js} +1 -1
- package/dist/webcomponents/p-97f3a1b0.entry.js +1 -0
- package/dist/webcomponents/p-9c57de4e.entry.js +1 -0
- package/dist/webcomponents/p-9fcab358.entry.js +1 -0
- package/dist/webcomponents/{p-b4ed5a2c.js → p-a0f715d4.js} +1 -1
- package/dist/webcomponents/p-a35f3b5b.js +1 -0
- package/dist/webcomponents/p-a7594f8f.entry.js +1 -0
- package/dist/webcomponents/{p-69ae193c.js → p-a81cabed.js} +1 -1
- package/dist/webcomponents/{p-3744006f.js → p-b19a37d4.js} +1 -1
- package/dist/webcomponents/{p-c1af1fdb.entry.js → p-b7960f37.entry.js} +1 -1
- package/dist/webcomponents/{p-7d43c1d6.entry.js → p-b7ddb76f.entry.js} +1 -1
- package/dist/webcomponents/p-b97f433a.entry.js +1 -0
- package/dist/webcomponents/{p-913d51b9.js → p-ba113075.js} +1 -1
- package/dist/webcomponents/p-be6fea42.entry.js +1 -0
- package/dist/webcomponents/p-beec0b60.js +1 -0
- package/dist/webcomponents/p-c380213d.js +1 -0
- package/dist/webcomponents/{p-420d6572.entry.js → p-c3939138.entry.js} +1 -1
- package/dist/webcomponents/p-c7c9725d.entry.js +1 -0
- package/dist/webcomponents/p-cba7d0a7.entry.js +1 -0
- package/dist/webcomponents/{p-77245638.js → p-d273f33b.js} +1 -1
- package/dist/webcomponents/p-d4724349.js +1 -0
- package/dist/webcomponents/p-d575c2c1.entry.js +1 -0
- package/dist/webcomponents/{p-dd535097.js → p-d5960545.js} +1 -1
- package/dist/webcomponents/p-d78ea308.entry.js +1 -0
- package/dist/webcomponents/p-d7bcf8f0.js +1 -0
- package/dist/webcomponents/{p-566883fb.entry.js → p-d8ba9309.entry.js} +1 -1
- package/dist/webcomponents/p-da2a9dfa.entry.js +1 -0
- package/dist/webcomponents/{p-1a9d60b1.entry.js → p-dac9282d.entry.js} +1 -1
- package/dist/webcomponents/{p-4a580682.entry.js → p-dd3de924.entry.js} +1 -1
- package/dist/webcomponents/p-df9ff0ce.entry.js +1 -0
- package/dist/webcomponents/p-e1dd47e1.entry.js +1 -0
- package/dist/webcomponents/{p-7e4c84f7.entry.js → p-e52e9120.entry.js} +1 -1
- package/dist/webcomponents/p-e545c079.entry.js +1 -0
- package/dist/webcomponents/p-e5c60276.entry.js +1 -0
- package/dist/webcomponents/p-e5de1a00.entry.js +1 -0
- package/dist/webcomponents/{p-7dc34297.entry.js → p-ed3ad073.entry.js} +1 -1
- package/dist/webcomponents/{p-54502491.entry.js → p-f1573cad.entry.js} +1 -1
- package/dist/webcomponents/p-f1d6e14f.js +1 -0
- package/dist/webcomponents/{p-4014d084.entry.js → p-f57d5d4f.entry.js} +1 -1
- package/dist/webcomponents/{p-8548d8de.js → p-f87e871d.js} +1 -1
- package/dist/webcomponents/p-f8a95380.entry.js +1 -0
- package/dist/webcomponents/{p-1e3cc191.entry.js → p-fa5688f7.entry.js} +1 -1
- package/dist/webcomponents/p-fbdc18e4.entry.js +1 -0
- package/dist/webcomponents/{p-49fc12b2.entry.js → p-fdd244b1.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/check-pkg-version-d19c6fdb.js +0 -24
- package/dist/cjs/event-types-b6d34593.js +0 -8
- package/dist/esm/Analytics-d0f79dc3.js +0 -82
- package/dist/esm/check-pkg-version-2e9f961e.js +0 -22
- package/dist/esm/event-types-0a83d0b4.js +0 -8
- package/dist/module/table.js +0 -55
- package/dist/webcomponents/p-0ef50c81.js +0 -1
- package/dist/webcomponents/p-0f85fde5.entry.js +0 -1
- package/dist/webcomponents/p-0faaae79.entry.js +0 -1
- package/dist/webcomponents/p-121e9167.entry.js +0 -1
- package/dist/webcomponents/p-1d019dda.entry.js +0 -1
- package/dist/webcomponents/p-1f99a902.js +0 -1
- package/dist/webcomponents/p-1fcde0de.entry.js +0 -1
- package/dist/webcomponents/p-229c841e.entry.js +0 -1
- package/dist/webcomponents/p-2481c1d3.entry.js +0 -1
- package/dist/webcomponents/p-31507b3a.entry.js +0 -1
- package/dist/webcomponents/p-36060c36.entry.js +0 -1
- package/dist/webcomponents/p-418ab812.entry.js +0 -1
- package/dist/webcomponents/p-45bed1b7.js +0 -1
- package/dist/webcomponents/p-4bb0d6fd.js +0 -1
- package/dist/webcomponents/p-4c4a2c48.js +0 -1
- package/dist/webcomponents/p-4f9a2f1f.js +0 -1
- package/dist/webcomponents/p-55a6599a.entry.js +0 -1
- package/dist/webcomponents/p-5bf5f7d7.entry.js +0 -1
- package/dist/webcomponents/p-5dc767d8.js +0 -1
- package/dist/webcomponents/p-6815a6cb.entry.js +0 -1
- package/dist/webcomponents/p-76d1036b.entry.js +0 -1
- package/dist/webcomponents/p-77e3ed67.js +0 -1
- package/dist/webcomponents/p-867e34b8.entry.js +0 -1
- package/dist/webcomponents/p-8a3f1a56.entry.js +0 -1
- package/dist/webcomponents/p-8a9debac.entry.js +0 -1
- package/dist/webcomponents/p-8b3842ce.js +0 -1
- package/dist/webcomponents/p-96a491aa.js +0 -1
- package/dist/webcomponents/p-9a6eacd0.entry.js +0 -1
- package/dist/webcomponents/p-9d8cf927.entry.js +0 -1
- package/dist/webcomponents/p-b0335a17.entry.js +0 -1
- package/dist/webcomponents/p-b075211e.entry.js +0 -1
- package/dist/webcomponents/p-b7a407fb.entry.js +0 -1
- package/dist/webcomponents/p-b894423f.js +0 -1
- package/dist/webcomponents/p-bc6e3e59.entry.js +0 -1
- package/dist/webcomponents/p-bc73a554.entry.js +0 -1
- package/dist/webcomponents/p-c17af2a4.entry.js +0 -1
- package/dist/webcomponents/p-ca55be58.js +0 -1
- package/dist/webcomponents/p-d979d9ea.entry.js +0 -1
- package/dist/webcomponents/p-d981a599.entry.js +0 -1
- package/dist/webcomponents/p-da415c08.entry.js +0 -1
- package/dist/webcomponents/p-e0befd51.js +0 -1
- package/dist/webcomponents/p-e7d2eba7.entry.js +0 -1
- package/dist/webcomponents/p-e895bc2a.entry.js +0 -1
- package/dist/webcomponents/p-ee991c9e.entry.js +0 -1
- package/dist/webcomponents/p-f1580c62.js +0 -1
- package/dist/webcomponents/p-fe0399a1.js +0 -1
- package/dist/webcomponents/p-fe439eb2.entry.js +0 -1
- package/dist/webcomponents/p-fe8be5fa.entry.js +0 -1
- package/dist/webcomponents/p-ffbd95d0.entry.js +0 -1
- /package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.d.ts +0 -0
|
@@ -72,9 +72,6 @@ const badgeDark = `${badge} badge-dark`;
|
|
|
72
72
|
const dropdownMenu = `dropdown-menu ${text}`;
|
|
73
73
|
// Radio List Item
|
|
74
74
|
const radioListItem = `radio-list-item ${text}`;
|
|
75
|
-
// Bootstrap list-group
|
|
76
|
-
const listGroup = `list-group ${text} ${backgroundColor}`;
|
|
77
|
-
const listGroupItem = `list-group-item ${text} ${backgroundColor}`;
|
|
78
75
|
// Skeleton
|
|
79
76
|
const skeleton = `skeleton`;
|
|
80
77
|
// Image
|
|
@@ -109,6 +106,13 @@ const terminalsListFilterMenu = `${filterMenu} terminals-list-filter-menu`;
|
|
|
109
106
|
const terminalsListFilterParam = `terminals-list-filter-param`;
|
|
110
107
|
const terminalIdTerminalsListFilterParam = `${terminalsListFilterParam} terminal-id-terminals-list-filter-param`;
|
|
111
108
|
const terminalStatusTerminalsListFilterParam = `${terminalsListFilterParam} terminal-status-terminals-list-filter-param`;
|
|
109
|
+
// Terminal Orders List Filters
|
|
110
|
+
const terminalOrdersListFilterMenu = `${filterMenu} terminal-orders-list-filter-menu`;
|
|
111
|
+
const terminalOrdersListFilterParam = `terminal-orders-list-filter-param`;
|
|
112
|
+
const orderStatusTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-status-terminal-orders-list-filter-param`;
|
|
113
|
+
const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-type-terminal-orders-list-filter-param`;
|
|
114
|
+
const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
|
|
115
|
+
const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
|
|
112
116
|
|
|
113
117
|
exports.alertDanger = alertDanger;
|
|
114
118
|
exports.badge = badge;
|
|
@@ -131,8 +135,10 @@ exports.checkoutSummary = checkoutSummary;
|
|
|
131
135
|
exports.checkoutsListFilterMenu = checkoutsListFilterMenu;
|
|
132
136
|
exports.createdAfterPaymentsListFilterParam = createdAfterPaymentsListFilterParam;
|
|
133
137
|
exports.createdAfterPayoutsListFilterParam = createdAfterPayoutsListFilterParam;
|
|
138
|
+
exports.createdAfterTerminalOrdersListFilterParam = createdAfterTerminalOrdersListFilterParam;
|
|
134
139
|
exports.createdBeforePaymentsListFilterParam = createdBeforePaymentsListFilterParam;
|
|
135
140
|
exports.createdBeforePayoutsListFilterParam = createdBeforePayoutsListFilterParam;
|
|
141
|
+
exports.createdBeforeTerminalOrdersListFilterParam = createdBeforeTerminalOrdersListFilterParam;
|
|
136
142
|
exports.dropdownMenu = dropdownMenu;
|
|
137
143
|
exports.getAlternateTableCellPart = getAlternateTableCellPart;
|
|
138
144
|
exports.heading1 = heading1;
|
|
@@ -158,9 +164,9 @@ exports.inputRadioCheckedFocused = inputRadioCheckedFocused;
|
|
|
158
164
|
exports.inputRadioFocused = inputRadioFocused;
|
|
159
165
|
exports.inputRadioInvalid = inputRadioInvalid;
|
|
160
166
|
exports.label = label;
|
|
161
|
-
exports.listGroup = listGroup;
|
|
162
|
-
exports.listGroupItem = listGroupItem;
|
|
163
167
|
exports.loadingSpinner = loadingSpinner;
|
|
168
|
+
exports.orderStatusTerminalOrdersListFilterParam = orderStatusTerminalOrdersListFilterParam;
|
|
169
|
+
exports.orderTypeTerminalOrdersListFilterParam = orderTypeTerminalOrdersListFilterParam;
|
|
164
170
|
exports.paymentIdPaymentsListFilterParam = paymentIdPaymentsListFilterParam;
|
|
165
171
|
exports.paymentModeCheckoutsListFilterParam = paymentModeCheckoutsListFilterParam;
|
|
166
172
|
exports.paymentStatusPaymentsListFilterParam = paymentStatusPaymentsListFilterParam;
|
|
@@ -176,6 +182,7 @@ exports.tableError = tableError;
|
|
|
176
182
|
exports.tableHeadCell = tableHeadCell;
|
|
177
183
|
exports.terminalIdPaymentsListFilterParam = terminalIdPaymentsListFilterParam;
|
|
178
184
|
exports.terminalIdTerminalsListFilterParam = terminalIdTerminalsListFilterParam;
|
|
185
|
+
exports.terminalOrdersListFilterMenu = terminalOrdersListFilterMenu;
|
|
179
186
|
exports.terminalStatusTerminalsListFilterParam = terminalStatusTerminalsListFilterParam;
|
|
180
187
|
exports.terminalsListFilterMenu = terminalsListFilterMenu;
|
|
181
188
|
exports.text = text;
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const utils$1 = require('./utils-337befa9.js');
|
|
7
|
-
const paymentsStatus = require('./payments-status-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const paymentsStatus = require('./payments-status-96156930.js');
|
|
8
|
+
const utils = require('./utils-97041614.js');
|
|
9
9
|
const styledHost = require('./styled-host-94309bab.js');
|
|
10
|
-
const skeleton = require('./skeleton-
|
|
11
|
-
require('./badge-
|
|
12
|
-
require('./parts-
|
|
10
|
+
const skeleton = require('./skeleton-32198b92.js');
|
|
11
|
+
require('./badge-591df67f.js');
|
|
12
|
+
require('./parts-3118ab4b.js');
|
|
13
13
|
|
|
14
14
|
const PaymentDetailsLoading = () => (index.h("div", { class: "row gap-3" },
|
|
15
15
|
index.h("div", { class: "col-12" },
|
|
@@ -62,14 +62,14 @@ const PaymentDetailsCore = class {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
66
|
-
this.payment && (index.h("justifi-details", { key: '
|
|
67
|
-
index.h(utils.DetailSectionTitle, { key: '
|
|
68
|
-
index.h("div", { key: '
|
|
65
|
+
return (index.h(styledHost.StyledHost, { key: '00ba42c81617d9593246956e97b6b962817cc167' }, this.loading && index.h(PaymentDetailsLoading, { key: '1c0fee27dec985cad2cc7d41f61d137246ffcc3e' }), !this.loading && this.errorMessage && utils.ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
66
|
+
this.payment && (index.h("justifi-details", { key: 'e264b42451a8966a4e6313486bc9d1ccaea0141b', "error-message": this.errorMessage }, index.h(utils.EntityHeadInfo, { key: 'af96a0f502cce1be451160e8ac2f92074b0ee168', slot: "head-info", badge: paymentsStatus.MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, index.h(utils.EntityHeadInfoItem, { key: '94f876bd62dd9ccaa6f63f25326390b03c9938d5', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payment.updated_at)} ${utils$1.formatTime(this.payment.updated_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '96c629e2d1a99eca277ec7337cb3e00e88c1b31e', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payment.created_at)} ${utils$1.formatTime(this.payment.created_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '0d18abfae7e9fd0a692ac54640194033a5c36f41', title: "ID", value: this.payment.id })), index.h("div", { key: '7f9e14d7e0312ba1136cf5734754bf0af6c19774', slot: 'detail-sections' }, index.h(utils.DetailSectionTitle, { key: 'a11b47796dada4f9678487edf19dcd7928b08e94', sectionTitle: "Details" }), index.h("div", { key: 'fa8a895e037adbbcf5856aae4f40306b789a90c8', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: '84a8fa2b0dc39aa331501e00a8eb9bf93e8bb8c2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), index.h(utils.DetailItem, { key: '632fa4e703aabc7b606b939e95d1633a43fedfaa', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), index.h(utils.DetailItem, { key: 'bc37a80a15fea95932d04676f2c5a8a57276958b', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), index.h(utils.DetailItem, { key: '588a76203897cd31b9d0c1c8de1b7b9b0b107421', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), index.h(utils.DetailItem, { key: 'c0fea24390417c591327c76568829cbf9f9147a9', title: "Status", value: paymentsStatus.MapPaymentStatusToBadge(this.payment.status) }), index.h(utils.DetailItem, { key: 'e332a896b55bb58f3fd26ee892556acb08ced52d', title: "Payment ID", value: this.payment.id }), index.h(utils.DetailItem, { key: '844fdb40ed55ca0e2f848e7325dcb64f134fa5d6', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), index.h(utils.DetailItem, { key: 'dce95b409eb465e8d6373ad80b7b14a0eecc5aca', title: "Statement Descriptor", value: this.payment.statement_descriptor }), index.h(utils.DetailItem, { key: 'bed2051bd720b1a790ff59b50bee7f01e3fb222a', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
|
|
67
|
+
index.h(utils.DetailSectionTitle, { key: '3283ea5236fab75a32fe569ad29d9b70c62b49a0', sectionTitle: "Payment Method" }),
|
|
68
|
+
index.h("div", { key: 'b9a0d9cfca791e3afb4a2e1e73b036319191d485', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: '15da44c97292af05a14b3f7840b07bdcf34ae953', title: "ID", value: this.payment.payment_method.card.id }), index.h(utils.DetailItem, { key: 'd8a4a431c3e3ab0d14be8992521ee89b5e126a04', title: "Payment Type", value: "Card" }), index.h(utils.DetailItem, { key: '1a8ed38a316ea943761d2dd7fda58490180ef3bc', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), index.h(utils.DetailItem, { key: 'db695d1b89896a7a73c83fd8a7d5837ad1e69909', title: "Brand", value: utils$1.snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), index.h(utils.DetailItem, { key: 'd94879fb30ac0a05a16ce9ddb199fb5cb003a8c1', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
69
69
|
], this.payment.payment_method.bank_account && [
|
|
70
|
-
index.h(utils.DetailSectionTitle, { key: '
|
|
71
|
-
index.h("div", { key: '
|
|
72
|
-
], index.h(utils.DetailSectionTitle, { key: '
|
|
70
|
+
index.h(utils.DetailSectionTitle, { key: '84dae904db3c22ff5ed03abaeb57d3b0736d1fbb', sectionTitle: "Payment Method" }),
|
|
71
|
+
index.h("div", { key: '400801019a53feec0478273866fffa5683b408aa', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: 'ca7bb52e4275659b18daacfa6367de2f32617e70', title: "ID", value: this.payment.payment_method.bank_account.id }), index.h(utils.DetailItem, { key: '4885d2b5f05b6a713d61074271c7a95b23604dca', title: "Last 4 Numbers", value: this.payment.last_four_digits }), index.h(utils.DetailItem, { key: '604ec4efe78a12a1c36d8416c9fdec70351a6dad', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), index.h(utils.DetailItem, { key: '1ef77a81232e19d1063af9e863f5c9ada183715f', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
72
|
+
], index.h(utils.DetailSectionTitle, { key: '1d0a45dd7b7f44b2bad75db9ddb7886b9fc36c9c', sectionTitle: 'Metadata' }), index.h("div", { key: '364dfb72b9585b672a510b11ecf794c8293ac88d', class: "d-table gap-2 w-100" }, index.h(utils.CodeBlock, { key: '1b9254f2f5f81959ea4e190a3a84129d8c54eccd', metadata: this.payment.metadata })))))));
|
|
73
73
|
}
|
|
74
74
|
static get watchers() { return {
|
|
75
75
|
"getPaymentDetails": ["updateOnPropChange"]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const Api = require('./Api-
|
|
3
|
+
const Api = require('./Api-83d93333.js');
|
|
4
4
|
require('./ComponentError-233ac749.js');
|
|
5
5
|
require('./Checkout-eef27045.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-c47ed1e1.js');
|
|
8
|
-
require('./SubAccount-
|
|
8
|
+
require('./SubAccount-9babbfd3.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
|
|
11
11
|
class PaymentService {
|
|
@@ -7,18 +7,17 @@ require('./ComponentError-233ac749.js');
|
|
|
7
7
|
require('./Checkout-eef27045.js');
|
|
8
8
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-c47ed1e1.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-9babbfd3.js');
|
|
11
11
|
require('./Document-0b828345.js');
|
|
12
|
-
const parts = require('./parts-
|
|
13
|
-
const
|
|
14
|
-
const paymentsTable = require('./payments-table-
|
|
12
|
+
const parts = require('./parts-3118ab4b.js');
|
|
13
|
+
const eventTypes = require('./event-types-921f3555.js');
|
|
14
|
+
const paymentsTable = require('./payments-table-6f87d43e.js');
|
|
15
15
|
const paymentsListParamsState = require('./payments-list-params-state-442d9944.js');
|
|
16
|
-
const eventTypes = require('./event-types-b6d34593.js');
|
|
17
16
|
require('./utils-337befa9.js');
|
|
18
17
|
require('./Dispute-eb6bad54.js');
|
|
19
|
-
require('./spinner-
|
|
20
|
-
require('./payments-status-
|
|
21
|
-
require('./badge-
|
|
18
|
+
require('./spinner-a5c0f3c0.js');
|
|
19
|
+
require('./payments-status-96156930.js');
|
|
20
|
+
require('./badge-591df67f.js');
|
|
22
21
|
require('./index-d2d0b181.js');
|
|
23
22
|
|
|
24
23
|
const PaymentsListCore = class {
|
|
@@ -54,7 +53,7 @@ const PaymentsListCore = class {
|
|
|
54
53
|
this.fetchData();
|
|
55
54
|
}
|
|
56
55
|
componentWillLoad() {
|
|
57
|
-
this.paymentsTable = new
|
|
56
|
+
this.paymentsTable = new eventTypes.Table(this.payments, this.columns, paymentsTable.paymentTableColumns, paymentsTable.paymentTableCells);
|
|
58
57
|
if (this.getPayments) {
|
|
59
58
|
this.fetchData();
|
|
60
59
|
}
|
|
@@ -106,7 +105,7 @@ const PaymentsListCore = class {
|
|
|
106
105
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
107
106
|
}
|
|
108
107
|
render() {
|
|
109
|
-
return (index.h("div", { key: '
|
|
108
|
+
return (index.h("div", { key: '91c30f03d9b807ff84224ae25a0bcc84b5c17d20' }, index.h("div", { key: '447c694f9dcfee6363bafd369f53152ef1797c60', class: "table-wrapper" }, index.h("table", { key: 'fe3a2911b4d7aa109319d6dabc77eb338b910df9', class: "table table-hover", part: parts.table }, index.h("thead", { key: 'a3ec810da46e43f786def86991f74e1c0f3c269b', class: "table-head sticky-top" }, index.h("tr", { key: '94b80f23224624d2f4be81cffa5365d9a725bf33', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), index.h("tbody", { key: 'd2c24a19bebcd4872dc36c4f8c6a47678a912d6d', class: "table-body" }, index.h(eventTypes.TableLoadingState, { key: 'dfcc51f6307996ea5383c4da3ddde61c973d946b', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), index.h(eventTypes.TableEmptyState, { key: 'a81643fd528bff0ad8a57ea17aed718dbfcff6c5', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), index.h(eventTypes.TableErrorState, { key: '3c50d2d7ee8bd5e8c03db7c1d01db8fbb6de4b9b', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h("tfoot", { key: '601bb3cd6f8b54fa262d572f715a6208df515f47', class: "sticky-bottom" }, index.h("tr", { key: '3fbcc03fc841c196cc52b2572387d243d74b2f44', class: "table-light align-middle" }, index.h("td", { key: 'a1d593b29235432bc668564d784b594dea8ae13c', part: parts.tableCell, colSpan: this.paymentsTable.columnData.length }, index.h("pagination-menu", { key: '1a427ec2e181baad95ffd14a6c77485f86786f6d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
110
109
|
}
|
|
111
110
|
static get watchers() { return {
|
|
112
111
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-5b9a3b5f.js');
|
|
4
|
-
const paymentsStatus = require('./payments-status-
|
|
4
|
+
const paymentsStatus = require('./payments-status-96156930.js');
|
|
5
5
|
const utils = require('./utils-337befa9.js');
|
|
6
|
-
const parts = require('./parts-
|
|
6
|
+
const parts = require('./parts-3118ab4b.js');
|
|
7
7
|
|
|
8
8
|
const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
|
|
9
9
|
const paymentTableColumns = {
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const utils$1 = require('./utils-337befa9.js');
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
const button = require('./button-
|
|
7
|
+
const utils = require('./utils-97041614.js');
|
|
8
|
+
const button = require('./button-7f272a63.js');
|
|
9
9
|
const styledHost = require('./styled-host-94309bab.js');
|
|
10
|
-
const payoutsStatus = require('./payouts-status-
|
|
11
|
-
const skeleton = require('./skeleton-
|
|
12
|
-
require('./parts-
|
|
13
|
-
require('./badge-
|
|
10
|
+
const payoutsStatus = require('./payouts-status-aa6842ac.js');
|
|
11
|
+
const skeleton = require('./skeleton-32198b92.js');
|
|
12
|
+
require('./parts-3118ab4b.js');
|
|
13
|
+
require('./badge-591df67f.js');
|
|
14
14
|
|
|
15
15
|
const PayoutDetailsLoading = () => (index.h("div", { class: "row gap-3" },
|
|
16
16
|
index.h("div", { class: "col-12" },
|
|
@@ -78,7 +78,7 @@ const PayoutDetailsCore = class {
|
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
var _a;
|
|
81
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
81
|
+
return (index.h(styledHost.StyledHost, { key: '6aab170bbe708372d913c14bcb58b3b0d60dafd8' }, this.loading && index.h(PayoutDetailsLoading, { key: '0aee9ad36b3c4e74b1cb3f8251d0488cede1355c' }), !this.loading && this.errorMessage && utils.ErrorState(this.errorMessage), !this.loading && this.payout && (index.h("justifi-details", { key: 'c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4', "error-message": this.errorMessage }, index.h(utils.EntityHeadInfo, { key: '6b67e623a6cb67207007ba4319aa437996118dd9', slot: "head-info", badge: payoutsStatus.MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, index.h(utils.EntityHeadInfoItem, { key: 'ff1c335e90ad0403a607491e4ff0b0adac52f255', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payout.updated_at)} ${utils$1.formatTime(this.payout.updated_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payout.created_at)} ${utils$1.formatTime(this.payout.created_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6', title: "ID", value: this.payout.id }), index.h("div", { key: '762b4fc60643def05b7f8e84ce170d6295654631', class: "m-4" }, index.h(button.Button, { key: 'c5f304fb7f54838da6785a0bf19c423a98bdbf34', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), index.h("div", { key: 'b307f177086cd6b1eeb0f384cce772cd04ff33ad', slot: 'detail-sections' }, index.h(utils.DetailSectionTitle, { key: 'bad67a9d2cde5bff23b5c959f9b7564fdc996300', sectionTitle: "Details" }), index.h("div", { key: '6986bef4813aadb505acaf5cdd07b853c271e442', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: 'dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7', title: "Date paid", value: utils$1.formatDate(this.payout.deposits_at) }), index.h(utils.DetailItem, { key: 'bf21ac446b54bdfcec020d6086546a0b20f42d01', title: "Statement Description", value: this.payout.description }), index.h(utils.DetailItem, { key: '30f7609216b42f3918929a6a02b30a6a23689921', title: "Payout Method", value: this.payout.delivery_method }), index.h(utils.DetailItem, { key: 'e7d93fa8d865162098e105d4041c12af757db68b', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), index.h(utils.DetailItem, { key: '99b76f8abc8f0077df988cf38cfb74e77a7e881f', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), index.h(utils.DetailSectionTitle, { key: 'cfef47442eeb83514ca10fab25d12f1439414fc0', sectionTitle: "Account" }), index.h("div", { key: '901423f1ca47bf79ab6daa63368fea0032e46d58', class: "d-table gap-2 w-100" }, index.h(utils.DetailItem, { key: 'f3e215b7aad43a3a3914b885189700e87758cca6', title: "ID", value: this.payout.account_id }), index.h(utils.DetailItem, { key: '795054cd2f8bda2a735e9ac64652da92dac34f61', title: "Account Type", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: '9c190036635aed95d74bce36ec257ada41b57cba', title: "Institution", value: this.payout.bank_account.account_type }), index.h(utils.DetailItem, { key: 'c1002cff85b80024804a858ef519feb4a86d46ff', title: "Routing Number", value: this.payout.bank_account.routing_number }), index.h(utils.DetailItem, { key: '0183bef106233f302cd8762c7483482bea849ac2', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), index.h(utils.DetailSectionTitle, { key: 'e87d57050d5dee72a8dccfe2ca2deee385e6dc61', sectionTitle: 'Metadata' }), index.h("div", { key: '9aefd212e7aa680b34f5af6a373a47997238496e', class: "d-table gap-2 w-100" }, index.h(utils.CodeBlock, { key: 'a9c9337a788cb2611787278768968e638a8c000d', metadata: this.payout.metadata })))))));
|
|
82
82
|
}
|
|
83
83
|
static get watchers() { return {
|
|
84
84
|
"getPayout": ["getPayoutWatcher"]
|
|
@@ -7,18 +7,17 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
7
7
|
require('./Checkout-eef27045.js');
|
|
8
8
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-c47ed1e1.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-9babbfd3.js');
|
|
11
11
|
require('./Document-0b828345.js');
|
|
12
|
-
const parts = require('./parts-
|
|
13
|
-
const
|
|
14
|
-
const payoutsTable = require('./payouts-table-
|
|
12
|
+
const parts = require('./parts-3118ab4b.js');
|
|
13
|
+
const eventTypes = require('./event-types-921f3555.js');
|
|
14
|
+
const payoutsTable = require('./payouts-table-d4c8bbbc.js');
|
|
15
15
|
const payoutsListParamsState = require('./payouts-list-params-state-033b76d6.js');
|
|
16
|
-
const eventTypes = require('./event-types-b6d34593.js');
|
|
17
16
|
require('./utils-337befa9.js');
|
|
18
17
|
require('./Dispute-eb6bad54.js');
|
|
19
|
-
require('./spinner-
|
|
20
|
-
require('./payouts-status-
|
|
21
|
-
require('./badge-
|
|
18
|
+
require('./spinner-a5c0f3c0.js');
|
|
19
|
+
require('./payouts-status-aa6842ac.js');
|
|
20
|
+
require('./badge-591df67f.js');
|
|
22
21
|
require('./index-d2d0b181.js');
|
|
23
22
|
|
|
24
23
|
const PayoutsListCore = class {
|
|
@@ -73,7 +72,7 @@ const PayoutsListCore = class {
|
|
|
73
72
|
this.fetchData();
|
|
74
73
|
}
|
|
75
74
|
componentWillLoad() {
|
|
76
|
-
this.payoutsTable = new
|
|
75
|
+
this.payoutsTable = new eventTypes.Table(this.payouts, this.columns, payoutsTable.payoutTableColumns, payoutsTable.payoutTableCells(this.downloadCSV));
|
|
77
76
|
if (this.getPayouts && this.getSubAccounts) {
|
|
78
77
|
this.fetchData();
|
|
79
78
|
}
|
|
@@ -159,7 +158,7 @@ const PayoutsListCore = class {
|
|
|
159
158
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
160
159
|
}
|
|
161
160
|
render() {
|
|
162
|
-
return (index.h("div", { key: '
|
|
161
|
+
return (index.h("div", { key: 'ed85d9ce4cc88007b8c623ba57cb8dfbd4de7874' }, index.h("div", { key: '5760742d19653abb6ce3e45f4f773cd1bd5e612f', class: "table-wrapper", part: "table-wrapper" }, index.h("table", { key: 'f09a0ea7fff83b23e8e82fda18c73b25e0a46b07', class: "table table-hover", part: parts.table }, index.h("thead", { key: 'b056f2ef2b6a229cd436ed0e4789f9d19849e956', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: '16e6651c934d1d4120ceaeb4732e807666f0404d', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), index.h("tbody", { key: '4b552d171131958f696077a66c4256e45ccaf7b2', class: "table-body" }, index.h(eventTypes.TableLoadingState, { key: 'aded291b5961c14d828ecff475120e48d3913293', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), index.h(eventTypes.TableEmptyState, { key: 'a3044be9a44798a4f8800978fd0734de31de6809', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), index.h(eventTypes.TableErrorState, { key: '98c909ea58a0dd7f0cbbd8ac9842380b91b92386', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h("tfoot", { key: '0c58d215c797798f87affb37d1f7622de3ca7407', class: "sticky-bottom" }, index.h("tr", { key: '9a3b39c8836bb817428bd307110fee62db8d7589', class: "table-light align-middle" }, index.h("td", { key: 'a3eef122632c9459d5fa31d4542b6b085645b738', part: parts.tableCell, colSpan: this.payoutsTable.columnData.length }, index.h("pagination-menu", { key: '8d77a7e40f9e7c6770812ba8b45a6e0f5f57193e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
163
162
|
}
|
|
164
163
|
static get watchers() { return {
|
|
165
164
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-5b9a3b5f.js');
|
|
4
4
|
const utils = require('./utils-337befa9.js');
|
|
5
|
-
const payoutsStatus = require('./payouts-status-
|
|
6
|
-
const parts = require('./parts-
|
|
5
|
+
const payoutsStatus = require('./payouts-status-aa6842ac.js');
|
|
6
|
+
const parts = require('./parts-3118ab4b.js');
|
|
7
7
|
|
|
8
8
|
const defaultColumnsKeys = 'created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv';
|
|
9
9
|
const payoutTableColumns = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-5b9a3b5f.js');
|
|
4
|
-
const parts = require('./parts-
|
|
4
|
+
const parts = require('./parts-3118ab4b.js');
|
|
5
5
|
|
|
6
6
|
const Skeleton = ({ component = 'div', height, width, className, styles = {}, }) => {
|
|
7
7
|
const combinedStyle = Object.assign(Object.assign({}, styles), { width,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const button = require('./button-
|
|
7
|
-
const parts = require('./parts-
|
|
6
|
+
const button = require('./button-7f272a63.js');
|
|
7
|
+
const parts = require('./parts-3118ab4b.js');
|
|
8
8
|
|
|
9
9
|
const hasFilters = (params) => {
|
|
10
10
|
const paginationKeys = ['after_cursor', 'before_cursor'];
|
|
@@ -3,91 +3,45 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const
|
|
7
|
-
const parts = require('./parts-
|
|
6
|
+
const eventTypes = require('./event-types-921f3555.js');
|
|
7
|
+
const parts = require('./parts-3118ab4b.js');
|
|
8
8
|
require('./ComponentError-233ac749.js');
|
|
9
9
|
require('./Checkout-eef27045.js');
|
|
10
10
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-c47ed1e1.js');
|
|
12
|
-
require('./SubAccount-
|
|
12
|
+
require('./SubAccount-9babbfd3.js');
|
|
13
13
|
require('./Document-0b828345.js');
|
|
14
|
-
const terminalOrdersTable = require('./terminal-orders-table-
|
|
15
|
-
require('./
|
|
14
|
+
const terminalOrdersTable = require('./terminal-orders-table-eb95b278.js');
|
|
15
|
+
const terminalOrdersListParamsState = require('./terminal-orders-list-params-state-c419078f.js');
|
|
16
|
+
require('./spinner-a5c0f3c0.js');
|
|
16
17
|
require('./utils-337befa9.js');
|
|
17
18
|
require('./Dispute-eb6bad54.js');
|
|
18
|
-
require('./badge-
|
|
19
|
-
|
|
20
|
-
const id = null;
|
|
21
|
-
const type = "array";
|
|
22
|
-
const page_info = {
|
|
23
|
-
has_previous: false,
|
|
24
|
-
has_next: false,
|
|
25
|
-
start_cursor: "mockCursorPage1",
|
|
26
|
-
end_cursor: "mockCursorPage2",
|
|
27
|
-
amount: 2
|
|
28
|
-
};
|
|
29
|
-
const data = [
|
|
30
|
-
{
|
|
31
|
-
id: "tord_ABCD1234",
|
|
32
|
-
business_id: "biz_0987",
|
|
33
|
-
account_id: "acc_5678",
|
|
34
|
-
provider: "verifone",
|
|
35
|
-
order_type: "boarding_only",
|
|
36
|
-
order_status: "submitted",
|
|
37
|
-
terminals: [
|
|
38
|
-
{
|
|
39
|
-
terminal_id: "tmn_QWER",
|
|
40
|
-
terminal_did: "11112222",
|
|
41
|
-
model_name: "v400"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
created_at: "2025-01-02T10:30:00Z",
|
|
45
|
-
updated_at: "2025-01-02T10:45:00Z"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "tord_WXYZ5678",
|
|
49
|
-
business_id: "biz_1234",
|
|
50
|
-
account_id: "acc_4321",
|
|
51
|
-
provider: "verifone",
|
|
52
|
-
order_type: "boarding_shipping",
|
|
53
|
-
order_status: "completed",
|
|
54
|
-
terminals: [
|
|
55
|
-
{
|
|
56
|
-
terminal_id: "tmn_ASDF",
|
|
57
|
-
terminal_did: "33334444",
|
|
58
|
-
model_name: "e355"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
created_at: "2025-02-10T09:20:00Z",
|
|
62
|
-
updated_at: "2025-02-10T09:25:00Z"
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
const mockTerminalOrders = {
|
|
66
|
-
id: id,
|
|
67
|
-
type: type,
|
|
68
|
-
page_info: page_info,
|
|
69
|
-
data: data
|
|
70
|
-
};
|
|
19
|
+
require('./badge-591df67f.js');
|
|
20
|
+
require('./index-d2d0b181.js');
|
|
71
21
|
|
|
72
22
|
const TerminalOrdersListCore = class {
|
|
73
23
|
constructor(hostRef) {
|
|
74
24
|
index.registerInstance(this, hostRef);
|
|
25
|
+
this.clickEvent = index.createEvent(this, "click-event", 7);
|
|
75
26
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
76
27
|
this.handleClickPrevious = (beforeCursor) => {
|
|
77
28
|
this.pagingParams = { before_cursor: beforeCursor };
|
|
29
|
+
this.clickEvent.emit({ name: eventTypes.TableClickActions.previous });
|
|
78
30
|
};
|
|
79
31
|
this.handleClickNext = (afterCursor) => {
|
|
80
32
|
this.pagingParams = { after_cursor: afterCursor };
|
|
33
|
+
this.clickEvent.emit({ name: eventTypes.TableClickActions.next });
|
|
81
34
|
};
|
|
82
35
|
this.rowClickHandler = (e) => {
|
|
83
36
|
const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
|
|
84
37
|
if (!clickedOrderId)
|
|
85
38
|
return;
|
|
86
|
-
|
|
39
|
+
const orderData = this.terminalOrders.find((order) => order.id === clickedOrderId);
|
|
40
|
+
this.clickEvent.emit({ name: eventTypes.TableClickActions.row, data: orderData });
|
|
87
41
|
};
|
|
88
42
|
this.getTerminalOrders = undefined;
|
|
89
43
|
this.columns = undefined;
|
|
90
|
-
this.terminalOrders =
|
|
44
|
+
this.terminalOrders = [];
|
|
91
45
|
this.terminalOrdersTable = undefined;
|
|
92
46
|
this.loading = true;
|
|
93
47
|
this.errorMessage = undefined;
|
|
@@ -98,15 +52,42 @@ const TerminalOrdersListCore = class {
|
|
|
98
52
|
this.fetchData();
|
|
99
53
|
}
|
|
100
54
|
componentWillLoad() {
|
|
101
|
-
this.terminalOrdersTable = new
|
|
55
|
+
this.terminalOrdersTable = new eventTypes.Table(this.terminalOrders, this.columns, terminalOrdersTable.terminalOrdersTableColumns, terminalOrdersTable.terminalOrdersTableCells);
|
|
102
56
|
if (this.getTerminalOrders) {
|
|
103
57
|
this.fetchData();
|
|
104
58
|
}
|
|
59
|
+
terminalOrdersListParamsState.onQueryParamsChange('set', () => {
|
|
60
|
+
this.pagingParams = {};
|
|
61
|
+
});
|
|
62
|
+
terminalOrdersListParamsState.onQueryParamsChange('reset', () => {
|
|
63
|
+
this.pagingParams = {};
|
|
64
|
+
this.errorMessage = '';
|
|
65
|
+
});
|
|
105
66
|
}
|
|
106
67
|
fetchData() {
|
|
107
68
|
this.loading = true;
|
|
108
|
-
|
|
109
|
-
|
|
69
|
+
this.getTerminalOrders({
|
|
70
|
+
params: this.terminalOrderParams,
|
|
71
|
+
onSuccess: async ({ terminalOrders, pagingInfo }) => {
|
|
72
|
+
this.terminalOrders = terminalOrders;
|
|
73
|
+
this.paging = pagingInfo;
|
|
74
|
+
this.terminalOrdersTable.collectionData = this.terminalOrders;
|
|
75
|
+
},
|
|
76
|
+
onError: ({ error, code, severity }) => {
|
|
77
|
+
this.errorMessage = error;
|
|
78
|
+
this.errorEvent.emit({
|
|
79
|
+
errorCode: code,
|
|
80
|
+
message: error,
|
|
81
|
+
severity,
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
final: () => { this.loading = false; },
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
get terminalOrderParams() {
|
|
88
|
+
const requestParams = terminalOrdersListParamsState.getRequestParams();
|
|
89
|
+
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
90
|
+
return params;
|
|
110
91
|
}
|
|
111
92
|
get entityId() {
|
|
112
93
|
return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
|
|
@@ -121,7 +102,7 @@ const TerminalOrdersListCore = class {
|
|
|
121
102
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
122
103
|
}
|
|
123
104
|
render() {
|
|
124
|
-
return (index.h("div", { key: '
|
|
105
|
+
return (index.h("div", { key: '07a7b40585feb4644ddcf1a8c202460c79c8b045' }, index.h("div", { key: 'e03fc01808d22ce86bfdfaa2086f8492f45ee64e', class: "table-wrapper" }, index.h("table", { key: '0c54da0a4526466e487ad5093cb6c426c4cfb81a', class: "table table-hover", part: parts.table }, index.h("thead", { key: 'b4495bd1eb73750104667cb7b74061dca4bb6257', class: "table-head sticky-top" }, index.h("tr", { key: '8df705836f557da6c08b33094eecb0505f8d3ec8', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), index.h("tbody", { key: '47b008d75931b177e1acd3bc073f6015dfb17498', class: "table-body" }, index.h(eventTypes.TableLoadingState, { key: '7f2e4e329ec342db4aac981e514e28245cdbc992', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), index.h(eventTypes.TableEmptyState, { key: 'f4a17608ce889a890f5dd1bf689e6ae24ad28ca9', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), index.h(eventTypes.TableErrorState, { key: 'e57677d193f4eff27793d684607572631dc97d8a', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h("tfoot", { key: '7c427d0b2db99df57ebd097ef8671566f6239d50', class: "sticky-bottom" }, index.h("tr", { key: 'b5d8bf7d6d43119f8f31a2ea0e0966e8f0888889', class: "table-light align-middle" }, index.h("td", { key: 'f36bd4d815ca6be5c69a264c90b0ce6696bc6664', part: parts.tableCell, colSpan: this.terminalOrdersTable.columnData.length }, index.h("pagination-menu", { key: '25f4964ec46220bbceac9f763e668f77bac79299', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
125
106
|
}
|
|
126
107
|
static get watchers() { return {
|
|
127
108
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-d2d0b181.js');
|
|
4
|
+
|
|
5
|
+
const filterParamsInitialState = {};
|
|
6
|
+
const propsParamsInitialState = {};
|
|
7
|
+
const filterParamsStore = index.createStore(() => filterParamsInitialState);
|
|
8
|
+
const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
|
|
9
|
+
const propsParamsStore = index.createStore(() => propsParamsInitialState);
|
|
10
|
+
const { state: propsParams } = propsParamsStore;
|
|
11
|
+
const getRequestParams = () => {
|
|
12
|
+
return Object.assign(Object.assign({}, filterParams), propsParams);
|
|
13
|
+
};
|
|
14
|
+
const clearParams = () => {
|
|
15
|
+
filterParamsStore.reset();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.clearParams = clearParams;
|
|
19
|
+
exports.filterParams = filterParams;
|
|
20
|
+
exports.getRequestParams = getRequestParams;
|
|
21
|
+
exports.onQueryParamsChange = onQueryParamsChange;
|
|
22
|
+
exports.propsParams = propsParams;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-5b9a3b5f.js');
|
|
4
|
-
const parts = require('./parts-
|
|
4
|
+
const parts = require('./parts-3118ab4b.js');
|
|
5
5
|
const utils = require('./utils-337befa9.js');
|
|
6
|
-
const badge = require('./badge-
|
|
6
|
+
const badge = require('./badge-591df67f.js');
|
|
7
7
|
|
|
8
8
|
const MapTerminalOrderStatusToBadge = (status) => {
|
|
9
9
|
const statusToBadgeProps = {
|
|
@@ -16,7 +16,12 @@ const MapTerminalOrderStatusToBadge = (status) => {
|
|
|
16
16
|
variant: badge.BadgeVariant.SUCCESS,
|
|
17
17
|
title: 'This order has been completed',
|
|
18
18
|
text: 'Completed',
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
created: {
|
|
21
|
+
variant: badge.BadgeVariant.SECONDARY,
|
|
22
|
+
title: 'This order is created',
|
|
23
|
+
text: 'Created',
|
|
24
|
+
},
|
|
20
25
|
};
|
|
21
26
|
const badgeProps = statusToBadgeProps[status];
|
|
22
27
|
return index.h(badge.Badge, Object.assign({}, badgeProps));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const parts = require('./parts-
|
|
6
|
+
const parts = require('./parts-3118ab4b.js');
|
|
7
7
|
|
|
8
8
|
const TerminalQuantitySelector = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -29,7 +29,7 @@ const TerminalQuantitySelector = class {
|
|
|
29
29
|
this.selectedQuantity = 0;
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h("div", { key: '
|
|
32
|
+
return (index.h("div", { key: '5bbf669ab479523290b2d8a9f5b6ec2000ff0f96', class: "rounded shadow-sm card p-2", part: parts.text }, index.h("div", { key: '47ead96654c97aeae6b24058a4f7759918d3d0ad', class: "d-flex gap-3" }, index.h("div", { key: '3763eda68e7849c87f0e67b905e09267c10481c8', class: "d-flex align-items-center" }, index.h("img", { key: 'ef0a61d5c1d27c600fd93813b594ec2ec2fadec3', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: parts.image })), index.h("div", { key: '5a632f69e2045fbfcd35932af3c5fd027dcca66f', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, index.h("div", { key: 'be00d142f07945a15e882d2da4c505ffbf67fe88', class: "row" }, index.h("div", { key: '1c434628ae872d22efa7d2adb611b04868c85eb1', class: "col-6 d-flex gap-2" }, this.modelName, index.h("form-control-tooltip", { key: '21f571a1b0e5ba7d528727f6476e134b9657e124', helpText: this.description })), index.h("div", { key: 'f4077bfa6beb4f0070bdbf4bd28021f88bcaf5b1', class: "col-6 d-flex justify-content-end align-items-center" }, index.h("button", { key: '7dc6853fb7641b99a9a9ee82dcb3db8fce1d6c01', class: "p-0 minus btn", onClick: this.removeUnit, part: parts.buttonLink }, "-"), index.h("div", { key: 'faab14e72773f12f69ea69e855bafb27ef3328b8', class: "w-25 text-center" }, this.selectedQuantity), index.h("button", { key: '390e6b4b049fa64e2b7354a3676621844291feb0', class: "p-0 plus btn", onClick: this.addUnit, part: parts.buttonLink }, "+")))))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|