@justifi/webcomponents 4.0.5 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/Api-11362403.js +111 -0
- package/dist/cjs/Api-11362403.js.map +1 -0
- package/dist/cjs/Payment-ac4dea02.js +2 -0
- package/dist/cjs/Payment-ac4dea02.js.map +1 -0
- package/dist/cjs/{index-051b6dd0.js → index-34312a38.js} +185 -21
- package/dist/cjs/index-34312a38.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/{index.esm-8df4906e.js → index.esm-bcf90c56.js} +2 -244
- package/dist/cjs/index.esm-bcf90c56.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -1
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +8 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-address.cjs.entry.js +7 -4
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-info.cjs.entry.js +174 -0
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +12 -7
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -108
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/select-input_2.cjs.entry.js +5 -3
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/state-options-efeaa587.js +248 -0
- package/dist/cjs/state-options-efeaa587.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +12 -3
- package/dist/cjs/webcomponents.cjs.js.map +1 -0
- package/dist/collection/api/Api.js +2 -1
- package/dist/collection/api/Api.js.map +1 -0
- package/dist/collection/api/Pagination.js +1 -0
- package/dist/collection/api/Pagination.js.map +1 -0
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/Payment.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -0
- package/dist/collection/api/mockData/MockPayments.js +1 -0
- package/dist/collection/api/mockData/MockPayments.js.map +1 -0
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +14 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js.map +1 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +48 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -0
- package/dist/collection/components/billing-form/billing-form-schema.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form.css +337 -0
- package/dist/collection/components/billing-form/billing-form.js +1 -0
- package/dist/collection/components/billing-form/billing-form.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form.stories.js +1 -0
- package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -0
- package/dist/collection/components/billing-form/state-options.js +1 -0
- package/dist/collection/components/billing-form/state-options.js.map +1 -0
- package/dist/collection/components/billing-form/test/billing-form.spec.js +31 -0
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -0
- package/dist/collection/components/business-address/business-address-schema.js +1 -0
- package/dist/collection/components/business-address/business-address-schema.js.map +1 -0
- package/dist/collection/components/business-address/business-address.css +337 -0
- package/dist/collection/components/business-address/business-address.js +1 -0
- package/dist/collection/components/business-address/business-address.js.map +1 -0
- package/dist/collection/components/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-address/test/business-address.spec.js +18 -0
- package/dist/collection/components/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-info/business-info-schema.js +94 -0
- package/dist/collection/components/business-info/business-info-schema.js.map +1 -0
- package/dist/collection/components/business-info/business-info.css +2274 -0
- package/dist/collection/components/business-info/business-info.js +168 -0
- package/dist/collection/components/business-info/business-info.js.map +1 -0
- package/dist/collection/components/card-form/card-form.js +1 -0
- package/dist/collection/components/card-form/card-form.js.map +1 -0
- package/dist/collection/components/card-form/card-form.stories.js +1 -0
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -0
- package/dist/collection/components/card-form/test/card-form.e2e.js +14 -0
- package/dist/collection/components/card-form/test/card-form.e2e.js.map +1 -0
- package/dist/collection/components/card-form/test/card-form.spec.js +56 -0
- package/dist/collection/components/card-form/test/card-form.spec.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +412 -0
- package/dist/collection/components/payment-form/payment-form.js +8 -2
- package/dist/collection/components/payment-form/payment-form.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.stories.js +1 -0
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -0
- package/dist/collection/components/payment-form/payment-method-selector.css +337 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -0
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -0
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +23 -0
- package/dist/collection/components/payment-form/test/payment-form.e2e.js.map +1 -0
- package/dist/collection/components/payment-form/test/payment-form.spec.js +182 -0
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -0
- package/dist/collection/components/payment-form/tokenize.js +1 -0
- package/dist/collection/components/payment-form/tokenize.js.map +1 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js +1 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -0
- package/dist/collection/components/payment-method-form/message-event-types.js +1 -0
- package/dist/collection/components/payment-method-form/message-event-types.js.map +1 -0
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -0
- package/dist/collection/components/payment-method-form/payment-method-responses.js +1 -0
- package/dist/collection/components/payment-method-form/payment-method-responses.js.map +1 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +22 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js.map +1 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +83 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -0
- package/dist/collection/components/payment-method-form/theme.js +1 -0
- package/dist/collection/components/payment-method-form/theme.js.map +1 -0
- package/dist/collection/components/payments-list/payments-list.js +1 -0
- package/dist/collection/components/payments-list/payments-list.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +337 -0
- package/dist/collection/components/select-input/select-input.js +1 -0
- package/dist/collection/components/select-input/select-input.js.map +1 -0
- package/dist/collection/components/select-input/test/select-input.spec.js +36 -0
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -0
- package/dist/collection/components/text-input/test/text-input.spec.js +19 -0
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -0
- package/dist/collection/components/text-input/text-input.css +337 -0
- package/dist/collection/components/text-input/text-input.js +1 -0
- package/dist/collection/components/text-input/text-input.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/Api.js +109 -0
- package/dist/components/Api.js.map +1 -0
- package/dist/components/Payment.js +2 -0
- package/dist/components/Payment.js.map +1 -0
- package/dist/components/billing-form.js +6 -3
- package/dist/components/billing-form.js.map +1 -0
- package/dist/components/index.d.ts +9 -13
- package/dist/{esm/index.esm-c6a89005.js → components/index.esm.js} +3 -244
- package/dist/components/index.esm.js.map +1 -0
- package/dist/components/index.js +3 -11
- package/dist/components/index.js.map +1 -0
- package/dist/components/justifi-bank-account-form.js +3 -1
- package/dist/components/justifi-bank-account-form.js.map +1 -0
- package/dist/components/justifi-billing-form.js +2 -0
- package/dist/components/justifi-billing-form.js.map +1 -0
- package/dist/components/justifi-business-address.js +6 -3
- package/dist/components/justifi-business-address.js.map +1 -0
- package/dist/components/justifi-business-info.d.ts +11 -0
- package/dist/components/justifi-business-info.js +207 -0
- package/dist/components/justifi-business-info.js.map +1 -0
- package/dist/components/justifi-card-form.js +3 -1
- package/dist/components/justifi-card-form.js.map +1 -0
- package/dist/components/justifi-payment-form.js +11 -4
- package/dist/components/justifi-payment-form.js.map +1 -0
- package/dist/components/justifi-payment-method-form.js +2 -0
- package/dist/components/justifi-payment-method-form.js.map +1 -0
- package/dist/components/justifi-payment-method-selector.js +2 -0
- package/dist/components/justifi-payment-method-selector.js.map +1 -0
- package/dist/components/justifi-payments-list.js +4 -107
- package/dist/components/justifi-payments-list.js.map +1 -0
- package/dist/components/payment-method-form.js +12 -7
- package/dist/components/payment-method-form.js.map +1 -0
- package/dist/components/payment-method-selector.js +4 -2
- package/dist/components/payment-method-selector.js.map +1 -0
- package/dist/components/select-input.js +2 -0
- package/dist/components/select-input.js.map +1 -0
- package/dist/components/select-input2.js +4 -2
- package/dist/components/select-input2.js.map +1 -0
- package/dist/components/state-options.js +3 -1845
- package/dist/components/state-options.js.map +1 -0
- package/dist/components/text-input.js +2 -0
- package/dist/components/text-input.js.map +1 -0
- package/dist/components/text-input2.js +4 -2
- package/dist/components/text-input2.js.map +1 -0
- package/dist/esm/Api-a07f0057.js +109 -0
- package/dist/esm/Api-a07f0057.js.map +1 -0
- package/dist/esm/Payment-c86e1e84.js +2 -0
- package/dist/esm/Payment-c86e1e84.js.map +1 -0
- package/dist/esm/{index-605b421a.js → index-044f93fc.js} +185 -22
- package/dist/esm/index-044f93fc.js.map +1 -0
- package/dist/esm/index.esm-5624a5ed.js +1847 -0
- package/dist/esm/index.esm-5624a5ed.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +3 -1
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -0
- package/dist/esm/justifi-billing-form_2.entry.js +7 -4
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -0
- package/dist/esm/justifi-business-address.entry.js +6 -3
- package/dist/esm/justifi-business-address.entry.js.map +1 -0
- package/dist/esm/justifi-business-info.entry.js +170 -0
- package/dist/esm/justifi-business-info.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +3 -1
- package/dist/esm/justifi-card-form.entry.js.map +1 -0
- package/dist/esm/justifi-payment-form.entry.js +10 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -0
- package/dist/esm/justifi-payment-method-form.entry.js +12 -7
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -0
- package/dist/esm/justifi-payments-list.entry.js +4 -107
- package/dist/esm/justifi-payments-list.entry.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/select-input_2.entry.js +5 -3
- package/dist/esm/select-input_2.entry.js.map +1 -0
- package/dist/esm/state-options-188acc34.js +246 -0
- package/dist/esm/state-options-188acc34.js.map +1 -0
- package/dist/esm/webcomponents.js +9 -3
- package/dist/esm/webcomponents.js.map +1 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Payment.d.ts +1 -1
- package/dist/types/components/business-info/business-info-schema.d.ts +42 -0
- package/dist/types/components/business-info/business-info.d.ts +20 -0
- package/dist/types/components/payment-form/payment-form.d.ts +1 -0
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -1
- package/dist/types/components.d.ts +63 -0
- package/dist/types/stencil-public-runtime.d.ts +72 -15
- package/dist/webcomponents/index.esm.js +2 -0
- package/dist/webcomponents/index.esm.js.map +1 -0
- package/dist/webcomponents/p-0ea23153.js +2 -0
- package/dist/webcomponents/p-0ea23153.js.map +1 -0
- package/dist/webcomponents/p-16b4e90a.entry.js +2 -0
- package/dist/webcomponents/p-16b4e90a.entry.js.map +1 -0
- package/dist/webcomponents/p-1ca0646b.js +2 -1
- package/dist/webcomponents/p-1ca0646b.js.map +1 -0
- package/dist/webcomponents/p-1f151d49.js +2 -0
- package/dist/webcomponents/p-1f151d49.js.map +1 -0
- package/dist/webcomponents/p-1f23b391.entry.js +2 -0
- package/dist/webcomponents/p-1f23b391.entry.js.map +1 -0
- package/dist/webcomponents/p-255b1284.entry.js +2 -0
- package/dist/webcomponents/p-255b1284.entry.js.map +1 -0
- package/dist/webcomponents/p-3aa91155.js +3 -0
- package/dist/webcomponents/p-3aa91155.js.map +1 -0
- package/dist/webcomponents/p-90c0d9e1.entry.js +2 -0
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +1 -0
- package/dist/webcomponents/p-c903cc5a.entry.js +2 -0
- package/dist/webcomponents/p-c903cc5a.entry.js.map +1 -0
- package/dist/webcomponents/p-d87b0711.entry.js +2 -0
- package/dist/webcomponents/p-d87b0711.entry.js.map +1 -0
- package/dist/webcomponents/p-dbf7100f.entry.js +2 -0
- package/dist/webcomponents/p-dbf7100f.entry.js.map +1 -0
- package/dist/webcomponents/p-e0054bc3.js +2 -0
- package/dist/webcomponents/p-e0054bc3.js.map +1 -0
- package/dist/webcomponents/p-f30d1567.entry.js +2 -0
- package/dist/webcomponents/p-f30d1567.entry.js.map +1 -0
- package/dist/webcomponents/p-f66f024e.entry.js +2 -0
- package/dist/webcomponents/p-f66f024e.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +2 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -0
- package/loader/index.d.ts +9 -0
- package/package.json +8 -4
- package/dist/webcomponents/p-039e3540.entry.js +0 -1
- package/dist/webcomponents/p-11e5bef9.entry.js +0 -1
- package/dist/webcomponents/p-20732337.js +0 -1
- package/dist/webcomponents/p-24409e8e.entry.js +0 -1
- package/dist/webcomponents/p-4a406704.js +0 -2
- package/dist/webcomponents/p-5774e36e.entry.js +0 -1
- package/dist/webcomponents/p-5b5e8351.entry.js +0 -1
- package/dist/webcomponents/p-5b68fa52.entry.js +0 -1
- package/dist/webcomponents/p-7747c086.entry.js +0 -1
- package/dist/webcomponents/p-bc35e124.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"billing-form.js","mappings":";;;;;;AAEO,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAWjC,MAAM,iBAAiB,GAAGA,QAAM,CAAC;EAC/B,IAAI,EAAEC,QAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;EACrC,aAAa,EAAEA,QAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;EACxD,aAAa,EAAEA,QAAM,EAAE;EACvB,YAAY,EAAEA,QAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;EAC7C,aAAa,EAAEA,QAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;EAChD,mBAAmB,EAAEA,QAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,mBAAmB,CAAC;CACvH,CAAC;;ACpBF,MAAM,cAAc,GAAG,6juBAA6juB;;MCevkuB,WAAW;;;;;IAkEtB,gBAAW,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Y,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,GAAI,CAC5J,CACF,CACG,CACN,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["object","string"],"sources":["./src/components/billing-form/billing-form-schema.ts","./src/components/billing-form/billing-form.scss?tag=justifi-billing-form&encapsulation=shadow","./src/components/billing-form/billing-form.tsx"],"sourcesContent":["import { object, string } from 'yup';\n\nexport const RegExZip = /^\\d{5}/;\n\nexport interface BillingFormFields {\n name: string;\n address_line1: string;\n address_line2?: string;\n address_city: string;\n address_state: string;\n address_postal_code: string;\n}\n\nconst BillingFormSchema = object({\n name: string().required('Enter name'),\n address_line1: string().required('Enter street address'),\n address_line2: string(),\n address_city: string().required('Enter city'),\n address_state: string().required('Choose state'),\n address_postal_code: string().required('Enter ZIP').matches(RegExZip, 'Enter a valid ZIP').min(5, 'Enter a valid ZIP'),\n});\n\nexport default BillingFormSchema;\n","@import 'reboot';\n@import 'grid';\n\n:host {\n @include host-base-styles;\n display: block;\n}\n\njustifi-billing-form {\n margin-left: calc(var(--jfi-layout-padding) * -1);\n margin-right: calc(var(--jfi-layout-padding) * -1);\n}\n\n*::part(label) {\n color: var(--jfi-form-label-color);\n font-family: var(--jfi-form-label-font-family);\n font-weight: var(--jfi-form-label-font-weight);\n font-size: var(--jfi-form-label-font-size);\n margin: var(--jfi-form-label-margin);\n}\n\n*::part(input) {\n background-color: var(--jfi-form-control-background-color);\n border-color: var(--jfi-form-control-border-color);\n border-width: var(--jfi-form-control-border-width);\n border-bottom-width: var(--jfi-form-control-border-bottom-width);\n border-left-width: var(--jfi-form-control-border-left-width);\n border-right-width: var(--jfi-form-control-border-right-width);\n border-top-width: var(--jfi-form-control-border-top-width);\n border-radius: var(--jfi-form-control-border-radius);\n border-style: var(--jfi-form-control-border-style);\n box-shadow: var(--jfi-form-control-box-shadow);\n color: var(--jfi-form-control-color);\n font-size: var(--jfi-form-control-font-size);\n font-weight: var(--jfi-form-control-font-weight);\n line-height: var(--jfi-form-control-line-height);\n margin: var(--jfi-form-control-margin);\n padding: var(--jfi-form-control-padding);\n\n &:focus {\n color: var(--jfi-form-control-color-focus);\n border-color: var(--jfi-form-control-border-color-focus);\n box-shadow: var(--jfi-form-control-box-shadow-focus);\n }\n}\n\n*::part(input-invalid) {\n border-color: var(--jfi-form-control-border-color-error);\n box-shadow: var(--jfi-form-control-box-shadow-error);\n\n &:focus {\n border-color: var(--jfi-form-control-border-color-error);\n box-shadow: var(--jfi-form-control-box-shadow-error-focus);\n }\n}\n","import { Component, Host, h, State, Listen, Method, Prop } from '@stencil/core';\nimport { ValidationError } from 'yup';\nimport BillingFormSchema, { BillingFormFields } from './billing-form-schema';\nimport StateOptions from './state-options';\n\n/**\n * @exportedPart label: Label for inputs\n * @exportedPart input: The input fields\n * @exportedPart input-invalid: Invalid state for inputs\n */\n@Component({\n tag: 'justifi-billing-form',\n styleUrl: 'billing-form.scss',\n shadow: true,\n})\nexport class BillingForm {\n /**\n * (Optional) A label for the form.\n */\n @Prop() legend?: string;\n @State() billingFields: BillingFormFields = {\n name: '',\n address_line1: '',\n address_line2: '',\n address_city: '',\n address_state: '',\n address_postal_code: '',\n };\n\n @State() billingFieldsErrors: any = {};\n\n @Listen('fieldReceivedInput')\n setFormValue(event) {\n const data = event.detail;\n const billingFieldsClone = { ...this.billingFields };\n if (data.name) {\n billingFieldsClone[data.name] = data.value;\n this.billingFields = billingFieldsClone;\n }\n }\n\n /**\n * Method for filling the form with provided data\n * @argument {BillingFormFields} fields - The fields to fill the form with\n */\n @Method()\n async fill(fields: BillingFormFields) {\n this.billingFields = { ...fields };\n }\n\n /**\n * Run validation on the form\n */\n @Method()\n async validate() {\n const newErrors = {};\n let isValid: boolean = true;\n\n try {\n await BillingFormSchema.validate(this.billingFields, { abortEarly: false });\n } catch (err) {\n isValid = false;\n err.inner.map((item: ValidationError) => {\n newErrors[item.path] = item.message;\n });\n }\n\n this.billingFieldsErrors = newErrors;\n\n return { isValid: isValid };\n }\n\n /**\n * Returns the values of the form as an object\n * @returns {Promise<BillingFormFields>} The values of the form\n */\n @Method()\n async getValues(): Promise<BillingFormFields> {\n return this.billingFields;\n }\n\n legendBlock = (<legend>{this.legend}</legend>);\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <fieldset>\n {this.legend && this.legendBlock}\n <div class=\"row gy-3\">\n <div class=\"col-12\">\n <text-input name=\"name\" label=\"Full Name\" defaultValue={this.billingFields.name} error={this.billingFieldsErrors.name} />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_line1\" label=\"Street Address\" defaultValue={this.billingFields.address_line1} error={this.billingFieldsErrors.address_line1} />\n </div>\n <div class=\"col-12\">\n <text-input\n name=\"address_line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.billingFields.address_line2}\n error={this.billingFieldsErrors.address_line2}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_city\" label=\"City\" defaultValue={this.billingFields.address_city} error={this.billingFieldsErrors.address_city} />\n </div>\n <div class=\"col-12\">\n <select-input\n name=\"address_state\"\n label=\"State\"\n options={StateOptions}\n defaultValue={this.billingFields.address_state}\n error={this.billingFieldsErrors.address_state}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_postal_code\" label=\"ZIP\" defaultValue={this.billingFields.address_postal_code} error={this.billingFieldsErrors.address_postal_code} />\n </div>\n </div>\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* webcomponents custom elements */
|
|
2
|
-
export { BankAccountForm as JustifiBankAccountForm } from '../types/components/bank-account-form/bank-account-form';
|
|
3
|
-
export { BillingForm as JustifiBillingForm } from '../types/components/billing-form/billing-form';
|
|
4
|
-
export { BusinessAddress as JustifiBusinessAddress } from '../types/components/business-address/business-address';
|
|
5
|
-
export { CardForm as JustifiCardForm } from '../types/components/card-form/card-form';
|
|
6
|
-
export { PaymentForm as JustifiPaymentForm } from '../types/components/payment-form/payment-form';
|
|
7
|
-
export { PaymentMethodForm as JustifiPaymentMethodForm } from '../types/components/payment-method-form/payment-method-form';
|
|
8
|
-
export { PaymentMethodSelector as JustifiPaymentMethodSelector } from '../types/components/payment-form/payment-method-selector';
|
|
9
|
-
export { PaymentsList as JustifiPaymentsList } from '../types/components/payments-list/payments-list';
|
|
10
|
-
export { SelectInput as SelectInput } from '../types/components/select-input/select-input';
|
|
11
|
-
export { TextInput as TextInput } from '../types/components/text-input/text-input';
|
|
12
|
-
|
|
13
1
|
/**
|
|
14
2
|
* Used to manually set the base path where assets can be found.
|
|
15
3
|
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
@@ -22,10 +10,18 @@ export { TextInput as TextInput } from '../types/components/text-input/text-inpu
|
|
|
22
10
|
*/
|
|
23
11
|
export declare const setAssetPath: (path: string) => void;
|
|
24
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
15
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
16
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
17
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
18
|
+
* will result in the same behavior.
|
|
19
|
+
*/
|
|
20
|
+
export declare const setNonce: (nonce: string) => void
|
|
21
|
+
|
|
25
22
|
export interface SetPlatformOptions {
|
|
26
23
|
raf?: (c: FrameRequestCallback) => number;
|
|
27
24
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
28
25
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
29
26
|
}
|
|
30
27
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
31
|
-
export * from '../types';
|
|
@@ -1,246 +1,3 @@
|
|
|
1
|
-
const StateOptions = [
|
|
2
|
-
{
|
|
3
|
-
label: 'Choose state',
|
|
4
|
-
value: '',
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
label: 'Alabama',
|
|
8
|
-
value: 'AL',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
label: 'Alaska',
|
|
12
|
-
value: 'AK',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'American Samoa',
|
|
16
|
-
value: 'AS',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: 'Arizona',
|
|
20
|
-
value: 'AZ',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Arkansas',
|
|
24
|
-
value: 'AR',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: 'California',
|
|
28
|
-
value: 'CA',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: 'Colorado',
|
|
32
|
-
value: 'CO',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Connecticut',
|
|
36
|
-
value: 'CT',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: 'Delaware',
|
|
40
|
-
value: 'DE',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'District Of Columbia',
|
|
44
|
-
value: 'DC',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Federated States Of Micronesia',
|
|
48
|
-
value: 'FM',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Florida',
|
|
52
|
-
value: 'FL',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: 'Georgia',
|
|
56
|
-
value: 'GA',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: 'Guam',
|
|
60
|
-
value: 'GU',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Hawaii',
|
|
64
|
-
value: 'HI',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: 'Idaho',
|
|
68
|
-
value: 'ID',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: 'Illinois',
|
|
72
|
-
value: 'IL',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: 'Indiana',
|
|
76
|
-
value: 'IN',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: 'Iowa',
|
|
80
|
-
value: 'IA',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: 'Kansas',
|
|
84
|
-
value: 'KS',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: 'Kentucky',
|
|
88
|
-
value: 'KY',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: 'Louisiana',
|
|
92
|
-
value: 'LA',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
label: 'Maine',
|
|
96
|
-
value: 'ME',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: 'Marshall Islands',
|
|
100
|
-
value: 'MH',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: 'Maryland',
|
|
104
|
-
value: 'MD',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'Massachusetts',
|
|
108
|
-
value: 'MA',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Michigan',
|
|
112
|
-
value: 'MI',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: 'Minnesota',
|
|
116
|
-
value: 'MN',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: 'Mississippi',
|
|
120
|
-
value: 'MS',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
label: 'Missouri',
|
|
124
|
-
value: 'MO',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
label: 'Montana',
|
|
128
|
-
value: 'MT',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: 'Nebraska',
|
|
132
|
-
value: 'NE',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
label: 'Nevada',
|
|
136
|
-
value: 'NV',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: 'New Hampshire',
|
|
140
|
-
value: 'NH',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
label: 'New Jersey',
|
|
144
|
-
value: 'NJ',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
label: 'New Mexico',
|
|
148
|
-
value: 'NM',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
label: 'New York',
|
|
152
|
-
value: 'NY',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: 'North Carolina',
|
|
156
|
-
value: 'NC',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
label: 'North Dakota',
|
|
160
|
-
value: 'ND',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
label: 'Northern Mariana Islands',
|
|
164
|
-
value: 'MP',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: 'Ohio',
|
|
168
|
-
value: 'OH',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
label: 'Oklahoma',
|
|
172
|
-
value: 'OK',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
label: 'Oregon',
|
|
176
|
-
value: 'OR',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
label: 'Palau',
|
|
180
|
-
value: 'PW',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
label: 'Pennsylvania',
|
|
184
|
-
value: 'PA',
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
label: 'Puerto Rico',
|
|
188
|
-
value: 'PR',
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
label: 'Rhode Island',
|
|
192
|
-
value: 'RI',
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
label: 'South Carolina',
|
|
196
|
-
value: 'SC',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
label: 'South Dakota',
|
|
200
|
-
value: 'SD',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
label: 'Tennessee',
|
|
204
|
-
value: 'TN',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
label: 'Texas',
|
|
208
|
-
value: 'TX',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
label: 'Utah',
|
|
212
|
-
value: 'UT',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
label: 'Vermont',
|
|
216
|
-
value: 'VT',
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
label: 'Virgin Islands',
|
|
220
|
-
value: 'VI',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
label: 'Virginia',
|
|
224
|
-
value: 'VA',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
label: 'Washington',
|
|
228
|
-
value: 'WA',
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: 'West Virginia',
|
|
232
|
-
value: 'WV',
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
label: 'Wisconsin',
|
|
236
|
-
value: 'WI',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
label: 'Wyoming',
|
|
240
|
-
value: 'WY',
|
|
241
|
-
},
|
|
242
|
-
];
|
|
243
|
-
|
|
244
1
|
/**
|
|
245
2
|
* Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>
|
|
246
3
|
*/
|
|
@@ -2085,4 +1842,6 @@ class ObjectSchema extends Schema {
|
|
|
2085
1842
|
}
|
|
2086
1843
|
create$3.prototype = ObjectSchema.prototype;
|
|
2087
1844
|
|
|
2088
|
-
export {
|
|
1845
|
+
export { create$6 as a, create$3 as c };
|
|
1846
|
+
|
|
1847
|
+
//# sourceMappingURL=index.esm.js.map
|