@justifi/webcomponents 4.18.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +11 -5
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2080 -1746
- package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- package/dist/module/exported-parts.js +40 -0
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +11 -5
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -133
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -33
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -33
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { config } from "../../../config";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'dev/Components/SubaccountsList',
|
|
4
|
-
component: 'justifi-subaccounts-list',
|
|
5
|
-
parameters: {},
|
|
6
|
-
decorators: [
|
|
7
|
-
(Story) => `
|
|
8
|
-
${Story()}
|
|
9
|
-
<script>
|
|
10
|
-
window.addEventListener('subaccount-row-clicked', (e) => {
|
|
11
|
-
console.log(e);
|
|
12
|
-
})
|
|
13
|
-
</script>
|
|
14
|
-
`,
|
|
15
|
-
],
|
|
16
|
-
};
|
|
17
|
-
class SubaccountsListArgs {
|
|
18
|
-
constructor(args) {
|
|
19
|
-
this['auth-token'] = args['auth-token'] || config.privateAuthToken;
|
|
20
|
-
this['account-id'] = args['account-id'] || '';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const Template = (args) => {
|
|
24
|
-
return `
|
|
25
|
-
<justifi-subaccounts-list
|
|
26
|
-
data-testid="justifi-subaccounts-list"
|
|
27
|
-
auth-token="${args['auth-token']}"
|
|
28
|
-
account-id="${args['account-id']}"
|
|
29
|
-
/>
|
|
30
|
-
`;
|
|
31
|
-
};
|
|
32
|
-
export const Example = Template.bind({});
|
|
33
|
-
Example.args = new SubaccountsListArgs({});
|
|
34
|
-
export const Styled = Template.bind({});
|
|
35
|
-
Styled.args = new SubaccountsListArgs({});
|
|
36
|
-
Styled.decorators = [
|
|
37
|
-
(Story) => `
|
|
38
|
-
${Story()}
|
|
39
|
-
<style>
|
|
40
|
-
justifi-subaccounts-list::part(table-head-cell) {
|
|
41
|
-
background-color: #F4F4F6;
|
|
42
|
-
}
|
|
43
|
-
justifi-subaccounts-list::part(pagination-bar) {
|
|
44
|
-
background-color: #F4F4F6;
|
|
45
|
-
}
|
|
46
|
-
justifi-subaccounts-list::part(arrow) {
|
|
47
|
-
--bs-btn-disabled-bg: #212529;
|
|
48
|
-
--bs-btn-disabled-border-color: #212529;
|
|
49
|
-
--bs-btn-bg: #212529;
|
|
50
|
-
--bs-btn-border-color: #212529;
|
|
51
|
-
--bs-btn-hover-bg: #fccc32;
|
|
52
|
-
--bs-btn-hover-border-color: #fccc32;
|
|
53
|
-
}
|
|
54
|
-
justifi-subaccounts-list::part(error-state) {
|
|
55
|
-
color: red;
|
|
56
|
-
background-color: #EEEEF5;
|
|
57
|
-
}
|
|
58
|
-
justifi-subaccounts-list::part(loading-state-cell) {
|
|
59
|
-
background-color: #EEEEF5;
|
|
60
|
-
}
|
|
61
|
-
justifi-subaccounts-list::part(table-row) {
|
|
62
|
-
background-color: #EEEEF5;
|
|
63
|
-
}
|
|
64
|
-
justifi-subaccounts-list::part(table-row-even) {
|
|
65
|
-
background-color: #F4F4F6;
|
|
66
|
-
}
|
|
67
|
-
</style>
|
|
68
|
-
`,
|
|
69
|
-
];
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { ExtendedPagingDefaults } from "../../api/Pagination";
|
|
3
|
-
import { tableExportedParts } from "./exported-parts";
|
|
4
|
-
import { EmptyState, ErrorState, LoadingState } from "./utils";
|
|
5
|
-
export class Table {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.loading = true;
|
|
8
|
-
this.errorMessage = '';
|
|
9
|
-
this.rowData = [];
|
|
10
|
-
this.columnData = undefined;
|
|
11
|
-
this.paging = ExtendedPagingDefaults;
|
|
12
|
-
this.params = {};
|
|
13
|
-
this.entityId = undefined;
|
|
14
|
-
this.rowClickHandler = undefined;
|
|
15
|
-
}
|
|
16
|
-
get showEmptyState() {
|
|
17
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
18
|
-
}
|
|
19
|
-
get showErrorState() {
|
|
20
|
-
return !this.loading && !!this.errorMessage;
|
|
21
|
-
}
|
|
22
|
-
get showRowData() {
|
|
23
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
var _a, _b;
|
|
27
|
-
return (h(Host, { key: '330ca720893ef70db96d4229c45a42f859567fd2', exportparts: tableExportedParts }, h("div", { key: '6a4aa680881ca619e88a1e505e9367f598633184', class: "table-wrapper" }, h("table", { key: '56129dafeccdda2e443f52d31efc7b68181988f7', class: "table table-hover" }, h("thead", { key: 'c3d407a15d350918df135f9e6f9f94d8ac751f65', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'a1a8b3e9141ee6ecf1312b5d6d50f4b1a0488d9f', class: "table-light text-nowrap", part: 'table-head-row' }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, !Array.isArray(column) ? column : column[0])))), h("tbody", { key: '232e450d33c1ea1088aab9a06ecb9a00d49788fd', class: "table-body", part: 'table-body' }, this.loading && LoadingState(this.columnData.length), this.showEmptyState && EmptyState(this.columnData.length), this.showErrorState && ErrorState(this.columnData.length, this.errorMessage), this.showRowData && (this.rowData.map((data, index) => {
|
|
28
|
-
return (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: e => this.rowClickHandler ? this.rowClickHandler(e) : null, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => {
|
|
29
|
-
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
30
|
-
if (nestedHtml) {
|
|
31
|
-
return (h("td", { part: "table-cell", innerHTML: dataEntry.value }));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return (h("td", { part: "table-cell" }, dataEntry));
|
|
35
|
-
}
|
|
36
|
-
})));
|
|
37
|
-
}))), this.paging &&
|
|
38
|
-
h("tfoot", { key: '35f0a88e934a2483df8b62b037d54c2408011c9d', class: "sticky-bottom" }, h("tr", { key: '708dba5501439a728596f6985cd4f02f7cad2eb4', class: "table-light align-middle" }, h("td", { key: '14ac6f8ec26a436c7c68391ab1c53ebdf9322d26', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: 'e52783c0e2a3b650f77a0bca0cc462b2f1942caf', paging: this.paging, params: this.params }))))))));
|
|
39
|
-
}
|
|
40
|
-
static get is() { return "justifi-table"; }
|
|
41
|
-
static get originalStyleUrls() {
|
|
42
|
-
return {
|
|
43
|
-
"$": ["./table.css"]
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
static get styleUrls() {
|
|
47
|
-
return {
|
|
48
|
-
"$": ["table.css"]
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
static get properties() {
|
|
52
|
-
return {
|
|
53
|
-
"loading": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"mutable": false,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "TableProps['loading']",
|
|
58
|
-
"resolved": "boolean",
|
|
59
|
-
"references": {
|
|
60
|
-
"TableProps": {
|
|
61
|
-
"location": "local",
|
|
62
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
63
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"required": false,
|
|
68
|
-
"optional": false,
|
|
69
|
-
"docs": {
|
|
70
|
-
"tags": [],
|
|
71
|
-
"text": ""
|
|
72
|
-
},
|
|
73
|
-
"attribute": "loading",
|
|
74
|
-
"reflect": false,
|
|
75
|
-
"defaultValue": "true"
|
|
76
|
-
},
|
|
77
|
-
"errorMessage": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "TableProps['errorMessage']",
|
|
82
|
-
"resolved": "string",
|
|
83
|
-
"references": {
|
|
84
|
-
"TableProps": {
|
|
85
|
-
"location": "local",
|
|
86
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
87
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"required": false,
|
|
92
|
-
"optional": false,
|
|
93
|
-
"docs": {
|
|
94
|
-
"tags": [],
|
|
95
|
-
"text": ""
|
|
96
|
-
},
|
|
97
|
-
"attribute": "error-message",
|
|
98
|
-
"reflect": false,
|
|
99
|
-
"defaultValue": "''"
|
|
100
|
-
},
|
|
101
|
-
"rowData": {
|
|
102
|
-
"type": "unknown",
|
|
103
|
-
"mutable": false,
|
|
104
|
-
"complexType": {
|
|
105
|
-
"original": "TableProps['rowData']",
|
|
106
|
-
"resolved": "any[]",
|
|
107
|
-
"references": {
|
|
108
|
-
"TableProps": {
|
|
109
|
-
"location": "local",
|
|
110
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
111
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"required": false,
|
|
116
|
-
"optional": false,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": ""
|
|
120
|
-
},
|
|
121
|
-
"defaultValue": "[]"
|
|
122
|
-
},
|
|
123
|
-
"columnData": {
|
|
124
|
-
"type": "unknown",
|
|
125
|
-
"mutable": false,
|
|
126
|
-
"complexType": {
|
|
127
|
-
"original": "TableProps['columnData']",
|
|
128
|
-
"resolved": "(string | string[])[]",
|
|
129
|
-
"references": {
|
|
130
|
-
"TableProps": {
|
|
131
|
-
"location": "local",
|
|
132
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
133
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"required": true,
|
|
138
|
-
"optional": false,
|
|
139
|
-
"docs": {
|
|
140
|
-
"tags": [],
|
|
141
|
-
"text": ""
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"paging": {
|
|
145
|
-
"type": "unknown",
|
|
146
|
-
"mutable": false,
|
|
147
|
-
"complexType": {
|
|
148
|
-
"original": "TableProps['paging']",
|
|
149
|
-
"resolved": "ExtendedPagingInfo",
|
|
150
|
-
"references": {
|
|
151
|
-
"TableProps": {
|
|
152
|
-
"location": "local",
|
|
153
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
154
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"required": false,
|
|
159
|
-
"optional": false,
|
|
160
|
-
"docs": {
|
|
161
|
-
"tags": [],
|
|
162
|
-
"text": ""
|
|
163
|
-
},
|
|
164
|
-
"defaultValue": "ExtendedPagingDefaults"
|
|
165
|
-
},
|
|
166
|
-
"params": {
|
|
167
|
-
"type": "any",
|
|
168
|
-
"mutable": false,
|
|
169
|
-
"complexType": {
|
|
170
|
-
"original": "TableProps['params']",
|
|
171
|
-
"resolved": "any",
|
|
172
|
-
"references": {
|
|
173
|
-
"TableProps": {
|
|
174
|
-
"location": "local",
|
|
175
|
-
"path": "/home/runner/work/web-component-library/web-component-library/packages/webcomponents/src/components/table/table.tsx",
|
|
176
|
-
"id": "src/components/table/table.tsx::TableProps"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"required": false,
|
|
181
|
-
"optional": false,
|
|
182
|
-
"docs": {
|
|
183
|
-
"tags": [],
|
|
184
|
-
"text": ""
|
|
185
|
-
},
|
|
186
|
-
"attribute": "params",
|
|
187
|
-
"reflect": false,
|
|
188
|
-
"defaultValue": "{}"
|
|
189
|
-
},
|
|
190
|
-
"entityId": {
|
|
191
|
-
"type": "unknown",
|
|
192
|
-
"mutable": false,
|
|
193
|
-
"complexType": {
|
|
194
|
-
"original": "string[]",
|
|
195
|
-
"resolved": "string[]",
|
|
196
|
-
"references": {}
|
|
197
|
-
},
|
|
198
|
-
"required": false,
|
|
199
|
-
"optional": false,
|
|
200
|
-
"docs": {
|
|
201
|
-
"tags": [],
|
|
202
|
-
"text": ""
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
"rowClickHandler": {
|
|
206
|
-
"type": "unknown",
|
|
207
|
-
"mutable": false,
|
|
208
|
-
"complexType": {
|
|
209
|
-
"original": "(e: any) => any",
|
|
210
|
-
"resolved": "(e: any) => any",
|
|
211
|
-
"references": {}
|
|
212
|
-
},
|
|
213
|
-
"required": false,
|
|
214
|
-
"optional": false,
|
|
215
|
-
"docs": {
|
|
216
|
-
"tags": [],
|
|
217
|
-
"text": ""
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export const LoadingState = (columnSpan) => (h("tr", null, h("td", { class: "loading-state", part: "loading-state-cell", colSpan: columnSpan, style: { textAlign: 'center' } }, h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")))));
|
|
3
|
-
export const EmptyState = (columnSpan) => (h("tr", null, h("td", { class: "empty-state", part: "empty-state", colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
|
|
4
|
-
export const ErrorState = (columnSpan, errorMessage) => (h("tr", null, h("td", { class: "error-state", part: "error-state", colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } }, "An unexpected error occurred: ", errorMessage)));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import modifiedBootstrap from "./modified-bootstrap.css";
|
|
3
|
-
const StyledHost = (props, children) => {
|
|
4
|
-
return (h(Host, Object.assign({}, props, { class: "body" }), h("style", null, modifiedBootstrap), children));
|
|
5
|
-
};
|
|
6
|
-
export default StyledHost;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { c as formatPercentage, b as formatCurrency, f as formatDate, a as formatTime } from './utils-5f4c4faa.js';
|
|
2
|
-
|
|
3
|
-
var TagTypes;
|
|
4
|
-
(function (TagTypes) {
|
|
5
|
-
TagTypes["neutral"] = "neutral";
|
|
6
|
-
TagTypes["info"] = "info";
|
|
7
|
-
TagTypes["success"] = "success";
|
|
8
|
-
TagTypes["warning"] = "warning";
|
|
9
|
-
TagTypes["error"] = "error";
|
|
10
|
-
})(TagTypes || (TagTypes = {}));
|
|
11
|
-
var SubAccountStatusType;
|
|
12
|
-
(function (SubAccountStatusType) {
|
|
13
|
-
SubAccountStatusType["created"] = "created";
|
|
14
|
-
SubAccountStatusType["submitted"] = "submitted";
|
|
15
|
-
SubAccountStatusType["information_needed"] = "information_needed";
|
|
16
|
-
SubAccountStatusType["enabled"] = "enabled";
|
|
17
|
-
SubAccountStatusType["disabled"] = "disabled";
|
|
18
|
-
SubAccountStatusType["rejected"] = "rejected";
|
|
19
|
-
SubAccountStatusType["archived"] = "archived";
|
|
20
|
-
})(SubAccountStatusType || (SubAccountStatusType = {}));
|
|
21
|
-
var AccountType;
|
|
22
|
-
(function (AccountType) {
|
|
23
|
-
AccountType["live"] = "live";
|
|
24
|
-
AccountType["test"] = "test";
|
|
25
|
-
})(AccountType || (AccountType = {}));
|
|
26
|
-
var BusinessType;
|
|
27
|
-
(function (BusinessType) {
|
|
28
|
-
BusinessType["forProfit"] = "for_profit";
|
|
29
|
-
BusinessType["nonProfit"] = "non_profit";
|
|
30
|
-
BusinessType["government"] = "government_entity";
|
|
31
|
-
BusinessType["individual"] = "individual";
|
|
32
|
-
})(BusinessType || (BusinessType = {}));
|
|
33
|
-
var ForProfitStructure;
|
|
34
|
-
(function (ForProfitStructure) {
|
|
35
|
-
ForProfitStructure["none"] = "";
|
|
36
|
-
ForProfitStructure["soleProprietorship"] = "sole_proprietorship";
|
|
37
|
-
ForProfitStructure["singleMember"] = "single_llc";
|
|
38
|
-
ForProfitStructure["multiMember"] = "multi_llc";
|
|
39
|
-
ForProfitStructure["privatePartnership"] = "private_partnership";
|
|
40
|
-
ForProfitStructure["privateCorp"] = "private_corporation";
|
|
41
|
-
ForProfitStructure["unincorporatedAssociation"] = "unincorporated_association";
|
|
42
|
-
ForProfitStructure["publicPartnership"] = "public_partnership";
|
|
43
|
-
ForProfitStructure["publicCorp"] = "public_corporation";
|
|
44
|
-
})(ForProfitStructure || (ForProfitStructure = {}));
|
|
45
|
-
var NonProfitStructure;
|
|
46
|
-
(function (NonProfitStructure) {
|
|
47
|
-
NonProfitStructure["incorporated"] = "incorporated";
|
|
48
|
-
NonProfitStructure["unincorporated"] = "unincorporated";
|
|
49
|
-
})(NonProfitStructure || (NonProfitStructure = {}));
|
|
50
|
-
var GovernmentEntityStructure;
|
|
51
|
-
(function (GovernmentEntityStructure) {
|
|
52
|
-
GovernmentEntityStructure["unit"] = "government_unit";
|
|
53
|
-
GovernmentEntityStructure["instrumentality"] = "government_instrumentality";
|
|
54
|
-
GovernmentEntityStructure["taxExempt"] = "tax_exempt_government_instrumentality";
|
|
55
|
-
})(GovernmentEntityStructure || (GovernmentEntityStructure = {}));
|
|
56
|
-
class SubAccount {
|
|
57
|
-
constructor(subAccount) {
|
|
58
|
-
this.findActiveRate = (subAccount, type) => {
|
|
59
|
-
return subAccount.application_fee_rates.find(rate => rate.rate_type === type);
|
|
60
|
-
};
|
|
61
|
-
this.getBasisPercentage = (rate) => {
|
|
62
|
-
return formatPercentage(rate === null || rate === void 0 ? void 0 : rate.basis_point_rate);
|
|
63
|
-
};
|
|
64
|
-
this.getTransactionFee = (rate) => {
|
|
65
|
-
return formatCurrency(rate === null || rate === void 0 ? void 0 : rate.transaction_fee);
|
|
66
|
-
};
|
|
67
|
-
this.getFormattedRate = (rate) => {
|
|
68
|
-
return rate ?
|
|
69
|
-
`${this.getBasisPercentage(rate)} + ${this.getTransactionFee(rate)}`
|
|
70
|
-
: 'Not set';
|
|
71
|
-
};
|
|
72
|
-
this.account_type = subAccount.account_type;
|
|
73
|
-
this.application_fee_rates = subAccount.application_fee_rates || [];
|
|
74
|
-
this.created_at = subAccount.created_at;
|
|
75
|
-
this.dateString = formatDate(subAccount.created_at);
|
|
76
|
-
this.timeString = formatTime(subAccount.created_at);
|
|
77
|
-
this.currency = subAccount.currency;
|
|
78
|
-
this.id = subAccount.id;
|
|
79
|
-
this.name = subAccount.name;
|
|
80
|
-
this.payout_ready = subAccount.payout_ready;
|
|
81
|
-
this.platform_account_id = subAccount.platform_account_id;
|
|
82
|
-
this.processing_ready = subAccount.processing_ready;
|
|
83
|
-
this.status = subAccount.status;
|
|
84
|
-
this.updated_at = subAccount.updated_at;
|
|
85
|
-
this.related_accounts = subAccount.related_accounts || {};
|
|
86
|
-
const activeCardRate = this.findActiveRate(subAccount, 'cc');
|
|
87
|
-
const activeAchRate = this.findActiveRate(subAccount, 'ach');
|
|
88
|
-
this.cardRate = this.getFormattedRate(activeCardRate);
|
|
89
|
-
this.achRate = this.getFormattedRate(activeAchRate);
|
|
90
|
-
}
|
|
91
|
-
get statusTagType() {
|
|
92
|
-
const typeMap = {
|
|
93
|
-
[SubAccountStatusType.enabled]: TagTypes.success,
|
|
94
|
-
[SubAccountStatusType.disabled]: TagTypes.error,
|
|
95
|
-
[SubAccountStatusType.rejected]: TagTypes.error,
|
|
96
|
-
[SubAccountStatusType.information_needed]: TagTypes.warning,
|
|
97
|
-
[SubAccountStatusType.submitted]: TagTypes.info,
|
|
98
|
-
[SubAccountStatusType.created]: TagTypes.neutral,
|
|
99
|
-
[SubAccountStatusType.archived]: TagTypes.neutral,
|
|
100
|
-
};
|
|
101
|
-
return typeMap[this.status];
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export { SubAccount as S };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { c as config } from './config-476c7241.js';
|
|
2
|
-
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
|
-
|
|
4
|
-
class BusinessService {
|
|
5
|
-
async fetchBusiness(businessId, authToken) {
|
|
6
|
-
const endpoint = `entities/business/${businessId}`;
|
|
7
|
-
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { BusinessService as B };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
|
|
3
|
-
const DateInput = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
7
|
-
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
8
|
-
this.handleFormControlInput = (event) => {
|
|
9
|
-
const target = event.target;
|
|
10
|
-
const name = target.getAttribute('name');
|
|
11
|
-
this.inputHandler(name, target.value);
|
|
12
|
-
this.formControlInput.emit({ name, value: target.value });
|
|
13
|
-
};
|
|
14
|
-
this.label = undefined;
|
|
15
|
-
this.name = undefined;
|
|
16
|
-
this.helpText = undefined;
|
|
17
|
-
this.errorText = undefined;
|
|
18
|
-
this.defaultValue = undefined;
|
|
19
|
-
this.inputHandler = undefined;
|
|
20
|
-
this.disabled = undefined;
|
|
21
|
-
}
|
|
22
|
-
handleDefaultValueChange(newValue) {
|
|
23
|
-
this.updateInput(newValue);
|
|
24
|
-
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
this.updateInput(this.defaultValue);
|
|
27
|
-
}
|
|
28
|
-
updateInput(value) {
|
|
29
|
-
this.dateInput.value = value;
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return (h(Host, { key: '477163306527f6b607c43e63ec4a38aaac5a4780', exportparts: "label,input,input-invalid" }, h("label", { key: '3174cbb24f2bd74e59e28dc6a31e224a0e2ab47d', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'de908daeee9db445c1369b75c536bcf33cb9f4e9', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'ea51242481f4a9894d55871d23aeaf4013112e24', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2db99a325bd6d691c0fdcbf3965535266329506f', errorText: this.errorText, name: this.name })));
|
|
33
|
-
}
|
|
34
|
-
static get watchers() { return {
|
|
35
|
-
"defaultValue": ["handleDefaultValueChange"]
|
|
36
|
-
}; }
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export { DateInput as form_control_date };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
-
|
|
3
|
-
const FormControlErrorText = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.errorText = undefined;
|
|
7
|
-
this.name = undefined;
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
if (!this.errorText) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
return (h("small", { class: 'form-text text-danger', id: `form-error-text-${this.name}` }, this.errorText));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const FormControlHelpText = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
registerInstance(this, hostRef);
|
|
20
|
-
this.helpText = undefined;
|
|
21
|
-
this.name = undefined;
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
if (!this.helpText) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return (h("small", { class: 'form-text text-muted', id: `form-help-text-${this.name}` }, this.helpText));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { FormControlErrorText as form_control_error_text, FormControlHelpText as form_control_help_text };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { I as IMask } from './index-d9a73ce3.js';
|
|
3
|
-
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
4
|
-
import { n as numberOnlyHandler } from './utils-f4c4ba7d.js';
|
|
5
|
-
|
|
6
|
-
const NumberInputMasked = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
10
|
-
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
11
|
-
this.imask = null;
|
|
12
|
-
this.initializeIMask = () => {
|
|
13
|
-
if (!this.textInput)
|
|
14
|
-
return;
|
|
15
|
-
this.imask = IMask(this.textInput, {
|
|
16
|
-
mask: this.mask,
|
|
17
|
-
});
|
|
18
|
-
this.imask.on('accept', () => {
|
|
19
|
-
const rawValue = this.imask.unmaskedValue;
|
|
20
|
-
this.inputHandler(this.name, rawValue);
|
|
21
|
-
});
|
|
22
|
-
this.textInput.addEventListener('blur', () => this.formControlBlur.emit());
|
|
23
|
-
};
|
|
24
|
-
this.handleFormControlInput = (event) => {
|
|
25
|
-
const target = event.target;
|
|
26
|
-
const name = target.getAttribute('name');
|
|
27
|
-
this.formControlInput.emit({ name: name, value: target.value });
|
|
28
|
-
};
|
|
29
|
-
this.updateInput = (newValue) => {
|
|
30
|
-
if (this.imask && newValue) {
|
|
31
|
-
this.imask.value = String(newValue);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
this.label = undefined;
|
|
35
|
-
this.name = undefined;
|
|
36
|
-
this.helpText = undefined;
|
|
37
|
-
this.errorText = undefined;
|
|
38
|
-
this.defaultValue = undefined;
|
|
39
|
-
this.inputHandler = undefined;
|
|
40
|
-
this.mask = undefined;
|
|
41
|
-
this.disabled = undefined;
|
|
42
|
-
}
|
|
43
|
-
handleDefaultValueChange(newValue) {
|
|
44
|
-
this.updateInput(newValue);
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
var _a;
|
|
48
|
-
(_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
49
|
-
}
|
|
50
|
-
componentDidLoad() {
|
|
51
|
-
this.initializeIMask();
|
|
52
|
-
this.updateInput(this.defaultValue);
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return (h(Host, { key: '781c4f77fe5b5b4f39c2d44868814ada72ce67c9', exportparts: "label,input,input-invalid" }, h("div", { key: '9c3ed0d13b883e3d2dc302225f25a00414088ef6', class: "form-group d-flex flex-column" }, h("label", { key: '0782f2936175944dd54e5497e54d2389c35c94bc', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '8feee613f2f83e8cb0ac34a4939fd65b5c14729a', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: 'dbdf33259fd04b1488b299216eb550960068c553', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '8a148bb9a29f322fb21acbfd8597a1e89433056a', errorText: this.errorText, name: this.name }))));
|
|
56
|
-
}
|
|
57
|
-
static get watchers() { return {
|
|
58
|
-
"defaultValue": ["handleDefaultValueChange"]
|
|
59
|
-
}; }
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const IdentityAddressForm = class {
|
|
63
|
-
constructor(hostRef) {
|
|
64
|
-
registerInstance(this, hostRef);
|
|
65
|
-
this.inputHandler = (name, value) => {
|
|
66
|
-
this.address[name] = value;
|
|
67
|
-
this.address = Object.assign({}, this.address);
|
|
68
|
-
};
|
|
69
|
-
this.handleFormUpdate = undefined;
|
|
70
|
-
this.errors = undefined;
|
|
71
|
-
this.defaultValues = undefined;
|
|
72
|
-
this.address = {};
|
|
73
|
-
}
|
|
74
|
-
handleAddressChange(newValues) {
|
|
75
|
-
this.handleFormUpdate(newValues);
|
|
76
|
-
}
|
|
77
|
-
render() {
|
|
78
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
79
|
-
return (h(Host, { key: '83dd1e3c2e9d5e1d9da9d64143045530ea3c49e6', exportparts: "label,input,input-invalid" }, h("div", { key: 'd2ccac17954bea719da0dba261359547b4873f25', class: "row gy-3" }, h("div", { key: 'ae78ba39a640f5798a90665eb2500195ce429215', class: "col-12 col-md-8" }, h("form-control-text", { key: '0c11aa4ac520f2d37fd6f079e67898fb50089d40', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler })), h("div", { key: '9130d253adc984b15540c779fcd348b43a47a92d', class: "col-12 col-md-4" }, h("form-control-text", { key: '1eb5d471e0d77d0055aa26cc9e75ab84aee87772', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '64b045b949e95e98db793495ddb53191b93db5eb', class: "col-12" }, h("form-control-text", { key: '98a05e17ebe3a676510614a218a8545af8c72c86', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: '27995692a60f0c5663bad8c588ed8757d8a19e88', class: "col-12 col-md-6" }, h("form-control-select", { key: 'e83aae9954a38e03af941ae270b10d170be3c85a', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '8111c0cda61ebdf3df4464f32ebae2171c44dc74', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b1b591ec7b419574d8245d710212809d153cd2d9', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '5420333a8133ee51f4c2d8100a0c0d59dae5e383', class: "col-12" }, h("form-control-select", { key: 'e0b19506594ad3051c5a1211421729d24352f572', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
|
|
80
|
-
// just for now so we skip handling country specificities
|
|
81
|
-
disabled: true })))));
|
|
82
|
-
}
|
|
83
|
-
static get watchers() { return {
|
|
84
|
-
"address": ["handleAddressChange"]
|
|
85
|
-
}; }
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export { NumberInputMasked as form_control_number_masked, IdentityAddressForm as justifi_identity_address_form };
|