@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
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { a3 as heading4, T as heading5, X as buttonPrimary, t as text } from './parts.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host.js';
|
|
4
4
|
import './details.js';
|
|
5
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
6
|
-
import { J as JustifiAnalytics } from './Analytics.js';
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
7
6
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
|
|
8
7
|
import { B as BusinessService } from './business.service.js';
|
|
9
8
|
import { E as ErrorState } from './utils.js';
|
|
@@ -13,7 +12,7 @@ import { S as Skeleton } from './skeleton.js';
|
|
|
13
12
|
import './Checkout.js';
|
|
14
13
|
import './Pagination.js';
|
|
15
14
|
import './Payment.js';
|
|
16
|
-
import { T as TerminalModel, a as TerminalOrder } from './SubAccount.js';
|
|
15
|
+
import { T as TerminalModel, a as TerminalOrder, b as TerminalOrderType } from './SubAccount.js';
|
|
17
16
|
import './Document.js';
|
|
18
17
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
19
18
|
import { T as TerminalService } from './terminal.service.js';
|
|
@@ -36,8 +35,6 @@ const OrderTerminalsLoading = () => {
|
|
|
36
35
|
return (h("div", { class: "row gap-5" },
|
|
37
36
|
h("div", { class: "col-12" },
|
|
38
37
|
h(Skeleton, { width: "40%", height: "40px" })),
|
|
39
|
-
h(FormBlock, null),
|
|
40
|
-
h(FormBlock, null),
|
|
41
38
|
h(FormBlock, null)));
|
|
42
39
|
};
|
|
43
40
|
|
|
@@ -89,84 +86,127 @@ const makeGetTerminalModels = ({ id, authToken, service }) => async ({ onSuccess
|
|
|
89
86
|
}
|
|
90
87
|
};
|
|
91
88
|
|
|
89
|
+
const makeOrderTerminals = ({ authToken, service }) => async ({ terminalOrder, onSuccess, onError }) => {
|
|
90
|
+
var _a;
|
|
91
|
+
try {
|
|
92
|
+
const response = await service.orderTerminals(authToken, terminalOrder);
|
|
93
|
+
if (!response.error) {
|
|
94
|
+
const { data } = response;
|
|
95
|
+
onSuccess({ data });
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
const responseError = getErrorMessage(response.error);
|
|
99
|
+
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
100
|
+
return onError({
|
|
101
|
+
error: responseError,
|
|
102
|
+
code,
|
|
103
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
109
|
+
return onError({
|
|
110
|
+
error: error.message || error,
|
|
111
|
+
code,
|
|
112
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
92
117
|
const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals extends HTMLElement {
|
|
93
118
|
constructor() {
|
|
94
119
|
super();
|
|
95
120
|
this.__registerHost();
|
|
96
121
|
this.__attachShadow();
|
|
97
122
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
123
|
+
this.submitted = createEvent(this, "submit-event", 7);
|
|
98
124
|
this.businessId = undefined;
|
|
99
125
|
this.authToken = undefined;
|
|
100
126
|
this.accountId = undefined;
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
|
|
127
|
+
this.shipping = false;
|
|
128
|
+
this.loading = {
|
|
129
|
+
business: true,
|
|
130
|
+
terminals: true,
|
|
131
|
+
};
|
|
132
|
+
this.submitting = false;
|
|
133
|
+
this.error = null;
|
|
104
134
|
this.business = undefined;
|
|
105
135
|
this.terminalModels = undefined;
|
|
106
136
|
this.orderLimit = undefined;
|
|
107
|
-
this.order =
|
|
137
|
+
this.order = undefined;
|
|
108
138
|
this.totalQuantity = 0;
|
|
109
139
|
}
|
|
110
140
|
componentWillLoad() {
|
|
141
|
+
this.order = new TerminalOrder({
|
|
142
|
+
business_id: this.businessId,
|
|
143
|
+
sub_account_id: this.accountId,
|
|
144
|
+
order_type: this.shipping ? TerminalOrderType.boardingShipping : TerminalOrderType.boardingOnly,
|
|
145
|
+
});
|
|
111
146
|
checkPkgVersion();
|
|
112
147
|
this.analytics = new JustifiAnalytics(this);
|
|
113
148
|
this.loadData();
|
|
114
149
|
}
|
|
150
|
+
handleError(errorMessage, code, severity) {
|
|
151
|
+
this.error = { message: errorMessage, code, severity };
|
|
152
|
+
this.errorEvent.emit({ errorCode: code, message: errorMessage, severity });
|
|
153
|
+
}
|
|
115
154
|
loadData() {
|
|
116
155
|
if (!this.businessId || !this.authToken) {
|
|
117
|
-
this.
|
|
118
|
-
this.errorEvent.emit({
|
|
119
|
-
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
120
|
-
message: this.errorMessage,
|
|
121
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
122
|
-
});
|
|
156
|
+
this.handleError("Invalid business id or auth token", ComponentErrorCodes.MISSING_PROPS, ComponentErrorSeverity.ERROR);
|
|
123
157
|
return;
|
|
124
158
|
}
|
|
125
159
|
this.initializeGetBusiness();
|
|
126
160
|
this.initializeGetTerminalModels();
|
|
127
161
|
}
|
|
128
162
|
initializeGetBusiness() {
|
|
129
|
-
|
|
163
|
+
makeGetBusiness({
|
|
130
164
|
id: this.businessId,
|
|
131
165
|
authToken: this.authToken,
|
|
132
166
|
service: new BusinessService(),
|
|
133
|
-
})
|
|
134
|
-
getBusiness({
|
|
167
|
+
})({
|
|
135
168
|
onSuccess: ({ business }) => {
|
|
136
169
|
this.business = new Business(business);
|
|
137
|
-
this.
|
|
170
|
+
this.loading.business = false;
|
|
138
171
|
},
|
|
139
172
|
onError: ({ error, code, severity }) => {
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
142
|
-
errorCode: code,
|
|
143
|
-
message: error,
|
|
144
|
-
severity,
|
|
145
|
-
});
|
|
146
|
-
this.businessIsLoading = false;
|
|
173
|
+
this.handleError(error, code, severity);
|
|
174
|
+
this.loading.business = false;
|
|
147
175
|
}
|
|
148
176
|
});
|
|
149
177
|
}
|
|
150
178
|
initializeGetTerminalModels() {
|
|
151
|
-
|
|
179
|
+
makeGetTerminalModels({
|
|
152
180
|
id: this.accountId,
|
|
153
181
|
authToken: this.authToken,
|
|
154
182
|
service: new TerminalService(),
|
|
155
|
-
})
|
|
156
|
-
getTerminalModels({
|
|
183
|
+
})({
|
|
157
184
|
onSuccess: ({ terminals, orderLimit }) => {
|
|
158
185
|
this.terminalModels = terminals;
|
|
159
186
|
this.orderLimit = orderLimit;
|
|
160
|
-
this.
|
|
187
|
+
this.loading.terminals = false;
|
|
188
|
+
},
|
|
189
|
+
onError: ({ error, code, severity }) => {
|
|
190
|
+
this.handleError(error, code, severity);
|
|
191
|
+
this.loading.terminals = false;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
submitOrder() {
|
|
196
|
+
const orderTerminals = makeOrderTerminals({
|
|
197
|
+
authToken: this.authToken,
|
|
198
|
+
service: new TerminalService(),
|
|
199
|
+
});
|
|
200
|
+
this.submitting = true;
|
|
201
|
+
orderTerminals({
|
|
202
|
+
terminalOrder: this.order.payload,
|
|
203
|
+
onSuccess: ({ data }) => {
|
|
204
|
+
this.submitted.emit(data);
|
|
205
|
+
this.submitting = false;
|
|
161
206
|
},
|
|
162
207
|
onError: ({ error, code, severity }) => {
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
165
|
-
errorCode: code,
|
|
166
|
-
message: error,
|
|
167
|
-
severity,
|
|
168
|
-
});
|
|
169
|
-
this.terminalsIsLoading = false;
|
|
208
|
+
this.handleError(error, code, severity);
|
|
209
|
+
this.submitting = false;
|
|
170
210
|
}
|
|
171
211
|
});
|
|
172
212
|
}
|
|
@@ -174,25 +214,39 @@ const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals ext
|
|
|
174
214
|
this.order.updateTerminal(event.detail.modelName, event.detail.quantity);
|
|
175
215
|
this.totalQuantity = this.order.totalQuantity;
|
|
176
216
|
}
|
|
217
|
+
renderLoading() {
|
|
218
|
+
return (h("div", null, this.loading.business && h(OrderTerminalsLoading, null), this.loading.terminals && (h("div", { class: "mt-5" }, h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null)))));
|
|
219
|
+
}
|
|
220
|
+
renderError() {
|
|
221
|
+
if (!this.loading.business && this.error) {
|
|
222
|
+
return ErrorState(this.error.message);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
renderBusinessDetails() {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
227
|
+
if (!this.loading.business && this.business) {
|
|
228
|
+
return (h("div", { class: "gap-5 pt-5 mb-5" }, h("div", { class: "row" }, h("div", { class: "col-12" }, h("h2", { part: heading4 }, this.business.legal_name))), h("div", { class: "row" }, h("h5", { part: heading5 }, "Representative:"), h("div", null, h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), h("div", null, (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
renderTerminals() {
|
|
232
|
+
if (!this.loading.terminals && this.terminalModels) {
|
|
233
|
+
return (h("div", { class: "d-flex flex-column gap-2 mt-5" }, 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) })))));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
renderOrderSection() {
|
|
237
|
+
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : 'Submit Order'))));
|
|
238
|
+
}
|
|
177
239
|
render() {
|
|
178
|
-
|
|
179
|
-
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 :
|
|
180
|
-
_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 :
|
|
181
|
-
_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 :
|
|
182
|
-
_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 :
|
|
183
|
-
_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 :
|
|
184
|
-
_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 :
|
|
185
|
-
_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 :
|
|
186
|
-
_m.city), h("li", { key: '87656e83f01433a2f8116996d42e482a906fbc43', class: "list-group-item", part: listGroupItem }, "State: ", (_o = this.business.legal_address) === null || _o === void 0 ? void 0 :
|
|
187
|
-
_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) })))));
|
|
240
|
+
return (h(StyledHost, { key: '42f9aec08c7bdb7ed3cfb6e206b032ceb8148827' }, h("div", { key: '54ebadbfc98a501e59880c5e7f96a288cb559a34', part: text }, this.renderLoading(), this.renderError(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
188
241
|
}
|
|
189
242
|
}, [1, "justifi-order-terminals", {
|
|
190
243
|
"businessId": [1, "business-id"],
|
|
191
244
|
"authToken": [1, "auth-token"],
|
|
192
245
|
"accountId": [1, "account-id"],
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
246
|
+
"shipping": [4],
|
|
247
|
+
"loading": [32],
|
|
248
|
+
"submitting": [32],
|
|
249
|
+
"error": [32],
|
|
196
250
|
"business": [32],
|
|
197
251
|
"terminalModels": [32],
|
|
198
252
|
"orderLimit": [32],
|
|
@@ -8,8 +8,7 @@ import './SubAccount.js';
|
|
|
8
8
|
import './Document.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
10
10
|
import { E as ErrorState } from './utils.js';
|
|
11
|
-
import { J as JustifiAnalytics } from './
|
|
12
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
13
12
|
import { d as defineCustomElement$3 } from './details.js';
|
|
14
13
|
import { d as defineCustomElement$2 } from './payment-details-core2.js';
|
|
15
14
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { J as JustifiAnalytics } from './
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
3
3
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
4
4
|
import { m as makeGetBusiness, g as makePostProvisioning } from './payment-provisioning-actions.js';
|
|
5
5
|
import { B as BusinessService } from './business.service.js';
|
|
6
6
|
import { A as Api } from './Api.js';
|
|
7
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
8
7
|
import { d as defineCustomElement$y } from './bank-account-document-inputs.js';
|
|
9
8
|
import { d as defineCustomElement$x } from './bank-account-form-inputs2.js';
|
|
10
9
|
import { d as defineCustomElement$w } from './business-documents-on-file2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { l as lodash } from './lodash.js';
|
|
3
3
|
import { f as filterParams, p as propsParams, c as clearParams } from './payments-list-params-state.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a5 as paymentsListFilterMenu, a6 as paymentIdPaymentsListFilterParam, a7 as terminalIdPaymentsListFilterParam, a8 as paymentStatusPaymentsListFilterParam, a9 as createdAfterPaymentsListFilterParam, aa as createdBeforePaymentsListFilterParam } from './parts.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import './details.js';
|
|
7
7
|
import { j as convertToUTC, h as convertToLocal } from './utils2.js';
|
|
@@ -59,8 +59,8 @@ const PaymentsListFilters = /*@__PURE__*/ proxyCustomElement(class PaymentsListF
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
62
|
-
return (h(StyledHost, { key: '
|
|
63
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
62
|
+
return (h(StyledHost, { key: 'e86e4d5f0a36516103a04539fd9ba2d1b698a06c' }, h("table-filters-menu", { key: 'bf4986bea9280046e8c5719dfdba6390d0cc7419', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'c9e898c5e4944f97ba66a8b72d6f940fce47f3f3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '02eb01fee1165a1cd7174aa066147812d7a9cb44', class: "p-2" }, h("form-control-text", { key: 'cbeeef72894b2016d101b933412b797827513dd2', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '5daedbb20682ad6b295049a865c3377e2ef79d8a', class: "p-2" }, h("form-control-text", { key: '26cd105c075114cfd062fccde5500f2eeb55888b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '92349a4ebb343af3a8d54601fea4c177c2ff14b2', class: "p-2" }, h("form-control-select", { key: '0e5f7cf57a22d3eeb6e4aebdbac2fe1bb13288eb', 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: '5d5cc079285045a858bfbcf9646a54b8f4c70b8b', class: "p-2" }, h("form-control-date", { key: 'b8fb06fa8506503bcf89c50523dd8e036852557c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
63
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3d6a1de1b08e1a326e107e60c78580848ffdda19', class: "p-2" }, h("form-control-date", { key: '6f7bf72ac396429a3d8318ee17d5459147a4f60e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
64
64
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
65
65
|
}
|
|
66
66
|
}, [1, "justifi-payments-list-filters", {
|
|
@@ -7,8 +7,7 @@ import { b as Payment } from './Payment.js';
|
|
|
7
7
|
import './SubAccount.js';
|
|
8
8
|
import './Document.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
12
11
|
import { S as StyledHost } from './styled-host.js';
|
|
13
12
|
import './details.js';
|
|
14
13
|
import { d as defineCustomElement$2, a as defaultColumnsKeys } from './payments-list-core2.js';
|
|
@@ -93,7 +92,7 @@ const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends
|
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
render() {
|
|
96
|
-
return (h(StyledHost, { key: '
|
|
95
|
+
return (h(StyledHost, { key: 'ade68405b7b039032dc8d4a271bdafd6b5b3dfe8' }, h("payments-list-core", { key: '30844738130c05a96bd93d670bad14d544368fb2', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
97
96
|
}
|
|
98
97
|
static get watchers() { return {
|
|
99
98
|
"accountId": ["propChanged"],
|
|
@@ -8,8 +8,7 @@ import { P as Payout } from './SubAccount.js';
|
|
|
8
8
|
import './Document.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
10
10
|
import { E as ErrorState } from './utils.js';
|
|
11
|
-
import { J as JustifiAnalytics } from './
|
|
12
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
13
12
|
import { d as defineCustomElement$3 } from './details.js';
|
|
14
13
|
import { d as defineCustomElement$2 } from './payout-details-core2.js';
|
|
15
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as filterParams, p as propsParams, c as clearParams } from './payouts-list-params-state.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ab as payoutsListFilterMenu, ac as createdAfterPayoutsListFilterParam, ad as createdBeforePayoutsListFilterParam } from './parts.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import { j as convertToUTC, h as convertToLocal } from './utils2.js';
|
|
@@ -37,8 +37,8 @@ const PayoutsListFilters = /*@__PURE__*/ proxyCustomElement(class PayoutsListFil
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
40
|
-
return (h(StyledHost, { key: '
|
|
41
|
-
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '
|
|
40
|
+
return (h(StyledHost, { key: 'fca8f3d0daf92026b7d3cccdd096c8650eb31d28' }, h("table-filters-menu", { key: 'b166ff52682804bd241866ffbe53ada0cf6133e8', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: 'f72774348aac13463934af8c8bfb3aa9b29a3942', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '87ee14df90cd83394e573f1f4e75d315cd48b2d3', class: "p-2" }, h("form-control-date", { key: 'f14e2dd16a24d8f6ac41ed110bdf2e5f0e7b0389', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
|
|
41
|
+
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'fe9b41fcc98571f9f5f477a0006a2a00a5bdba1c', class: "p-2" }, h("form-control-date", { key: '9ab09d81f389f410ea7d1d533a0f25995d261aef', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
|
|
42
42
|
convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
|
|
43
43
|
}
|
|
44
44
|
}, [1, "justifi-payouts-list-filters", {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
5
4
|
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv.js';
|
|
6
5
|
import './Checkout.js';
|
|
7
6
|
import './Pagination.js';
|
|
@@ -115,7 +114,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
render() {
|
|
118
|
-
return (h(StyledHost, { key: '
|
|
117
|
+
return (h(StyledHost, { key: '7456971cf903af6fd77385fd01dac69760b9df11', exportedparts: tableExportedParts }, h("payouts-list-core", { key: '6bf911cb5a793f49fb19903013c48e6df93f9866', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
119
118
|
}
|
|
120
119
|
static get watchers() { return {
|
|
121
120
|
"accountId": ["propChanged"],
|
|
@@ -100,7 +100,7 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
var _a;
|
|
103
|
-
return (h(StyledHost, { key: '
|
|
103
|
+
return (h(StyledHost, { key: '7becd3fcc3a0beefef5efdb860616aa60f7e61ad' }, h("h1", { key: '7125ac0e8452db4013d9065054aca8d65ead0138' }, "Refund"), this.refundInfoText && (h("div", { key: 'b60dbcac95e75469bab9e575efe5eba40d629693', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '231e5bcb4fdd82ea4e9bb0597bfe194759eb8e22', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '21faa4040e99ee142e0f06246fc8317dcc5dfa28', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '4a8671c7f833279c14e29ae0f4054586fa7ecbba', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'd4296520cb377a6b61547615a2b95a3088ace83a', class: "form-group" }, h("form-control-monetary", { key: 'dbe00249e022722aea24f9967408625b7460f0f7', 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: '765d36337fc31bd6ade5b9a94397b83e7f46e2a8', class: "form-group" }, h("form-control-text", { key: '3f3bc7e95568944d876fcf95e98ba9d871479096', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '4576ce0e5d04f063fd53045845fa5a4cf5bc6383', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '6165726b003006432d82ce5792a961ea2f42d654', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
104
104
|
}
|
|
105
105
|
}, [1, "justifi-refund-form", {
|
|
106
106
|
"authToken": [1, "auth-token"],
|
|
@@ -7,8 +7,7 @@ import './Payment.js';
|
|
|
7
7
|
import './SubAccount.js';
|
|
8
8
|
import './Document.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
12
11
|
import { d as defineCustomElement$4 } from './form-control-help-text3.js';
|
|
13
12
|
import { d as defineCustomElement$3 } from './form-control-radio2.js';
|
|
14
13
|
import { d as defineCustomElement$2 } from './season-interruption-insurance-core.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JustifiTerminalOrdersListFilters extends Components.JustifiTerminalOrdersListFilters, HTMLElement {}
|
|
4
|
+
export const JustifiTerminalOrdersListFilters: {
|
|
5
|
+
prototype: JustifiTerminalOrdersListFilters;
|
|
6
|
+
new (): JustifiTerminalOrdersListFilters;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as filterParams, p as propsParams, c as clearParams } from './terminal-orders-list-params-state.js';
|
|
3
|
+
import { ae as terminalOrdersListFilterMenu, af as orderStatusTerminalOrdersListFilterParam, ag as orderTypeTerminalOrdersListFilterParam, ah as createdAfterTerminalOrdersListFilterParam, ai as createdBeforeTerminalOrdersListFilterParam } from './parts.js';
|
|
4
|
+
import { S as StyledHost } from './styled-host.js';
|
|
5
|
+
import './details.js';
|
|
6
|
+
import './ComponentError.js';
|
|
7
|
+
import './Checkout.js';
|
|
8
|
+
import './Pagination.js';
|
|
9
|
+
import './Payment.js';
|
|
10
|
+
import { c as TerminalOrderStatus, b as TerminalOrderType } from './SubAccount.js';
|
|
11
|
+
import './Document.js';
|
|
12
|
+
import { j as convertToUTC, h as convertToLocal } from './utils2.js';
|
|
13
|
+
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
16
|
+
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
17
|
+
import { d as defineCustomElement$2 } from './table-filters-menu2.js';
|
|
18
|
+
|
|
19
|
+
const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalOrdersListFilters extends HTMLElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this.__registerHost();
|
|
23
|
+
this.__attachShadow();
|
|
24
|
+
this.setParamsOnChange = (name, value) => {
|
|
25
|
+
filterParams[name] = value;
|
|
26
|
+
};
|
|
27
|
+
this.handleDateInput = (name, value) => {
|
|
28
|
+
const utcDate = convertToUTC(value, { setExactTime: true });
|
|
29
|
+
this.setParamsOnChange(name, utcDate);
|
|
30
|
+
};
|
|
31
|
+
this.orderStatus = undefined;
|
|
32
|
+
this.orderType = undefined;
|
|
33
|
+
this.createdAfter = undefined;
|
|
34
|
+
this.createdBefore = undefined;
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
const propsToSet = {
|
|
38
|
+
order_status: this.orderStatus,
|
|
39
|
+
order_type: this.orderType,
|
|
40
|
+
created_after: this.createdAfter,
|
|
41
|
+
created_before: this.createdBefore
|
|
42
|
+
};
|
|
43
|
+
Object.entries(propsToSet).forEach(([key, value]) => {
|
|
44
|
+
if (value) {
|
|
45
|
+
propsParams[key] = value;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
get terminalOrderStatusOptions() {
|
|
50
|
+
return [
|
|
51
|
+
{ label: 'All', value: '' },
|
|
52
|
+
{ label: 'Created', value: TerminalOrderStatus.created },
|
|
53
|
+
{ label: 'Completed', value: TerminalOrderStatus.completed },
|
|
54
|
+
{ label: 'Submitted', value: TerminalOrderStatus.submitted },
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
get terminalOrderTypeOptions() {
|
|
58
|
+
return [
|
|
59
|
+
{ label: 'All', value: '' },
|
|
60
|
+
{ label: 'Boarding Only', value: TerminalOrderType.boardingOnly },
|
|
61
|
+
{ label: 'Boarding Shipping', value: TerminalOrderType.boardingShipping },
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const filterMenuParams = Object.assign({}, filterParams);
|
|
66
|
+
return (h(StyledHost, { key: '9f84e2a68bbf745714bd972e6f8510eb5c864248' }, h("table-filters-menu", { key: 'f78bfdd9940b62f74cc96969946df75274e8580c', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'e16d37583700f39e1ab513fb362555677aa77bbf', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '81e9b0f98cec6fb803b17ce10a1a79d61f302988', class: "p-2" }, h("form-control-select", { key: 'c5749e4b06a3c4af835e03384434d0fed054c22b', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: 'e2367532d8147a1fc184eadce40f61894cd701cd', class: "p-2" }, h("form-control-select", { key: 'f8145506abf6879b4a21d9ae49d43061e5f6daef', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '61b3da75c15121adc65c37443f0d251c2bf0af45', class: "p-2" }, h("form-control-date", { key: 'eb8afbbb5b2148fb12705fc0b577290b9f5ac881', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
67
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '968131100100709c91fdd1c6d2916910bb5d34b2', class: "p-2" }, h("form-control-date", { key: 'd1f34c4297a80dd7c9f3e301d798c99db82a7b80', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
68
|
+
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
69
|
+
}
|
|
70
|
+
}, [1, "justifi-terminal-orders-list-filters", {
|
|
71
|
+
"orderStatus": [1, "order-status"],
|
|
72
|
+
"orderType": [1, "order-type"],
|
|
73
|
+
"createdAfter": [1, "created-after"],
|
|
74
|
+
"createdBefore": [1, "created-before"]
|
|
75
|
+
}]);
|
|
76
|
+
function defineCustomElement$1() {
|
|
77
|
+
if (typeof customElements === "undefined") {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const components = ["justifi-terminal-orders-list-filters", "custom-popper", "form-control-date", "form-control-select", "form-control-tooltip", "table-filters-menu"];
|
|
81
|
+
components.forEach(tagName => { switch (tagName) {
|
|
82
|
+
case "justifi-terminal-orders-list-filters":
|
|
83
|
+
if (!customElements.get(tagName)) {
|
|
84
|
+
customElements.define(tagName, TerminalOrdersListFilters);
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
case "custom-popper":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
defineCustomElement$6();
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "form-control-date":
|
|
93
|
+
if (!customElements.get(tagName)) {
|
|
94
|
+
defineCustomElement$5();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "form-control-select":
|
|
98
|
+
if (!customElements.get(tagName)) {
|
|
99
|
+
defineCustomElement$4();
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
case "form-control-tooltip":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
defineCustomElement$3();
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case "table-filters-menu":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
defineCustomElement$2();
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
} });
|
|
113
|
+
}
|
|
114
|
+
defineCustomElement$1();
|
|
115
|
+
|
|
116
|
+
const JustifiTerminalOrdersListFilters = TerminalOrdersListFilters;
|
|
117
|
+
const defineCustomElement = defineCustomElement$1;
|
|
118
|
+
|
|
119
|
+
export { JustifiTerminalOrdersListFilters, defineCustomElement };
|