@justifi/webcomponents 4.19.3 → 4.20.1

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 (203) hide show
  1. package/dist/cjs/{Analytics-a0a86d82.js → Analytics-3c89cfb4.js} +1 -1
  2. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  3. package/dist/cjs/check-pkg-version-4fa0367d.js +24 -0
  4. package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
  5. package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
  6. package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
  7. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
  9. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -2
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -4
  11. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
  14. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  15. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -2
  16. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -3
  17. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -6
  18. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -3
  21. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -8
  22. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -2
  23. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -2
  24. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -3
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/{package-99f4d813.js → package-3a9ac89d.js} +3 -1
  29. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  30. package/dist/cjs/{payment.service-4b1c0a20.js → payment.service-47e2d84e.js} +5 -2
  31. package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
  32. package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
  33. package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
  34. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
  35. package/dist/cjs/styled-host-9e0b67b3.js +14 -0
  36. package/dist/cjs/utils-f8a6962c.js +25 -0
  37. package/dist/cjs/webcomponents.cjs.js +1 -1
  38. package/dist/collection/api/services/payment.service.js +5 -2
  39. package/dist/collection/collection-manifest.json +4 -1
  40. package/dist/collection/components/business-details/business-details.js +2 -0
  41. package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
  42. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
  43. package/dist/collection/components/checkout/checkout.js +4 -2
  44. package/dist/collection/components/form/form-control-date.js +26 -28
  45. package/dist/collection/components/form/form-control-select.js +45 -45
  46. package/dist/collection/components/form/form-control-text.js +34 -34
  47. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
  48. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
  49. package/dist/collection/components/payment-details/payment-details.js +2 -0
  50. package/dist/collection/components/payment-form/payment-form.js +5 -3
  51. package/dist/collection/components/payments-list/get-payments.js +2 -2
  52. package/dist/collection/components/payments-list/payments-list-core.js +14 -9
  53. package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
  54. package/dist/collection/components/payments-list/payments-list.js +25 -2
  55. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  56. package/dist/collection/components/payout-details/payout-details.js +2 -0
  57. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  58. package/dist/collection/components/payouts-list/payouts-list.js +2 -0
  59. package/dist/collection/components/refund-form/refund-form.js +1 -1
  60. package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
  61. package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
  62. package/dist/collection/ui-components/filters/utils.js +20 -0
  63. package/dist/collection/utils/check-pkg-version.js +19 -0
  64. package/dist/docs.json +545 -19
  65. package/dist/esm/{Analytics-e460ab05.js → Analytics-b0f6936a.js} +1 -1
  66. package/dist/esm/business-details-core.entry.js +1 -1
  67. package/dist/esm/check-pkg-version-10cadb08.js +22 -0
  68. package/dist/esm/custom-popper.entry.js +1890 -0
  69. package/dist/esm/form-control-date_3.entry.js +4 -4
  70. package/dist/esm/form-control-error-text_4.entry.js +9 -9
  71. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  72. package/dist/esm/justifi-billing-form_2.entry.js +1 -1
  73. package/dist/esm/justifi-business-details.entry.js +4 -2
  74. package/dist/esm/justifi-business-form.entry.js +6 -4
  75. package/dist/esm/justifi-card-form.entry.js +2 -2
  76. package/dist/esm/justifi-checkout-core.entry.js +1 -1
  77. package/dist/esm/justifi-checkout.entry.js +6 -4
  78. package/dist/esm/justifi-details.entry.js +1 -1
  79. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -2
  80. package/dist/esm/justifi-payment-details.entry.js +5 -3
  81. package/dist/esm/justifi-payment-form.entry.js +8 -6
  82. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  83. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  84. package/dist/esm/justifi-payment-provisioning.entry.js +5 -3
  85. package/dist/esm/justifi-payments-list.entry.js +12 -8
  86. package/dist/esm/justifi-payout-details.entry.js +4 -2
  87. package/dist/esm/justifi-payouts-list.entry.js +4 -2
  88. package/dist/esm/justifi-refund-form.entry.js +2 -2
  89. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  90. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -3
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{package-0935c5e5.js → package-2ef16e2c.js} +3 -1
  93. package/dist/esm/payment-details-core.entry.js +1 -1
  94. package/dist/esm/{payment.service-02c596b9.js → payment.service-21a3e2d3.js} +5 -2
  95. package/dist/esm/payments-list-core.entry.js +15 -10
  96. package/dist/esm/payments-list-filters_2.entry.js +17261 -0
  97. package/dist/esm/payout-details-core.entry.js +2 -2
  98. package/dist/esm/payouts-list-core.entry.js +3 -3
  99. package/dist/esm/styled-host-3171ae1f.js +12 -0
  100. package/dist/esm/utils-3a4d8f3a.js +22 -0
  101. package/dist/esm/webcomponents.js +1 -1
  102. package/dist/module/check-pkg-version.js +22 -0
  103. package/dist/module/custom-popper.d.ts +11 -0
  104. package/dist/module/custom-popper.js +6 -0
  105. package/dist/module/custom-popper2.js +1912 -0
  106. package/dist/module/form-control-date2.js +7 -7
  107. package/dist/module/form-control-select2.js +9 -9
  108. package/dist/module/form-control-text2.js +7 -7
  109. package/dist/module/justifi-business-details.js +2 -0
  110. package/dist/module/justifi-business-form.js +3 -1
  111. package/dist/module/justifi-checkout.js +4 -2
  112. package/dist/module/justifi-gross-payment-chart.js +2 -0
  113. package/dist/module/justifi-payment-details.js +2 -0
  114. package/dist/module/justifi-payment-form.js +5 -3
  115. package/dist/module/justifi-payment-provisioning.js +3 -1
  116. package/dist/module/justifi-payments-list.js +50 -14
  117. package/dist/module/justifi-payout-details.js +2 -0
  118. package/dist/module/justifi-payouts-list.js +2 -0
  119. package/dist/module/justifi-refund-form.js +1 -1
  120. package/dist/module/justifi-season-interruption-insurance.js +3 -1
  121. package/dist/module/package.js +3 -1
  122. package/dist/module/payment.service.js +5 -2
  123. package/dist/module/payments-list-core2.js +51 -17
  124. package/dist/module/payments-list-filters.d.ts +11 -0
  125. package/dist/module/payments-list-filters.js +6 -0
  126. package/dist/module/payments-list-filters2.js +17294 -0
  127. package/dist/module/payout-details-core2.js +1 -1
  128. package/dist/module/payouts-list-core2.js +2 -2
  129. package/dist/module/styled-host.js +1 -1
  130. package/dist/module/table-filters-menu.d.ts +11 -0
  131. package/dist/module/table-filters-menu.js +6 -0
  132. package/dist/module/table-filters-menu2.js +80 -0
  133. package/dist/types/api/Payment.d.ts +9 -0
  134. package/dist/types/api/services/payment.service.d.ts +2 -2
  135. package/dist/types/components/form/form-control-date.d.ts +4 -4
  136. package/dist/types/components/form/form-control-select.d.ts +6 -6
  137. package/dist/types/components/form/form-control-text.d.ts +4 -4
  138. package/dist/types/components/payments-list/get-payments.d.ts +2 -1
  139. package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
  140. package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
  141. package/dist/types/components/payments-list/payments-list.d.ts +3 -2
  142. package/dist/types/components.d.ts +91 -10
  143. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
  144. package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
  145. package/dist/types/ui-components/filters/utils.d.ts +2 -0
  146. package/dist/types/utils/check-pkg-version.d.ts +1 -0
  147. package/dist/webcomponents/p-034fc302.entry.js +1 -0
  148. package/dist/webcomponents/{p-f5ebca3e.entry.js → p-1c04aacd.entry.js} +1 -1
  149. package/dist/webcomponents/{p-b676bca5.entry.js → p-232016ba.entry.js} +1 -1
  150. package/dist/webcomponents/p-2c51d29f.js +1 -0
  151. package/dist/webcomponents/p-35846553.js +1 -0
  152. package/dist/webcomponents/{p-bd278ff4.entry.js → p-37888614.entry.js} +1 -1
  153. package/dist/webcomponents/{p-be39c802.entry.js → p-3c7fac29.entry.js} +1 -1
  154. package/dist/webcomponents/{p-edb62047.entry.js → p-430f81c6.entry.js} +1 -1
  155. package/dist/webcomponents/p-44055818.js +1 -0
  156. package/dist/webcomponents/p-538fd427.entry.js +1 -0
  157. package/dist/webcomponents/{p-fb58feb5.entry.js → p-570a0f02.entry.js} +1 -1
  158. package/dist/webcomponents/p-57d7534f.entry.js +1 -0
  159. package/dist/webcomponents/{p-c9f8f7ec.entry.js → p-59cf5391.entry.js} +1 -1
  160. package/dist/webcomponents/p-60d3571e.entry.js +1 -0
  161. package/dist/webcomponents/{p-4e017b58.js → p-707bdf68.js} +1 -1
  162. package/dist/webcomponents/p-75139399.entry.js +1 -0
  163. package/dist/webcomponents/p-7771f64b.entry.js +1 -0
  164. package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
  165. package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
  166. package/dist/webcomponents/p-9add7d3e.entry.js +1 -0
  167. package/dist/webcomponents/p-9b154d98.entry.js +1 -0
  168. package/dist/webcomponents/p-ab92abb1.entry.js +1 -0
  169. package/dist/webcomponents/{p-4e01fec8.entry.js → p-b14da2fd.entry.js} +1 -1
  170. package/dist/webcomponents/p-b91bcbfc.js +1 -0
  171. package/dist/webcomponents/{p-124c1ecd.entry.js → p-bdc91c61.entry.js} +1 -1
  172. package/dist/webcomponents/{p-eccf2e8e.entry.js → p-c1772671.entry.js} +1 -1
  173. package/dist/webcomponents/{p-487b72a8.entry.js → p-c64ce69d.entry.js} +1 -1
  174. package/dist/webcomponents/{p-b6c3b7bc.entry.js → p-c740b6ca.entry.js} +1 -1
  175. package/dist/webcomponents/p-ce5fe369.entry.js +10 -0
  176. package/dist/webcomponents/p-d9579cd6.entry.js +1 -0
  177. package/dist/webcomponents/p-d99a5f30.entry.js +1 -0
  178. package/dist/webcomponents/p-dc048c3c.entry.js +1 -0
  179. package/dist/webcomponents/p-f2924369.js +1 -0
  180. package/dist/webcomponents/p-fb7f7a8c.entry.js +1 -0
  181. package/dist/webcomponents/p-ffddac99.entry.js +1 -0
  182. package/dist/webcomponents/webcomponents.esm.js +1 -1
  183. package/package.json +3 -1
  184. package/dist/cjs/styled-host-cc053016.js +0 -14
  185. package/dist/esm/styled-host-ab9da520.js +0 -12
  186. package/dist/webcomponents/p-07109641.entry.js +0 -1
  187. package/dist/webcomponents/p-11b6ed0c.entry.js +0 -1
  188. package/dist/webcomponents/p-15976984.entry.js +0 -1
  189. package/dist/webcomponents/p-1cf90026.entry.js +0 -1
  190. package/dist/webcomponents/p-3423ddfd.entry.js +0 -1
  191. package/dist/webcomponents/p-39c6f36a.entry.js +0 -1
  192. package/dist/webcomponents/p-421ed39d.entry.js +0 -1
  193. package/dist/webcomponents/p-69c18f39.entry.js +0 -1
  194. package/dist/webcomponents/p-6abb2a04.entry.js +0 -1
  195. package/dist/webcomponents/p-721dcf51.entry.js +0 -1
  196. package/dist/webcomponents/p-817da23c.entry.js +0 -1
  197. package/dist/webcomponents/p-a99032e1.entry.js +0 -1
  198. package/dist/webcomponents/p-ba4bae6f.js +0 -1
  199. package/dist/webcomponents/p-d4a44a1e.entry.js +0 -1
  200. package/dist/webcomponents/p-d78eb6ce.js +0 -1
  201. package/dist/webcomponents/p-e2b2213f.entry.js +0 -1
  202. package/dist/webcomponents/p-e3f4a2a6.js +0 -1
  203. package/dist/webcomponents/p-e7fd1357.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,6 @@
