@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.
Files changed (537) hide show
  1. package/dist/cjs/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
  2. package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
  6. package/dist/cjs/business.service-f63650f5.js +32 -0
  7. package/dist/cjs/button-3f400a66.js +26 -0
  8. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  9. package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
  10. package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
  11. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
  12. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  13. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  14. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  15. package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
  16. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
  17. package/dist/cjs/input-handlers-cff032bb.js +20 -0
  18. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
  19. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  23. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  25. package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
  26. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
  31. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  32. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
  33. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
  34. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
  36. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
  37. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  38. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
  40. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  41. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  42. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
  45. package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
  46. package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
  47. package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
  48. package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
  49. package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
  50. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  51. package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
  52. package/dist/cjs/skeleton-748c5dde.js +43 -0
  53. package/dist/cjs/styled-host-cc053016.js +14 -0
  54. package/dist/cjs/table-loading-state-8b406852.js +38 -0
  55. package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
  56. package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
  57. package/dist/cjs/webcomponents.cjs.js +1 -1
  58. package/dist/collection/api/Payment.js +0 -20
  59. package/dist/collection/api/services/business.service.js +18 -0
  60. package/dist/collection/collection-manifest.json +9 -14
  61. package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
  62. package/dist/collection/components/billing-form/billing-form.js +2 -2
  63. package/dist/collection/components/business-details/business-details-core.js +1 -1
  64. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  65. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  66. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  67. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  68. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  69. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  70. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
  71. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
  72. package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
  73. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
  74. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
  75. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
  76. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
  77. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
  78. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
  79. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
  80. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
  82. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
  83. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
  84. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
  85. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
  86. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
  87. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
  88. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
  89. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
  90. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  91. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  92. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  93. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  94. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  95. package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
  96. package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
  97. package/dist/collection/components/card-form/card-form.js +1 -1
  98. package/dist/collection/components/checkout/checkout-core.js +4 -5
  99. package/dist/collection/components/checkout/checkout.js +2 -2
  100. package/dist/collection/components/checkout/new-payment-method.js +1 -1
  101. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  102. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  103. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  104. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  105. package/dist/collection/components/details/details.js +2 -2
  106. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  107. package/dist/collection/components/form/form-control-date.js +1 -1
  108. package/dist/collection/components/form/form-control-file.js +1 -1
  109. package/dist/collection/components/form/form-control-monetary.js +1 -1
  110. package/dist/collection/components/form/form-control-number-masked.js +11 -5
  111. package/dist/collection/components/form/form-control-number.js +1 -1
  112. package/dist/collection/components/form/form-control-select.js +1 -1
  113. package/dist/collection/components/form/form-control-text.js +1 -1
  114. package/dist/collection/components/form/utils.js +0 -2
  115. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  116. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
  117. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
  118. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
  119. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  120. package/dist/collection/components/payment-form/payment-form.js +4 -6
  121. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  122. package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
  123. package/dist/collection/components/payments-list/payments-list-core.js +66 -38
  124. package/dist/collection/components/payout-details/payout-details-core.js +2 -2
  125. package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
  126. package/dist/collection/components/refund-form/refund-form.js +2 -2
  127. package/dist/collection/ui-components/button-spinner.js +2 -0
  128. package/dist/collection/ui-components/button.js +19 -0
  129. package/dist/collection/ui-components/index.js +7 -0
  130. package/dist/collection/ui-components/skeleton.js +39 -0
  131. package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
  132. package/dist/collection/ui-components/table-empty-state.js +8 -0
  133. package/dist/collection/ui-components/table-error-state.js +8 -0
  134. package/dist/collection/ui-components/table-loading-state.js +8 -0
  135. package/dist/collection/utils/utils.js +0 -21
  136. package/dist/docs.json +2080 -1746
  137. package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
  138. package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
  139. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  140. package/dist/esm/business-details-core.entry.js +2 -2
  141. package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
  142. package/dist/esm/business.service-74bd1212.js +29 -0
  143. package/dist/esm/button-34e75e0f.js +24 -0
  144. package/dist/esm/form-alert_5.entry.js +5 -5
  145. package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
  146. package/dist/esm/form-control-date_3.entry.js +130 -0
  147. package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
  148. package/dist/esm/form-control-file.entry.js +1 -1
  149. package/dist/esm/form-control-monetary.entry.js +1 -1
  150. package/dist/esm/form-control-number.entry.js +1 -1
  151. package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
  152. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  153. package/dist/esm/input-handlers-270ac806.js +16 -0
  154. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
  155. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  156. package/dist/esm/justifi-billing-form_2.entry.js +4 -4
  157. package/dist/esm/justifi-business-details.entry.js +4 -4
  158. package/dist/esm/justifi-business-form.entry.js +6 -6
  159. package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
  160. package/dist/esm/justifi-card-form.entry.js +3 -3
  161. package/dist/esm/justifi-checkout-core.entry.js +7 -6
  162. package/dist/esm/justifi-checkout.entry.js +5 -5
  163. package/dist/esm/justifi-details.entry.js +3 -3
  164. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  165. package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
  166. package/dist/esm/justifi-owner-form_3.entry.js +262 -0
  167. package/dist/esm/justifi-payment-details.entry.js +5 -5
  168. package/dist/esm/justifi-payment-form.entry.js +9 -10
  169. package/dist/esm/justifi-payment-method-form.entry.js +4 -4
  170. package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
  171. package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
  172. package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
  173. package/dist/esm/justifi-payments-list.entry.js +5 -5
  174. package/dist/esm/justifi-payout-details.entry.js +5 -5
  175. package/dist/esm/justifi-payouts-list.entry.js +5 -5
  176. package/dist/esm/justifi-refund-form.entry.js +3 -3
  177. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  178. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
  179. package/dist/esm/loader.js +1 -1
  180. package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
  181. package/dist/esm/pagination-menu.entry.js +21 -0
  182. package/dist/esm/payment-details-core.entry.js +10 -10
  183. package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
  184. package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
  185. package/dist/esm/payments-list-core.entry.js +69 -40
  186. package/dist/esm/payout-details-core.entry.js +4 -4
  187. package/dist/esm/payouts-list-core.entry.js +90 -74
  188. package/dist/esm/skeleton-145a80d4.js +41 -0
  189. package/dist/esm/styled-host-ab9da520.js +12 -0
  190. package/dist/esm/table-loading-state-356c7215.js +34 -0
  191. package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
  192. package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
  193. package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
  194. package/dist/esm/webcomponents.js +1 -1
  195. package/dist/module/Payment.js +1 -21
  196. package/dist/module/additional-questions.js +1 -1
  197. package/dist/module/billing-form.js +3 -3
  198. package/dist/module/business-additional-questions-form-step-core.js +141 -0
  199. package/dist/module/business-additional-questions-form-step.js +55 -100
  200. package/dist/module/business-additional-questions-schema.js +1 -1
  201. package/dist/module/business-address-schema.js +1 -1
  202. package/dist/module/business-bank-account-form-step.js +4 -4
  203. package/dist/module/business-core-info-form-step-core.js +151 -0
  204. package/dist/module/business-core-info-form-step.js +57 -106
  205. package/dist/module/business-core-info-schema.js +1 -1
  206. package/dist/module/business-core-info.js +1 -1
  207. package/dist/module/business-document-upload-form-step.js +34 -35
  208. package/dist/module/business-document-upload-input-group.js +2 -2
  209. package/dist/module/business-documents-on-file.js +1 -1
  210. package/dist/module/business-form-types.js +5 -8
  211. package/dist/module/business-identity-schema.js +1 -1
  212. package/dist/module/business-owners-form-step-core.js +216 -0
  213. package/dist/module/business-owners-form-step.js +67 -154
  214. package/dist/module/business-representative-form-inputs.js +85 -0
  215. package/dist/module/business-representative-form-step-core.js +152 -0
  216. package/dist/module/business-representative-form-step.js +63 -111
  217. package/dist/module/business-representative.js +1 -1
  218. package/dist/module/business-terms-conditions-form-step.js +3 -3
  219. package/dist/module/business-terms-conditions-text.js +1 -1
  220. package/dist/module/business.service.js +19 -1
  221. package/dist/module/button.js +24 -0
  222. package/dist/module/checkout-core.js +27 -32
  223. package/dist/module/details.js +1 -1
  224. package/dist/module/exported-parts.js +40 -0
  225. package/dist/module/form-control-checkbox2.js +1 -1
  226. package/dist/module/form-control-date2.js +1 -1
  227. package/dist/module/form-control-file2.js +1 -1
  228. package/dist/module/form-control-monetary2.js +1 -1
  229. package/dist/module/form-control-number-masked2.js +11 -5
  230. package/dist/module/form-control-number.js +1 -1
  231. package/dist/module/form-control-select2.js +1 -1
  232. package/dist/module/form-control-text2.js +1 -1
  233. package/dist/module/get-payout-csv.js +1 -1
  234. package/dist/module/gross-payment-chart-core2.js +1 -1
  235. package/dist/module/identity-address-form.js +2 -2
  236. package/dist/module/input-handlers.js +16 -0
  237. package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
  238. package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
  239. package/dist/module/justifi-bank-account-form.js +1 -1
  240. package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
  241. package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
  242. package/dist/module/justifi-business-details.js +1 -1
  243. package/dist/module/justifi-business-form.js +2 -2
  244. package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
  245. package/dist/module/justifi-business-owners-form-step-core.js +6 -0
  246. package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
  247. package/dist/module/justifi-business-representative-form-inputs.js +6 -0
  248. package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
  249. package/dist/module/justifi-business-representative-form-step-core.js +6 -0
  250. package/dist/module/justifi-card-form.js +1 -1
  251. package/dist/module/justifi-checkout.js +27 -33
  252. package/dist/module/justifi-gross-payment-chart.js +1 -1
  253. package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
  254. package/dist/module/justifi-legal-address-form-step-core.js +6 -0
  255. package/dist/module/justifi-payment-details.js +2 -2
  256. package/dist/module/justifi-payment-form.js +5 -6
  257. package/dist/module/justifi-payment-provisioning.js +97 -108
  258. package/dist/module/justifi-payments-list.js +8 -14
  259. package/dist/module/justifi-payout-details.js +1 -1
  260. package/dist/module/justifi-payouts-list.js +8 -13
  261. package/dist/module/justifi-refund-form.js +2 -2
  262. package/dist/module/justifi-season-interruption-insurance.js +7 -2
  263. package/dist/module/legal-address-form-step-core.js +138 -0
  264. package/dist/module/legal-address-form-step.js +53 -98
  265. package/dist/module/legal-address-form.js +2 -2
  266. package/dist/module/new-payment-method.js +1 -1
  267. package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
  268. package/dist/module/owner-form-core.js +6 -0
  269. package/dist/module/owner-form-core2.js +264 -0
  270. package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
  271. package/dist/module/owner-form-inputs.js +6 -0
  272. package/dist/module/owner-form-inputs2.js +85 -0
  273. package/dist/module/owner-form.js +62 -188
  274. package/dist/module/package.js +1 -1
  275. package/dist/module/pagination-menu2.js +3 -3
  276. package/dist/module/payment-details-core2.js +7 -7
  277. package/dist/module/payment-method-form.js +2 -2
  278. package/dist/module/payment-method-options.js +1 -1
  279. package/dist/module/payment-method-selector.js +1 -1
  280. package/dist/module/payment-provisioning-actions.js +178 -0
  281. package/dist/module/payment-provisioning-core.js +100 -62
  282. package/dist/module/payment-provisioning-form-buttons.js +2 -2
  283. package/dist/module/payment-provisioning-form-steps.js +94 -52
  284. package/dist/module/payments-list-core2.js +71 -49
  285. package/dist/module/payout-details-core2.js +1 -1
  286. package/dist/module/payouts-list-core2.js +92 -82
  287. package/dist/module/save-new-payment-method.js +1 -1
  288. package/dist/module/saved-payment-method.js +1 -1
  289. package/dist/module/schema-validations.js +1 -1
  290. package/dist/module/season-interruption-insurance-core.js +2 -2
  291. package/dist/module/sezzle-payment-method.js +1 -1
  292. package/dist/module/skeleton.js +18 -50
  293. package/dist/module/styled-host.js +4 -4
  294. package/dist/module/utils2.js +1 -31
  295. package/dist/module/utils3.js +23 -26
  296. package/dist/module/utils4.js +23 -24
  297. package/dist/types/api/Payment.d.ts +0 -28
  298. package/dist/types/api/services/business.service.d.ts +10 -0
  299. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
  300. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
  301. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
  302. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
  303. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
  304. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
  305. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
  306. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
  307. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
  308. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
  309. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
  310. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
  311. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
  312. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
  313. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
  314. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
  315. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  316. package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
  317. package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
  318. package/dist/types/components/checkout/checkout-core.d.ts +0 -1
  319. package/dist/types/components/form/utils.d.ts +0 -1
  320. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
  321. package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
  322. package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
  323. package/dist/types/components.d.ts +309 -482
  324. package/dist/types/ui-components/button-spinner.d.ts +1 -0
  325. package/dist/types/ui-components/button.d.ts +10 -0
  326. package/dist/types/ui-components/index.d.ts +7 -0
  327. package/dist/types/ui-components/skeleton.d.ts +13 -0
  328. package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
  329. package/dist/types/ui-components/table-empty-state.d.ts +6 -0
  330. package/dist/types/ui-components/table-error-state.d.ts +6 -0
  331. package/dist/types/ui-components/table-loading-state.d.ts +6 -0
  332. package/dist/types/utils/utils.d.ts +0 -3
  333. package/dist/webcomponents/p-07109641.entry.js +1 -0
  334. package/dist/webcomponents/p-08b0fb31.js +1 -0
  335. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  336. package/dist/webcomponents/p-17e4246f.entry.js +1 -0
  337. package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
  338. package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
  339. package/dist/webcomponents/p-23014988.entry.js +1 -0
  340. package/dist/webcomponents/p-25dba252.entry.js +1 -0
  341. package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
  342. package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
  343. package/dist/webcomponents/p-304dd644.entry.js +1 -0
  344. package/dist/webcomponents/p-30a493cd.entry.js +1 -0
  345. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  346. package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
  347. package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
  348. package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
  349. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  350. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  351. package/dist/webcomponents/p-5968ff8a.js +1 -0
  352. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  353. package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
  354. package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
  355. package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
  356. package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
  357. package/dist/webcomponents/p-75b4daef.js +1 -0
  358. package/dist/webcomponents/p-7d85af5c.js +1 -0
  359. package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
  360. package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
  361. package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
  362. package/dist/webcomponents/p-8df7bde8.js +1 -0
  363. package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
  364. package/dist/webcomponents/p-9279aa49.entry.js +1 -0
  365. package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
  366. package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
  367. package/dist/webcomponents/p-9c9c7dac.js +1 -0
  368. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  369. package/dist/webcomponents/p-ba4bae6f.js +1 -0
  370. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  371. package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
  372. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  373. package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
  374. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  375. package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
  376. package/dist/webcomponents/p-d101c5db.js +1 -0
  377. package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
  378. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  379. package/dist/webcomponents/p-d89bad72.js +1 -0
  380. package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
  381. package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
  382. package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
  383. package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
  384. package/dist/webcomponents/p-e333620e.js +1 -0
  385. package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
  386. package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
  387. package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
  388. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  389. package/dist/webcomponents/webcomponents.css +6 -1
  390. package/dist/webcomponents/webcomponents.esm.js +1 -1
  391. package/package.json +1 -1
  392. package/dist/cjs/SubAccount-135ff8c8.js +0 -107
  393. package/dist/cjs/business.service-9214509a.js +0 -13
  394. package/dist/cjs/form-control-date.cjs.entry.js +0 -43
  395. package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
  396. package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
  397. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
  398. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
  399. package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
  400. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
  401. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
  402. package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
  403. package/dist/cjs/styled-host-b8bed12a.js +0 -14
  404. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
  405. package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
  406. package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
  407. package/dist/collection/api/Proceed.js +0 -41
  408. package/dist/collection/api/SubAccount.js +0 -103
  409. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
  410. package/dist/collection/components/business-list/business-list.js +0 -185
  411. package/dist/collection/components/business-list/business-list.stories.js +0 -68
  412. package/dist/collection/components/business-list/example.js +0 -12
  413. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
  414. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
  415. package/dist/collection/components/proceeds-list/example.js +0 -12
  416. package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
  417. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
  418. package/dist/collection/components/skeleton/skeleton.css +0 -11
  419. package/dist/collection/components/skeleton/skeleton.js +0 -160
  420. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
  421. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
  422. package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
  423. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
  424. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
  425. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
  426. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
  427. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
  428. package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
  429. package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
  430. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
  431. package/dist/collection/components/table/table.css +0 -7
  432. package/dist/collection/components/table/table.js +0 -222
  433. package/dist/collection/components/table/utils.js +0 -4
  434. package/dist/collection/utils/styled-host/styled-host.js +0 -6
  435. package/dist/esm/SubAccount-7fcb1450.js +0 -105
  436. package/dist/esm/business.service-19a0c8d3.js +0 -11
  437. package/dist/esm/form-control-date.entry.js +0 -39
  438. package/dist/esm/form-control-error-text_2.entry.js +0 -31
  439. package/dist/esm/form-control-number-masked_2.entry.js +0 -88
  440. package/dist/esm/justifi-business-list.entry.js +0 -106
  441. package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
  442. package/dist/esm/justifi-proceeds-list.entry.js +0 -155
  443. package/dist/esm/justifi-skeleton.entry.js +0 -50
  444. package/dist/esm/justifi-subaccount-details.entry.js +0 -73
  445. package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
  446. package/dist/esm/justifi-table_2.entry.js +0 -75
  447. package/dist/esm/styled-host-57aae7fa.js +0 -12
  448. package/dist/esm/subaccount-account-details_4.entry.js +0 -51
  449. package/dist/esm/subaccount-bank-details.entry.js +0 -15
  450. package/dist/esm/subaccount-terms-details.entry.js +0 -15
  451. package/dist/module/SubAccount.js +0 -105
  452. package/dist/module/justifi-business-list.d.ts +0 -11
  453. package/dist/module/justifi-business-list.js +0 -147
  454. package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
  455. package/dist/module/justifi-payment-balance-transactions.js +0 -123
  456. package/dist/module/justifi-proceeds-list.d.ts +0 -11
  457. package/dist/module/justifi-proceeds-list.js +0 -198
  458. package/dist/module/justifi-skeleton.js +0 -6
  459. package/dist/module/justifi-subaccount-details.d.ts +0 -11
  460. package/dist/module/justifi-subaccount-details.js +0 -133
  461. package/dist/module/justifi-subaccounts-list.d.ts +0 -11
  462. package/dist/module/justifi-subaccounts-list.js +0 -144
  463. package/dist/module/justifi-table.js +0 -6
  464. package/dist/module/subaccount-account-details.d.ts +0 -11
  465. package/dist/module/subaccount-account-details.js +0 -6
  466. package/dist/module/subaccount-account-details2.js +0 -34
  467. package/dist/module/subaccount-bank-details.d.ts +0 -11
  468. package/dist/module/subaccount-bank-details.js +0 -35
  469. package/dist/module/subaccount-merchant-details.d.ts +0 -11
  470. package/dist/module/subaccount-merchant-details.js +0 -6
  471. package/dist/module/subaccount-merchant-details2.js +0 -33
  472. package/dist/module/subaccount-owners-details.d.ts +0 -11
  473. package/dist/module/subaccount-owners-details.js +0 -6
  474. package/dist/module/subaccount-owners-details2.js +0 -33
  475. package/dist/module/subaccount-representative-details.d.ts +0 -11
  476. package/dist/module/subaccount-representative-details.js +0 -6
  477. package/dist/module/subaccount-representative-details2.js +0 -33
  478. package/dist/module/subaccount-terms-details.d.ts +0 -11
  479. package/dist/module/subaccount-terms-details.js +0 -35
  480. package/dist/module/table.js +0 -93
  481. package/dist/types/api/Proceed.d.ts +0 -60
  482. package/dist/types/api/SubAccount.d.ts +0 -163
  483. package/dist/types/components/business-list/business-list.d.ts +0 -48
  484. package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
  485. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
  486. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
  487. package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
  488. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
  489. package/dist/types/components/skeleton/skeleton.d.ts +0 -12
  490. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
  491. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
  492. package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
  493. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
  494. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
  495. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
  496. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
  497. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
  498. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
  499. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
  500. package/dist/types/components/table/table.d.ts +0 -23
  501. package/dist/types/components/table/utils.d.ts +0 -3
  502. package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
  503. package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
  504. package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
  505. package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
  506. package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
  507. package/dist/webcomponents/p-2306d44d.entry.js +0 -1
  508. package/dist/webcomponents/p-2af3672b.entry.js +0 -1
  509. package/dist/webcomponents/p-390157c9.entry.js +0 -1
  510. package/dist/webcomponents/p-412c7a22.entry.js +0 -1
  511. package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
  512. package/dist/webcomponents/p-54287db6.entry.js +0 -1
  513. package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
  514. package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
  515. package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
  516. package/dist/webcomponents/p-6700ac49.js +0 -1
  517. package/dist/webcomponents/p-68fd8283.js +0 -1
  518. package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
  519. package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
  520. package/dist/webcomponents/p-76180bb4.entry.js +0 -1
  521. package/dist/webcomponents/p-77dc159c.entry.js +0 -1
  522. package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
  523. package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
  524. package/dist/webcomponents/p-87932e16.js +0 -1
  525. package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
  526. package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
  527. package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
  528. package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
  529. package/dist/webcomponents/p-b53d7b7f.js +0 -1
  530. package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
  531. package/dist/webcomponents/p-c4264aaf.js +0 -1
  532. package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
  533. package/dist/webcomponents/p-d083a342.entry.js +0 -1
  534. package/dist/webcomponents/p-e46929a1.entry.js +0 -1
  535. package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
  536. package/dist/webcomponents/p-ed844504.js +0 -1
  537. package/dist/module/{index.esm.js → form.js} +2733 -2733
