@justifi/webcomponents 4.0.0 → 4.0.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.
- package/CHANGELOG.md +26 -2
- package/changelog-template.hbs +3 -34
- package/dist/cjs/{Payment-5781460e.js → Payment-ac4dea02.js} +1 -1
- package/dist/cjs/index.esm-8df4906e.js +2092 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +14 -2104
- package/dist/cjs/justifi-business-address.cjs.entry.js +66 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payments-list.cjs.entry.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/select-input_2.cjs.entry.js +2 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +3 -5
- package/dist/collection/api/Payment.js +1 -1
- package/dist/collection/api/mockData/MockPayments.js +24 -22
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +13 -9
- package/dist/collection/components/bank-account-form/example.js +54 -0
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -4
- package/dist/collection/components/billing-form/billing-form.js +7 -2
- package/dist/collection/components/billing-form/billing-form.stories.js +4 -4
- package/dist/collection/components/billing-form/example.js +26 -0
- package/dist/collection/components/billing-form/state-options.js +61 -61
- package/dist/collection/components/business-address/business-address-schema.js +13 -0
- package/dist/collection/components/business-address/business-address.css +2325 -0
- package/dist/collection/components/business-address/business-address.js +99 -0
- package/dist/collection/components/card-form/card-form.js +2 -2
- package/dist/collection/components/card-form/card-form.stories.js +11 -7
- package/dist/collection/components/card-form/example.js +59 -0
- package/dist/collection/components/payment-form/example.js +23 -0
- package/dist/collection/components/payment-form/payment-form.css +2 -0
- package/dist/collection/components/payment-form/payment-form.js +2 -2
- package/dist/collection/components/payment-form/payment-form.stories.js +15 -12
- package/dist/collection/components/payment-form/payment-method-selector.css +5 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
- package/dist/collection/components/payment-method-form/get-computed-theme.js +1 -1
- package/dist/collection/components/payment-method-form/message-event-types.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +5 -8
- package/dist/collection/components/payments-list/payments-list.js +4 -4
- package/dist/collection/components/select-input/select-input.js +3 -4
- package/dist/collection/components/text-input/text-input.js +2 -3
- package/dist/collection/utils/utils.js +1 -5
- package/dist/components/Payment.js +1 -1
- package/dist/components/billing-form.js +4 -2093
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/justifi-bank-account-form.js +2 -2
- package/dist/components/justifi-business-address.d.ts +11 -0
- package/dist/components/justifi-business-address.js +96 -0
- package/dist/components/justifi-card-form.js +2 -2
- package/dist/components/justifi-payment-form.js +3 -3
- package/dist/components/justifi-payments-list.js +8 -8
- package/dist/components/payment-method-form.js +14 -14
- package/dist/components/payment-method-selector.js +3 -4
- package/dist/components/select-input2.js +1 -2
- package/dist/components/state-options.js +2088 -0
- package/dist/components/text-input2.js +1 -2
- package/dist/esm/{Payment-3f7570a8.js → Payment-c86e1e84.js} +1 -1
- package/dist/esm/index.esm-c6a89005.js +2088 -0
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +7 -2097
- package/dist/esm/justifi-business-address.entry.js +62 -0
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-payment-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-form.entry.js +14 -14
- package/dist/esm/justifi-payments-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/select-input_2.entry.js +2 -4
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +5 -5
- package/dist/types/components/billing-form/billing-form.d.ts +5 -0
- package/dist/types/components/business-address/business-address-schema.d.ts +23 -0
- package/dist/types/components/business-address/business-address.d.ts +11 -0
- package/dist/types/components/card-form/card-form.d.ts +5 -5
- package/dist/types/components/payment-method-form/get-computed-theme.d.ts +1 -1
- package/dist/types/components.d.ts +19 -4
- package/dist/webcomponents/p-039e3540.entry.js +1 -0
- package/dist/webcomponents/{p-64b19598.entry.js → p-11e5bef9.entry.js} +1 -1
- package/dist/webcomponents/p-20732337.js +1 -0
- package/dist/webcomponents/p-5b5e8351.entry.js +1 -0
- package/dist/webcomponents/{p-48bd3d00.entry.js → p-5b68fa52.entry.js} +1 -1
- package/dist/webcomponents/{p-bf40b1ca.entry.js → p-7747c086.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +8 -5
- package/readme.md +7 -3
- package/dist/webcomponents/p-2530278e.entry.js +0 -1
- /package/dist/webcomponents/{p-21e020a8.js → p-1ca0646b.js} +0 -0
|
@@ -19,9 +19,8 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
19
19
|
const name = target.getAttribute('name');
|
|
20
20
|
this.fieldReceivedInput.emit({ name: name, value: target.value });
|
|
21
21
|
}
|
|
22
|
-
;
|
|
23
22
|
render() {
|
|
24
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("label", { part: "label", class: "form-label" }, this.label), h("input", { name: this.name, type: "text", onInput:
|
|
23
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("label", { part: "label", class: "form-label" }, this.label), h("input", { name: this.name, type: "text", onInput: event => this.onInput(event), value: this.internalValue || this.defaultValue, part: `input ${this.error && 'input-invalid'}`, class: this.error ? 'form-control is-invalid' : 'form-control' }), this.error && h("div", { class: "invalid-feedback" }, this.error)));
|
|
25
24
|
}
|
|
26
25
|
static get style() { return textInputCss; }
|
|
27
26
|
}, [1, "text-input", {
|
|
@@ -52,7 +52,7 @@ class Payment {
|
|
|
52
52
|
this.updated_at = payment.updated_at;
|
|
53
53
|
}
|
|
54
54
|
get disputedStatus() {
|
|
55
|
-
const lost = this.disputes.some(
|
|
55
|
+
const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);
|
|
56
56
|
// if a dispute is 'won', we don't show a dispute status, just general status
|
|
57
57
|
if (!this.disputed) {
|
|
58
58
|
return null;
|