@justifi/webcomponents 4.7.3 → 4.7.5

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 (649) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/{Api-548eaa62.js → Api-a06b996e.js} +35 -35
  3. package/dist/cjs/{Pagination-cae1dcbd.js → Pagination-0da8f095.js} +5 -5
  4. package/dist/cjs/Payout-7821eb61.js +183 -0
  5. package/dist/cjs/SubAccount-b9487cbb.js +107 -0
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +50 -50
  7. package/dist/cjs/business-form-schema-a2b87e77.js +148 -0
  8. package/dist/cjs/config-ff2dda66.js +15 -0
  9. package/dist/cjs/exported-parts-b18c68c2.js +9 -0
  10. package/dist/cjs/{form-1e732a9d.js → form-2ad3d374.js} +84 -84
  11. package/dist/cjs/form-control-datepart_2.cjs.entry.js +108 -108
  12. package/dist/cjs/form-control-monetary.cjs.entry.js +50 -50
  13. package/dist/cjs/form-control-number_3.cjs.entry.js +108 -108
  14. package/dist/cjs/helpers-b254d050.js +26 -0
  15. package/dist/cjs/{index-c5ace247.js → index-4286ac32.js} +189 -51
  16. package/dist/cjs/{index-5a880722.js → index-fc5339a5.js} +406 -195
  17. package/dist/cjs/{index.esm-91ec051e.js → index.esm-c08c2adc.js} +61 -30
  18. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +372 -372
  19. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +56 -56
  20. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +79 -79
  21. package/dist/cjs/justifi-business-details.cjs.entry.js +61 -61
  22. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +110 -110
  23. package/dist/cjs/justifi-business-form.cjs.entry.js +71 -71
  24. package/dist/cjs/justifi-business-list.cjs.entry.js +128 -128
  25. package/dist/cjs/justifi-card-form.cjs.entry.js +57 -57
  26. package/dist/cjs/justifi-details.cjs.entry.js +13 -13
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +125 -125
  28. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +72 -72
  29. package/dist/cjs/justifi-payment-details.cjs.entry.js +53 -53
  30. package/dist/cjs/justifi-payment-form.cjs.entry.js +89 -89
  31. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +171 -188
  32. package/dist/cjs/justifi-payments-list.cjs.entry.js +97 -97
  33. package/dist/cjs/justifi-payout-details.cjs.entry.js +54 -54
  34. package/dist/cjs/justifi-payouts-list.cjs.entry.js +120 -119
  35. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +135 -135
  36. package/dist/cjs/justifi-refund-form.cjs.entry.js +85 -85
  37. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +62 -62
  38. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +84 -84
  39. package/dist/cjs/justifi-table_2.cjs.entry.js +62 -61
  40. package/dist/cjs/loader.cjs.js +2 -2
  41. package/dist/cjs/select-input_2.cjs.entry.js +38 -38
  42. package/dist/cjs/state-options-96d05a98.js +246 -0
  43. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +41 -41
  44. package/dist/cjs/subaccount-bank-details.cjs.entry.js +11 -11
  45. package/dist/cjs/subaccount-terms-details.cjs.entry.js +11 -11
  46. package/dist/cjs/{utils-13d069be.js → utils-36bf8b3e.js} +108 -108
  47. package/dist/cjs/utils-a2ee48ca.js +35 -0
  48. package/dist/cjs/webcomponents.cjs.js +3 -3
  49. package/dist/collection/api/Api.js +34 -34
  50. package/dist/collection/api/Business.js +39 -39
  51. package/dist/collection/api/Pagination.js +5 -5
  52. package/dist/collection/api/Payment.js +108 -108
  53. package/dist/collection/api/Payout.js +33 -33
  54. package/dist/collection/api/Proceed.js +33 -33
  55. package/dist/collection/api/SubAccount.js +78 -78
  56. package/dist/collection/api/mockData/MockOnboardingData.js +108 -108
  57. package/dist/collection/api/mockData/MockPayments.js +207 -207
  58. package/dist/collection/api/mockData/MockSubAccount.js +96 -96
  59. package/dist/collection/api/mockData/mockGrossVolumeReport.js +123 -123
  60. package/dist/collection/collection-manifest.json +4 -4
  61. package/dist/collection/components/bank-account-form/bank-account-form.js +260 -259
  62. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +10 -10
  63. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +38 -38
  64. package/dist/collection/components/billing-form/billing-form-schema.js +6 -6
  65. package/dist/collection/components/billing-form/billing-form.css +16 -12
  66. package/dist/collection/components/billing-form/billing-form.js +177 -179
  67. package/dist/collection/components/billing-form/state-options.js +240 -240
  68. package/dist/collection/components/billing-form/test/billing-form.spec.js +50 -50
  69. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +23 -16
  70. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +43 -43
  71. package/dist/collection/components/business-details/business-details.css +11 -4
  72. package/dist/collection/components/business-details/business-details.js +107 -107
  73. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +23 -16
  74. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +43 -43
  75. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +23 -16
  76. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +43 -43
  77. package/dist/collection/components/business-details/owner-details/owner-details.css +23 -16
  78. package/dist/collection/components/business-details/owner-details/owner-details.js +45 -45
  79. package/dist/collection/components/business-details/representative-details/representative-details.css +23 -16
  80. package/dist/collection/components/business-details/representative-details/representative-details.js +43 -43
  81. package/dist/collection/components/business-form/additional-questions/additional-questions.js +49 -49
  82. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +8 -8
  83. package/dist/collection/components/business-form/business-address/business-address-form.css +16 -12
  84. package/dist/collection/components/business-form/business-address/business-address-form.js +93 -93
  85. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +6 -6
  86. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +21 -21
  87. package/dist/collection/components/business-form/business-form-schema.js +137 -137
  88. package/dist/collection/components/business-form/business-form-stepped.css +23 -16
  89. package/dist/collection/components/business-form/business-form-stepped.js +203 -203
  90. package/dist/collection/components/business-form/business-form.css +23 -16
  91. package/dist/collection/components/business-form/business-form.js +111 -111
  92. package/dist/collection/components/business-form/business-generic-info/business-generic-info.css +16 -12
  93. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +57 -57
  94. package/dist/collection/components/business-form/business-owners/business-owners.css +23 -16
  95. package/dist/collection/components/business-form/business-owners/business-owners.js +117 -117
  96. package/dist/collection/components/business-form/business-representative/business-representative.css +16 -12
  97. package/dist/collection/components/business-form/business-representative/business-representative.js +65 -65
  98. package/dist/collection/components/business-form/helpers.js +19 -19
  99. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +6 -6
  100. package/dist/collection/components/business-form/legal-address-form/legal-address-form.css +16 -12
  101. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +61 -61
  102. package/dist/collection/components/business-form/test/business-form.spec.js +35 -35
  103. package/dist/collection/components/business-list/business-list.css +3 -0
  104. package/dist/collection/components/business-list/business-list.js +160 -160
  105. package/dist/collection/components/business-list/business-list.stories.js +10 -10
  106. package/dist/collection/components/card-form/card-form.js +278 -277
  107. package/dist/collection/components/card-form/test/card-form.e2e.js +10 -10
  108. package/dist/collection/components/card-form/test/card-form.spec.js +45 -45
  109. package/dist/collection/components/details/details.css +38 -31
  110. package/dist/collection/components/details/details.js +42 -42
  111. package/dist/collection/components/form/form-control-datepart.js +224 -224
  112. package/dist/collection/components/form/form-control-monetary.js +177 -177
  113. package/dist/collection/components/form/form-control-number-masked.js +208 -208
  114. package/dist/collection/components/form/form-control-number.css +7 -2
  115. package/dist/collection/components/form/form-control-number.js +188 -188
  116. package/dist/collection/components/form/form-control-select.css +7 -2
  117. package/dist/collection/components/form/form-control-select.js +196 -196
  118. package/dist/collection/components/form/form-control-text.css +7 -2
  119. package/dist/collection/components/form/form-control-text.js +188 -188
  120. package/dist/collection/components/form/form.js +80 -80
  121. package/dist/collection/components/gross-payment-chart/chart-utils.js +52 -52
  122. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +3 -0
  123. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +125 -125
  124. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +7 -7
  125. package/dist/collection/components/pagination-menu/pagination-menu.js +72 -72
  126. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +144 -144
  127. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +10 -10
  128. package/dist/collection/components/payment-details/payment-details.css +38 -31
  129. package/dist/collection/components/payment-details/payment-details.js +106 -106
  130. package/dist/collection/components/payment-form/payment-form.css +16 -12
  131. package/dist/collection/components/payment-form/payment-form.js +319 -318
  132. package/dist/collection/components/payment-form/payment-method-selector.css +6 -2
  133. package/dist/collection/components/payment-form/payment-method-selector.js +90 -90
  134. package/dist/collection/components/payment-form/test/payment-form.e2e.js +9 -9
  135. package/dist/collection/components/payment-form/test/payment-form.spec.js +157 -157
  136. package/dist/collection/components/payment-method-form/get-computed-theme.js +47 -47
  137. package/dist/collection/components/payment-method-form/message-event-types.js +14 -14
  138. package/dist/collection/components/payment-method-form/payment-method-form.js +288 -262
  139. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +16 -16
  140. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +43 -43
  141. package/dist/collection/components/payments-list/payments-list.css +3 -0
  142. package/dist/collection/components/payments-list/payments-list.js +177 -177
  143. package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -21
  144. package/dist/collection/components/payout-details/payout-details.css +38 -31
  145. package/dist/collection/components/payout-details/payout-details.js +107 -107
  146. package/dist/collection/components/payouts-list/payouts-list.css +3 -0
  147. package/dist/collection/components/payouts-list/payouts-list.js +200 -199
  148. package/dist/collection/components/proceeds-list/proceeds-list.css +3 -0
  149. package/dist/collection/components/proceeds-list/proceeds-list.js +182 -182
  150. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +12 -12
  151. package/dist/collection/components/refund-form/refund-form-schema.js +9 -9
  152. package/dist/collection/components/refund-form/refund-form.css +23 -16
  153. package/dist/collection/components/refund-form/refund-form.js +216 -216
  154. package/dist/collection/components/refund-form/refund-form.stories.js +27 -27
  155. package/dist/collection/components/select-input/select-input.css +7 -2
  156. package/dist/collection/components/select-input/select-input.js +139 -139
  157. package/dist/collection/components/select-input/test/select-input.spec.js +38 -38
  158. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +23 -16
  159. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +65 -65
  160. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +23 -16
  161. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +43 -43
  162. package/dist/collection/components/subaccount-details/subaccount-details.css +38 -31
  163. package/dist/collection/components/subaccount-details/subaccount-details.js +132 -132
  164. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +9 -9
  165. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +23 -16
  166. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +43 -44
  167. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +23 -16
  168. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +44 -43
  169. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +23 -16
  170. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +43 -43
  171. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +23 -16
  172. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +43 -43
  173. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +7 -7
  174. package/dist/collection/components/subaccounts-list/subaccounts-list.js +164 -164
  175. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +12 -12
  176. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +6 -6
  177. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +21 -21
  178. package/dist/collection/components/table/exported-parts.js +5 -0
  179. package/dist/collection/components/table/table.css +38 -31
  180. package/dist/collection/components/table/table.js +225 -224
  181. package/dist/collection/components/table/test/table.spec.js +48 -48
  182. package/dist/collection/components/text-input/test/text-input.spec.js +31 -31
  183. package/dist/collection/components/text-input/text-input.css +7 -2
  184. package/dist/collection/components/text-input/text-input.js +122 -122
  185. package/dist/collection/utils/country-options.js +198 -198
  186. package/dist/collection/utils/phone-masks.js +1 -1
  187. package/dist/collection/utils/utils.js +107 -107
  188. package/dist/config.js +9 -9
  189. package/dist/docs.d.ts +401 -0
  190. package/dist/docs.json +6506 -0
  191. package/dist/esm/{Api-c65d3ed8.js → Api-0e88671c.js} +35 -35
  192. package/dist/esm/{Pagination-31f770d6.js → Pagination-afc8f96d.js} +5 -5
  193. package/dist/esm/Payout-c42e3877.js +179 -0
  194. package/dist/esm/SubAccount-b3ce8720.js +105 -0
  195. package/dist/esm/additional-questions-details_5.entry.js +50 -50
  196. package/dist/esm/business-form-schema-997c585c.js +144 -0
  197. package/dist/esm/config-476c7241.js +13 -0
  198. package/dist/esm/exported-parts-abd4c027.js +7 -0
  199. package/dist/esm/{form-32cf3d1e.js → form-5279c05a.js} +84 -84
  200. package/dist/esm/form-control-datepart_2.entry.js +108 -108
  201. package/dist/esm/form-control-monetary.entry.js +50 -50
  202. package/dist/esm/form-control-number_3.entry.js +108 -108
  203. package/dist/esm/helpers-d8a6a0f1.js +24 -0
  204. package/dist/esm/{index-5ed53c20.js → index-5eb05747.js} +406 -195
  205. package/dist/esm/{index-7471ed60.js → index-ff8194f9.js} +189 -51
  206. package/dist/esm/{index.esm-9397ffa0.js → index.esm-8ae36d07.js} +61 -30
  207. package/dist/esm/justifi-additional-questions_6.entry.js +372 -372
  208. package/dist/esm/justifi-bank-account-form.entry.js +56 -56
  209. package/dist/esm/justifi-billing-form_2.entry.js +79 -79
  210. package/dist/esm/justifi-business-details.entry.js +61 -61
  211. package/dist/esm/justifi-business-form-stepped.entry.js +110 -110
  212. package/dist/esm/justifi-business-form.entry.js +71 -71
  213. package/dist/esm/justifi-business-list.entry.js +128 -128
  214. package/dist/esm/justifi-card-form.entry.js +57 -57
  215. package/dist/esm/justifi-details.entry.js +13 -13
  216. package/dist/esm/justifi-gross-payment-chart.entry.js +125 -125
  217. package/dist/esm/justifi-payment-balance-transactions.entry.js +72 -72
  218. package/dist/esm/justifi-payment-details.entry.js +53 -53
  219. package/dist/esm/justifi-payment-form.entry.js +89 -89
  220. package/dist/esm/justifi-payment-method-form.entry.js +171 -188
  221. package/dist/esm/justifi-payments-list.entry.js +97 -97
  222. package/dist/esm/justifi-payout-details.entry.js +54 -54
  223. package/dist/esm/justifi-payouts-list.entry.js +120 -119
  224. package/dist/esm/justifi-proceeds-list.entry.js +135 -135
  225. package/dist/esm/justifi-refund-form.entry.js +85 -85
  226. package/dist/esm/justifi-subaccount-details.entry.js +62 -62
  227. package/dist/esm/justifi-subaccounts-list.entry.js +84 -84
  228. package/dist/esm/justifi-table_2.entry.js +62 -61
  229. package/dist/esm/loader.js +3 -3
  230. package/dist/esm/polyfills/core-js.js +0 -0
  231. package/dist/esm/polyfills/dom.js +0 -0
  232. package/dist/esm/polyfills/es5-html-element.js +0 -0
  233. package/dist/esm/polyfills/index.js +0 -0
  234. package/dist/esm/polyfills/system.js +0 -0
  235. package/dist/esm/select-input_2.entry.js +38 -38
  236. package/dist/esm/state-options-fc1daf67.js +244 -0
  237. package/dist/esm/subaccount-account-details_4.entry.js +41 -41
  238. package/dist/esm/subaccount-bank-details.entry.js +11 -11
  239. package/dist/esm/subaccount-terms-details.entry.js +11 -11
  240. package/dist/esm/{utils-40b7002c.js → utils-26c7dd12.js} +108 -108
  241. package/dist/esm/utils-7c6bd149.js +27 -0
  242. package/dist/esm/webcomponents.js +4 -4
  243. package/{loader → dist/loader}/cdn.js +1 -1
  244. package/{loader → dist/loader}/index.cjs.js +1 -1
  245. package/{loader → dist/loader}/index.d.ts +1 -1
  246. package/dist/loader/index.es2017.js +3 -0
  247. package/{loader → dist/loader}/index.js +2 -2
  248. package/dist/{components → module}/Api.js +35 -35
  249. package/dist/{components → module}/Pagination.js +5 -5
  250. package/dist/module/Payout.js +179 -0
  251. package/dist/module/SubAccount.js +105 -0
  252. package/dist/{components → module}/additional-questions-details.d.ts +2 -2
  253. package/dist/module/additional-questions-details2.js +36 -0
  254. package/dist/module/additional-questions.js +50 -0
  255. package/dist/module/billing-form.js +113 -0
  256. package/dist/module/business-address-form.js +72 -0
  257. package/dist/module/business-generic-info.js +212 -0
  258. package/dist/module/business-owners.js +116 -0
  259. package/dist/module/business-representative.js +90 -0
  260. package/dist/module/config.js +13 -0
  261. package/dist/module/details.js +38 -0
  262. package/dist/{components → module}/form-control-datepart.d.ts +2 -2
  263. package/dist/module/form-control-datepart2.js +98 -0
  264. package/dist/{components → module}/form-control-monetary.d.ts +2 -2
  265. package/dist/module/form-control-monetary2.js +83 -0
  266. package/dist/{components → module}/form-control-number-masked.d.ts +2 -2
  267. package/dist/module/form-control-number-masked2.js +82 -0
  268. package/dist/{components → module}/form-control-number.d.ts +2 -2
  269. package/dist/module/form-control-number2.js +71 -0
  270. package/dist/{components → module}/form-control-select.d.ts +2 -2
  271. package/dist/module/form-control-select2.js +67 -0
  272. package/dist/{components → module}/form-control-text.d.ts +2 -2
  273. package/dist/module/form-control-text2.js +71 -0
  274. package/dist/{components → module}/form.js +84 -84
  275. package/dist/{components → module}/generic-info-details.d.ts +2 -2
  276. package/dist/module/generic-info-details2.js +37 -0
  277. package/dist/module/helpers.js +24 -0
  278. package/dist/{components → module}/index.esm.js +61 -30
  279. package/dist/{components → module}/index2.js +406 -195
  280. package/dist/{components → module}/justifi-additional-questions.d.ts +2 -2
  281. package/dist/{components → module}/justifi-bank-account-form.d.ts +2 -2
  282. package/dist/module/justifi-bank-account-form.js +96 -0
  283. package/dist/{components → module}/justifi-billing-form.d.ts +2 -2
  284. package/dist/{components → module}/justifi-business-address-form.d.ts +2 -2
  285. package/dist/{components → module}/justifi-business-details.d.ts +2 -2
  286. package/dist/module/justifi-business-details.js +130 -0
  287. package/dist/{components → module}/justifi-business-form-stepped.d.ts +2 -2
  288. package/dist/module/justifi-business-form-stepped.js +228 -0
  289. package/dist/{components → module}/justifi-business-form.d.ts +2 -2
  290. package/dist/{components/justifi-payment-details.js → module/justifi-business-form.js} +161 -79
  291. package/dist/{components → module}/justifi-business-generic-info.d.ts +2 -2
  292. package/dist/{components → module}/justifi-business-list.d.ts +2 -2
  293. package/dist/module/justifi-business-list.js +197 -0
  294. package/dist/{components → module}/justifi-business-owners.d.ts +2 -2
  295. package/dist/{components → module}/justifi-business-representative.d.ts +2 -2
  296. package/dist/{components → module}/justifi-card-form.d.ts +2 -2
  297. package/dist/module/justifi-card-form.js +98 -0
  298. package/dist/{components → module}/justifi-details.d.ts +2 -2
  299. package/dist/{components → module}/justifi-gross-payment-chart.d.ts +2 -2
  300. package/dist/{components → module}/justifi-gross-payment-chart.js +146 -142
  301. package/dist/{components → module}/justifi-legal-address-form.d.ts +2 -2
  302. package/dist/{components → module}/justifi-payment-balance-transactions.d.ts +2 -2
  303. package/dist/module/justifi-payment-balance-transactions.js +125 -0
  304. package/dist/{components → module}/justifi-payment-details.d.ts +2 -2
  305. package/dist/module/justifi-payment-details.js +98 -0
  306. package/dist/{components → module}/justifi-payment-form.d.ts +2 -2
  307. package/dist/module/justifi-payment-form.js +169 -0
  308. package/dist/{components → module}/justifi-payment-method-form.d.ts +2 -2
  309. package/dist/{components → module}/justifi-payment-method-selector.d.ts +2 -2
  310. package/dist/{components → module}/justifi-payments-list.d.ts +2 -2
  311. package/dist/module/justifi-payments-list.js +154 -0
  312. package/dist/{components → module}/justifi-payout-details.d.ts +2 -2
  313. package/dist/module/justifi-payout-details.js +99 -0
  314. package/dist/{components → module}/justifi-payouts-list.d.ts +2 -2
  315. package/dist/module/justifi-payouts-list.js +176 -0
  316. package/dist/{components → module}/justifi-proceeds-list.d.ts +2 -2
  317. package/dist/module/justifi-proceeds-list.js +199 -0
  318. package/dist/{components → module}/justifi-refund-form.d.ts +2 -2
  319. package/dist/module/justifi-refund-form.js +139 -0
  320. package/dist/{components → module}/justifi-subaccount-details.d.ts +2 -2
  321. package/dist/module/justifi-subaccount-details.js +134 -0
  322. package/dist/{components → module}/justifi-subaccounts-list.d.ts +2 -2
  323. package/dist/module/justifi-subaccounts-list.js +142 -0
  324. package/dist/{components → module}/justifi-table.d.ts +2 -2
  325. package/dist/{components → module}/legal-address-details.d.ts +2 -2
  326. package/dist/module/legal-address-details2.js +36 -0
  327. package/dist/module/legal-address-form.js +268 -0
  328. package/dist/{components → module}/owner-details.d.ts +2 -2
  329. package/dist/module/owner-details2.js +39 -0
  330. package/dist/{components → module}/pagination-menu.d.ts +2 -2
  331. package/dist/module/pagination-menu2.js +43 -0
  332. package/dist/{components → module}/payment-method-form.js +191 -207
  333. package/dist/module/payment-method-selector.js +44 -0
  334. package/dist/{components → module}/phone-masks.js +1 -1
  335. package/dist/{components → module}/representative-details.d.ts +2 -2
  336. package/dist/module/representative-details2.js +37 -0
  337. package/dist/{components → module}/select-input.d.ts +2 -2
  338. package/dist/module/select-input2.js +50 -0
  339. package/dist/module/state-options.js +244 -0
  340. package/dist/{components → module}/subaccount-account-details.d.ts +2 -2
  341. package/dist/module/subaccount-account-details2.js +38 -0
  342. package/dist/{components → module}/subaccount-bank-details.d.ts +2 -2
  343. package/dist/module/subaccount-bank-details.js +39 -0
  344. package/dist/{components → module}/subaccount-merchant-details.d.ts +2 -2
  345. package/dist/module/subaccount-merchant-details2.js +37 -0
  346. package/dist/{components → module}/subaccount-owners-details.d.ts +2 -2
  347. package/dist/module/subaccount-owners-details2.js +37 -0
  348. package/dist/{components → module}/subaccount-representative-details.d.ts +2 -2
  349. package/dist/module/subaccount-representative-details2.js +37 -0
  350. package/dist/{components → module}/subaccount-terms-details.d.ts +2 -2
  351. package/dist/{webcomponents/p-98e4eae3.entry.js → module/subaccount-terms-details.js} +39 -1
  352. package/dist/module/table.js +90 -0
  353. package/dist/{components → module}/text-input.d.ts +2 -2
  354. package/dist/module/text-input2.js +48 -0
  355. package/dist/module/utils.js +27 -0
  356. package/dist/{components → module}/utils2.js +108 -108
  357. package/dist/types/api/Api.d.ts +14 -14
  358. package/dist/types/api/Business.d.ts +120 -120
  359. package/dist/types/api/GrossVolume.d.ts +4 -4
  360. package/dist/types/api/Pagination.d.ts +12 -12
  361. package/dist/types/api/Payment.d.ts +134 -134
  362. package/dist/types/api/Payout.d.ts +51 -51
  363. package/dist/types/api/Proceed.d.ts +51 -51
  364. package/dist/types/api/SubAccount.d.ts +130 -130
  365. package/dist/types/api/mockData/MockOnboardingData.d.ts +5 -5
  366. package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +5 -5
  367. package/dist/types/api/shared.d.ts +9 -9
  368. package/dist/types/components/bank-account-form/bank-account-form.d.ts +58 -0
  369. package/dist/types/components/billing-form/billing-form-schema.d.ts +18 -18
  370. package/dist/types/components/billing-form/billing-form.d.ts +25 -25
  371. package/dist/types/components/billing-form/state-options.d.ts +2 -2
  372. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  373. package/dist/types/components/business-details/business-details.d.ts +13 -13
  374. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +2 -2
  375. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +2 -2
  376. package/dist/types/components/business-details/owner-details/owner-details.d.ts +2 -2
  377. package/dist/types/components/business-details/representative-details/representative-details.d.ts +2 -2
  378. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +7 -7
  379. package/dist/types/components/business-form/business-address/business-address-form-schema.d.ts +16 -16
  380. package/dist/types/components/business-form/business-address/business-address-form.d.ts +7 -7
  381. package/dist/types/components/business-form/business-form-schema.d.ts +102 -102
  382. package/dist/types/components/business-form/business-form-stepped.d.ts +23 -23
  383. package/dist/types/components/business-form/business-form.d.ts +11 -11
  384. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +6 -6
  385. package/dist/types/components/business-form/business-owners/business-owners.d.ts +22 -22
  386. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +13 -13
  387. package/dist/types/components/business-form/business-representative/business-representative.d.ts +8 -8
  388. package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +12 -12
  389. package/dist/types/components/business-form/legal-address-form/legal-address-form.d.ts +7 -7
  390. package/dist/types/components/business-list/business-list.d.ts +27 -27
  391. package/dist/types/components/business-list/business-list.stories.d.ts +3 -3
  392. package/dist/types/components/card-form/card-form.d.ts +68 -0
  393. package/dist/types/components/details/details.d.ts +2 -2
  394. package/dist/types/components/details/utils.d.ts +10 -10
  395. package/dist/types/components/form/form-control-datepart.d.ts +16 -16
  396. package/dist/types/components/form/form-control-monetary.d.ts +14 -14
  397. package/dist/types/components/form/form-control-number-masked.d.ts +16 -16
  398. package/dist/types/components/form/form-control-number.d.ts +15 -15
  399. package/dist/types/components/form/form-control-select.d.ts +17 -17
  400. package/dist/types/components/form/form-control-text.d.ts +15 -15
  401. package/dist/types/components/form/form.d.ts +18 -18
  402. package/dist/types/components/gross-payment-chart/chart-utils.d.ts +39 -39
  403. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +16 -16
  404. package/dist/types/components/pagination-menu/pagination-menu.d.ts +5 -5
  405. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +14 -14
  406. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +3 -3
  407. package/dist/types/components/payment-details/payment-details.d.ts +9 -9
  408. package/dist/types/components/payment-form/payment-form.d.ts +22 -22
  409. package/dist/types/components/payment-form/payment-method-selector.d.ts +6 -6
  410. package/dist/types/components/payment-form/tokenize.d.ts +3 -3
  411. package/dist/types/components/payment-method-form/message-event-types.d.ts +14 -14
  412. package/dist/types/components/payment-method-form/payment-method-form.d.ts +21 -22
  413. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +40 -40
  414. package/dist/types/components/payment-method-form/theme.d.ts +45 -45
  415. package/dist/types/components/payments-list/payments-list.d.ts +14 -14
  416. package/dist/types/components/payout-details/payout-details.d.ts +9 -9
  417. package/dist/types/components/payouts-list/payouts-list.d.ts +15 -15
  418. package/dist/types/components/proceeds-list/proceeds-list.d.ts +15 -15
  419. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +4 -4
  420. package/dist/types/components/refund-form/refund-form-schema.d.ts +4 -4
  421. package/dist/types/components/refund-form/refund-form.d.ts +54 -54
  422. package/dist/types/components/refund-form/refund-form.stories.d.ts +21 -21
  423. package/dist/types/components/select-input/select-input.d.ts +14 -14
  424. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +3 -3
  425. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +2 -2
  426. package/dist/types/components/subaccount-details/subaccount-details.d.ts +13 -13
  427. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +3 -3
  428. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +2 -2
  429. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +2 -2
  430. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +2 -2
  431. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +2 -2
  432. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +14 -14
  433. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +4 -4
  434. package/dist/types/components/table/exported-parts.d.ts +1 -0
  435. package/dist/types/components/table/table.d.ts +19 -19
  436. package/dist/types/components/text-input/text-input.d.ts +10 -10
  437. package/dist/types/components.d.ts +228 -15
  438. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/config.d.ts +11 -0
  439. package/dist/types/stencil-public-runtime.d.ts +32 -3
  440. package/dist/types/utils/country-options.d.ts +2 -2
  441. package/dist/types/utils/phone-masks.d.ts +1 -1
  442. package/dist/webcomponents/p-04817850.entry.js +1 -0
  443. package/dist/webcomponents/{p-b157f6ae.js → p-04c7f8f8.js} +1 -1
  444. package/dist/webcomponents/p-0a351e24.entry.js +1 -0
  445. package/dist/webcomponents/{p-ed8c9b88.entry.js → p-0ad353cc.entry.js} +1 -1
  446. package/dist/webcomponents/{p-f0051cff.entry.js → p-0f5206f0.entry.js} +1 -1
  447. package/dist/{components/subaccount-terms-details.js → webcomponents/p-173fb8ef.entry.js} +1 -38
  448. package/dist/webcomponents/p-1e2a98bf.js +1 -0
  449. package/dist/webcomponents/{p-86c23e1e.js → p-210677e3.js} +1 -1
  450. package/dist/webcomponents/p-22c2a11e.entry.js +1 -0
  451. package/dist/webcomponents/p-2b6c9c4f.js +1 -0
  452. package/dist/webcomponents/p-2cab231e.entry.js +1 -0
  453. package/dist/webcomponents/p-2ea68b03.entry.js +1 -0
  454. package/dist/{components/additional-questions-details2.js → webcomponents/p-33e74da7.entry.js} +1 -35
  455. package/dist/webcomponents/p-34430db2.entry.js +1 -0
  456. package/dist/webcomponents/p-377303af.entry.js +1 -0
  457. package/dist/webcomponents/{p-988191bf.js → p-3bef762a.js} +1 -1
  458. package/dist/webcomponents/p-42bc8e53.entry.js +1 -0
  459. package/dist/webcomponents/p-439a79c7.entry.js +1 -0
  460. package/dist/webcomponents/p-57efe345.entry.js +1 -0
  461. package/dist/webcomponents/p-59ecc2d7.entry.js +1 -0
  462. package/dist/webcomponents/p-650eb614.entry.js +1 -0
  463. package/dist/webcomponents/p-68427454.entry.js +1 -0
  464. package/dist/webcomponents/{p-59860ac8.js → p-78baff54.js} +1 -1
  465. package/dist/webcomponents/p-7d922421.entry.js +1 -0
  466. package/dist/webcomponents/{p-311250e2.entry.js → p-8302a5e2.entry.js} +1 -1
  467. package/dist/webcomponents/p-862f38cc.entry.js +1 -0
  468. package/dist/webcomponents/p-93579716.js +1 -0
  469. package/dist/webcomponents/p-b2dc938f.entry.js +1 -0
  470. package/dist/webcomponents/p-c8099443.entry.js +1 -0
  471. package/dist/webcomponents/p-c8916484.entry.js +1 -0
  472. package/dist/webcomponents/{p-c0f9f6a8.entry.js → p-cb5352a3.entry.js} +2 -2
  473. package/dist/webcomponents/p-cf656598.entry.js +1 -0
  474. package/dist/webcomponents/p-d84cd3a5.entry.js +1 -0
  475. package/dist/webcomponents/p-da00d9bf.js +2 -0
  476. package/dist/webcomponents/p-dd4e8fa1.entry.js +1 -0
  477. package/dist/webcomponents/p-df8f6a0f.entry.js +1 -0
  478. package/dist/webcomponents/p-e8f41c84.entry.js +1 -0
  479. package/dist/webcomponents/p-e9589e45.entry.js +1 -0
  480. package/dist/webcomponents/webcomponents.css +1 -1
  481. package/dist/webcomponents/webcomponents.esm.js +1 -1
  482. package/package.json +18 -41
  483. package/dist/cjs/Payout-f8240e9c.js +0 -183
  484. package/dist/cjs/SubAccount-f47c8522.js +0 -107
  485. package/dist/cjs/business-form-schema-fe831c30.js +0 -148
  486. package/dist/cjs/config-a156df17.js +0 -15
  487. package/dist/cjs/helpers-c505d861.js +0 -26
  488. package/dist/cjs/state-options-83b52cd1.js +0 -246
  489. package/dist/cjs/utils-a47b2e73.js +0 -35
  490. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +0 -132
  491. package/dist/collection/components/bank-account-form/example.js +0 -54
  492. package/dist/collection/components/billing-form/billing-form.stories.js +0 -61
  493. package/dist/collection/components/billing-form/example.js +0 -26
  494. package/dist/collection/components/business-details/business-details.stories.js +0 -23
  495. package/dist/collection/components/business-form/business-form-example.js +0 -12
  496. package/dist/collection/components/business-form/business-form-stepped-example.js +0 -12
  497. package/dist/collection/components/business-form/business-form-stepped.stories.js +0 -132
  498. package/dist/collection/components/business-form/business-form.stories.js +0 -127
  499. package/dist/collection/components/card-form/card-form.stories.js +0 -137
  500. package/dist/collection/components/card-form/example.js +0 -59
  501. package/dist/collection/components/gross-payment-chart/example.js +0 -12
  502. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +0 -22
  503. package/dist/collection/components/payment-details/example.js +0 -12
  504. package/dist/collection/components/payment-details/payment-details.stories.js +0 -47
  505. package/dist/collection/components/payment-form/example.js +0 -23
  506. package/dist/collection/components/payment-form/payment-form.stories.js +0 -129
  507. package/dist/collection/components/payments-list/example.js +0 -12
  508. package/dist/collection/components/payments-list/payments-list.stories.js +0 -78
  509. package/dist/collection/components/payout-details/example.js +0 -12
  510. package/dist/collection/components/payout-details/payout-details.stories.js +0 -47
  511. package/dist/collection/components/payouts-list/example.js +0 -12
  512. package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -69
  513. package/dist/components/Payout.js +0 -179
  514. package/dist/components/SubAccount.js +0 -105
  515. package/dist/components/additional-questions.js +0 -49
  516. package/dist/components/billing-form.js +0 -112
  517. package/dist/components/business-address-form.js +0 -69
  518. package/dist/components/business-generic-info.js +0 -211
  519. package/dist/components/business-owners.js +0 -115
  520. package/dist/components/business-representative.js +0 -89
  521. package/dist/components/config.js +0 -13
  522. package/dist/components/details.js +0 -37
  523. package/dist/components/form-control-datepart2.js +0 -95
  524. package/dist/components/form-control-monetary2.js +0 -80
  525. package/dist/components/form-control-number-masked2.js +0 -79
  526. package/dist/components/form-control-number2.js +0 -68
  527. package/dist/components/form-control-select2.js +0 -64
  528. package/dist/components/form-control-text2.js +0 -68
  529. package/dist/components/generic-info-details2.js +0 -36
  530. package/dist/components/helpers.js +0 -24
  531. package/dist/components/justifi-bank-account-form.js +0 -95
  532. package/dist/components/justifi-business-details.js +0 -129
  533. package/dist/components/justifi-business-form-stepped.js +0 -227
  534. package/dist/components/justifi-business-form.js +0 -175
  535. package/dist/components/justifi-business-list.js +0 -192
  536. package/dist/components/justifi-card-form.js +0 -97
  537. package/dist/components/justifi-payment-balance-transactions.js +0 -122
  538. package/dist/components/justifi-payment-form.js +0 -168
  539. package/dist/components/justifi-payments-list.js +0 -149
  540. package/dist/components/justifi-payout-details.js +0 -95
  541. package/dist/components/justifi-payouts-list.js +0 -171
  542. package/dist/components/justifi-proceeds-list.js +0 -194
  543. package/dist/components/justifi-refund-form.js +0 -138
  544. package/dist/components/justifi-subaccount-details.js +0 -130
  545. package/dist/components/justifi-subaccounts-list.js +0 -137
  546. package/dist/components/legal-address-details2.js +0 -35
  547. package/dist/components/legal-address-form.js +0 -267
  548. package/dist/components/owner-details2.js +0 -38
  549. package/dist/components/pagination-menu2.js +0 -42
  550. package/dist/components/payment-method-selector.js +0 -43
  551. package/dist/components/representative-details2.js +0 -36
  552. package/dist/components/select-input2.js +0 -49
  553. package/dist/components/state-options.js +0 -244
  554. package/dist/components/subaccount-account-details2.js +0 -37
  555. package/dist/components/subaccount-bank-details.js +0 -38
  556. package/dist/components/subaccount-merchant-details2.js +0 -36
  557. package/dist/components/subaccount-owners-details2.js +0 -36
  558. package/dist/components/subaccount-representative-details2.js +0 -36
  559. package/dist/components/table.js +0 -83
  560. package/dist/components/text-input2.js +0 -47
  561. package/dist/components/utils.js +0 -27
  562. package/dist/esm/Payout-586f06a3.js +0 -179
  563. package/dist/esm/SubAccount-128190e9.js +0 -105
  564. package/dist/esm/business-form-schema-30a3eadd.js +0 -144
  565. package/dist/esm/config-ceb0f902.js +0 -13
  566. package/dist/esm/helpers-1d5ecdc8.js +0 -24
  567. package/dist/esm/state-options-ece00aa2.js +0 -244
  568. package/dist/esm/utils-d19c2778.js +0 -27
  569. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -23
  570. package/dist/types/components/billing-form/billing-form.stories.d.ts +0 -8
  571. package/dist/types/components/business-details/business-details.stories.d.ts +0 -7
  572. package/dist/types/components/business-form/business-form-stepped.stories.d.ts +0 -27
  573. package/dist/types/components/business-form/business-form.stories.d.ts +0 -27
  574. package/dist/types/components/card-form/card-form.stories.d.ts +0 -17
  575. package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +0 -7
  576. package/dist/types/components/payment-details/payment-details.stories.d.ts +0 -8
  577. package/dist/types/components/payment-form/payment-form.stories.d.ts +0 -8
  578. package/dist/types/components/payments-list/payments-list.stories.d.ts +0 -10
  579. package/dist/types/components/payout-details/payout-details.stories.d.ts +0 -8
  580. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +0 -9
  581. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -11
  582. package/dist/webcomponents/p-14f7229e.entry.js +0 -1
  583. package/dist/webcomponents/p-2c2cde2d.js +0 -1
  584. package/dist/webcomponents/p-3501b0e8.entry.js +0 -1
  585. package/dist/webcomponents/p-3ee831ac.entry.js +0 -1
  586. package/dist/webcomponents/p-4214dbb8.entry.js +0 -1
  587. package/dist/webcomponents/p-46d5f717.entry.js +0 -1
  588. package/dist/webcomponents/p-4852ce94.entry.js +0 -1
  589. package/dist/webcomponents/p-4ec00b55.entry.js +0 -1
  590. package/dist/webcomponents/p-4fb653a8.entry.js +0 -1
  591. package/dist/webcomponents/p-586c8a4f.entry.js +0 -1
  592. package/dist/webcomponents/p-5e6726a8.entry.js +0 -1
  593. package/dist/webcomponents/p-77a8bcea.entry.js +0 -1
  594. package/dist/webcomponents/p-8f37e3ee.js +0 -1
  595. package/dist/webcomponents/p-91757d9f.entry.js +0 -1
  596. package/dist/webcomponents/p-9e012e33.entry.js +0 -1
  597. package/dist/webcomponents/p-a1ef6b4c.entry.js +0 -1
  598. package/dist/webcomponents/p-ac8ee442.entry.js +0 -1
  599. package/dist/webcomponents/p-af771964.entry.js +0 -1
  600. package/dist/webcomponents/p-b60a58f4.entry.js +0 -1
  601. package/dist/webcomponents/p-b86f7c95.entry.js +0 -1
  602. package/dist/webcomponents/p-bb70152e.entry.js +0 -1
  603. package/dist/webcomponents/p-bc91044c.entry.js +0 -1
  604. package/dist/webcomponents/p-c29c587f.entry.js +0 -1
  605. package/dist/webcomponents/p-cbb60191.js +0 -2
  606. package/dist/webcomponents/p-d0e4eca5.entry.js +0 -1
  607. package/dist/webcomponents/p-d4b66d74.entry.js +0 -1
  608. package/dist/webcomponents/p-e7ef2455.entry.js +0 -1
  609. package/dist/webcomponents/p-f2f0aa6e.entry.js +0 -1
  610. package/loader/index.es2017.js +0 -3
  611. /package/{loader → dist/loader}/package.json +0 -0
  612. /package/dist/{components → module}/additional-questions-details.js +0 -0
  613. /package/dist/{components → module}/form-control-datepart.js +0 -0
  614. /package/dist/{components → module}/form-control-monetary.js +0 -0
  615. /package/dist/{components → module}/form-control-number-masked.js +0 -0
  616. /package/dist/{components → module}/form-control-number.js +0 -0
  617. /package/dist/{components → module}/form-control-select.js +0 -0
  618. /package/dist/{components → module}/form-control-text.js +0 -0
  619. /package/dist/{components → module}/generic-info-details.js +0 -0
  620. /package/dist/{components → module}/index.d.ts +0 -0
  621. /package/dist/{components → module}/index.js +0 -0
  622. /package/dist/{components → module}/justifi-additional-questions.js +0 -0
  623. /package/dist/{components → module}/justifi-billing-form.js +0 -0
  624. /package/dist/{components → module}/justifi-business-address-form.js +0 -0
  625. /package/dist/{components → module}/justifi-business-generic-info.js +0 -0
  626. /package/dist/{components → module}/justifi-business-owners.js +0 -0
  627. /package/dist/{components → module}/justifi-business-representative.js +0 -0
  628. /package/dist/{components → module}/justifi-details.js +0 -0
  629. /package/dist/{components → module}/justifi-legal-address-form.js +0 -0
  630. /package/dist/{components → module}/justifi-payment-method-form.js +0 -0
  631. /package/dist/{components → module}/justifi-payment-method-selector.js +0 -0
  632. /package/dist/{components → module}/justifi-table.js +0 -0
  633. /package/dist/{components → module}/legal-address-details.js +0 -0
  634. /package/dist/{components → module}/owner-details.js +0 -0
  635. /package/dist/{components → module}/pagination-menu.js +0 -0
  636. /package/dist/{components → module}/representative-details.js +0 -0
  637. /package/dist/{components → module}/select-input.js +0 -0
  638. /package/dist/{components → module}/subaccount-account-details.js +0 -0
  639. /package/dist/{components → module}/subaccount-merchant-details.js +0 -0
  640. /package/dist/{components → module}/subaccount-owners-details.js +0 -0
  641. /package/dist/{components → module}/subaccount-representative-details.js +0 -0
  642. /package/dist/{components → module}/text-input.js +0 -0
  643. /package/dist/webcomponents/{p-0d5d02d7.js → p-56f6ce4c.js} +0 -0
  644. /package/dist/webcomponents/{p-e12ab547.js → p-71679a41.js} +0 -0
  645. /package/dist/webcomponents/{p-47bc59b5.js → p-8e2a88a8.js} +0 -0
  646. /package/dist/webcomponents/{p-d6b5793d.js → p-9a6e4749.js} +0 -0
  647. /package/dist/webcomponents/{p-526cb161.js → p-9b4b91ba.js} +0 -0
  648. /package/dist/webcomponents/{p-9b6dcac5.js → p-ae263544.js} +0 -0
  649. /package/dist/webcomponents/{p-7d58db66.js → p-bedada09.js} +0 -0