@@ -1,13 +1,7 @@
1
- import { Host, h } from "@stencil/core";
2
- import { FormController } from "../../../form/form";
3
- import { AdditionalQuestions } from "../../../../api/Business";
4
- import { Api } from "../../../../api";
5
- import { config } from "../../../../../config";
6
- import { additionalQuestionsSchema } from "../../schemas/business-additional-questions-schema";
7
- import { BusinessFormStep } from "../../utils/business-form-types";
8
- import { CURRENCY_MASK } from "../../../../utils/form-input-masks";
9
- import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions } from "../../utils/business-form-options";
1
+ import { h } from "@stencil/core";
10
2
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
3
+ import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-actions";
4
+ import { BusinessService } from "../../../../api/services/business.service";
11
5
  /**
12
6
  * @exportedPart label: Label for inputs
13
7
  * @exportedPart input: The input fields
@@ -15,90 +9,44 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/Com
15
9
  */
16
10
  export class AdditionalQuestionsFormStep {
17
11
  constructor() {
18
- this.fetchData = async () => {
19
- this.formLoading.emit(true);
20
- try {
21
- const response = await this.api.get(this.businessEndpoint);
22
- this.additional_questions = new AdditionalQuestions(response.data.additional_questions || {});
23
- this.formController.setInitialValues(Object.assign({}, this.additional_questions));
24
- }
25
- catch (error) {
26
- this.errorEvent.emit({
27
- errorCode: ComponentErrorCodes.FETCH_ERROR,
28
- message: error.message,
29
- severity: ComponentErrorSeverity.ERROR,
30
- data: error,
31
- });
32
- }
33
- finally {
34
- this.formLoading.emit(false);
35
- }
36
- };
37
- this.sendData = async (onSuccess) => {
38
- this.formLoading.emit(true);
39
- try {
40
- const payload = this.formController.values.getValue();
41
- const response = await this.api.patch(this.businessEndpoint, JSON.stringify({ additional_questions: payload }));
42
- this.handleResponse(response, onSuccess);
43
- }
44
- catch (error) {
45
- this.errorEvent.emit({
46
- errorCode: ComponentErrorCodes.PATCH_ERROR,
47
- message: error.message,
48
- severity: ComponentErrorSeverity.ERROR,
49
- data: error,
50
- });
51
- }
52
- finally {
53
- this.formLoading.emit(false);
54
- }
55
- };
56
- this.inputHandler = (name, value) => {
57
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
58
- };
59
- this.formController = undefined;
60
- this.errors = {};
61
- this.additional_questions = {};
12
+ this.getBusiness = undefined;
13
+ this.patchBusiness = undefined;
62
14
  this.authToken = undefined;
63
15
  this.businessId = undefined;
64
16
  this.allowOptionalFields = undefined;
65
17
  }
66
- get businessEndpoint() {
67
- return `entities/business/${this.businessId}`;
68
- }
69
- handleResponse(response, onSuccess) {
70
- if (response.error) {
71
- this.errorEvent.emit({
72
- errorCode: ComponentErrorCodes.PATCH_ERROR,
73
- message: response.error.message,
74
- severity: ComponentErrorSeverity.ERROR,
75
- data: response.error,
76
- });
77
- }
78
- else {
79
- onSuccess();
80
- }
81
- this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.additionalQuestions } });
18
+ propChanged() {
19
+ this.initializeApi();
82
20
  }
