@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
|
@@ -4,24 +4,28 @@ import { table, tableCell } from "../../styles/parts";
|
|
|
4
4
|
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
5
5
|
import { pagingDefaults } from "../../api";
|
|
6
6
|
import { terminalOrdersTableCells, terminalOrdersTableColumns } from "./terminal-orders-table";
|
|
7
|
-
import
|
|
7
|
+
import { TableClickActions } from "../../ui-components/table/event-types";
|
|
8
|
+
import { getRequestParams, onQueryParamsChange } from "./terminal-orders-list-params-state";
|
|
8
9
|
export class TerminalOrdersListCore {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.handleClickPrevious = (beforeCursor) => {
|
|
11
12
|
this.pagingParams = { before_cursor: beforeCursor };
|
|
13
|
+
this.clickEvent.emit({ name: TableClickActions.previous });
|
|
12
14
|
};
|
|
13
15
|
this.handleClickNext = (afterCursor) => {
|
|
14
16
|
this.pagingParams = { after_cursor: afterCursor };
|
|
17
|
+
this.clickEvent.emit({ name: TableClickActions.next });
|
|
15
18
|
};
|
|
16
19
|
this.rowClickHandler = (e) => {
|
|
17
20
|
const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
|
|
18
21
|
if (!clickedOrderId)
|
|
19
22
|
return;
|
|
20
|
-
|
|
23
|
+
const orderData = this.terminalOrders.find((order) => order.id === clickedOrderId);
|
|
24
|
+
this.clickEvent.emit({ name: TableClickActions.row, data: orderData });
|
|
21
25
|
};
|
|
22
26
|
this.getTerminalOrders = undefined;
|
|
23
27
|
this.columns = undefined;
|
|
24
|
-
this.terminalOrders =
|
|
28
|
+
this.terminalOrders = [];
|
|
25
29
|
this.terminalOrdersTable = undefined;
|
|
26
30
|
this.loading = true;
|
|
27
31
|
this.errorMessage = undefined;
|
|
@@ -36,11 +40,38 @@ export class TerminalOrdersListCore {
|
|
|
36
40
|
if (this.getTerminalOrders) {
|
|
37
41
|
this.fetchData();
|
|
38
42
|
}
|
|
43
|
+
onQueryParamsChange('set', () => {
|
|
44
|
+
this.pagingParams = {};
|
|
45
|
+
});
|
|
46
|
+
onQueryParamsChange('reset', () => {
|
|
47
|
+
this.pagingParams = {};
|
|
48
|
+
this.errorMessage = '';
|
|
49
|
+
});
|
|
39
50
|
}
|
|
40
51
|
fetchData() {
|
|
41
52
|
this.loading = true;
|
|
42
|
-
|
|
43
|
-
|
|
53
|
+
this.getTerminalOrders({
|
|
54
|
+
params: this.terminalOrderParams,
|
|
55
|
+
onSuccess: async ({ terminalOrders, pagingInfo }) => {
|
|
56
|
+
this.terminalOrders = terminalOrders;
|
|
57
|
+
this.paging = pagingInfo;
|
|
58
|
+
this.terminalOrdersTable.collectionData = this.terminalOrders;
|
|
59
|
+
},
|
|
60
|
+
onError: ({ error, code, severity }) => {
|
|
61
|
+
this.errorMessage = error;
|
|
62
|
+
this.errorEvent.emit({
|
|
63
|
+
errorCode: code,
|
|
64
|
+
message: error,
|
|
65
|
+
severity,
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
final: () => { this.loading = false; },
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
get terminalOrderParams() {
|
|
72
|
+
const requestParams = getRequestParams();
|
|
73
|
+
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
74
|
+
return params;
|
|
44
75
|
}
|
|
45
76
|
get entityId() {
|
|
46
77
|
return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
|
|
@@ -55,7 +86,7 @@ export class TerminalOrdersListCore {
|
|
|
55
86
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
56
87
|
}
|
|
57
88
|
render() {
|
|
58
|
-
return (h("div", { key: '
|
|
89
|
+
return (h("div", { key: '07a7b40585feb4644ddcf1a8c202460c79c8b045' }, h("div", { key: 'e03fc01808d22ce86bfdfaa2086f8492f45ee64e', class: "table-wrapper" }, h("table", { key: '0c54da0a4526466e487ad5093cb6c426c4cfb81a', class: "table table-hover", part: table }, h("thead", { key: 'b4495bd1eb73750104667cb7b74061dca4bb6257', class: "table-head sticky-top" }, h("tr", { key: '8df705836f557da6c08b33094eecb0505f8d3ec8', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '47b008d75931b177e1acd3bc073f6015dfb17498', class: "table-body" }, h(TableLoadingState, { key: '7f2e4e329ec342db4aac981e514e28245cdbc992', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f4a17608ce889a890f5dd1bf689e6ae24ad28ca9', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'e57677d193f4eff27793d684607572631dc97d8a', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '7c427d0b2db99df57ebd097ef8671566f6239d50', class: "sticky-bottom" }, h("tr", { key: 'b5d8bf7d6d43119f8f31a2ea0e0966e8f0888889', class: "table-light align-middle" }, h("td", { key: 'f36bd4d815ca6be5c69a264c90b0ce6696bc6664', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '25f4964ec46220bbceac9f763e668f77bac79299', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
59
90
|
}
|
|
60
91
|
static get is() { return "terminal-orders-list-core"; }
|
|
61
92
|
static get properties() {
|
|
@@ -111,6 +142,27 @@ export class TerminalOrdersListCore {
|
|
|
111
142
|
}
|
|
112
143
|
static get events() {
|
|
113
144
|
return [{
|
|
145
|
+
"method": "clickEvent",
|
|
146
|
+
"name": "click-event",
|
|
147
|
+
"bubbles": true,
|
|
148
|
+
"cancelable": true,
|
|
149
|
+
"composed": true,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": ""
|
|
153
|
+
},
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "ComponentClickEvent",
|
|
156
|
+
"resolved": "ComponentClickEvent",
|
|
157
|
+
"references": {
|
|
158
|
+
"ComponentClickEvent": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "../../api",
|
|
161
|
+
"id": "src/api/index.ts::ComponentClickEvent"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
114
166
|
"method": "errorEvent",
|
|
115
167
|
"name": "error-event",
|
|
116
168
|
"bubbles": true,
|
|
@@ -121,9 +173,15 @@ export class TerminalOrdersListCore {
|
|
|
121
173
|
"text": ""
|
|
122
174
|
},
|
|
123
175
|
"complexType": {
|
|
124
|
-
"original": "
|
|
125
|
-
"resolved": "
|
|
126
|
-
"references": {
|
|
176
|
+
"original": "ComponentErrorEvent",
|
|
177
|
+
"resolved": "ComponentErrorEvent",
|
|
178
|
+
"references": {
|
|
179
|
+
"ComponentErrorEvent": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../api",
|
|
182
|
+
"id": "src/api/index.ts::ComponentErrorEvent"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
127
185
|
}
|
|
128
186
|
}];
|
|
129
187
|
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { filterParams, propsParams, clearParams } from "./terminal-orders-list-params-state";
|
|
3
|
+
import { StyledHost } from "../../ui-components";
|
|
4
|
+
import { TerminalOrderStatus, TerminalOrderType } from "../../api";
|
|
5
|
+
import { convertToLocal, convertToUTC } from "../../utils/utils";
|
|
6
|
+
import { terminalOrdersListFilterMenu, orderStatusTerminalOrdersListFilterParam, orderTypeTerminalOrdersListFilterParam, createdAfterTerminalOrdersListFilterParam, createdBeforeTerminalOrdersListFilterParam } from "../../styles/parts";
|
|
7
|
+
export class TerminalOrdersListFilters {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.setParamsOnChange = (name, value) => {
|
|
10
|
+
filterParams[name] = value;
|
|
11
|
+
};
|
|
12
|
+
this.handleDateInput = (name, value) => {
|
|
13
|
+
const utcDate = convertToUTC(value, { setExactTime: true });
|
|
14
|
+
this.setParamsOnChange(name, utcDate);
|
|
15
|
+
};
|
|
16
|
+
this.orderStatus = undefined;
|
|
17
|
+
this.orderType = undefined;
|
|
18
|
+
this.createdAfter = undefined;
|
|
19
|
+
this.createdBefore = undefined;
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
const propsToSet = {
|
|
23
|
+
order_status: this.orderStatus,
|
|
24
|
+
order_type: this.orderType,
|
|
25
|
+
created_after: this.createdAfter,
|
|
26
|
+
created_before: this.createdBefore
|
|
27
|
+
};
|
|
28
|
+
Object.entries(propsToSet).forEach(([key, value]) => {
|
|
29
|
+
if (value) {
|
|
30
|
+
propsParams[key] = value;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
get terminalOrderStatusOptions() {
|
|
35
|
+
return [
|
|
36
|
+
{ label: 'All', value: '' },
|
|
37
|
+
{ label: 'Created', value: TerminalOrderStatus.created },
|
|
38
|
+
{ label: 'Completed', value: TerminalOrderStatus.completed },
|
|
39
|
+
{ label: 'Submitted', value: TerminalOrderStatus.submitted },
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
get terminalOrderTypeOptions() {
|
|
43
|
+
return [
|
|
44
|
+
{ label: 'All', value: '' },
|
|
45
|
+
{ label: 'Boarding Only', value: TerminalOrderType.boardingOnly },
|
|
46
|
+
{ label: 'Boarding Shipping', value: TerminalOrderType.boardingShipping },
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
const filterMenuParams = Object.assign({}, filterParams);
|
|
51
|
+
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 }) ||
|
|
52
|
+
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 }) ||
|
|
53
|
+
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
54
|
+
}
|
|
55
|
+
static get is() { return "justifi-terminal-orders-list-filters"; }
|
|
56
|
+
static get encapsulation() { return "shadow"; }
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"orderStatus": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "TerminalOrderStatus",
|
|
64
|
+
"resolved": "TerminalOrderStatus.completed | TerminalOrderStatus.created | TerminalOrderStatus.submitted",
|
|
65
|
+
"references": {
|
|
66
|
+
"TerminalOrderStatus": {
|
|
67
|
+
"location": "import",
|
|
68
|
+
"path": "../../api",
|
|
69
|
+
"id": "src/api/index.ts::TerminalOrderStatus"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": true,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "order-status",
|
|
80
|
+
"reflect": false
|
|
81
|
+
},
|
|
82
|
+
"orderType": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "TerminalOrderType",
|
|
87
|
+
"resolved": "TerminalOrderType.boardingOnly | TerminalOrderType.boardingShipping",
|
|
88
|
+
"references": {
|
|
89
|
+
"TerminalOrderType": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "../../api",
|
|
92
|
+
"id": "src/api/index.ts::TerminalOrderType"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": true,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": ""
|
|
101
|
+
},
|
|
102
|
+
"attribute": "order-type",
|
|
103
|
+
"reflect": false
|
|
104
|
+
},
|
|
105
|
+
"createdAfter": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "string",
|
|
110
|
+
"resolved": "string",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": true,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"attribute": "created-after",
|
|
120
|
+
"reflect": false
|
|
121
|
+
},
|
|
122
|
+
"createdBefore": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "string",
|
|
127
|
+
"resolved": "string",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": true,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
},
|
|
136
|
+
"attribute": "created-before",
|
|
137
|
+
"reflect": false
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createStore } from "@stencil/store";
|
|
2
|
+
const filterParamsInitialState = {};
|
|
3
|
+
const propsParamsInitialState = {};
|
|
4
|
+
const filterParamsStore = createStore(() => filterParamsInitialState);
|
|
5
|
+
const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
|
|
6
|
+
const propsParamsStore = createStore(() => propsParamsInitialState);
|
|
7
|
+
const { state: propsParams } = propsParamsStore;
|
|
8
|
+
const getRequestParams = () => {
|
|
9
|
+
return Object.assign(Object.assign({}, filterParams), propsParams);
|
|
10
|
+
};
|
|
11
|
+
const clearParams = () => {
|
|
12
|
+
filterParamsStore.reset();
|
|
13
|
+
};
|
|
14
|
+
export { filterParams, propsParams, onQueryParamsChange, clearParams, getRequestParams };
|
|
@@ -2,37 +2,54 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { StyledHost } from "../../ui-components";
|
|
3
3
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
4
|
import { defaultColumnsKeys } from "./terminal-orders-table";
|
|
5
|
+
import { makeGetTerminalOrders } from "../../actions/terminal/get-terminal-orders";
|
|
6
|
+
import { TerminalOrderService } from "../../api/services/terminal_orders.service";
|
|
7
|
+
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
|
|
8
|
+
import JustifiAnalytics from "../../api/Analytics";
|
|
5
9
|
export class TerminalOrdersList {
|
|
6
10
|
constructor() {
|
|
11
|
+
this.handleErrorEvent = (event) => {
|
|
12
|
+
this.errorMessage = event.detail.message;
|
|
13
|
+
this.errorEvent.emit(event.detail);
|
|
14
|
+
};
|
|
7
15
|
this.getTerminalOrders = undefined;
|
|
8
16
|
this.errorMessage = null;
|
|
9
|
-
this.
|
|
17
|
+
this.accountId = undefined;
|
|
10
18
|
this.authToken = undefined;
|
|
11
19
|
this.apiOrigin = PROXY_API_ORIGIN;
|
|
12
20
|
this.columns = defaultColumnsKeys;
|
|
13
21
|
}
|
|
14
22
|
componentWillLoad() {
|
|
15
23
|
checkPkgVersion();
|
|
16
|
-
this.
|
|
24
|
+
this.analytics = new JustifiAnalytics(this);
|
|
25
|
+
this.initializeGetData();
|
|
17
26
|
}
|
|
18
|
-
|
|
19
|
-
if (this.
|
|
20
|
-
this.getTerminalOrders = (
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
initializeGetData() {
|
|
28
|
+
if (this.accountId && this.authToken) {
|
|
29
|
+
this.getTerminalOrders = makeGetTerminalOrders({
|
|
30
|
+
id: this.accountId,
|
|
31
|
+
authToken: this.authToken,
|
|
32
|
+
service: new TerminalOrderService(),
|
|
33
|
+
apiOrigin: this.apiOrigin
|
|
34
|
+
});
|
|
23
35
|
}
|
|
24
36
|
else {
|
|
25
|
-
this.errorMessage = '
|
|
37
|
+
this.errorMessage = 'Account ID and Auth Token are required';
|
|
38
|
+
this.errorEvent.emit({
|
|
39
|
+
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
40
|
+
message: this.errorMessage,
|
|
41
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
42
|
+
});
|
|
26
43
|
}
|
|
27
44
|
}
|
|
28
45
|
render() {
|
|
29
|
-
return (h(StyledHost, { key: '
|
|
46
|
+
return (h(StyledHost, { key: '1975f9c01aa35624f1b7f0fc5b444a9b688fb01a' }, h("terminal-orders-list-core", { key: '5488661e4526af1e3db008e56baf5289c46737e6', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
30
47
|
}
|
|
31
48
|
static get is() { return "justifi-terminal-orders-list"; }
|
|
32
49
|
static get encapsulation() { return "shadow"; }
|
|
33
50
|
static get properties() {
|
|
34
51
|
return {
|
|
35
|
-
"
|
|
52
|
+
"accountId": {
|
|
36
53
|
"type": "string",
|
|
37
54
|
"mutable": false,
|
|
38
55
|
"complexType": {
|
|
@@ -46,7 +63,7 @@ export class TerminalOrdersList {
|
|
|
46
63
|
"tags": [],
|
|
47
64
|
"text": ""
|
|
48
65
|
},
|
|
49
|
-
"attribute": "
|
|
66
|
+
"attribute": "account-id",
|
|
50
67
|
"reflect": false
|
|
51
68
|
},
|
|
52
69
|
"authToken": {
|
|
@@ -110,4 +127,28 @@ export class TerminalOrdersList {
|
|
|
110
127
|
"errorMessage": {}
|
|
111
128
|
};
|
|
112
129
|
}
|
|
130
|
+
static get events() {
|
|
131
|
+
return [{
|
|
132
|
+
"method": "errorEvent",
|
|
133
|
+
"name": "error-event",
|
|
134
|
+
"bubbles": true,
|
|
135
|
+
"cancelable": true,
|
|
136
|
+
"composed": true,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "ComponentErrorEvent",
|
|
143
|
+
"resolved": "ComponentErrorEvent",
|
|
144
|
+
"references": {
|
|
145
|
+
"ComponentErrorEvent": {
|
|
146
|
+
"location": "import",
|
|
147
|
+
"path": "../../api",
|
|
148
|
+
"id": "src/api/index.ts::ComponentErrorEvent"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
113
154
|
}
|
|
@@ -124,7 +124,7 @@ export class TerminalsListCore {
|
|
|
124
124
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: 'b43bce610d87129e9f509a0b62e2c8ca25187c1b' }, h("div", { key: '8a29d235532fbea5e8de8196ba11776dbd697b7e', class: "table-wrapper" }, h("table", { key: 'f52c104f03c014510c8b796d6fdaaf56d0f17cc4', class: "table table-hover", part: table }, h("thead", { key: 'c3690cf84b2208e5bf91ce781876bc42a468f96c', class: "table-head sticky-top" }, h("tr", { key: '419b8dd4d311efe4435c4ca3a15f62985d4300f3', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '5c9ef7f9d6d53b2f63c907f35cd7e6afeb44481b', class: "table-body" }, h(TableLoadingState, { key: '6b24dda78bd4c17751e8956127ff9394c720edf5', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '76d3646c7ba043f091947d5fdd536d4ac7df6902', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '0b418d8ca3268176b47aee6b80712d75181c8d9c', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'a46a3632e5610dd29f919d9c7b969cb1c07f67ac', class: "sticky-bottom" }, h("tr", { key: '7ef9b68abdae3cb542ecce0c261746413f1e6321', class: "table-light align-middle" }, h("td", { key: '72b477d84f6e58a5e457647e581de87ebc8f53c0', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'de9635642f0ea24da62b8dd2c50e05c4a2c87f37', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
128
128
|
}
|
|
129
129
|
static get is() { return "terminals-list-core"; }
|
|
130
130
|
static get properties() {
|
|
@@ -35,7 +35,7 @@ export class TerminalsListFilters {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
38
|
-
return (h(StyledHost, { key: '
|
|
38
|
+
return (h(StyledHost, { key: 'b731afdb3ffb0c9bc35c5e04177b0db9bc5b9a69' }, h("table-filters-menu", { key: '8ee2d6e6f4e12e03a8236b35aae3132f5a72c204', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'a8b6adb28c43a2f528554ee9ae582001bddcaac5', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '08cc61200740cb6fac0b123bd2005942ea9d6c3f', class: "p-2" }, h("form-control-text", { key: 'd0f572c893e3d44256d482e791b93588422bcf86', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'a498de1139b122bad5416267ecc949debc43491d', class: "p-2" }, h("form-control-select", { key: '6235e893b62882e993e798b9a3cc1fafc84f215c', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "justifi-terminals-list-filters"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,7 +66,7 @@ export class TerminalsList {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(StyledHost, { key: '
|
|
69
|
+
return (h(StyledHost, { key: '9ad0d637bd745ee2296142c426d539f90cf403a5' }, h("terminals-list-core", { key: '26b420a410976adea74b8545d367b5f9df7178d3', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "justifi-terminals-list"; }
|
|
72
72
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +52,7 @@ export class TokenizePaymentMethod {
|
|
|
52
52
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (h(StyledHost, { key: '
|
|
55
|
+
return (h(StyledHost, { key: 'b4c878459fb1601d429140d80ce02b898d6ca2ed' }, h("form", { key: '11917b591a4116e5711c0afd3e68b6599d064cae' }, h("fieldset", { key: 'b3c4ad0c42a424091a433e9aa8375108831e6c47' }, h("div", { key: 'bee2fa3c6c5de31d25cb102185fc977a5436a53b', class: "row gy-3" }, h("div", { key: 'fb32aa9f47716077a3dad2bfd7bfc950200014ba', class: "col-12" }, h("justifi-payment-method-options", { key: 'dca7ac67609a13e1b14bdc042eb131a07305e0d8', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: '2218cb2eac22fd6187da4d205fc2437a980fa2a5', class: "col-12" }, h(Button, { key: '1299a5a10261b375cfec1b2599cc6de7f606bad9', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -112,3 +112,10 @@ export const terminalsListFilterMenu = `${filterMenu} terminals-list-filter-menu
|
|
|
112
112
|
export const terminalsListFilterParam = `terminals-list-filter-param`;
|
|
113
113
|
export const terminalIdTerminalsListFilterParam = `${terminalsListFilterParam} terminal-id-terminals-list-filter-param`;
|
|
114
114
|
export const terminalStatusTerminalsListFilterParam = `${terminalsListFilterParam} terminal-status-terminals-list-filter-param`;
|
|
115
|
+
// Terminal Orders List Filters
|
|
116
|
+
export const terminalOrdersListFilterMenu = `${filterMenu} terminal-orders-list-filter-menu`;
|
|
117
|
+
export const terminalOrdersListFilterParam = `terminal-orders-list-filter-param`;
|
|
118
|
+
export const orderStatusTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-status-terminal-orders-list-filter-param`;
|
|
119
|
+
export const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-type-terminal-orders-list-filter-param`;
|
|
120
|
+
export const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
|
|
121
|
+
export const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
|
|
@@ -81,7 +81,7 @@ export class CustomPopper {
|
|
|
81
81
|
this.hideEvent.emit();
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '0da182c59e8285f0ab76d2f667218c378a402518' }, h("style", { key: 'a5cec35dd7cbe6474627f22837703e53711c104b' }, `
|
|
85
85
|
.popper-content {
|
|
86
86
|
display: none;
|
|
87
87
|
}
|
|
@@ -89,7 +89,7 @@ export class CustomPopper {
|
|
|
89
89
|
display: block;
|
|
90
90
|
z-index: 1030;
|
|
91
91
|
}
|
|
92
|
-
`), h("div", { key: '
|
|
92
|
+
`), h("div", { key: '657fcfafffda783f7b57af10256fb45c7c8720c9', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '4cf71afd1ef0e9a24a7d56c118e420d27de31e26' }))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "custom-popper"; }
|
|
95
95
|
static get properties() {
|
|
@@ -38,10 +38,10 @@ export class CheckboxInput {
|
|
|
38
38
|
return inputCheckbox;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '36192fe5f4e99ccc8cb77b6a0058d68427b6dc79' }, h("div", { key: '3fd77dbca4264579b0e4293bc537dea99a9e325b', class: 'form-group d-flex flex-column' }, h("div", { key: '737b2076e66604ce3fc1b141deb1909a8ac2be27', class: "form-check" }, h("input", { key: '3d606b0c14eda0ffba58bd844b75e3ca23f0a611', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
42
42
|
this.isFocused = false;
|
|
43
43
|
this.formControlBlur.emit();
|
|
44
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
44
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '2a8af56e9bee18f4252ea436ae76d65128ee1648', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '013c9b143992a088692de81b623bffb6b4e5f06f', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '0b6814622ff6d0a61d251aea399600ead731ad1a', errorText: this.errorText, name: this.name }))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "form-control-checkbox"; }
|
|
47
47
|
static get properties() {
|
|
@@ -50,10 +50,10 @@ export class DateInput {
|
|
|
50
50
|
return part;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '39efc4cf0cf20cd611c775f1e47ace6b445eab99' }, h("div", { key: '82de246b4d67f3c1a234987c3d9259e8ed7fb3e5', class: "form-group d-flex flex-column" }, h("div", { key: '033c637f965aa750c6130504f70f7fabb9d1a9da', class: "d-flex gap-2" }, h("label", { key: 'ce384aeee225254eac66cfcb6fbe8b6b5677cd5e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'a8195ae52a1904bcdaa0ee082b77164bb399e5bc', helpText: this.helpText })), h("input", { key: '07bb64ebf4727c892bc5e873d6b8327cb0e89430', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
54
54
|
this.isFocused = false;
|
|
55
55
|
this.formControlBlur.emit();
|
|
56
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
56
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '783b7b021819a5c26441a438be7b83dabb4cfce1', errorText: this.errorText, name: this.name }))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "form-control-date"; }
|
|
59
59
|
static get properties() {
|
|
@@ -12,7 +12,7 @@ export class FileInput {
|
|
|
12
12
|
this.disabled = undefined;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '4dff12fa7d0cb33919c39db34bbc0957fdd5653f', exportparts: "label,input,input-invalid" }, h("div", { key: 'ae39b30919625c00463cbbd5bf5172a93b7bd9f1', class: "form-group d-flex flex-column" }, h("div", { key: 'f0d20dd0d0c3bed154c220722598dfe41dc4cc45', class: "d-flex align-items-start gap-2" }, h("label", { key: '768f21bee9cf3e87caacd08ebd7506d01550f206', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ee446659b7b9503678c16f14a49d564ca8caf27a', helpText: this.helpText })), h("input", { key: 'c7eee6e890f87be8a3af204fcdb1cd5d032e5419', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: '5a87d616b1b4be16b32b69d315f07b05d8d060bc', errorText: this.errorText, name: this.name }))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "form-control-file-v2"; }
|
|
18
18
|
static get properties() {
|
|
@@ -47,10 +47,10 @@ export class FileInput {
|
|
|
47
47
|
return part;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'ffd39ec9c5c98ba6d51f30fe3f0877807b9218a2' }, h("div", { key: '8d95c947132661088128a20350cb8823eb50aaa1', class: "form-group d-flex flex-column" }, h("div", { key: 'c494f917ca23d99c6dafded70156a62610764223', class: "d-flex align-items-start gap-2" }, h("label", { key: '8a6ba2787312c3a6e1e531bc05e4459aaecb6229', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5b68e00507d2211fcc481f007c701179eb4bed78', helpText: this.helpText })), h("input", { key: 'd75a0df1951b215b60cee837b102f1b0522cc810', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
51
51
|
this.isFocused = false;
|
|
52
52
|
this.formControlBlur.emit();
|
|
53
|
-
} }), h(FormControlErrorText, { key: '
|
|
53
|
+
} }), h(FormControlErrorText, { key: '10231eb3448127011aca32c2e653d7974ab27e2e', errorText: this.errorText, name: this.name }))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "form-control-file"; }
|
|
56
56
|
static get properties() {
|
|
@@ -63,10 +63,10 @@ export class MonetaryInput {
|
|
|
63
63
|
return part;
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '8389bbed996b97a2e4c7536a3f31f8b4873651e4' }, h("div", { key: '0cc9d812e034c7017ea49fdb91bcd399ac3112cc', class: "form-group d-flex flex-column" }, h("label", { key: '04bf1b6ab410d6236a8d2ea47364c844a557f3fc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: 'bc77863e0a0dc4472c62d98fbca50da4b683b14d', class: "input-group" }, h("span", { key: '28e7f0f65529fab762846711cf681b105546a04d', class: "input-group-text", part: text }, "$"), h("input", { key: 'edfac6a9f10b1914299a6f42497ebb26659717d3', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
67
67
|
this.isFocused = false;
|
|
68
68
|
this.formControlBlur.emit();
|
|
69
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '
|
|
69
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '9c28f25c98432c07678698e53b219d17d3d847a7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '8cd3f89e1efd87fd0209cb5e6cd525b916de073a', errorText: this.errorText, name: this.name }))));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "form-control-monetary"; }
|
|
72
72
|
static get properties() {
|
|
@@ -67,10 +67,10 @@ export class NumberInputMasked {
|
|
|
67
67
|
return input;
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '33803369123a612e3a59159eca88fa851cc4bdda' }, h("div", { key: '4ec22ee1c45e050bb3c82465620f4195f0ee9f78', class: "form-group d-flex flex-column" }, h("div", { key: '54f8150c131f9e1d591e893ff850014f986ca4ce', class: "d-flex align-items-start gap-2" }, h("label", { key: '10adc8be977ddc13488f86e62d43e15cc27e8061', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'db05a1e10871fcb9cf7bf425963b57a802e8258b', helpText: this.helpText })), h("input", { key: '05e6000baf931e6bd51eb44a149613bdad453080', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
71
71
|
this.isFocused = false;
|
|
72
72
|
this.formControlBlur.emit();
|
|
73
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
73
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '82ec36209485f448694614454cbddfffa1acca9e', errorText: this.errorText, name: this.name }))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "form-control-number-masked"; }
|
|
76
76
|
static get properties() {
|
|
@@ -43,10 +43,10 @@ export class NumberInput {
|
|
|
43
43
|
return input;
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'bd8c24f0c1209334fde787d8dc7402e75ea1d91b' }, h("div", { key: 'd49ef47d17045ab070005a04a9edc5b11ba1b879', class: 'form-group d-flex flex-column' }, h("label", { key: '49bfca8efbaa753dae1f862f5490ab8943c6a9fd', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '3b4ef4300374a4cdd37f85e2155fcc26d357fdca', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
47
47
|
this.isFocused = false;
|
|
48
48
|
this.formControlBlur.emit();
|
|
49
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
49
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '4bdb8dc58c7143ccdbcd50568784b62217459ba9', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '0e5a0df13a356fe03dc389fc4bf6eba9000597fc', errorText: this.errorText, name: this.name }))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "form-control-number"; }
|
|
52
52
|
static get properties() {
|
|
@@ -34,10 +34,10 @@ export class RadioInput {
|
|
|
34
34
|
return inputRadio;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '6ac053e94a211ac008c55ae97f3e1b22d76a9557', class: 'form-group d-flex flex-column' }, h("div", { key: 'fe44896b709219947f63d47ea3c8318bd7649bc0', class: "form-check" }, h("input", { key: 'c56759dc4c85da7cbb2e62b6a7eb2648cd42c278', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
38
38
|
this.isFocused = false;
|
|
39
39
|
this.formControlBlur.emit();
|
|
40
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
40
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '97949ce6465290e528e21575d3fbd4785c3568a7', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'd521e8eae3d7602f59934373c36dab803fcdefd3', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2851bc02a7fbb665086e54f2fade679c357d34e6', errorText: this.errorText, name: this.name })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "form-control-radio"; }
|
|
43
43
|
static get properties() {
|