1
+ import { T as TableFiltersMenu$1, d as defineCustomElement$1 } from './table-filters-menu2.js';
2
+
3
+ const TableFiltersMenu = TableFiltersMenu$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { TableFiltersMenu, defineCustomElement };
@@ -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: 'dd6aae6e43579e8f833b1f3f6a6227d2522d79ec', class: "d-flex gap-2" }, h("div", { key: '6decd268cf11d67c3f9e3c2b22e60cbdf328763a', class: "dropdown pb-3" }, h(Button, { key: 'af22247916f55da650da95006e3317316a4122f5', 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: '0516d664adf8feccb9dd9cb74023241867285bd6', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'd42f891b0b30fa152e03bfe3fbcb12da4707974b', class: "dropdown-menu", part: "dropdown-menu", "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '77eb00715458275e6df23da973103046364f50aa' })))), h("div", { key: 'c9070c2d5ee453cf3a97908514877975c55813b8' }, h(Button, { key: '99b38ff5ac51ee21227832b2200f2dcdec40a70c', 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,12 @@ export interface IApplicationFee {
169
169
  created_at: string;
170
170
  updated_at: string;
171
171
  }
172
+ export interface PaymentsParams {
173
+ payment_id?: string;
174
+ terminal_id?: string;
175
+ payment_status?: PaymentStatuses;
176
+ created_after?: string;
177
+ created_before?: string;
178
+ after_cursor?: string;
179
+ before_cursor?: string;
180
+ }
@@ -1,9 +1,9 @@
1
1
  import { IApiResponseCollection, IApiResponse, IPayment } from '..';
2
2
  export interface IPaymentService {
3
- fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
3
+ fetchPayments(accountId: string, authToken: string, params: any, apiOrigin?: string): Promise<IApiResponseCollection<IPayment[]>>;
4
4
  fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
5
5
  }
6
6
  export declare class PaymentService implements IPaymentService {
7
- fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
7
+ fetchPayments(accountId: string, authToken: string, params: any, apiOrigin?: string): Promise<IApiResponseCollection<IPayment[]>>;
8
8
  fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
9
9
  }
@@ -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
- defaultValue: string;
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
- helpText?: string;
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
- disabled: boolean;
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: boolean;
12
+ disabled?: boolean;
13
13
  handleDefaultValueChange(newValue: string): void;
14
14
  formControlInput: EventEmitter<any>;
15
15
  formControlBlur: EventEmitter<any>;
@@ -1,7 +1,8 @@
1
- export declare const makeGetPayments: ({ id, authToken, service }: {
1
+ export declare const makeGetPayments: ({ id, authToken, service, apiOrigin }: {
2
2
  id: any;
3
3
  authToken: any;
4
4
  service: any;
5
+ apiOrigin: any;
5
6
  }) => ({ params, onSuccess, onError }: {
6
7
  params: any;
7
8
  onSuccess: 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: any;
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
+ }
@@ -24,10 +24,11 @@ import JustifiAnalytics from '../../api/Analytics';
24
24
  * @exportedPart next-button-text: Text for Next button
25
25
  */
26
26
  export declare class PaymentsList {
27
- accountId: string;
28
- authToken: string;
29
27
  getPayments: Function;
30
28
  errorMessage: string;
29
+ accountId: string;
30
+ authToken: string;
31
+ apiOrigin?: string;
31
32
  errorEvent: EventEmitter<ComponentError>;
32
33
  analytics: JustifiAnalytics;
33
34
  componentWillLoad(): void;
@@ -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": string;
67
- "disabled": boolean;
75
+ "defaultValue"?: string;
76
+ "disabled"?: boolean;
68
77
  "errorText"?: string;
69
78
  "helpText"?: string;
70
- "inputHandler": any;
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": string;
123
- "disabled": boolean;
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": string;
133
- "disabled": boolean;
141
+ "defaultValue"?: string;
142
+ "disabled"?: boolean;
134
143
  "errorText"?: string;
135
144
  "helpText"?: string;
136
145
  "inputHandler": (name: string, value: string) => void;
@@ -576,6 +585,7 @@ export namespace Components {
576
585
  */
577
586
  interface JustifiPaymentsList {
578
587
  "accountId": string;
588
+ "apiOrigin"?: string;
579
589
  "authToken": string;
580
590
  }
581
591
  interface JustifiPayoutDetails {
@@ -721,6 +731,11 @@ export namespace Components {
721
731
  interface PaymentsListCore {
722
732
  "getPayments": Function;
723
733
  }
734
+ interface PaymentsListFilters {
735
+ "clearParams": () => void;
736
+ "params": PaymentsParams;
737
+ "setParamsOnChange": (name: string, value: string) => void;
738
+ }
724
739
  interface PayoutDetailsCore {
725
740
  "getPayout": Function;
726
741
  "getPayoutCSV": Function;
@@ -739,11 +754,19 @@ export namespace Components {
739
754
  interface RepresentativeDetails {
740
755
  "representative": Identity;
741
756
  }
757
+ interface TableFiltersMenu {
758
+ "clearParams": () => void;
759
+ "params": any;
760
+ }
742
761
  }
743
762
  export interface BusinessDetailsCoreCustomEvent<T> extends CustomEvent<T> {
744
763
  detail: T;
745
764
  target: HTMLBusinessDetailsCoreElement;
746
765
  }
766
+ export interface CustomPopperCustomEvent<T> extends CustomEvent<T> {
767
+ detail: T;
768
+ target: HTMLCustomPopperElement;
769
+ }
747
770
  export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
748
771
  detail: T;
749
772
  target: HTMLFormControlCheckboxElement;
@@ -987,6 +1010,24 @@ declare global {
987
1010
  prototype: HTMLBusinessDetailsCoreElement;
988
1011
  new (): HTMLBusinessDetailsCoreElement;
989
1012
  };
1013
+ interface HTMLCustomPopperElementEventMap {
1014
+ "showEvent": any;
1015
+ "hideEvent": any;
1016
+ }
1017
+ interface HTMLCustomPopperElement extends Components.CustomPopper, HTMLStencilElement {
1018
+ addEventListener<K extends keyof HTMLCustomPopperElementEventMap>(type: K, listener: (this: HTMLCustomPopperElement, ev: CustomPopperCustomEvent<HTMLCustomPopperElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1019
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1020
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1021
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1022
+ removeEventListener<K extends keyof HTMLCustomPopperElementEventMap>(type: K, listener: (this: HTMLCustomPopperElement, ev: CustomPopperCustomEvent<HTMLCustomPopperElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1023
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1024
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1025
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1026
+ }
1027
+ var HTMLCustomPopperElement: {
1028
+ prototype: HTMLCustomPopperElement;
1029
+ new (): HTMLCustomPopperElement;
1030
+ };
990
1031
  interface HTMLFormAlertElement extends Components.FormAlert, HTMLStencilElement {
991
1032
  }
992
1033
  var HTMLFormAlertElement: {
@@ -2157,6 +2198,12 @@ declare global {
2157
2198
  prototype: HTMLPaymentsListCoreElement;
2158
2199
  new (): HTMLPaymentsListCoreElement;
2159
2200
  };
2201
+ interface HTMLPaymentsListFiltersElement extends Components.PaymentsListFilters, HTMLStencilElement {
2202
+ }
2203
+ var HTMLPaymentsListFiltersElement: {
2204
+ prototype: HTMLPaymentsListFiltersElement;
2205
+ new (): HTMLPaymentsListFiltersElement;
2206
+ };
2160
2207
  interface HTMLPayoutDetailsCoreElementEventMap {
2161
2208
  "error-event": ComponentError;
2162
2209
  }
@@ -2205,9 +2252,16 @@ declare global {
2205
2252
  prototype: HTMLRepresentativeDetailsElement;
2206
2253
  new (): HTMLRepresentativeDetailsElement;
2207
2254
  };
2255
+ interface HTMLTableFiltersMenuElement extends Components.TableFiltersMenu, HTMLStencilElement {
2256
+ }
2257
+ var HTMLTableFiltersMenuElement: {
2258
+ prototype: HTMLTableFiltersMenuElement;
2259
+ new (): HTMLTableFiltersMenuElement;
2260
+ };
2208
2261
  interface HTMLElementTagNameMap {
2209
2262
  "additional-questions-details": HTMLAdditionalQuestionsDetailsElement;
2210
2263
  "business-details-core": HTMLBusinessDetailsCoreElement;
2264
+ "custom-popper": HTMLCustomPopperElement;
2211
2265
  "form-alert": HTMLFormAlertElement;
2212
2266
  "form-control-checkbox": HTMLFormControlCheckboxElement;
2213
2267
  "form-control-date": HTMLFormControlDateElement;
@@ -2279,9 +2333,11 @@ declare global {
2279
2333
  "pagination-menu": HTMLPaginationMenuElement;
2280
2334
  "payment-details-core": HTMLPaymentDetailsCoreElement;
2281
2335
  "payments-list-core": HTMLPaymentsListCoreElement;
2336
+ "payments-list-filters": HTMLPaymentsListFiltersElement;
2282
2337
  "payout-details-core": HTMLPayoutDetailsCoreElement;
2283
2338
  "payouts-list-core": HTMLPayoutsListCoreElement;
2284
2339
  "representative-details": HTMLRepresentativeDetailsElement;
2340
+ "table-filters-menu": HTMLTableFiltersMenuElement;
2285
2341
  }
2286
2342
  }
2287
2343
  declare namespace LocalJSX {
@@ -2299,6 +2355,15 @@ declare namespace LocalJSX {
2299
2355
  "getBusiness"?: Function;
2300
2356
  "onError-event"?: (event: BusinessDetailsCoreCustomEvent<ComponentError>) => void;
2301
2357
  }
2358
+ interface CustomPopper {
2359
+ "anchorRef"?: HTMLElement;
2360
+ "offset"?: [number, number];
2361
+ "onHideEvent"?: (event: CustomPopperCustomEvent<any>) => void;
2362
+ "onShowEvent"?: (event: CustomPopperCustomEvent<any>) => void;
2363
+ "placement"?: Placement;
2364
+ "strategy"?: PositioningStrategy;
2365
+ "trigger"?: string;
2366
+ }
2302
2367
  interface FormAlert {
2303
2368
  "hideAlert"?: boolean;
2304
2369
  "text"?: string;
@@ -2319,7 +2384,7 @@ declare namespace LocalJSX {
2319
2384
  "disabled"?: boolean;
2320
2385
  "errorText"?: string;
2321
2386
  "helpText"?: string;
2322
- "inputHandler"?: any;
2387
+ "inputHandler"?: (name: string, value: string) => void;
2323
2388
  "label"?: string;
2324
2389
  "name"?: string;
2325
2390
  "onFormControlBlur"?: (event: FormControlDateCustomEvent<any>) => void;
@@ -2882,6 +2947,7 @@ declare namespace LocalJSX {
2882
2947
  */
2883
2948
  interface JustifiPaymentsList {
2884
2949
  "accountId"?: string;
2950
+ "apiOrigin"?: string;
2885
2951
  "authToken"?: string;
2886
2952
  "onError-event"?: (event: JustifiPaymentsListCustomEvent<ComponentError>) => void;
2887
2953
  }
@@ -3040,6 +3106,11 @@ declare namespace LocalJSX {
3040
3106
  "onError-event"?: (event: PaymentsListCoreCustomEvent<ComponentError>) => void;
3041
3107
  "onPayment-row-clicked"?: (event: PaymentsListCoreCustomEvent<Payment>) => void;
3042
3108
  }
3109
+ interface PaymentsListFilters {
3110
+ "clearParams"?: () => void;
3111
+ "params"?: PaymentsParams;
3112
+ "setParamsOnChange"?: (name: string, value: string) => void;
3113
+ }
3043
3114
  interface PayoutDetailsCore {
3044
3115
  "getPayout"?: Function;
3045
3116
  "getPayoutCSV"?: Function;
@@ -3061,9 +3132,14 @@ declare namespace LocalJSX {
3061
3132
  interface RepresentativeDetails {
3062
3133
  "representative"?: Identity;
3063
3134
  }
3135
+ interface TableFiltersMenu {
3136
+ "clearParams"?: () => void;
3137
+ "params"?: any;
3138
+ }
3064
3139
  interface IntrinsicElements {
3065
3140
  "additional-questions-details": AdditionalQuestionsDetails;
3066
3141
  "business-details-core": BusinessDetailsCore;
3142
+ "custom-popper": CustomPopper;
3067
3143
  "form-alert": FormAlert;
3068
3144
  "form-control-checkbox": FormControlCheckbox;
3069
3145
  "form-control-date": FormControlDate;
@@ -3135,9 +3211,11 @@ declare namespace LocalJSX {
3135
3211
  "pagination-menu": PaginationMenu;
3136
3212
  "payment-details-core": PaymentDetailsCore;
3137
3213
  "payments-list-core": PaymentsListCore;
3214
+ "payments-list-filters": PaymentsListFilters;
3138
3215
  "payout-details-core": PayoutDetailsCore;
3139
3216
  "payouts-list-core": PayoutsListCore;
3140
3217
  "representative-details": RepresentativeDetails;
3218
+ "table-filters-menu": TableFiltersMenu;
3141
3219
  }
3142
3220
  }
3143
3221
  export { LocalJSX as JSX };
@@ -3153,6 +3231,7 @@ declare module "@stencil/core" {
3153
3231
  */
3154
3232
  "additional-questions-details": LocalJSX.AdditionalQuestionsDetails & JSXBase.HTMLAttributes<HTMLAdditionalQuestionsDetailsElement>;
3155
3233
  "business-details-core": LocalJSX.BusinessDetailsCore & JSXBase.HTMLAttributes<HTMLBusinessDetailsCoreElement>;
3234
+ "custom-popper": LocalJSX.CustomPopper & JSXBase.HTMLAttributes<HTMLCustomPopperElement>;
3156
3235
  "form-alert": LocalJSX.FormAlert & JSXBase.HTMLAttributes<HTMLFormAlertElement>;
3157
3236
  "form-control-checkbox": LocalJSX.FormControlCheckbox & JSXBase.HTMLAttributes<HTMLFormControlCheckboxElement>;
3158
3237
  "form-control-date": LocalJSX.FormControlDate & JSXBase.HTMLAttributes<HTMLFormControlDateElement>;
@@ -3359,6 +3438,7 @@ declare module "@stencil/core" {
3359
3438
  "pagination-menu": LocalJSX.PaginationMenu & JSXBase.HTMLAttributes<HTMLPaginationMenuElement>;
3360
3439
  "payment-details-core": LocalJSX.PaymentDetailsCore & JSXBase.HTMLAttributes<HTMLPaymentDetailsCoreElement>;
3361
3440
  "payments-list-core": LocalJSX.PaymentsListCore & JSXBase.HTMLAttributes<HTMLPaymentsListCoreElement>;
3441
+ "payments-list-filters": LocalJSX.PaymentsListFilters & JSXBase.HTMLAttributes<HTMLPaymentsListFiltersElement>;
3362
3442
  "payout-details-core": LocalJSX.PayoutDetailsCore & JSXBase.HTMLAttributes<HTMLPayoutDetailsCoreElement>;
3363
3443
  "payouts-list-core": LocalJSX.PayoutsListCore & JSXBase.HTMLAttributes<HTMLPayoutsListCoreElement>;
3364
3444
  /**
@@ -3369,6 +3449,7 @@ declare module "@stencil/core" {
3369
3449
  * @exportedPart detail-empty-state
3370
3450
  */
3371
3451
  "representative-details": LocalJSX.RepresentativeDetails & JSXBase.HTMLAttributes<HTMLRepresentativeDetailsElement>;
3452
+ "table-filters-menu": LocalJSX.TableFiltersMenu & JSXBase.HTMLAttributes<HTMLTableFiltersMenuElement>;
3372
3453
  }
3373
3454
  }
3374
3455
  }
@@ -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,11 @@
1
+ export declare class TableFiltersMenu {
2
+ anchorButton: HTMLElement;
3
+ menu: HTMLElement;
4
+ showClearButton: boolean;
5
+ params: any;
6
+ clearParams: () => void;
7
+ watchParamsHandler(newValue: any): void;
8
+ show(): void;
9
+ hide(): void;
10
+ render(): any;
11
+ }
@@ -0,0 +1,2 @@
1
+ export declare const onFilterChange: (newFilters: any, params: any) => any;
2
+ export declare const hasFilters: (params: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare const checkPkgVersion: () => Promise<void>;
@@ -0,0 +1 @@
1
+ import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as o}from"./p-707bdf68.js";import{a as e,C as r}from"./p-14c91ffd.js";import{m as n,a}from"./p-5968ff8a.js";import{B as p}from"./p-401d6607.js";import{c as h}from"./p-5a62fca2.js";import{A as d}from"./p-7d3be485.js";import{c}from"./p-b91bcbfc.js";import"./p-35846553.js";import"./p-8115b2f4.js";class m{async postProvisioning(s,i,t){const o={business_id:i,product_category:t};return d({authToken:s,apiOrigin:h.proxyApiOrigin}).post("entities/provisioning",o)}}const u=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new m})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:e.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"82b3601d3349a92bed1aa93e2a847039d7493c04",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{u as justifi_payment_provisioning}
@@ -1 +1 @@
1
- import{r as e,c as t,h as a}from"./p-fad19d75.js";import{c as o}from"./p-5a62fca2.js";import{J as r}from"./p-4e017b58.js";import"./p-d78eb6ce.js";import"./p-7d3be485.js";const i=class{constructor(a){e(this,a),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=o.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' 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.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' 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.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(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 a("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_form}
1
+ import{r as e,c as t,h as a}from"./p-fad19d75.js";import{c as o}from"./p-5a62fca2.js";import{J as r}from"./p-707bdf68.js";import"./p-35846553.js";import"./p-7d3be485.js";const i=class{constructor(a){e(this,a),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=o.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' 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.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' 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.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(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 a("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_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-4e017b58.js";import"./p-d78eb6ce.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}
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-707bdf68.js";import"./p-35846553.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}
@@ -0,0 +1 @@
1
+ const e=(e,t)=>{let r=Object.assign({},t);return delete r.before_cursor,delete r.after_cursor,Object.keys(e).forEach((t=>{e[t].length?r[t]=e[t]:delete r[t]})),r},t=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length};export{t as h,e as o}
@@ -0,0 +1 @@
1
+ const e={name:"@justifi/webcomponents",version:"4.20.1",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:file":"stencil test --spec --watch --"},dependencies:{"@popperjs/core":"^2.11.8","@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",lodash:"^4.17.21",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@rollup/plugin-replace":"^6.0.1","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}