@justifi/webcomponents 4.19.3 → 4.20.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.
- package/dist/cjs/{Analytics-a0a86d82.js → Analytics-03981aad.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -4
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-99f4d813.js → package-7fdd14b9.js} +3 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +5 -3
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +2 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/docs.json +523 -19
- package/dist/esm/{Analytics-e460ab05.js → Analytics-3103f8e9.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +4 -2
- package/dist/esm/justifi-business-form.entry.js +6 -4
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +6 -4
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -2
- package/dist/esm/justifi-payment-details.entry.js +4 -2
- package/dist/esm/justifi-payment-form.entry.js +8 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -3
- package/dist/esm/justifi-payments-list.entry.js +4 -2
- package/dist/esm/justifi-payout-details.entry.js +4 -2
- package/dist/esm/justifi-payouts-list.entry.js +4 -2
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-0935c5e5.js → package-0e3cc41e.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +15 -10
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +3 -3
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +3 -1
- package/dist/module/justifi-checkout.js +4 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +5 -3
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-payments-list.js +42 -10
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -1
- package/dist/module/package.js +3 -1
- package/dist/module/payments-list-core2.js +51 -17
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/types/api/Payment.d.ts +8 -0
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components.d.ts +89 -10
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/p-05718341.entry.js +1 -0
- package/dist/webcomponents/{p-b676bca5.entry.js → p-0de026dd.entry.js} +1 -1
- package/dist/webcomponents/p-0e84986e.entry.js +10 -0
- package/dist/webcomponents/p-1612894d.js +1 -0
- package/dist/webcomponents/p-20dafb46.entry.js +1 -0
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
- package/dist/webcomponents/{p-be39c802.entry.js → p-3c7fac29.entry.js} +1 -1
- package/dist/webcomponents/p-428e9b64.entry.js +1 -0
- package/dist/webcomponents/{p-edb62047.entry.js → p-430f81c6.entry.js} +1 -1
- package/dist/webcomponents/{p-4e017b58.js → p-437f9114.js} +1 -1
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/{p-f5ebca3e.entry.js → p-4628cc9b.entry.js} +1 -1
- package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
- package/dist/webcomponents/p-5540a47c.entry.js +1 -0
- package/dist/webcomponents/{p-fb58feb5.entry.js → p-570a0f02.entry.js} +1 -1
- package/dist/webcomponents/{p-c9f8f7ec.entry.js → p-59cf5391.entry.js} +1 -1
- package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
- package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
- package/dist/webcomponents/p-8281f09a.js +1 -0
- package/dist/webcomponents/p-8921a478.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
- package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
- package/dist/webcomponents/{p-bd278ff4.entry.js → p-938bf2b4.entry.js} +1 -1
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/{p-4e01fec8.entry.js → p-b14da2fd.entry.js} +1 -1
- package/dist/webcomponents/{p-124c1ecd.entry.js → p-bdc91c61.entry.js} +1 -1
- package/dist/webcomponents/{p-487b72a8.entry.js → p-c64ce69d.entry.js} +1 -1
- package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
- package/dist/webcomponents/p-eea79a55.entry.js +1 -0
- package/dist/webcomponents/{p-b6c3b7bc.entry.js → p-f6a2dc78.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/webcomponents/p-07109641.entry.js +0 -1
- package/dist/webcomponents/p-11b6ed0c.entry.js +0 -1
- package/dist/webcomponents/p-15976984.entry.js +0 -1
- package/dist/webcomponents/p-1cf90026.entry.js +0 -1
- package/dist/webcomponents/p-3423ddfd.entry.js +0 -1
- package/dist/webcomponents/p-39c6f36a.entry.js +0 -1
- package/dist/webcomponents/p-421ed39d.entry.js +0 -1
- package/dist/webcomponents/p-69c18f39.entry.js +0 -1
- package/dist/webcomponents/p-6abb2a04.entry.js +0 -1
- package/dist/webcomponents/p-721dcf51.entry.js +0 -1
- package/dist/webcomponents/p-817da23c.entry.js +0 -1
- package/dist/webcomponents/p-a99032e1.entry.js +0 -1
- package/dist/webcomponents/p-ba4bae6f.js +0 -1
- package/dist/webcomponents/p-d4a44a1e.entry.js +0 -1
- package/dist/webcomponents/p-d78eb6ce.js +0 -1
- package/dist/webcomponents/p-e2b2213f.entry.js +0 -1
- package/dist/webcomponents/p-e7fd1357.entry.js +0 -1
- package/dist/webcomponents/p-eccf2e8e.entry.js +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TableFiltersMenu extends Components.TableFiltersMenu, HTMLElement {}
|
|
4
|
+
export const TableFiltersMenu: {
|
|
5
|
+
prototype: TableFiltersMenu;
|
|
6
|
+
new (): TableFiltersMenu;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { B as Button } from './button.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './custom-popper2.js';
|
|
4
|
+
|
|
5
|
+
const onFilterChange = (newFilters, params) => {
|
|
6
|
+
let newParams = Object.assign({}, params);
|
|
7
|
+
delete newParams.before_cursor;
|
|
8
|
+
delete newParams.after_cursor;
|
|
9
|
+
Object.keys(newFilters).forEach((key) => {
|
|
10
|
+
if (newFilters[key].length) {
|
|
11
|
+
newParams[key] = newFilters[key];
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
delete newParams[key];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return newParams;
|
|
18
|
+
};
|
|
19
|
+
const hasFilters = (params) => {
|
|
20
|
+
const paginationKeys = ['after_cursor', 'before_cursor'];
|
|
21
|
+
const paramKeys = Object.keys(params);
|
|
22
|
+
const filterKeys = paramKeys.filter((paramKey) => !paginationKeys.includes(paramKey));
|
|
23
|
+
return !!filterKeys.length;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu extends HTMLElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.__registerHost();
|
|
30
|
+
this.anchorButton = undefined;
|
|
31
|
+
this.menu = undefined;
|
|
32
|
+
this.showClearButton = false;
|
|
33
|
+
this.params = undefined;
|
|
34
|
+
this.clearParams = undefined;
|
|
35
|
+
}
|
|
36
|
+
watchParamsHandler(newValue) {
|
|
37
|
+
this.showClearButton = hasFilters(newValue);
|
|
38
|
+
}
|
|
39
|
+
show() {
|
|
40
|
+
this.menu.classList.add('show');
|
|
41
|
+
}
|
|
42
|
+
hide() {
|
|
43
|
+
this.menu.classList.remove('show');
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return (h("div", { key: '26c76e4989db63505bbb6d4ecfed10f964839c73', class: "d-flex gap-2" }, h("div", { key: '5b9b28d3c1daeb5c38fd5f2fb2529e8251f6d193', class: "dropdown pb-3" }, h(Button, { key: '45adcccffe23b4d357f0870f961eecfa0a8b3199', variant: "primary", type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '8f381f3db3956a642107bba64f2a2a4370bae2cf', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: '8e5cb0a64848e0720732fc95206deaf56ca338c9', class: "dropdown-menu", part: "dropdown-menu", "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: 'a102749963913d0a58e0210ea9c3bf3d4a14c1f3' })))), h("div", { key: 'ac38e6b46ce79967e66da4d40c0778df0b07e1a6' }, h(Button, { key: '2c8ef6ff571121b8cab1b17f2ac7035792f1d7f4', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
47
|
+
}
|
|
48
|
+
static get watchers() { return {
|
|
49
|
+
"params": ["watchParamsHandler"]
|
|
50
|
+
}; }
|
|
51
|
+
}, [4, "table-filters-menu", {
|
|
52
|
+
"params": [8],
|
|
53
|
+
"clearParams": [16],
|
|
54
|
+
"anchorButton": [32],
|
|
55
|
+
"menu": [32],
|
|
56
|
+
"showClearButton": [32]
|
|
57
|
+
}, [[0, "showEvent", "show"], [0, "hideEvent", "hide"]], {
|
|
58
|
+
"params": ["watchParamsHandler"]
|
|
59
|
+
}]);
|
|
60
|
+
function defineCustomElement() {
|
|
61
|
+
if (typeof customElements === "undefined") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const components = ["table-filters-menu", "custom-popper"];
|
|
65
|
+
components.forEach(tagName => { switch (tagName) {
|
|
66
|
+
case "table-filters-menu":
|
|
67
|
+
if (!customElements.get(tagName)) {
|
|
68
|
+
customElements.define(tagName, TableFiltersMenu);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case "custom-popper":
|
|
72
|
+
if (!customElements.get(tagName)) {
|
|
73
|
+
defineCustomElement$1();
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
} });
|
|
77
|
+
}
|
|
78
|
+
defineCustomElement();
|
|
79
|
+
|
|
80
|
+
export { TableFiltersMenu as T, defineCustomElement as d, onFilterChange as o };
|
|
@@ -169,3 +169,11 @@ export interface IApplicationFee {
|
|
|
169
169
|
created_at: string;
|
|
170
170
|
updated_at: string;
|
|
171
171
|
}
|
|
172
|
+
export interface PaymentsParams {
|
|
173
|
+
terminal_id?: string;
|
|
174
|
+
payment_status?: PaymentStatuses;
|
|
175
|
+
created_after?: string;
|
|
176
|
+
created_before?: string;
|
|
177
|
+
after_cursor?: string;
|
|
178
|
+
before_cursor?: string;
|
|
179
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class DateInput {
|
|
3
3
|
dateInput: HTMLInputElement;
|
|
4
|
-
label: string;
|
|
5
4
|
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
inputHandler: (name: string, value: string) => void;
|
|
7
|
+
defaultValue?: string;
|
|
6
8
|
helpText?: string;
|
|
7
9
|
errorText?: string;
|
|
8
|
-
|
|
9
|
-
inputHandler: any;
|
|
10
|
-
disabled: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
11
|
handleDefaultValueChange(newValue: string): void;
|
|
12
12
|
formControlInput: EventEmitter<any>;
|
|
13
13
|
formControlBlur: EventEmitter<any>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class SelectInput {
|
|
3
3
|
selectElement: HTMLSelectElement;
|
|
4
|
-
label: string;
|
|
5
4
|
name: any;
|
|
6
|
-
|
|
7
|
-
errorText?: string;
|
|
8
|
-
defaultValue: string;
|
|
9
|
-
inputHandler: (name: string, value: string) => void;
|
|
5
|
+
label: string;
|
|
10
6
|
options: {
|
|
11
7
|
label: string;
|
|
12
8
|
value: string;
|
|
13
9
|
}[];
|
|
14
|
-
|
|
10
|
+
inputHandler: (name: string, value: string) => void;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
helpText?: string;
|
|
13
|
+
errorText?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
15
|
handleDefaultValueChange(newValue: string): void;
|
|
16
16
|
formControlInput: EventEmitter<any>;
|
|
17
17
|
formControlBlur: EventEmitter<any>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class TextInput {
|
|
3
3
|
el: HTMLElement;
|
|
4
|
-
label: string;
|
|
5
4
|
name: any;
|
|
5
|
+
label: string;
|
|
6
|
+
inputHandler: (name: string, value: string) => void;
|
|
7
|
+
defaultValue?: string;
|
|
6
8
|
helpText?: string;
|
|
7
9
|
errorText?: string;
|
|
8
|
-
defaultValue: string;
|
|
9
10
|
maxLength?: number;
|
|
10
|
-
inputHandler: (name: string, value: string) => void;
|
|
11
11
|
keyDownHandler?: (event: any) => void;
|
|
12
|
-
disabled
|
|
12
|
+
disabled?: boolean;
|
|
13
13
|
handleDefaultValueChange(newValue: string): void;
|
|
14
14
|
formControlInput: EventEmitter<any>;
|
|
15
15
|
formControlBlur: EventEmitter<any>;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { PagingInfo, Payment } from '../../api';
|
|
2
|
+
import { PagingInfo, Payment, PaymentsParams } from '../../api';
|
|
3
3
|
import { ComponentError } from '../../api/ComponentError';
|
|
4
4
|
export declare class PaymentsListCore {
|
|
5
|
-
getPayments: Function;
|
|
6
5
|
payments: Payment[];
|
|
7
6
|
loading: boolean;
|
|
8
7
|
errorMessage: string;
|
|
9
8
|
paging: PagingInfo;
|
|
10
|
-
params:
|
|
9
|
+
params: PaymentsParams;
|
|
10
|
+
getPayments: Function;
|
|
11
|
+
updateOnPropChange(): void;
|
|
11
12
|
rowClicked: EventEmitter<Payment>;
|
|
12
13
|
errorEvent: EventEmitter<ComponentError>;
|
|
13
|
-
updateOnPropChange(): void;
|
|
14
14
|
componentWillLoad(): void;
|
|
15
15
|
fetchData(): void;
|
|
16
16
|
handleClickPrevious: (beforeCursor: string) => void;
|
|
17
17
|
handleClickNext: (afterCursor: string) => void;
|
|
18
18
|
rowClickHandler: (e: any) => void;
|
|
19
|
+
setParamsOnChange: (name: string, value: string) => void;
|
|
20
|
+
clearParams: () => void;
|
|
19
21
|
get entityId(): string[];
|
|
20
22
|
get columnData(): string[][];
|
|
21
23
|
get rowData(): (string | {
|
|
@@ -25,6 +27,5 @@ export declare class PaymentsListCore {
|
|
|
25
27
|
get showEmptyState(): boolean;
|
|
26
28
|
get showErrorState(): boolean;
|
|
27
29
|
get showRowData(): boolean;
|
|
28
|
-
handleDateChange: (name: string, value: string) => void;
|
|
29
30
|
render(): any;
|
|
30
31
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaymentsParams } from '../../api';
|
|
2
|
+
export declare class PaymentsListFilters {
|
|
3
|
+
params: PaymentsParams;
|
|
4
|
+
setParamsOnChange: (name: string, value: string) => void;
|
|
5
|
+
clearParams: () => void;
|
|
6
|
+
private debouncedSetParamsOnChange;
|
|
7
|
+
componentWillLoad(): void;
|
|
8
|
+
get paymentStatusOptions(): {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { IAdditionalQuestions, IAddress, IBusiness } from "./api/Business";
|
|
9
9
|
import { ComponentError } from "./api/ComponentError";
|
|
10
|
+
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
10
11
|
import { EntityDocumentType, FileSelectEvent } from "./api/Document";
|
|
11
12
|
import { FormController } from "./components/form/form";
|
|
12
13
|
import { BusinessFormClickEvent, BusinessFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
|
|
13
14
|
import { ComponentError as ComponentError1 } from "./components";
|
|
14
15
|
import { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
|
|
15
16
|
import { BillingFormFields } from "./components/billing-form/billing-form-schema";
|
|
16
|
-
import { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, Payout } from "./api";
|
|
17
|
+
import { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, PaymentsParams, Payout } from "./api";
|
|
17
18
|
import { ICheckoutCompleteResponse, ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
|
|
18
19
|
import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
19
20
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -22,13 +23,14 @@ import { Identity } from "./api/Identity";
|
|
|
22
23
|
import { PaginationProps } from "./components/pagination-menu/pagination-menu";
|
|
23
24
|
export { IAdditionalQuestions, IAddress, IBusiness } from "./api/Business";
|
|
24
25
|
export { ComponentError } from "./api/ComponentError";
|
|
26
|
+
export { Placement, PositioningStrategy } from "@popperjs/core";
|
|
25
27
|
export { EntityDocumentType, FileSelectEvent } from "./api/Document";
|
|
26
28
|
export { FormController } from "./components/form/form";
|
|
27
29
|
export { BusinessFormClickEvent, BusinessFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
|
|
28
30
|
export { ComponentError as ComponentError1 } from "./components";
|
|
29
31
|
export { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
|
|
30
32
|
export { BillingFormFields } from "./components/billing-form/billing-form-schema";
|
|
31
|
-
export { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, Payout } from "./api";
|
|
33
|
+
export { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, PaymentsParams, Payout } from "./api";
|
|
32
34
|
export { ICheckoutCompleteResponse, ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
|
|
33
35
|
export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
34
36
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -49,6 +51,13 @@ export namespace Components {
|
|
|
49
51
|
interface BusinessDetailsCore {
|
|
50
52
|
"getBusiness": Function;
|
|
51
53
|
}
|
|
54
|
+
interface CustomPopper {
|
|
55
|
+
"anchorRef": HTMLElement;
|
|
56
|
+
"offset": [number, number];
|
|
57
|
+
"placement": Placement;
|
|
58
|
+
"strategy": PositioningStrategy;
|
|
59
|
+
"trigger": string;
|
|
60
|
+
}
|
|
52
61
|
interface FormAlert {
|
|
53
62
|
"hideAlert": boolean;
|
|
54
63
|
"text": string;
|
|
@@ -63,11 +72,11 @@ export namespace Components {
|
|
|
63
72
|
"name": any;
|
|
64
73
|
}
|
|
65
74
|
interface FormControlDate {
|
|
66
|
-
"defaultValue"
|
|
67
|
-
"disabled"
|
|
75
|
+
"defaultValue"?: string;
|
|
76
|
+
"disabled"?: boolean;
|
|
68
77
|
"errorText"?: string;
|
|
69
78
|
"helpText"?: string;
|
|
70
|
-
"inputHandler":
|
|
79
|
+
"inputHandler": (name: string, value: string) => void;
|
|
71
80
|
"label": string;
|
|
72
81
|
"name": string;
|
|
73
82
|
}
|
|
@@ -119,8 +128,8 @@ export namespace Components {
|
|
|
119
128
|
"name": any;
|
|
120
129
|
}
|
|
121
130
|
interface FormControlSelect {
|
|
122
|
-
"defaultValue"
|
|
123
|
-
"disabled"
|
|
131
|
+
"defaultValue"?: string;
|
|
132
|
+
"disabled"?: boolean;
|
|
124
133
|
"errorText"?: string;
|
|
125
134
|
"helpText"?: string;
|
|
126
135
|
"inputHandler": (name: string, value: string) => void;
|
|
@@ -129,8 +138,8 @@ export namespace Components {
|
|
|
129
138
|
"options": { label: string; value: string }[];
|
|
130
139
|
}
|
|
131
140
|
interface FormControlText {
|
|
132
|
-
"defaultValue"
|
|
133
|
-
"disabled"
|
|
141
|
+
"defaultValue"?: string;
|
|
142
|
+
"disabled"?: boolean;
|
|
134
143
|
"errorText"?: string;
|
|
135
144
|
"helpText"?: string;
|
|
136
145
|
"inputHandler": (name: string, value: string) => void;
|
|
@@ -721,6 +730,11 @@ export namespace Components {
|
|
|
721
730
|
interface PaymentsListCore {
|
|
722
731
|
"getPayments": Function;
|
|
723
732
|
}
|
|
733
|
+
interface PaymentsListFilters {
|
|
734
|
+
"clearParams": () => void;
|
|
735
|
+
"params": PaymentsParams;
|
|
736
|
+
"setParamsOnChange": (name: string, value: string) => void;
|
|
737
|
+
}
|
|
724
738
|
interface PayoutDetailsCore {
|
|
725
739
|
"getPayout": Function;
|
|
726
740
|
"getPayoutCSV": Function;
|
|
@@ -739,11 +753,19 @@ export namespace Components {
|
|
|
739
753
|
interface RepresentativeDetails {
|
|
740
754
|
"representative": Identity;
|
|
741
755
|
}
|
|
756
|
+
interface TableFiltersMenu {
|
|
757
|
+
"clearParams": () => void;
|
|
758
|
+
"params": any;
|
|
759
|
+
}
|
|
742
760
|
}
|
|
743
761
|
export interface BusinessDetailsCoreCustomEvent<T> extends CustomEvent<T> {
|
|
744
762
|
detail: T;
|
|
745
763
|
target: HTMLBusinessDetailsCoreElement;
|
|
746
764
|
}
|
|
765
|
+
export interface CustomPopperCustomEvent<T> extends CustomEvent<T> {
|
|
766
|
+
detail: T;
|
|
767
|
+
target: HTMLCustomPopperElement;
|
|
768
|
+
}
|
|
747
769
|
export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
748
770
|
detail: T;
|
|
749
771
|
target: HTMLFormControlCheckboxElement;
|
|
@@ -987,6 +1009,24 @@ declare global {
|
|
|
987
1009
|
prototype: HTMLBusinessDetailsCoreElement;
|
|
988
1010
|
new (): HTMLBusinessDetailsCoreElement;
|
|
989
1011
|
};
|
|
1012
|
+
interface HTMLCustomPopperElementEventMap {
|
|
1013
|
+
"showEvent": any;
|
|
1014
|
+
"hideEvent": any;
|
|
1015
|
+
}
|
|
1016
|
+
interface HTMLCustomPopperElement extends Components.CustomPopper, HTMLStencilElement {
|
|
1017
|
+
addEventListener<K extends keyof HTMLCustomPopperElementEventMap>(type: K, listener: (this: HTMLCustomPopperElement, ev: CustomPopperCustomEvent<HTMLCustomPopperElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1018
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1019
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1020
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1021
|
+
removeEventListener<K extends keyof HTMLCustomPopperElementEventMap>(type: K, listener: (this: HTMLCustomPopperElement, ev: CustomPopperCustomEvent<HTMLCustomPopperElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1022
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1023
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1024
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1025
|
+
}
|
|
1026
|
+
var HTMLCustomPopperElement: {
|
|
1027
|
+
prototype: HTMLCustomPopperElement;
|
|
1028
|
+
new (): HTMLCustomPopperElement;
|
|
1029
|
+
};
|
|
990
1030
|
interface HTMLFormAlertElement extends Components.FormAlert, HTMLStencilElement {
|
|
991
1031
|
}
|
|
992
1032
|
var HTMLFormAlertElement: {
|
|
@@ -2157,6 +2197,12 @@ declare global {
|
|
|
2157
2197
|
prototype: HTMLPaymentsListCoreElement;
|
|
2158
2198
|
new (): HTMLPaymentsListCoreElement;
|
|
2159
2199
|
};
|
|
2200
|
+
interface HTMLPaymentsListFiltersElement extends Components.PaymentsListFilters, HTMLStencilElement {
|
|
2201
|
+
}
|
|
2202
|
+
var HTMLPaymentsListFiltersElement: {
|
|
2203
|
+
prototype: HTMLPaymentsListFiltersElement;
|
|
2204
|
+
new (): HTMLPaymentsListFiltersElement;
|
|
2205
|
+
};
|
|
2160
2206
|
interface HTMLPayoutDetailsCoreElementEventMap {
|
|
2161
2207
|
"error-event": ComponentError;
|
|
2162
2208
|
}
|
|
@@ -2205,9 +2251,16 @@ declare global {
|
|
|
2205
2251
|
prototype: HTMLRepresentativeDetailsElement;
|
|
2206
2252
|
new (): HTMLRepresentativeDetailsElement;
|
|
2207
2253
|
};
|
|
2254
|
+
interface HTMLTableFiltersMenuElement extends Components.TableFiltersMenu, HTMLStencilElement {
|
|
2255
|
+
}
|
|
2256
|
+
var HTMLTableFiltersMenuElement: {
|
|
2257
|
+
prototype: HTMLTableFiltersMenuElement;
|
|
2258
|
+
new (): HTMLTableFiltersMenuElement;
|
|
2259
|
+
};
|
|
2208
2260
|
interface HTMLElementTagNameMap {
|
|
2209
2261
|
"additional-questions-details": HTMLAdditionalQuestionsDetailsElement;
|
|
2210
2262
|
"business-details-core": HTMLBusinessDetailsCoreElement;
|
|
2263
|
+
"custom-popper": HTMLCustomPopperElement;
|
|
2211
2264
|
"form-alert": HTMLFormAlertElement;
|
|
2212
2265
|
"form-control-checkbox": HTMLFormControlCheckboxElement;
|
|
2213
2266
|
"form-control-date": HTMLFormControlDateElement;
|
|
@@ -2279,9 +2332,11 @@ declare global {
|
|
|
2279
2332
|
"pagination-menu": HTMLPaginationMenuElement;
|
|
2280
2333
|
"payment-details-core": HTMLPaymentDetailsCoreElement;
|
|
2281
2334
|
"payments-list-core": HTMLPaymentsListCoreElement;
|
|
2335
|
+
"payments-list-filters": HTMLPaymentsListFiltersElement;
|
|
2282
2336
|
"payout-details-core": HTMLPayoutDetailsCoreElement;
|
|
2283
2337
|
"payouts-list-core": HTMLPayoutsListCoreElement;
|
|
2284
2338
|
"representative-details": HTMLRepresentativeDetailsElement;
|
|
2339
|
+
"table-filters-menu": HTMLTableFiltersMenuElement;
|
|
2285
2340
|
}
|
|
2286
2341
|
}
|
|
2287
2342
|
declare namespace LocalJSX {
|
|
@@ -2299,6 +2354,15 @@ declare namespace LocalJSX {
|
|
|
2299
2354
|
"getBusiness"?: Function;
|
|
2300
2355
|
"onError-event"?: (event: BusinessDetailsCoreCustomEvent<ComponentError>) => void;
|
|
2301
2356
|
}
|
|
2357
|
+
interface CustomPopper {
|
|
2358
|
+
"anchorRef"?: HTMLElement;
|
|
2359
|
+
"offset"?: [number, number];
|
|
2360
|
+
"onHideEvent"?: (event: CustomPopperCustomEvent<any>) => void;
|
|
2361
|
+
"onShowEvent"?: (event: CustomPopperCustomEvent<any>) => void;
|
|
2362
|
+
"placement"?: Placement;
|
|
2363
|
+
"strategy"?: PositioningStrategy;
|
|
2364
|
+
"trigger"?: string;
|
|
2365
|
+
}
|
|
2302
2366
|
interface FormAlert {
|
|
2303
2367
|
"hideAlert"?: boolean;
|
|
2304
2368
|
"text"?: string;
|
|
@@ -2319,7 +2383,7 @@ declare namespace LocalJSX {
|
|
|
2319
2383
|
"disabled"?: boolean;
|
|
2320
2384
|
"errorText"?: string;
|
|
2321
2385
|
"helpText"?: string;
|
|
2322
|
-
"inputHandler"?:
|
|
2386
|
+
"inputHandler"?: (name: string, value: string) => void;
|
|
2323
2387
|
"label"?: string;
|
|
2324
2388
|
"name"?: string;
|
|
2325
2389
|
"onFormControlBlur"?: (event: FormControlDateCustomEvent<any>) => void;
|
|
@@ -3040,6 +3104,11 @@ declare namespace LocalJSX {
|
|
|
3040
3104
|
"onError-event"?: (event: PaymentsListCoreCustomEvent<ComponentError>) => void;
|
|
3041
3105
|
"onPayment-row-clicked"?: (event: PaymentsListCoreCustomEvent<Payment>) => void;
|
|
3042
3106
|
}
|
|
3107
|
+
interface PaymentsListFilters {
|
|
3108
|
+
"clearParams"?: () => void;
|
|
3109
|
+
"params"?: PaymentsParams;
|
|
3110
|
+
"setParamsOnChange"?: (name: string, value: string) => void;
|
|
3111
|
+
}
|
|
3043
3112
|
interface PayoutDetailsCore {
|
|
3044
3113
|
"getPayout"?: Function;
|
|
3045
3114
|
"getPayoutCSV"?: Function;
|
|
@@ -3061,9 +3130,14 @@ declare namespace LocalJSX {
|
|
|
3061
3130
|
interface RepresentativeDetails {
|
|
3062
3131
|
"representative"?: Identity;
|
|
3063
3132
|
}
|
|
3133
|
+
interface TableFiltersMenu {
|
|
3134
|
+
"clearParams"?: () => void;
|
|
3135
|
+
"params"?: any;
|
|
3136
|
+
}
|
|
3064
3137
|
interface IntrinsicElements {
|
|
3065
3138
|
"additional-questions-details": AdditionalQuestionsDetails;
|
|
3066
3139
|
"business-details-core": BusinessDetailsCore;
|
|
3140
|
+
"custom-popper": CustomPopper;
|
|
3067
3141
|
"form-alert": FormAlert;
|
|
3068
3142
|
"form-control-checkbox": FormControlCheckbox;
|
|
3069
3143
|
"form-control-date": FormControlDate;
|
|
@@ -3135,9 +3209,11 @@ declare namespace LocalJSX {
|
|
|
3135
3209
|
"pagination-menu": PaginationMenu;
|
|
3136
3210
|
"payment-details-core": PaymentDetailsCore;
|
|
3137
3211
|
"payments-list-core": PaymentsListCore;
|
|
3212
|
+
"payments-list-filters": PaymentsListFilters;
|
|
3138
3213
|
"payout-details-core": PayoutDetailsCore;
|
|
3139
3214
|
"payouts-list-core": PayoutsListCore;
|
|
3140
3215
|
"representative-details": RepresentativeDetails;
|
|
3216
|
+
"table-filters-menu": TableFiltersMenu;
|
|
3141
3217
|
}
|
|
3142
3218
|
}
|
|
3143
3219
|
export { LocalJSX as JSX };
|
|
@@ -3153,6 +3229,7 @@ declare module "@stencil/core" {
|
|
|
3153
3229
|
*/
|
|
3154
3230
|
"additional-questions-details": LocalJSX.AdditionalQuestionsDetails & JSXBase.HTMLAttributes<HTMLAdditionalQuestionsDetailsElement>;
|
|
3155
3231
|
"business-details-core": LocalJSX.BusinessDetailsCore & JSXBase.HTMLAttributes<HTMLBusinessDetailsCoreElement>;
|
|
3232
|
+
"custom-popper": LocalJSX.CustomPopper & JSXBase.HTMLAttributes<HTMLCustomPopperElement>;
|
|
3156
3233
|
"form-alert": LocalJSX.FormAlert & JSXBase.HTMLAttributes<HTMLFormAlertElement>;
|
|
3157
3234
|
"form-control-checkbox": LocalJSX.FormControlCheckbox & JSXBase.HTMLAttributes<HTMLFormControlCheckboxElement>;
|
|
3158
3235
|
"form-control-date": LocalJSX.FormControlDate & JSXBase.HTMLAttributes<HTMLFormControlDateElement>;
|
|
@@ -3359,6 +3436,7 @@ declare module "@stencil/core" {
|
|
|
3359
3436
|
"pagination-menu": LocalJSX.PaginationMenu & JSXBase.HTMLAttributes<HTMLPaginationMenuElement>;
|
|
3360
3437
|
"payment-details-core": LocalJSX.PaymentDetailsCore & JSXBase.HTMLAttributes<HTMLPaymentDetailsCoreElement>;
|
|
3361
3438
|
"payments-list-core": LocalJSX.PaymentsListCore & JSXBase.HTMLAttributes<HTMLPaymentsListCoreElement>;
|
|
3439
|
+
"payments-list-filters": LocalJSX.PaymentsListFilters & JSXBase.HTMLAttributes<HTMLPaymentsListFiltersElement>;
|
|
3362
3440
|
"payout-details-core": LocalJSX.PayoutDetailsCore & JSXBase.HTMLAttributes<HTMLPayoutDetailsCoreElement>;
|
|
3363
3441
|
"payouts-list-core": LocalJSX.PayoutsListCore & JSXBase.HTMLAttributes<HTMLPayoutsListCoreElement>;
|
|
3364
3442
|
/**
|
|
@@ -3369,6 +3447,7 @@ declare module "@stencil/core" {
|
|
|
3369
3447
|
* @exportedPart detail-empty-state
|
|
3370
3448
|
*/
|
|
3371
3449
|
"representative-details": LocalJSX.RepresentativeDetails & JSXBase.HTMLAttributes<HTMLRepresentativeDetailsElement>;
|
|
3450
|
+
"table-filters-menu": LocalJSX.TableFiltersMenu & JSXBase.HTMLAttributes<HTMLTableFiltersMenuElement>;
|
|
3372
3451
|
}
|
|
3373
3452
|
}
|
|
3374
3453
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Placement, PositioningStrategy } from '@popperjs/core';
|
|
3
|
+
export declare class CustomPopper {
|
|
4
|
+
placement: Placement;
|
|
5
|
+
offset: [number, number];
|
|
6
|
+
strategy: PositioningStrategy;
|
|
7
|
+
trigger: string;
|
|
8
|
+
anchorRef: HTMLElement;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
showEvent: EventEmitter;
|
|
11
|
+
hideEvent: EventEmitter;
|
|
12
|
+
private popperInstance;
|
|
13
|
+
private popperContentRef;
|
|
14
|
+
componentDidLoad(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
handleClick(event: MouseEvent): void;
|
|
17
|
+
private get popperOptions();
|
|
18
|
+
show(): void;
|
|
19
|
+
hide(): void;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkPkgVersion: () => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as r,h as t}from"./p-fad19d75.js";import{c as i,F as a}from"./p-2eab3c90.js";import{b as e,a as s}from"./p-277aee05.js";import{a as c,i as b}from"./p-55182a59.js";import{A as f}from"./p-7d3be485.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as d}from"./p-5a62fca2.js";import{B as n,a as l}from"./p-d89bad72.js";import{B as m}from"./p-5e7c60d8.js";import{J as h}from"./p-437f9114.js";import{S as u}from"./p-44055818.js";import{c as j}from"./p-1612894d.js";import"./p-5022f21c.js";import"./p-6078a370.js";import"./p-1815a43b.js";import"./p-1ff8810b.js";import"./p-8281f09a.js";const v=i(Object.assign(Object.assign({},e().fields),{legal_address:c(),additional_questions:s(),representative:b("representative")})),p=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.clickEventNew=r(this,"click-event",7),this.clickEventOld=r(this,"clickEvent",7),this.instantiateBusiness=o=>{const r=new m(o);this.formController.setInitialValues(Object.assign({},r))},this.sendData=async()=>{this.isLoading=!0;try{const o=this.formController.values.getValue(),r=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},r),o)).payload,i=await this.api.patch(this.businessEndpoint,t);this.handleReponse(i)}catch(o){this.errorMessage=n.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const o=await this.api.get(this.businessEndpoint);this.instantiateBusiness(o.data)}catch(o){this.errorMessage=n.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=o=>{o.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.errorMessage=void 0}componentWillLoad(){j(),this.analytics=new h(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new a(v),this.api=f({authToken:this.authToken,apiOrigin:d.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}fireClickEvents(o){console.warn("`clickEvent` is deprecated and will be removed in the next major release. Please use `click-event` instead."),this.clickEventNew.emit(o),this.clickEventOld.emit(o)}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(o){o.error&&(this.errorMessage=n.patchData),this.submitted.emit({data:o}),this.instantiateBusiness(o.data)}render(){return t(u,{key:"2f28b3e44c64d6ea1ac0d8584946927f6c9c3d05",exportparts:"label,input,input-invalid"},t("form",{key:"5e57787b7dcd649c3523dc49d0a6946138643c7c",onSubmit:this.validateAndSubmit},t("div",{key:"0ee6212aa6157ade79ab9b2ff5eb700549a8a916",class:"row gap-3"},t("h1",{key:"84824314dd924cdab149c2b62b7e01b07dbf5d28"},this.title),t("form-alert",{key:"dca6d7ef6bcddd3090f44e5ccf9199bbd441dc87",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"a022912c284d63afbf9ce698b145d964d720b110",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"be264b806255b790a166b8a3349d78845c6c8225",formController:this.formController})),t("div",{key:"b3a52da227a71f941941f66b758f718cdc3b7800",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"258dc5ebabc0e2dfaa8de28534238ef80a4f951d",formController:this.formController})),t("div",{key:"9dd5d30daf37d90a689333640cd1630000ee5e25",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"aa1cdf3a39170fcefbd07afcce193ed36430dc5b",formController:this.formController})),t("div",{key:"a8cd6655a6408bef11c9ad442ecae7a0b5e3c50d",class:"col-12 mb-4"},t("justifi-business-representative",{key:"33db8cd22d22b694917332941b89b7535bd19201",formController:this.formController})),t("div",{key:"99d46400c8d46e5a3ca6747e5bae70bf5652a367",class:"col-12 d-flex flex-row-reverse"},t("button",{key:"8b858727a11d5ec5f855c446f34da3c1d6253563",type:"submit",class:"btn btn-primary jfi-submit-button",disabled:this.disabledState,onClick:()=>this.fireClickEvents({name:l.submit})},this.isLoading?"Loading...":"Submit")))))}};p.style=":host{display:block}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox){font-family:var(--jfi-layout-font-family);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{p as justifi_business_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-5a62fca2.js";import{J as i}from"./p-
|
|
1
|
+
import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-5a62fca2.js";import{J as i}from"./p-437f9114.js";import"./p-8281f09a.js";import"./p-7d3be485.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"58843b8a47f35d716845de11f6a66d8960bc0776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
|