83
21
  async validateAndSubmit({ onSuccess }) {
84
- this.formController.validateAndSubmit(() => this.sendData(onSuccess));
22
+ this.coreComponent.validateAndSubmit({ onSuccess });
85
23
  }
86
- ;
87
24
  componentWillLoad() {
88
- this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
89
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
90
- if (this.businessId && this.authToken) {
91
- this.fetchData();
92
- }
25
+ this.initializeApi();
93
26
  }
94
- componentDidLoad() {
95
- this.formController.values.subscribe(values => this.additional_questions = Object.assign({}, values));
96
- this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
27
+ initializeApi() {
28
+ if (this.authToken && this.businessId) {
29
+ this.getBusiness = makeGetBusiness({
30
+ authToken: this.authToken,
31
+ businessId: this.businessId,
32
+ service: new BusinessService()
33
+ });
34
+ this.patchBusiness = makePatchBusiness({
35
+ authToken: this.authToken,
36
+ businessId: this.businessId,
37
+ service: new BusinessService()
38
+ });
39
+ }
40
+ else {
41
+ this.errorEvent.emit({
42
+ message: 'Missing required props',
43
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
44
+ severity: ComponentErrorSeverity.ERROR,
45
+ });
46
+ }
97
47
  }
98
48
  render() {
99
- var _a, _b, _c, _d, _e, _f, _g;
100
- const additionalQuestionsDefaultValue = this.formController.getInitialValues();
101
- return (h(Host, { key: 'a6c4f79702b3ebeb087c7e0beb1353e243c26bb2', exportparts: "label,input,input-invalid" }, h("form", { key: 'e4f918d7b7a84b8a2332f14d79dcb8bc7c50da73' }, h("fieldset", { key: '921f14f225be38b665780a5640bc38302497a5b4' }, h("legend", { key: '01fa03c8134995cb23a67766febb6d4522e3d41a' }, "Additional Questions"), h("hr", { key: '61131730389e979b6aa7d68ca5f58a070aa2534e' }), h("div", { key: '54b3af3d2fe06b20463fa548a60ab986f246a3d7', class: "row gy-3" }, h("div", { key: '55c113e9d5f4746cc78de3f91cbf0a069d7a8e41', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '86a6cacf09105f5c4415a01738ba77b7eeb7622c', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'ae68b9c006ea41e1f214226efdb4e14098d5e800', class: "col-12 col-md-6" }, h("form-control-monetary", { key: 'ddbff877fc74121bbf84eb7f4ee278558f35d853', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '80fa2c11d3cadd1a1ab07ad79b7ff736a15a38d3', class: "col-12" }, h("form-control-select", { key: '7fca901a87105b9a401309d5841279bac7a6f5cd', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'a20763d9518cd84b062f81fdce325be2a8dfb40e', class: "col-12" }, h("form-control-select", { key: 'cfec3aab19c544b16f8a0fab7541433130c3b749', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '0ef1a0473a5870428a741be696e08c881ebee524', class: "col-12" }, h("form-control-text", { key: '512a4924c14b7c2da661b5ffe966d8d1497cb706', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: '75a7b0adfde53443a53ca4e4143f1ff060291837', class: "col-12" }, h("form-control-select", { key: '1474ce5f608be57a36486ad46c7a7bd68fc44fc7', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '7de2fd399754cc0c77e2b08b7d1a4d0082903f61', class: "col-12" }, h("form-control-text", { key: '5de14ae950223e353dd6d58430a4493ffd26da4e', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details })))))));
49
+ return (h("justifi-additional-questions-form-step-core", { key: 'ede8f1336c69d47c651a5b4b95ee2746aae3aa52', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
102
50
  }
103
51
  static get is() { return "justifi-additional-questions-form-step"; }
104
52
  static get properties() {
@@ -158,49 +106,12 @@ export class AdditionalQuestionsFormStep {
158
106
  }
159
107
  static get states() {
160
108
  return {
161
- "formController": {},
162
- "errors": {},
163
- "additional_questions": {}
109
+ "getBusiness": {},
110
+ "patchBusiness": {}
164
111
  };
165
112
  }
166
113
  static get events() {
167
114
  return [{
168
- "method": "submitted",
169
- "name": "submitted",
170
- "bubbles": true,
171
- "cancelable": true,
172
- "composed": true,
173
- "docs": {
174
- "tags": [],
175
- "text": ""
176
- },
177
- "complexType": {
178
- "original": "BusinessFormSubmitEvent",
179
- "resolved": "BusinessFormSubmitEvent",
180
- "references": {
181
- "BusinessFormSubmitEvent": {
182
- "location": "import",
183
- "path": "../../utils/business-form-types",
184
- "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
185
- }
186
- }
187
- }
188
- }, {
189
- "method": "formLoading",
190
- "name": "formLoading",
191
- "bubbles": true,
192
- "cancelable": true,
193
- "composed": true,
194
- "docs": {
195
- "tags": [],
196
- "text": ""
197
- },
198
- "complexType": {
199
- "original": "boolean",
200
- "resolved": "boolean",
201
- "references": {}
202
- }
203
- }, {
204
115
  "method": "errorEvent",
205
116
  "name": "error-event",
206
117
  "bubbles": true,
@@ -248,4 +159,13 @@ export class AdditionalQuestionsFormStep {
248
159
  }
249
160
  };
250
161
  }
162
+ static get watchers() {
163
+ return [{
164
+ "propName": "authToken",
165
+ "methodName": "propChanged"
166
+ }, {
167
+ "propName": "businessId",
168
+ "methodName": "propChanged"
169
+ }];
170
+ }
251
171
  }
@@ -1,4 +1,4 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { FormController } from "../../../form/form";
3
3
  import { BusinessFormStep } from "../../utils/business-form-types";
4
4
  import { businessBankAccountSchema } from "../../schemas/business-bank-account-schema";
@@ -118,7 +118,7 @@ export class BusinessBankAccountFormStep {
118
118
  }
119
119
  render() {
120
120
  const bankAccountDefaultValue = this.formController.getInitialValues();
121
- return (h(Host, { key: '06a761a462bc8211d31021815bf0f826002ff674', exportparts: "label,input,input-invalid" }, h("form", { key: '46e2a31edda4f8297fc8858ed9373dd744e5a39b' }, h("fieldset", { key: '3f8ed5c4d2e801a1824110449e14d86df2f14dc4' }, h("legend", { key: 'f88054577ab1f30332ddd0aafad4b3a40dce8de3' }, "Bank Account Info"), h("hr", { key: '0cf5f443ee658510192d60a29d81040ac0763588' }), h("div", { key: 'c446362495de7cb85610f50ddec515e983aef55a', class: "row gy-3" }, h("div", { key: '9bdde0ea622a0e41963dc025e887bb2b5701e160', class: "col-12" }, h("form-control-text", { key: 'ffbe63f3b934c4b9428e4cb6928d554ce87ff627', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '6753f56609e0447ec0eb5b040c74bd511f6dd4de', class: "col-12" }, h("form-control-text", { key: 'c5903b44239826b1fd454731b2d2a406665fe62f', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '1ff0746d2b60f376f664a81011f4482d380ac760', class: "col-12" }, h("form-control-text", { key: '110b3d4f9e5266caf8cc0701d2e4764ec44dcf3c', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'e045bc7620c101116e28d2307497139776ca7588', class: "col-12" }, h("form-control-select", { key: 'acee452f96ab59da937a5379a7ef4a2703861647', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '8e576bebe699f605a411d2dbeca04d11be0181a2', class: "col-12" }, h("form-control-text", { key: '0df383e2d9c5b4ba609820f473cad3098968a6e7', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '91dc628aaceb4b86171b45f52bd6f023d338a4db', class: "col-12" }, h("form-control-text", { key: '239f3cf414fa1ca1f3de5e8fb5ba9e1c7b6c458f', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })))))));
121
+ return (h("form", { key: 'b2e106437693b667376fb8091117bc04899cce13' }, h("fieldset", { key: 'c6fc0e5b39278a4618abe0aeba8593b4800f23fa' }, h("legend", { key: 'f07c520e32491dd506f7ac16b03b0eb82a451035' }, "Bank Account Info"), h("hr", { key: '43845af4ec6f143653154e301a49c870c688e8cb' }), h("div", { key: '911f450a0e81a7fcf6afb8b54be910da36b068d6', class: "row gy-3" }, h("div", { key: 'afe5dd40139f1098e69736cd08f00792916657b1', class: "col-12" }, h("form-control-text", { key: 'c590065940b5ef4ab5a125962e114d3bb99161e8', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ad7ac99fdae7bb0108675cf4ea522ae7b0c7b340', class: "col-12" }, h("form-control-text", { key: '4e69debe8b184272c788f0ba206b7e983bb6bba5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a478bb2330e48935b65d22a42287ab89f94b4808', class: "col-12" }, h("form-control-text", { key: 'c20531fb2c5e903eefeeb62fca5a831cf2542867', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '63325c985d0341888ad9ce34fec48c623e275f55', class: "col-12" }, h("form-control-select", { key: 'b9fc86477dada5413e4a6e18b10e77de620996d9', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '7d2849185532bb21c85cf8227749469e28fdc102', class: "col-12" }, h("form-control-text", { key: '466a38e94ed054788596ec63bed4b4ffe646dc63', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '1162fae41dfc767cd038a37d7a7581b54dee1a1d', class: "col-12" }, h("form-control-text", { key: '47ffb34b6523d34df02739231b5764418f162fe6', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
122
122
  }
123
123
  static get is() { return "justifi-business-bank-account-form-step"; }
124
124
  static get properties() {
@@ -0,0 +1,255 @@
1
+ import { h } from "@stencil/core";
2
+ import { businessCoreInfoSchema } from "../../schemas/business-core-info-schema";
3
+ import { FormController } from "../../../form/form";
4
+ import { CoreBusinessInfo } from "../../../../api/Business";
5
+ import { businessClassificationOptions } from "../../utils/business-form-options";
6
+ import { PHONE_MASKS } from "../../../../utils/form-input-masks";
7
+ import { parseCoreInfo } from "../../utils/payload-parsers";
8
+ import { flattenNestedObject } from "../../../../utils/utils";
9
+ import { numberOnlyHandler } from "../../../form/utils";
10
+ export class BusinessCoreInfoFormStepCore {
11
+ constructor() {
12
+ this.getData = () => {
13
+ this.formLoading.emit(true);
14
+ this.getBusiness({
15
+ onSuccess: (response) => {
16
+ this.coreInfo = new CoreBusinessInfo(response.data);
17
+ this.formController.setInitialValues(Object.assign({}, this.coreInfo));
18
+ },
19
+ onError: ({ error, code, severity }) => {
20
+ this.errorEvent.emit({
21
+ message: error,
22
+ errorCode: code,
23
+ severity: severity
24
+ });
25
+ },
26
+ final: () => this.formLoading.emit(false)
27
+ });
28
+ };
29
+ this.sendData = (onSuccess) => {
30
+ let submittedData;
31
+ this.formLoading.emit(true);
32
+ this.patchBusiness({
33
+ payload: this.patchPayload,
34
+ onSuccess: (response) => {
35
+ submittedData = response;
36
+ onSuccess();
37
+ },
38
+ onError: ({ error, code, severity }) => {
39
+ submittedData = error;
40
+ this.errorEvent.emit({
41
+ message: error,
42
+ errorCode: code,
43
+ severity: severity
44
+ });
45
+ },
46
+ final: () => {
47
+ this.submitted.emit({ data: { submittedData } });
48
+ this.formLoading.emit(false);
49
+ }
50
+ });
51
+ };
52
+ this.inputHandler = (name, value) => {
53
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
54
+ };
55
+ this.formController = undefined;
56
+ this.errors = {};
57
+ this.coreInfo = {};
58
+ this.businessId = undefined;
59
+ this.getBusiness = undefined;
60
+ this.patchBusiness = undefined;
61
+ this.allowOptionalFields = undefined;
62
+ }
63
+ async validateAndSubmit({ onSuccess }) {
64
+ this.formController.validateAndSubmit(() => this.sendData(onSuccess));
65
+ }
66
+ ;
67
+ get patchPayload() {
68
+ let formValues = parseCoreInfo(flattenNestedObject(this.formController.values.getValue()));
69
+ return JSON.stringify(formValues);
70
+ }
71
+ componentWillLoad() {
72
+ this.getBusiness && this.getData();
73
+ this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
74
+ }
75
+ componentDidLoad() {
76
+ this.formController.errors.subscribe(errors => {
77
+ this.errors = Object.assign({}, errors);
78
+ });
79
+ }
80
+ render() {
81
+ const coreInfoDefaultValue = this.formController.getInitialValues();
82
+ return (h("form", { key: 'c91c42a7b3d48789f2304f6f3e7b9cab228e7e86' }, h("fieldset", { key: '159f23468da4ed60e89be108c3640c3e4f19a32a' }, h("legend", { key: '7666498459afce82b88114c880dba4f697ec422e' }, "General Info"), h("hr", { key: 'f9d253d811ba1f9b7438888f5c2e9813fb6371a9' }), h("div", { key: '9bc73f86956d81ed4028cabb4ec083e7524ad973', class: 'row gy-3' }, h("div", { key: '86bc9d41f88ee46e727a11b6371ecdb7d9dac6f3', class: 'col-12' }, h("form-control-text", { key: '2f470cdd65f25993a2671f1ab1938a214acfa625', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '38af9153a77c6f121a2f1af626a325a525b8be36', class: 'col-12' }, h("form-control-text", { key: '5912ab4555f9522f973ef67240249fb44e89bcab', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: 'a48d44f28b473c3873aa16468a01f45f46e99c5e', class: 'col-12 col-md-8' }, h("form-control-select", { key: '7fa00ac1122a43fd1645dd81c6d9fbaf6b10131d', name: 'classification', label: 'Business Classification', options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'cd4e235392581af33d79d0eeb7a950fe51291bb4', class: 'col-12 col-md-4' }, h("form-control-date", { key: '43f65e71b7ea53fb82f8a97d4160b3df9b1ceacf', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '37ba3bc3731eec0281ab6c4ae942649ac25e4eba', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'b48172d98fd70130fe60c47f31b077e8644ed2e7', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '3212bfe272b22b896ef6602f639b2779ace36857', class: 'col-12 col-md-6' }, h("form-control-text", { key: '523a2e4b1df12723e936f224ad1518d657acc38e', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9 })), h("div", { key: '4018cec1595a3c2b92d92faaec10c6c917364721', class: 'col-12' }, h("form-control-text", { key: 'f5dfb03af25b7eeeb1720191acff2fff510b8114', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '3dbe9c55e93c35b68d6783f4dd73dab45970289b', class: 'col-12 col-md-6' }, h("form-control-text", { key: '5de21e1a7c0647b4fe6e66b51a32288c96ae82a7', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '93c06e619ea76c69eb7723c3d050edfb0539635d', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '4dc5a4ee1bb04075ee20d58e87fec1711b0683a8', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
83
+ }
84
+ static get is() { return "justifi-business-core-info-form-step-core"; }
85
+ static get properties() {
86
+ return {
87
+ "businessId": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "string",
92
+ "resolved": "string",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": false,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": ""
100
+ },
101
+ "attribute": "business-id",
102
+ "reflect": false
103
+ },
104
+ "getBusiness": {
105
+ "type": "unknown",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "Function",
109
+ "resolved": "Function",
110
+ "references": {
111
+ "Function": {
112
+ "location": "global",
113
+ "id": "global::Function"
114
+ }
115
+ }
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ }
123
+ },
124
+ "patchBusiness": {
125
+ "type": "unknown",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "Function",
129
+ "resolved": "Function",
130
+ "references": {
131
+ "Function": {
132
+ "location": "global",
133
+ "id": "global::Function"
134
+ }
135
+ }
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": ""
142
+ }
143
+ },
144
+ "allowOptionalFields": {
145
+ "type": "boolean",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "boolean",
149
+ "resolved": "boolean",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": ""
157
+ },
158
+ "attribute": "allow-optional-fields",
159
+ "reflect": false
160
+ }
161
+ };
162
+ }
163
+ static get states() {
164
+ return {
165
+ "formController": {},
166
+ "errors": {},
167
+ "coreInfo": {}
168
+ };
169
+ }
170
+ static get events() {
171
+ return [{
172
+ "method": "submitted",
173
+ "name": "submitted",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "complexType": {
182
+ "original": "BusinessFormSubmitEvent",
183
+ "resolved": "BusinessFormSubmitEvent",
184
+ "references": {
185
+ "BusinessFormSubmitEvent": {
186
+ "location": "import",
187
+ "path": "../../utils/business-form-types",
188
+ "id": "src/components/business-forms/utils/business-form-types.ts::BusinessFormSubmitEvent"
189
+ }
190
+ }
191
+ }
192
+ }, {
193
+ "method": "formLoading",
194
+ "name": "formLoading",
195
+ "bubbles": true,
196
+ "cancelable": true,
197
+ "composed": true,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": ""
201
+ },
202
+ "complexType": {
203
+ "original": "boolean",
204
+ "resolved": "boolean",
205
+ "references": {}
206
+ }
207
+ }, {
208
+ "method": "errorEvent",
209
+ "name": "error-event",
210
+ "bubbles": true,
211
+ "cancelable": true,
212
+ "composed": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "complexType": {
218
+ "original": "ComponentError",
219
+ "resolved": "ComponentError",
220
+ "references": {
221
+ "ComponentError": {
222
+ "location": "import",
223
+ "path": "../../../../api/ComponentError",
224
+ "id": "src/api/ComponentError.ts::ComponentError"
225
+ }
226
+ }
227
+ }
228
+ }];
229
+ }
230
+ static get methods() {
231
+ return {
232
+ "validateAndSubmit": {
233
+ "complexType": {
234
+ "signature": "({ onSuccess }: { onSuccess: any; }) => Promise<void>",
235
+ "parameters": [{
236
+ "name": "__0",
237
+ "type": "{ onSuccess: any; }",
238
+ "docs": ""
239
+ }],
240
+ "references": {
241
+ "Promise": {
242
+ "location": "global",
243
+ "id": "global::Promise"
244
+ }
245
+ },
246
+ "return": "Promise<void>"
247
+ },
248
+ "docs": {
249
+ "text": "",
250
+ "tags": []
251
+ }
252
+ }
253
+ };
254
+ }
255
+ }