@@ -1,19 +1,19 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { PHONE_MASKS } from "../../../utils/phone-masks";
3
3
  class BusinessOwner {
4
- constructor() {
5
- this.name = '';
6
- this.title = '';
7
- this.email = '';
8
- this.phone = '';
9
- this.dob_day = '';
10
- this.dob_month = '';
11
- this.dob_year = '';
12
- this.identification_number = '';
13
- this.is_owner = true;
14
- this.metadata = {};
15
- this.address = {};
16
- }
4
+ constructor() {
5
+ this.name = '';
6
+ this.title = '';
7
+ this.email = '';
8
+ this.phone = '';
9
+ this.dob_day = '';
10
+ this.dob_month = '';
11
+ this.dob_year = '';
12
+ this.identification_number = '';
13
+ this.is_owner = true;
14
+ this.metadata = {};
15
+ this.address = {};
16
+ }
17
17
  }
18
18
  /**
19
19
  * @exportedPart label: Label for inputs
@@ -21,109 +21,109 @@ class BusinessOwner {
21
21
  * @exportedPart input-invalid: Invalid state for inputfs
22
22
  */
23
23
  export class BusinessOwners {
24
- constructor() {
25
- this.formController = undefined;
26
- this.isEditing = undefined;
27
- this.errors = [];
28
- this.owners = [];
29
- this.inputHandler = this.inputHandler.bind(this);
30
- this.addOwner = this.addOwner.bind(this);
31
- this.removeOwner = this.removeOwner.bind(this);
32
- }
33
- componentDidLoad() {
34
- this.formController.errors.subscribe(errors => {
35
- this.errors = (errors === null || errors === void 0 ? void 0 : errors.owners) || [];
36
- });
37
- this.formController.values.subscribe(values => (this.owners = (values === null || values === void 0 ? void 0 : values.owners) || []));
38
- }
39
- inputHandler(name, value, index) {
40
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.map((owner, i) => {
41
- if (i === index) {
42
- return Object.assign(Object.assign({}, owner), { [name]: value });
43
- }
44
- return owner;
45
- }) }));
46
- }
47
- addressInputHandler(name, value, index) {
48
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.map((owner, i) => {
49
- if (i === index) {
50
- return Object.assign(Object.assign({}, owner), { address: Object.assign(Object.assign({}, owner.address), { [name]: value }) });
51
- }
52
- return owner;
53
- }) }));
54
- }
55
- addOwner(event) {
56
- event.preventDefault();
57
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: [...this.owners, Object.assign({}, new BusinessOwner())] }));
58
- }
59
- removeOwner(event, index) {
60
- event.preventDefault();
61
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.filter((_owner, i) => i !== index) }));
62
- }
63
- render() {
64
- const ownersDefaultValue = this.formController.values.getValue().owners || [];
65
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Owners"), h("hr", null), this.owners.map((_owner, index) => {
66
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
67
- return (h("div", { class: "row gx-2 gy-2 mb-4" }, h("div", { class: "col-12" }, h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: (_a = ownersDefaultValue[index]) === null || _a === void 0 ? void 0 : _a.name, error: (_b = this.errors[index]) === null || _b === void 0 ? void 0 : _b.name, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "title", label: "Title", defaultValue: (_c = ownersDefaultValue[index]) === null || _c === void 0 ? void 0 : _c.title, error: (_d = this.errors[index]) === null || _d === void 0 ? void 0 : _d.title, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email", defaultValue: (_e = ownersDefaultValue[index]) === null || _e === void 0 ? void 0 : _e.email, error: (_f = this.errors[index]) === null || _f === void 0 ? void 0 : _f.email, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone", defaultValue: (_g = ownersDefaultValue[index]) === null || _g === void 0 ? void 0 : _g.phone, error: (_h = this.errors[index]) === null || _h === void 0 ? void 0 : _h.phone, inputHandler: (name, value) => this.inputHandler(name, value, index), mask: PHONE_MASKS.US, disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Date of Birth - Day", defaultValue: (_j = ownersDefaultValue[index]) === null || _j === void 0 ? void 0 : _j.dob_day, error: (_k = this.errors[index]) === null || _k === void 0 ? void 0 : _k.dob_day, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "day", disabled: this.isEditing })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Date of Birth - Month", defaultValue: (_l = ownersDefaultValue[index]) === null || _l === void 0 ? void 0 : _l.dob_month, error: (_m = this.errors[index]) === null || _m === void 0 ? void 0 : _m.dob_month, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "month", disabled: this.isEditing })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Date of Birth - Year", defaultValue: (_o = ownersDefaultValue[index]) === null || _o === void 0 ? void 0 : _o.dob_year, error: (_p = this.errors[index]) === null || _p === void 0 ? void 0 : _p.dob_year, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "year", disabled: this.isEditing }))), h("div", { class: "mb-3" }, h("form-control-number", { name: "identification_number", label: "Identification Number", defaultValue: (_q = ownersDefaultValue[index]) === null || _q === void 0 ? void 0 : _q.identification_number, error: (_r = this.errors[index]) === null || _r === void 0 ? void 0 : _r.identification_number, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "grid gap-3" }, h("legend", { class: "mb-3" }, "Owner Address:"), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "line1", label: "Street Address", defaultValue: (_t = (_s = ownersDefaultValue[index]) === null || _s === void 0 ? void 0 : _s.address) === null || _t === void 0 ? void 0 : _t.line1, error: (_v = (_u = this.errors[index]) === null || _u === void 0 ? void 0 : _u.address) === null || _v === void 0 ? void 0 : _v.line1, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "city", label: "City", defaultValue: (_x = (_w = ownersDefaultValue[index]) === null || _w === void 0 ? void 0 : _w.address) === null || _x === void 0 ? void 0 : _x.city, error: (_z = (_y = this.errors[index]) === null || _y === void 0 ? void 0 : _y.address) === null || _z === void 0 ? void 0 : _z.city, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "state", label: "State", defaultValue: (_1 = (_0 = ownersDefaultValue[index]) === null || _0 === void 0 ? void 0 : _0.address) === null || _1 === void 0 ? void 0 : _1.state, error: (_3 = (_2 = this.errors[index]) === null || _2 === void 0 ? void 0 : _2.address) === null || _3 === void 0 ? void 0 : _3.state, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-number", { name: "postal_code", label: "Postal Code", defaultValue: (_5 = (_4 = ownersDefaultValue[index]) === null || _4 === void 0 ? void 0 : _4.address) === null || _5 === void 0 ? void 0 : _5.postal_code, error: (_7 = (_6 = this.errors[index]) === null || _6 === void 0 ? void 0 : _6.address) === null || _7 === void 0 ? void 0 : _7.postal_code, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })))), h("button", { type: "button", class: "btn btn-outline-danger", onClick: event => this.removeOwner(event, index) }, "Remove owner"))));
68
- }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("button", { type: "button", class: "btn btn-outline-primary", onClick: event => this.addOwner(event) }, "Add an owner"))))));
69
- }
70
- static get is() { return "justifi-business-owners"; }
71
- static get originalStyleUrls() {
72
- return {
73
- "$": ["business-owners.scss"]
74
- };
75
- }
76
- static get styleUrls() {
77
- return {
78
- "$": ["business-owners.css"]
79
- };
80
- }
81
- static get properties() {
82
- return {
83
- "formController": {
84
- "type": "unknown",
85
- "mutable": false,
86
- "complexType": {
87
- "original": "FormController",
88
- "resolved": "FormController",
89
- "references": {
90
- "FormController": {
91
- "location": "import",
92
- "path": "../../form/form",
93
- "id": "src/components/form/form.ts::FormController"
24
+ constructor() {
25
+ this.formController = undefined;
26
+ this.isEditing = undefined;
27
+ this.errors = [];
28
+ this.owners = [];
29
+ this.inputHandler = this.inputHandler.bind(this);
30
+ this.addOwner = this.addOwner.bind(this);
31
+ this.removeOwner = this.removeOwner.bind(this);
32
+ }
33
+ componentDidLoad() {
34
+ this.formController.errors.subscribe(errors => {
35
+ this.errors = (errors === null || errors === void 0 ? void 0 : errors.owners) || [];
36
+ });
37
+ this.formController.values.subscribe(values => (this.owners = (values === null || values === void 0 ? void 0 : values.owners) || []));
38
+ }
39
+ inputHandler(name, value, index) {
40
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.map((owner, i) => {
41
+ if (i === index) {
42
+ return Object.assign(Object.assign({}, owner), { [name]: value });
43
+ }
44
+ return owner;
45
+ }) }));
46
+ }
47
+ addressInputHandler(name, value, index) {
48
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.map((owner, i) => {
49
+ if (i === index) {
50
+ return Object.assign(Object.assign({}, owner), { address: Object.assign(Object.assign({}, owner.address), { [name]: value }) });
51
+ }
52
+ return owner;
53
+ }) }));
54
+ }
55
+ addOwner(event) {
56
+ event.preventDefault();
57
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: [...this.owners, Object.assign({}, new BusinessOwner())] }));
58
+ }
59
+ removeOwner(event, index) {
60
+ event.preventDefault();
61
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { owners: this.owners.filter((_owner, i) => i !== index) }));
62
+ }
63
+ render() {
64
+ const ownersDefaultValue = this.formController.values.getValue().owners || [];
65
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Owners"), h("hr", null), this.owners.map((_owner, index) => {
66
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
67
+ return (h("div", { class: "row gx-2 gy-2 mb-4" }, h("div", { class: "col-12" }, h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: (_a = ownersDefaultValue[index]) === null || _a === void 0 ? void 0 : _a.name, error: (_b = this.errors[index]) === null || _b === void 0 ? void 0 : _b.name, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "title", label: "Title", defaultValue: (_c = ownersDefaultValue[index]) === null || _c === void 0 ? void 0 : _c.title, error: (_d = this.errors[index]) === null || _d === void 0 ? void 0 : _d.title, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email", defaultValue: (_e = ownersDefaultValue[index]) === null || _e === void 0 ? void 0 : _e.email, error: (_f = this.errors[index]) === null || _f === void 0 ? void 0 : _f.email, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone", defaultValue: (_g = ownersDefaultValue[index]) === null || _g === void 0 ? void 0 : _g.phone, error: (_h = this.errors[index]) === null || _h === void 0 ? void 0 : _h.phone, inputHandler: (name, value) => this.inputHandler(name, value, index), mask: PHONE_MASKS.US, disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Date of Birth - Day", defaultValue: (_j = ownersDefaultValue[index]) === null || _j === void 0 ? void 0 : _j.dob_day, error: (_k = this.errors[index]) === null || _k === void 0 ? void 0 : _k.dob_day, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "day", disabled: this.isEditing })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Date of Birth - Month", defaultValue: (_l = ownersDefaultValue[index]) === null || _l === void 0 ? void 0 : _l.dob_month, error: (_m = this.errors[index]) === null || _m === void 0 ? void 0 : _m.dob_month, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "month", disabled: this.isEditing })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Date of Birth - Year", defaultValue: (_o = ownersDefaultValue[index]) === null || _o === void 0 ? void 0 : _o.dob_year, error: (_p = this.errors[index]) === null || _p === void 0 ? void 0 : _p.dob_year, inputHandler: (name, value) => this.inputHandler(name, value, index), type: "year", disabled: this.isEditing }))), h("div", { class: "mb-3" }, h("form-control-number", { name: "identification_number", label: "Identification Number", defaultValue: (_q = ownersDefaultValue[index]) === null || _q === void 0 ? void 0 : _q.identification_number, error: (_r = this.errors[index]) === null || _r === void 0 ? void 0 : _r.identification_number, inputHandler: (name, value) => this.inputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "grid gap-3" }, h("legend", { class: "mb-3" }, "Owner Address:"), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "line1", label: "Street Address", defaultValue: (_t = (_s = ownersDefaultValue[index]) === null || _s === void 0 ? void 0 : _s.address) === null || _t === void 0 ? void 0 : _t.line1, error: (_v = (_u = this.errors[index]) === null || _u === void 0 ? void 0 : _u.address) === null || _v === void 0 ? void 0 : _v.line1, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "city", label: "City", defaultValue: (_x = (_w = ownersDefaultValue[index]) === null || _w === void 0 ? void 0 : _w.address) === null || _x === void 0 ? void 0 : _x.city, error: (_z = (_y = this.errors[index]) === null || _y === void 0 ? void 0 : _y.address) === null || _z === void 0 ? void 0 : _z.city, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing }))), h("div", { class: "row mb-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "state", label: "State", defaultValue: (_1 = (_0 = ownersDefaultValue[index]) === null || _0 === void 0 ? void 0 : _0.address) === null || _1 === void 0 ? void 0 : _1.state, error: (_3 = (_2 = this.errors[index]) === null || _2 === void 0 ? void 0 : _2.address) === null || _3 === void 0 ? void 0 : _3.state, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })), h("div", { class: "col-12 col-md-6" }, h("form-control-number", { name: "postal_code", label: "Postal Code", defaultValue: (_5 = (_4 = ownersDefaultValue[index]) === null || _4 === void 0 ? void 0 : _4.address) === null || _5 === void 0 ? void 0 : _5.postal_code, error: (_7 = (_6 = this.errors[index]) === null || _6 === void 0 ? void 0 : _6.address) === null || _7 === void 0 ? void 0 : _7.postal_code, inputHandler: (name, value) => this.addressInputHandler(name, value, index), disabled: this.isEditing })))), h("button", { type: "button", class: "btn btn-outline-danger", onClick: event => this.removeOwner(event, index) }, "Remove owner"))));
68
+ }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("button", { type: "button", class: "btn btn-outline-primary", onClick: event => this.addOwner(event) }, "Add an owner"))))));
69
+ }
70
+ static get is() { return "justifi-business-owners"; }
71
+ static get originalStyleUrls() {
72
+ return {
73
+ "$": ["business-owners.scss"]
74
+ };
75
+ }
76
+ static get styleUrls() {
77
+ return {
78
+ "$": ["business-owners.css"]
79
+ };
80
+ }
81
+ static get properties() {
82
+ return {
83
+ "formController": {
84
+ "type": "unknown",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "FormController",
88
+ "resolved": "FormController",
89
+ "references": {
90
+ "FormController": {
91
+ "location": "import",
92
+ "path": "../../form/form",
93
+ "id": "src/components/form/form.ts::FormController"
94
+ }
95
+ }
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": ""
102
+ }
103
+ },
104
+ "isEditing": {
105
+ "type": "boolean",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "boolean",
109
+ "resolved": "boolean",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "attribute": "is-editing",
119
+ "reflect": false
94
120
  }
95
- }
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": ""
102
- }
103
- },
104
- "isEditing": {
105
- "type": "boolean",
106
- "mutable": false,
107
- "complexType": {
108
- "original": "boolean",
109
- "resolved": "boolean",
110
- "references": {}
111
- },
112
- "required": false,
113
- "optional": false,
114
- "docs": {
115
- "tags": [],
116
- "text": ""
117
- },
118
- "attribute": "is-editing",
119
- "reflect": false
120
- }
121
- };
122
- }
123
- static get states() {
124
- return {
125
- "errors": {},
126
- "owners": {}
127
- };
128
- }
121
+ };
122
+ }
123
+ static get states() {
124
+ return {
125
+ "errors": {},
126
+ "owners": {}
127
+ };
128
+ }
129
129
  }
