@justifi/webcomponents 4.12.1 → 4.13.0-rc.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 (173) hide show
  1. package/dist/cjs/{Business-c928bf29.js → Business-98686045.js} +27 -4
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -4
  3. package/dist/cjs/{business-additional-questions-schema-3813615c.js → business-additional-questions-schema-f8086f7a.js} +19 -9
  4. package/dist/cjs/business-form-options-fd1c0032.js +128 -0
  5. package/dist/cjs/{business-form-types-4b138bf2.js → business-form-types-29b2bad9.js} +0 -26
  6. package/dist/cjs/form-control-date_3.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
  8. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -12
  9. package/dist/cjs/form-input-masks-0879c139.js +27 -0
  10. package/dist/cjs/{index-fc5339a5.js → index-d8e99b54.js} +352 -198
  11. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +10 -9
  12. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +7 -7
  13. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +4 -4
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -5
  16. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -4
  19. package/dist/cjs/justifi-checkout.cjs.entry.js +26 -4
  20. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-owner-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +1 -3
  23. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -1
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/cjs/{payload-parsers-58d3798e.js → payload-parsers-fe27be37.js} +65 -6
  26. package/dist/cjs/{state-options-4fbcb48a.js → state-options-4145f9b4.js} +0 -4
  27. package/dist/cjs/webcomponents.cjs.js +1 -1
  28. package/dist/collection/api/Business.js +26 -3
  29. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -2
  30. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
  31. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +4 -2
  32. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  33. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -2
  34. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  35. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +16 -9
  36. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +5 -1
  37. package/dist/collection/components/business-forms/schemas/schema-helpers.js +3 -0
  38. package/dist/collection/components/business-forms/schemas/schema-validations.js +53 -6
  39. package/dist/collection/components/business-forms/utils/business-form-options.js +119 -0
  40. package/dist/collection/components/business-forms/utils/business-form-types.js +0 -23
  41. package/dist/collection/components/checkout/checkout-actions.js +28 -5
  42. package/dist/collection/components/checkout/checkout-core.js +30 -6
  43. package/dist/collection/components/checkout/payment-method-options.js +2 -18
  44. package/dist/collection/components/checkout/test/checkout-actions.spec.js +126 -0
  45. package/dist/collection/components/checkout/test/checkout-core.spec.js +127 -0
  46. package/dist/collection/components/checkout/test/checkout.spec.js +0 -153
  47. package/dist/collection/components/form/form-control-monetary.css +1812 -0
  48. package/dist/collection/components/form/form-control-monetary.js +24 -11
  49. package/dist/collection/components/form/test/form-control-monetary.spec.js +5 -3
  50. package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
  51. package/dist/collection/components/refund-form/refund-form.js +2 -1
  52. package/dist/collection/utils/form-input-masks.js +15 -0
  53. package/dist/collection/utils/state-options.js +0 -4
  54. package/dist/docs.json +93 -30
  55. package/dist/esm/{Business-6cb1b9c8.js → Business-6e0efa26.js} +28 -5
  56. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  57. package/dist/esm/business-additional-questions-schema-8e742129.js +54 -0
  58. package/dist/esm/business-form-options-75c0a7ec.js +122 -0
  59. package/dist/esm/{business-form-types-5ba52d61.js → business-form-types-0d76133c.js} +1 -25
  60. package/dist/esm/form-control-date_3.entry.js +2 -2
  61. package/dist/esm/form-control-datepart_2.entry.js +1 -1
  62. package/dist/esm/form-control-monetary.entry.js +7 -12
  63. package/dist/esm/form-input-masks-0e18300f.js +22 -0
  64. package/dist/esm/{index-5eb05747.js → index-dc1350b1.js} +352 -198
  65. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +10 -9
  66. package/dist/esm/justifi-additional-questions_4.entry.js +7 -7
  67. package/dist/esm/justifi-billing-form_4.entry.js +4 -4
  68. package/dist/esm/justifi-business-details.entry.js +2 -2
  69. package/dist/esm/justifi-business-form.entry.js +6 -5
  70. package/dist/esm/justifi-business-list.entry.js +2 -2
  71. package/dist/esm/justifi-business-owners.entry.js +1 -1
  72. package/dist/esm/justifi-checkout-core.entry.js +9 -4
  73. package/dist/esm/justifi-checkout.entry.js +27 -5
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +1 -1
  75. package/dist/esm/justifi-owner-form.entry.js +6 -5
  76. package/dist/esm/justifi-payment-provisioning.entry.js +1 -3
  77. package/dist/esm/justifi-refund-form.entry.js +2 -1
  78. package/dist/esm/loader.js +1 -1
  79. package/dist/esm/{payload-parsers-3e817fe9.js → payload-parsers-73c12fa2.js} +57 -7
  80. package/dist/esm/{state-options-a356fb11.js → state-options-c0b757ad.js} +0 -4
  81. package/dist/esm/webcomponents.js +1 -1
  82. package/dist/module/Business.js +27 -4
  83. package/dist/module/additional-questions-details2.js +2 -2
  84. package/dist/module/additional-questions.js +18 -4
  85. package/dist/module/business-additional-questions-form-step.js +18 -4
  86. package/dist/module/business-additional-questions-schema.js +16 -9
  87. package/dist/module/business-address-schema.js +1 -1
  88. package/dist/module/business-core-info-form-step.js +10 -3
  89. package/dist/module/business-core-info-schema.js +5 -1
  90. package/dist/module/business-core-info.js +9 -3
  91. package/dist/module/business-form-options.js +122 -0
  92. package/dist/module/business-form-types.js +153 -24
  93. package/dist/module/business-identity-schema.js +1 -1
  94. package/dist/module/business-representative-form-step.js +1 -1
  95. package/dist/module/checkout-core.js +9 -5
  96. package/dist/module/form-control-monetary2.js +8 -12
  97. package/dist/module/form-input-masks.js +16 -1
  98. package/dist/module/generic-info-details2.js +2 -2
  99. package/dist/module/index2.js +352 -198
  100. package/dist/module/justifi-business-details.js +1 -1
  101. package/dist/module/justifi-business-form.js +3 -3
  102. package/dist/module/justifi-business-list.js +1 -1
  103. package/dist/module/justifi-checkout.js +27 -5
  104. package/dist/module/justifi-payment-provisioning.js +1 -1
  105. package/dist/module/justifi-refund-form.js +2 -1
  106. package/dist/module/legal-address-form-step.js +2 -2
  107. package/dist/module/owner-form.js +2 -2
  108. package/dist/module/payload-parsers.js +1 -104
  109. package/dist/module/payment-method-form.js +3 -3
  110. package/dist/module/payment-method-options.js +2 -2
  111. package/dist/module/state-options.js +0 -4
  112. package/dist/types/api/Business.d.ts +34 -5
  113. package/dist/types/api/services/checkout.service.d.ts +3 -3
  114. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +10 -4
  115. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +4 -0
  116. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +14 -4
  117. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +3 -0
  118. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +9 -0
  119. package/dist/types/components/business-forms/utils/business-form-options.d.ts +21 -0
  120. package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -5
  121. package/dist/types/components/checkout/checkout-core.d.ts +3 -2
  122. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  123. package/dist/types/components/form/form-control-monetary.d.ts +1 -0
  124. package/dist/types/components.d.ts +4 -2
  125. package/dist/types/utils/form-input-masks.d.ts +15 -0
  126. package/dist/webcomponents/{p-31e70d65.entry.js → p-19885f77.entry.js} +1 -1
  127. package/dist/webcomponents/p-2c4c5f0d.entry.js +1 -0
  128. package/dist/webcomponents/p-30b6ea06.entry.js +1 -0
  129. package/dist/webcomponents/p-31e8f29c.entry.js +1 -0
  130. package/dist/webcomponents/p-31fe7232.entry.js +1 -0
  131. package/dist/webcomponents/p-3496e37f.js +1 -0
  132. package/dist/webcomponents/{p-2fbe8823.entry.js → p-35e59bb5.entry.js} +1 -1
  133. package/dist/webcomponents/p-3917edbf.entry.js +1 -0
  134. package/dist/webcomponents/p-3934a3a8.entry.js +1 -0
  135. package/dist/webcomponents/p-3ffe6784.js +1 -0
  136. package/dist/webcomponents/p-49c349e7.js +1 -0
  137. package/dist/webcomponents/p-4d335a3d.entry.js +1 -0
  138. package/dist/webcomponents/p-4ff52695.entry.js +1 -0
  139. package/dist/webcomponents/p-525db3e8.js +1 -0
  140. package/dist/webcomponents/p-57fbd98d.js +1 -0
  141. package/dist/webcomponents/p-5a789239.entry.js +1 -0
  142. package/dist/webcomponents/{p-5f5e730c.entry.js → p-834cba99.entry.js} +1 -1
  143. package/dist/webcomponents/p-87d646c0.js +1 -0
  144. package/dist/webcomponents/{p-2bee72bd.entry.js → p-8da13f40.entry.js} +1 -1
  145. package/dist/webcomponents/p-935d6f55.js +1 -0
  146. package/dist/webcomponents/{p-71b8e2da.entry.js → p-ba454cd7.entry.js} +1 -1
  147. package/dist/webcomponents/p-ed6ca114.js +1 -0
  148. package/dist/webcomponents/p-ee68566f.entry.js +1 -0
  149. package/dist/webcomponents/{p-b9f04fb0.entry.js → p-f152d6b8.entry.js} +1 -1
  150. package/dist/webcomponents/p-f3cf3513.entry.js +1 -0
  151. package/dist/webcomponents/webcomponents.esm.js +1 -1
  152. package/package.json +2 -2
  153. package/dist/cjs/form-input-masks-efd44b8e.js +0 -11
  154. package/dist/esm/business-additional-questions-schema-228d86e0.js +0 -44
  155. package/dist/esm/form-input-masks-84875967.js +0 -7
  156. package/dist/webcomponents/p-01913426.js +0 -1
  157. package/dist/webcomponents/p-07080c01.entry.js +0 -1
  158. package/dist/webcomponents/p-0d371ff5.entry.js +0 -1
  159. package/dist/webcomponents/p-2319abaf.entry.js +0 -1
  160. package/dist/webcomponents/p-26fe62d6.entry.js +0 -1
  161. package/dist/webcomponents/p-31ccb5f0.entry.js +0 -1
  162. package/dist/webcomponents/p-4c705f56.js +0 -1
  163. package/dist/webcomponents/p-6078a370.js +0 -1
  164. package/dist/webcomponents/p-737473d8.js +0 -1
  165. package/dist/webcomponents/p-787d8f52.js +0 -1
  166. package/dist/webcomponents/p-889a83d2.js +0 -1
  167. package/dist/webcomponents/p-927150b4.entry.js +0 -1
  168. package/dist/webcomponents/p-93579716.js +0 -1
  169. package/dist/webcomponents/p-9b0e5c25.entry.js +0 -1
  170. package/dist/webcomponents/p-9e3f9e05.entry.js +0 -1
  171. package/dist/webcomponents/p-c1b92cec.entry.js +0 -1
  172. package/dist/webcomponents/p-c865cda8.entry.js +0 -1
  173. package/dist/webcomponents/p-edab5f2b.entry.js +0 -1
@@ -0,0 +1,22 @@
1
+ const PHONE_MASKS = {
2
+ US: '(000) 000-0000',
3
+ };
4
+ const TAX_ID_MASKS = { US: '00-0000000' };
5
+ const SSN_MASK = '000-00-0000';
6
+ const CURRENCY_MASK = {
7
+ WHOLE: {
8
+ mask: Number,
9
+ thousandsSeparator: ',',
10
+ normalizeZeros: true,
11
+ },
12
+ DECIMAL: {
13
+ mask: Number,
14
+ scale: 2,
15
+ thousandsSeparator: ',',
16
+ padFractionalZeros: true,
17
+ normalizeZeros: true,
18
+ radix: '.',
19
+ }
20
+ };
21
+
22
+ export { CURRENCY_MASK as C, PHONE_MASKS as P, SSN_MASK as S, TAX_ID_MASKS as T };