@@ -93,6 +93,7 @@
93
93
  --bs-link-hover-color: #0a58ca;
94
94
  --bs-link-hover-color-rgb: 10, 88, 202;
95
95
  --bs-code-color: #d63384;
96
+ --bs-highlight-color: #212529;
96
97
  --bs-highlight-bg: #fff3cd;
97
98
  --bs-border-width: 1px;
98
99
  --bs-border-style: solid;
@@ -164,6 +165,8 @@
164
165
  --bs-link-color-rgb: 110, 168, 254;
165
166
  --bs-link-hover-color-rgb: 139, 185, 254;
166
167
  --bs-code-color: #e685b5;
168
+ --bs-highlight-color: #dee2e6;
169
+ --bs-highlight-bg: #664d03;
167
170
  --bs-border-color: #495057;
168
171
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
169
172
  --bs-form-valid-color: #75b798;
@@ -712,6 +715,7 @@ small {
712
715
 
713
716
  mark {
714
717
  padding: 0.1875em;
718
+ color: var(--bs-highlight-color);
715
719
  background-color: var(--bs-highlight-bg);
716
720
  }
717
721
 
@@ -1021,7 +1025,7 @@ progress {
1021
1025
 
1022
1026
  .row-cols-3 > * {
1023
1027
  flex: 0 0 auto;
1024
- width: 33.3333333333%;
1028
+ width: 33.33333333%;
1025
1029
  }
1026
1030
 
1027
1031
  .row-cols-4 > * {
@@ -1036,7 +1040,7 @@ progress {
1036
1040
 
1037
1041
  .row-cols-6 > * {
1038
1042
  flex: 0 0 auto;
1039
- width: 16.6666666667%;
1043
+ width: 16.66666667%;
1040
1044
  }
1041
1045
 
1042
1046
  .col-auto {
@@ -1226,7 +1230,7 @@ progress {
1226
1230
  }
1227
1231
  .row-cols-sm-3 > * {
1228
1232
  flex: 0 0 auto;
1229
- width: 33.3333333333%;
1233
+ width: 33.33333333%;
1230
1234
  }
1231
1235
  .row-cols-sm-4 > * {
1232
1236
  flex: 0 0 auto;
@@ -1238,7 +1242,7 @@ progress {
1238
1242
  }
1239
1243
  .row-cols-sm-6 > * {
1240
1244
  flex: 0 0 auto;
1241
- width: 16.6666666667%;
1245
+ width: 16.66666667%;
1242
1246
  }
1243
1247
  .col-sm-auto {
1244
1248
  flex: 0 0 auto;
@@ -1395,7 +1399,7 @@ progress {
1395
1399
  }
1396
1400
  .row-cols-md-3 > * {
1397
1401
  flex: 0 0 auto;
1398
- width: 33.3333333333%;
1402
+ width: 33.33333333%;
1399
1403
  }
1400
1404
  .row-cols-md-4 > * {
1401
1405
  flex: 0 0 auto;
@@ -1407,7 +1411,7 @@ progress {
1407
1411
  }
1408
1412
  .row-cols-md-6 > * {
1409
1413
  flex: 0 0 auto;
1410
- width: 16.6666666667%;
1414
+ width: 16.66666667%;
1411
1415
  }
1412
1416
  .col-md-auto {
1413
1417
  flex: 0 0 auto;
@@ -1564,7 +1568,7 @@ progress {
1564
1568
  }
1565
1569
  .row-cols-lg-3 > * {
1566
1570
  flex: 0 0 auto;
1567
- width: 33.3333333333%;
1571
+ width: 33.33333333%;
1568
1572
  }
1569
1573
  .row-cols-lg-4 > * {
1570
1574
  flex: 0 0 auto;
@@ -1576,7 +1580,7 @@ progress {
1576
1580
  }
1577
1581
  .row-cols-lg-6 > * {
1578
1582
  flex: 0 0 auto;
1579
- width: 16.6666666667%;
1583
+ width: 16.66666667%;
1580
1584
  }
1581
1585
  .col-lg-auto {
1582
1586
  flex: 0 0 auto;
@@ -1733,7 +1737,7 @@ progress {
1733
1737
  }
1734
1738
  .row-cols-xl-3 > * {
1735
1739
  flex: 0 0 auto;
1736
- width: 33.3333333333%;
1740
+ width: 33.33333333%;
1737
1741
  }
1738
1742
  .row-cols-xl-4 > * {
1739
1743
  flex: 0 0 auto;
@@ -1745,7 +1749,7 @@ progress {
1745
1749
  }
1746
1750
  .row-cols-xl-6 > * {
1747
1751
  flex: 0 0 auto;
1748
- width: 16.6666666667%;
1752
+ width: 16.66666667%;
1749
1753
  }
1750
1754
  .col-xl-auto {
1751
1755
  flex: 0 0 auto;
@@ -1902,7 +1906,7 @@ progress {
1902
1906
  }
1903
1907
  .row-cols-xxl-3 > * {
1904
1908
  flex: 0 0 auto;
1905
- width: 33.3333333333%;
1909
+ width: 33.33333333%;
1906
1910
  }
1907
1911
  .row-cols-xxl-4 > * {
1908
1912
  flex: 0 0 auto;
@@ -1914,7 +1918,7 @@ progress {
1914
1918
  }
1915
1919
  .row-cols-xxl-6 > * {
1916
1920
  flex: 0 0 auto;
1917
- width: 16.6666666667%;
1921
+ width: 16.66666667%;
1918
1922
  }
1919
1923
  .col-xxl-auto {
1920
1924
  flex: 0 0 auto;
@@ -1,70 +1,70 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { PHONE_MASKS } from "../../../utils/phone-masks";
3
3
  export class BusinessRepresentative {
4
- constructor() {
5
- this.formController = undefined;
6
- this.errors = {};
7
- this.representative = {};
8
- this.inputHandler = this.inputHandler.bind(this);
9
- this.onAddressFormUpdate = this.onAddressFormUpdate.bind(this);
10
- }
11
- componentDidLoad() {
12
- this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors.representative)));
13
- this.formController.values.subscribe(values => (this.representative = Object.assign({}, values.representative)));
14
- }
15
- inputHandler(name, value) {
16
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { representative: Object.assign(Object.assign({}, this.formController.values.getValue().representative), { [name]: value }) }));
17
- }
18
- onAddressFormUpdate(values) {
19
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { representative: Object.assign(Object.assign({}, this.formController.values.getValue().representative), { address: Object.assign(Object.assign({}, this.formController.values.getValue().representative.address), values) }) }));
20
- }
21
- render() {
22
- const representativeDefaultValue = this.formController.getInitialValues().representative;
23
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-select", { name: "title", label: "Prefix", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, options: [
24
- { label: 'Select Prefix', value: '' },
25
- { label: 'Mrs.', value: 'Mrs.' },
26
- ], error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12" }, h("label", { part: "label", class: "form-label" }, "Birth Date")), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Day", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_day, error: this.errors.dob_day, inputHandler: this.inputHandler, type: "day" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Month", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_month, error: this.errors.dob_month, inputHandler: this.inputHandler, type: "month" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Year", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_year, error: this.errors.dob_year, inputHandler: this.inputHandler, type: "year" })), h("div", { class: "col-12" }, h("form-control-number", { name: "identification_number", label: "EIN/SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-business-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, onFormUpdate: values => this.onAddressFormUpdate(values) }))))));
27
- }
28
- static get is() { return "justifi-business-representative"; }
29
- static get originalStyleUrls() {
30
- return {
31
- "$": ["business-representative.scss"]
32
- };
33
- }
34
- static get styleUrls() {
35
- return {
36
- "$": ["business-representative.css"]
37
- };
38
- }
39
- static get properties() {
40
- return {
41
- "formController": {
42
- "type": "unknown",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "FormController",
46
- "resolved": "FormController",
47
- "references": {
48
- "FormController": {
49
- "location": "import",
50
- "path": "../../form/form",
51
- "id": "src/components/form/form.ts::FormController"
4
+ constructor() {
5
+ this.formController = undefined;
6
+ this.errors = {};
7
+ this.representative = {};
8
+ this.inputHandler = this.inputHandler.bind(this);
9
+ this.onAddressFormUpdate = this.onAddressFormUpdate.bind(this);
10
+ }
11
+ componentDidLoad() {
12
+ this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors.representative)));
13
+ this.formController.values.subscribe(values => (this.representative = Object.assign({}, values.representative)));
14
+ }
15
+ inputHandler(name, value) {
16
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { representative: Object.assign(Object.assign({}, this.formController.values.getValue().representative), { [name]: value }) }));
17
+ }
18
+ onAddressFormUpdate(values) {
19
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { representative: Object.assign(Object.assign({}, this.formController.values.getValue().representative), { address: Object.assign(Object.assign({}, this.formController.values.getValue().representative.address), values) }) }));
20
+ }
21
+ render() {
22
+ const representativeDefaultValue = this.formController.getInitialValues().representative;
23
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-select", { name: "title", label: "Prefix", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, options: [
24
+ { label: 'Select Prefix', value: '' },
25
+ { label: 'Mrs.', value: 'Mrs.' },
26
+ ], error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12" }, h("label", { part: "label", class: "form-label" }, "Birth Date")), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_day", label: "Day", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_day, error: this.errors.dob_day, inputHandler: this.inputHandler, type: "day" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_month", label: "Month", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_month, error: this.errors.dob_month, inputHandler: this.inputHandler, type: "month" })), h("div", { class: "col-12 col-md-4" }, h("form-control-datepart", { name: "dob_year", label: "Year", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_year, error: this.errors.dob_year, inputHandler: this.inputHandler, type: "year" })), h("div", { class: "col-12" }, h("form-control-number", { name: "identification_number", label: "EIN/SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-business-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, onFormUpdate: values => this.onAddressFormUpdate(values) }))))));
27
+ }
28
+ static get is() { return "justifi-business-representative"; }
29
+ static get originalStyleUrls() {
30
+ return {
31
+ "$": ["business-representative.scss"]
32
+ };
33
+ }
34
+ static get styleUrls() {
35
+ return {
36
+ "$": ["business-representative.css"]
37
+ };
38
+ }
39
+ static get properties() {
40
+ return {
41
+ "formController": {
42
+ "type": "unknown",
43
+ "mutable": false,
44
+ "complexType": {
45
+ "original": "FormController",
46
+ "resolved": "FormController",
47
+ "references": {
48
+ "FormController": {
49
+ "location": "import",
50
+ "path": "../../form/form",
51
+ "id": "src/components/form/form.ts::FormController"
52
+ }
53
+ }
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ }
52
61
  }
53
- }
54
- },
55
- "required": false,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": ""
60
- }
61
- }
62
- };
63
- }
64
- static get states() {
65
- return {
66
- "errors": {},
67
- "representative": {}
68
- };
69
- }
62
+ };
63
+ }
64
+ static get states() {
65
+ return {
66
+ "errors": {},
67
+ "representative": {}
68
+ };
69
+ }
70
70
  }
@@ -1,22 +1,22 @@
1
1
  // These props should not be sent to the server
2
2
  export const parseForPatching = (data) => {
3
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
4
- delete data.id;
5
- delete data.documents;
6
- delete data.bank_accounts;
7
- delete data.product_categories;
8
- delete data.created_at;
9
- delete data.updated_at;
10
- (_a = data.legal_address) === null || _a === void 0 ? true : delete _a.id;
11
- (_b = data.legal_address) === null || _b === void 0 ? true : delete _b.created_at;
12
- (_c = data.legal_address) === null || _c === void 0 ? true : delete _c.updated_at;
13
- (_d = data.representative) === null || _d === void 0 ? true : delete _d.id;
14
- (_e = data.representative) === null || _e === void 0 ? true : delete _e.documents;
15
- (_f = data.representative) === null || _f === void 0 ? true : delete _f.created_at;
16
- (_g = data.representative) === null || _g === void 0 ? true : delete _g.updated_at;
17
- (_h = data.representative) === null || _h === void 0 ? true : delete _h.address.id;
18
- (_j = data.representative) === null || _j === void 0 ? true : delete _j.address.created_at;
19
- (_k = data.representative) === null || _k === void 0 ? true : delete _k.address.updated_at;
20
- delete data.owners;
21
- return data;
3
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
4
+ delete data.id;
5
+ delete data.documents;
6
+ delete data.bank_accounts;
7
+ delete data.product_categories;
8
+ delete data.created_at;
9
+ delete data.updated_at;
10
+ (_a = data.legal_address) === null || _a === void 0 ? true : delete _a.id;
11
+ (_b = data.legal_address) === null || _b === void 0 ? true : delete _b.created_at;
12
+ (_c = data.legal_address) === null || _c === void 0 ? true : delete _c.updated_at;
13
+ (_d = data.representative) === null || _d === void 0 ? true : delete _d.id;
14
+ (_e = data.representative) === null || _e === void 0 ? true : delete _e.documents;
15
+ (_f = data.representative) === null || _f === void 0 ? true : delete _f.created_at;
16
+ (_g = data.representative) === null || _g === void 0 ? true : delete _g.updated_at;
17
+ (_h = data.representative) === null || _h === void 0 ? true : delete _h.address.id;
18
+ (_j = data.representative) === null || _j === void 0 ? true : delete _j.address.created_at;
19
+ (_k = data.representative) === null || _k === void 0 ? true : delete _k.address.updated_at;
20
+ delete data.owners;
21
+ return data;
22
22
  };
@@ -1,10 +1,10 @@
1
1
  import * as Yup from "yup";
2
2
  const legalAddressSchema = Yup.object({
3
- line1: Yup.string().required('Enter street address'),
4
- line2: Yup.string(),
5
- city: Yup.string().required('Enter city'),
6
- state: Yup.string().required('Select state'),
7
- postal_code: Yup.string().required('Enter postal code'),
8
- country: Yup.string().required('Select country'),
3
+ line1: Yup.string().required('Enter street address'),
4
+ line2: Yup.string(),
5
+ city: Yup.string().required('Enter city'),
6
+ state: Yup.string().required('Select state'),
7
+ postal_code: Yup.string().required('Enter postal code'),
8
+ country: Yup.string().required('Select country'),
9
9
  });
10
10
  export default legalAddressSchema;