@justifi/webcomponents 4.22.0 → 4.22.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 (97) hide show
  1. package/dist/cjs/{Analytics-9db96975.js → Analytics-0d90fa0d.js} +1 -1
  2. package/dist/cjs/{check-pkg-version-23a1cabd.js → check-pkg-version-fafb21ae.js} +1 -1
  3. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -47
  4. package/dist/cjs/checkouts-table-24c065ff.js +47 -0
  5. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
  7. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  8. package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
  9. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  11. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -5
  12. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -3
  15. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -5
  21. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +3 -3
  22. package/dist/cjs/{package-41c8f38c.js → package-596f102c.js} +1 -1
  23. package/dist/cjs/{table-bb114e2f.js → table-20e9a053.js} +3 -0
  24. package/dist/cjs/terminals-list-core.cjs.entry.js +7 -30
  25. package/dist/cjs/terminals-table-99a7b87b.js +32 -0
  26. package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -7
  27. package/dist/collection/components/checkouts-list/checkouts-list.js +5 -3
  28. package/dist/collection/components/terminals-list/terminals-list-core.js +7 -7
  29. package/dist/collection/components/terminals-list/terminals-list.js +5 -3
  30. package/dist/collection/utils/table.js +3 -0
  31. package/dist/docs.json +3 -3
  32. package/dist/esm/{Analytics-777962a4.js → Analytics-a46c0c00.js} +1 -1
  33. package/dist/esm/{check-pkg-version-bac8fac0.js → check-pkg-version-ed46fa3b.js} +1 -1
  34. package/dist/esm/checkouts-list-core.entry.js +9 -46
  35. package/dist/esm/checkouts-table-62c44909.js +43 -0
  36. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  37. package/dist/esm/justifi-billing-form_2.entry.js +1 -1
  38. package/dist/esm/justifi-business-details.entry.js +3 -3
  39. package/dist/esm/justifi-business-form.entry.js +3 -3
  40. package/dist/esm/justifi-card-form.entry.js +2 -2
  41. package/dist/esm/justifi-checkout.entry.js +3 -3
  42. package/dist/esm/justifi-checkouts-list.entry.js +7 -5
  43. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  44. package/dist/esm/justifi-payment-details.entry.js +3 -3
  45. package/dist/esm/justifi-payment-form.entry.js +3 -3
  46. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  47. package/dist/esm/justifi-payments-list.entry.js +3 -3
  48. package/dist/esm/justifi-payout-details.entry.js +3 -3
  49. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  50. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  51. package/dist/esm/justifi-terminals-list.entry.js +6 -5
  52. package/dist/esm/justifi-tokenize-payment-method.entry.js +3 -3
  53. package/dist/esm/{package-5144835c.js → package-6c5cc174.js} +1 -1
  54. package/dist/esm/{table-75364107.js → table-5da154e7.js} +3 -0
  55. package/dist/esm/terminals-list-core.entry.js +8 -31
  56. package/dist/esm/terminals-table-059c473e.js +28 -0
  57. package/dist/module/checkouts-list-core2.js +6 -5
  58. package/dist/module/justifi-checkouts-list.js +3 -3
  59. package/dist/module/justifi-terminals-list.js +3 -3
  60. package/dist/module/package.js +1 -1
  61. package/dist/module/table.js +3 -0
  62. package/dist/module/terminals-list-core2.js +6 -5
  63. package/dist/types/utils/table.d.ts +1 -0
  64. package/dist/webcomponents/p-02cf5e6f.js +1 -0
  65. package/dist/webcomponents/{p-037e3545.entry.js → p-088826fe.entry.js} +1 -1
  66. package/dist/webcomponents/{p-f7077f93.entry.js → p-0eb0d813.entry.js} +1 -1
  67. package/dist/webcomponents/p-16fc16aa.entry.js +1 -0
  68. package/dist/webcomponents/{p-d1248039.entry.js → p-18afa159.entry.js} +1 -1
  69. package/dist/webcomponents/p-1ab798f4.entry.js +1 -0
  70. package/dist/webcomponents/p-1c44712a.entry.js +1 -0
  71. package/dist/webcomponents/{p-b4a7307b.entry.js → p-32a782c8.entry.js} +1 -1
  72. package/dist/webcomponents/p-366c49b6.entry.js +1 -0
  73. package/dist/webcomponents/{p-c63825d8.entry.js → p-3fbbdbba.entry.js} +1 -1
  74. package/dist/webcomponents/p-4422ca71.entry.js +1 -0
  75. package/dist/webcomponents/{p-f4a8215b.entry.js → p-5f10b3e9.entry.js} +1 -1
  76. package/dist/webcomponents/{p-e7d6609d.js → p-74822344.js} +1 -1
  77. package/dist/webcomponents/{p-56bda985.js → p-7fea661a.js} +1 -1
  78. package/dist/webcomponents/{p-2de65000.entry.js → p-84987cd4.entry.js} +1 -1
  79. package/dist/webcomponents/p-8e228e5a.js +1 -0
  80. package/dist/webcomponents/{p-52ca72cd.entry.js → p-8f26db63.entry.js} +1 -1
  81. package/dist/webcomponents/p-b16269d7.js +1 -0
  82. package/dist/webcomponents/p-bba131f9.entry.js +1 -0
  83. package/dist/webcomponents/{p-dae9b10e.entry.js → p-c4df0098.entry.js} +1 -1
  84. package/dist/webcomponents/{p-04d12939.entry.js → p-c8b2f11d.entry.js} +1 -1
  85. package/dist/webcomponents/{p-24392a86.entry.js → p-d5cd727b.entry.js} +1 -1
  86. package/dist/webcomponents/{p-b0686897.entry.js → p-e07d5e0f.entry.js} +1 -1
  87. package/dist/webcomponents/{p-0b686ada.entry.js → p-eee24bb2.entry.js} +1 -1
  88. package/dist/webcomponents/{p-c1cf7d5b.js → p-fb2005de.js} +1 -1
  89. package/dist/webcomponents/webcomponents.esm.js +1 -1
  90. package/package.json +1 -1
  91. package/dist/webcomponents/p-0ac35b39.entry.js +0 -1
  92. package/dist/webcomponents/p-0c79e368.entry.js +0 -1
  93. package/dist/webcomponents/p-9bd13e22.js +0 -1
  94. package/dist/webcomponents/p-a2be972d.entry.js +0 -1
  95. package/dist/webcomponents/p-b1aacd6b.entry.js +0 -1
  96. package/dist/webcomponents/p-cb79f06c.entry.js +0 -1
  97. package/dist/webcomponents/p-ec7e69eb.entry.js +0 -1
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-fb499e95.js');
4
+
5
+ const MapTerminalStatusToBadge = (status) => {
6
+ switch (status) {
7
+ case 'connected':
8
+ return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
9
+ case 'disconnected':
10
+ return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
11
+ case 'unknown':
12
+ return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
13
+ }
14
+ };
15
+
16
+ const defaultColumnsKeys = 'nickname,provider_id,status';
17
+ const terminalTableColumns = {
18
+ nickname: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
19
+ provider_id: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
20
+ sub_account_name: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
21
+ status: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
22
+ };
23
+ const terminalTableCells = {
24
+ nickname: (value) => (index.h("td", null, value)),
25
+ provider_id: (value) => (index.h("td", null, value)),
26
+ sub_account_name: (value) => (index.h("td", null, value)),
27
+ status: (value) => (index.h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
28
+ };
29
+
30
+ exports.defaultColumnsKeys = defaultColumnsKeys;
31
+ exports.terminalTableCells = terminalTableCells;
32
+ exports.terminalTableColumns = terminalTableColumns;
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
2
2
  import { pagingDefaults } from "../../api";
3
3
  import { onFilterChange } from "../../ui-components/filters/utils";
4
4
  import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
5
- import { defaultColumnsKeys, checkoutTableColumns, checkoutTableCells } from "./checkouts-table";
5
+ import { checkoutTableColumns, checkoutTableCells } from "./checkouts-table";
6
6
  import { Table } from "../../utils/table";
7
7
  export class CheckoutsListCore {
8
8
  constructor() {
@@ -32,9 +32,9 @@ export class CheckoutsListCore {
32
32
  };
33
33
  this.getCheckouts = undefined;
34
34
  this.getSubAccounts = undefined;
35
- this.columns = defaultColumnsKeys;
35
+ this.columns = undefined;
36
36
  this.checkouts = [];
37
- this.checkoutsTable = new Table([], this.columns, checkoutTableColumns, checkoutTableCells);
37
+ this.checkoutsTable = undefined;
38
38
  this.subAccounts = [];
39
39
  this.loading = true;
40
40
  this.errorMessage = undefined;
@@ -45,6 +45,7 @@ export class CheckoutsListCore {
45
45
  this.fetchCheckouts();
46
46
  }
47
47
  componentWillLoad() {
48
+ this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
48
49
  if (this.getCheckouts && this.getSubAccounts) {
49
50
  this.fetchCheckouts();
50
51
  }
@@ -56,7 +57,7 @@ export class CheckoutsListCore {
56
57
  onSuccess: async ({ checkouts, pagingInfo }) => {
57
58
  this.checkouts = checkouts;
58
59
  this.paging = pagingInfo;
59
- this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
60
+ this.checkoutsTable.collectionData = this.checkouts;
60
61
  const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
61
62
  if (shouldFetchSubAccounts) {
62
63
  await this.fetchSubAccounts();
@@ -118,7 +119,7 @@ export class CheckoutsListCore {
118
119
  return !this.showEmptyState && !this.showErrorState && !this.loading;
119
120
  }
120
121
  render() {
121
- return (h("div", { key: '2734f704620a60a5bedc46e3e41ab758af3fcb33' }, h("checkouts-list-filters", { key: '88ec654a9e15b976c47baee51ebed8c4bd8f11d7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '929ce2e4dbee2b6aad94705b90b33527ef88f324', class: "table-wrapper" }, h("table", { key: '734d75f3f6d0189ce21560a89e9bc28628188798', class: "table table-hover" }, h("thead", { key: '6b1bba45aaa29b741cf3422902bf1d63cb89fe9a', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '54f3e19d0d8b1414e9c0df4a6b9cd59516eb0e2e', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: '7454d36c6595e8341c0405833a919c56cd09fa3d', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'b6fc81a9293727005f0a13afbf518e57efeb8469', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ce449e05b1c0643f8a2157f44f2f2af16ee08f8c', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '89d0b6d1c4eb966fe0195cfe6e854a7cca10c7ed', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'ac6bb6d3cf02abc3f386a7d6bf92927f4a0ad244', class: "sticky-bottom" }, h("tr", { key: '352544ebda3e9a899fcb640b350fd60c55b97d17', class: "table-light align-middle" }, h("td", { key: '2dfc279e5e94bb1c0ea75670eb6584ff39a98f4a', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'a8ba0fd21c0dd9be75662b62db78980a74d5fbc6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
122
+ return (h("div", { key: '8d2c1fd960b2b3a66f3a1bf648b75576ad2e8857' }, h("checkouts-list-filters", { key: '18ba9bf560499112f71a690da751c8e3c4d345a7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '12cf6ee2912ac6a9518634ebd470dac5f7623aff', class: "table-wrapper" }, h("table", { key: '1ea2c118d7efb620dc1f39db55a510a8a473cb31', class: "table table-hover" }, h("thead", { key: '5e334a090be56c82b11ae7584bdf4014cc8743c7', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '233137a8b4e30bac28ded78010199bfecd0ac4e7', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: 'd4ed9d4bf3ac17d4dc7294b875734e02996c7444', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'a7afbb627c768139af4244da5c12fae493dceafb', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '802c43c8da770bca9a249a88d115901e9b14e102', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'f1cd197cf7d1d5d81868a5abfafa40df762ca3c8', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'f0c367854322c341515bc481159101e9659117c7', class: "sticky-bottom" }, h("tr", { key: '88bc665c23665eddc4c88d27acc8c8f1cb39e277', class: "table-light align-middle" }, h("td", { key: '8be265c9b43033cfd3e2c4b3f12ac6d6c104e53d', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '6abdb6091b78e58ec71ac6bf66f278ed9b6542fb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
122
123
  }
123
124
  static get is() { return "checkouts-list-core"; }
124
125
  static get properties() {
@@ -178,8 +179,7 @@ export class CheckoutsListCore {
178
179
  "text": ""
179
180
  },
180
181
  "attribute": "columns",
181
- "reflect": false,
182
- "defaultValue": "defaultColumnsKeys"
182
+ "reflect": false
183
183
  }
184
184
  };
185
185
  }
@@ -8,6 +8,7 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
8
8
  import { SubAccountService } from "../../api/services/subaccounts.service";
9
9
  import { makeGetSubAccounts } from "../../api/get-subaccounts";
10
10
  import { StyledHost, tableExportedParts } from "../../ui-components";
11
+ import { defaultColumnsKeys } from "./checkouts-table";
11
12
  /**
12
13
  * @exportedPart label: Label for inputs
13
14
  * @exportedPart input: The input fields
@@ -42,7 +43,7 @@ export class CheckoutsList {
42
43
  this.accountId = undefined;
43
44
  this.authToken = undefined;
44
45
  this.apiOrigin = config.proxyApiOrigin;
45
- this.columns = undefined;
46
+ this.columns = defaultColumnsKeys;
46
47
  }
47
48
  componentWillLoad() {
48
49
  checkPkgVersion();
@@ -88,7 +89,7 @@ export class CheckoutsList {
88
89
  }
89
90
  }
90
91
  render() {
91
- return (h(StyledHost, { key: '42ff5c1cff57b185200aa0c31f4fdb44b3401c91', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '55565a5f61c671bae9554c7d9ecab044c7bb987c', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
92
+ return (h(StyledHost, { key: '6e6faed5df0fcdc48018650867672c5d325d1934', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '92ceb10f7bd76864629ed0990a7f34fab76ce517', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
92
93
  }
93
94
  static get is() { return "justifi-checkouts-list"; }
94
95
  static get encapsulation() { return "shadow"; }
@@ -161,7 +162,8 @@ export class CheckoutsList {
161
162
  "text": ""
162
163
  },
163
164
  "attribute": "columns",
164
- "reflect": false
165
+ "reflect": false,
166
+ "defaultValue": "defaultColumnsKeys"
165
167
  }
166
168
  };
167
169
  }
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
2
2
  import { pagingDefaults } from "../../api";
3
3
  import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
4
4
  import { onFilterChange } from "../../ui-components/filters/utils";
5
- import { defaultColumnsKeys, terminalTableColumns, terminalTableCells } from "./terminals-table";
5
+ import { terminalTableColumns, terminalTableCells } from "./terminals-table";
6
6
  import { Table } from "../../utils/table";
7
7
  export class TerminalsListCore {
8
8
  constructor() {
@@ -32,9 +32,9 @@ export class TerminalsListCore {
32
32
  };
33
33
  this.getTerminals = undefined;
34
34
  this.getSubAccounts = undefined;
35
- this.columns = defaultColumnsKeys;
35
+ this.columns = undefined;
36
36
  this.terminals = [];
37
- this.terminalsTable = new Table([], this.columns, terminalTableColumns, terminalTableCells);
37
+ this.terminalsTable = undefined;
38
38
  this.subAccounts = [];
39
39
  this.loading = true;
40
40
  this.errorMessage = undefined;
@@ -45,6 +45,7 @@ export class TerminalsListCore {
45
45
  this.fetchTerminals();
46
46
  }
47
47
  componentWillLoad() {
48
+ this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
48
49
  if (this.getTerminals && this.getSubAccounts) {
49
50
  this.fetchTerminals();
50
51
  }
@@ -56,7 +57,7 @@ export class TerminalsListCore {
56
57
  onSuccess: async ({ terminals, pagingInfo }) => {
57
58
  this.terminals = terminals;
58
59
  this.paging = pagingInfo;
59
- this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
60
+ this.terminalsTable.collectionData = this.terminals;
60
61
  const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
61
62
  if (shouldFetchSubAccounts) {
62
63
  await this.fetchSubAccounts();
@@ -118,7 +119,7 @@ export class TerminalsListCore {
118
119
  return !this.showEmptyState && !this.showErrorState && !this.loading;
119
120
  }
120
121
  render() {
121
- return (h("div", { key: 'd6bd09387fc558286f09cc98e7b5423a57410440' }, h("terminals-list-filters", { key: '27f3b5ca45bad96695364e96f0c047db8465f061', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '693ef5e9383ad2d4433a79872d51a922f1bb0cbb', class: "table-wrapper" }, h("table", { key: 'd6779ca5094593e21ddee4f0b236b0fa94c7cfe5', class: "table table-hover" }, h("thead", { key: '5b7524c86b32d61d2b087c9ace5673276a6525e2', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '6f3f3f560f5eaa38a700aacf850c01ce7224c617', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'd65612fc80a216dbbce686e1e5cdd06bc7c934ad', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '9ffbafb5105380d685e9cad76b627afe96c8e724', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '692c6cb35da2c9057bbac4e5d8e7536017ef1694', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '5072ca0cb9f9ca3d77fc394c935cc1ae473b8864', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'b043af164be76a5bdbaf53e5a0563f48049925b0', class: "sticky-bottom" }, h("tr", { key: '2fed67d847e113c371213643c07a79208701c1e5', class: "table-light align-middle" }, h("td", { key: 'b3fac5af2d92a8ea93daefd24310ed5b45d32764', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '4e5a82670a7aa1fee01b71fbc20b65824300a07f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
122
+ return (h("div", { key: '7f8bc3f39c1250281c2f2ad6fe081fc71bb20e79' }, h("terminals-list-filters", { key: 'd1184427fc74d970bd69d56a00d0ef4b7672516b', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '582e37429a153cd17bf3c7ebb16e7330c774f986', class: "table-wrapper" }, h("table", { key: '1c03b2ddc8ca2da6b1f2147113f7832b3f27ec1d', class: "table table-hover" }, h("thead", { key: '811d48219cc04256f4a37854504252ff53392bd9', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'fafa54ac3abba993dcf38ca2e47f248031226041', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '8c9072bf6ebb7f720f1fad0faa47c72c8ed84dd2', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'abddb3ce09e39245c0455893f09e54cc631b26bf', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '166a461ee8aaf7405fc0a2b12cd17e1e1e9553f3', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '969bbfcce66b6bcee4dadabe465eaef37022d13b', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'c63268c11facddaa44452c58743ad9c03f492898', class: "sticky-bottom" }, h("tr", { key: '0e247f8968ad4ed7e8c001354b1c29d5bf7976aa', class: "table-light align-middle" }, h("td", { key: '51c5157453d911f5bf370ba2ac6a556dd1592f24', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '3a3ba65f31099125e9c01bc9c8c001c6437ed720', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
122
123
  }
123
124
  static get is() { return "terminals-list-core"; }
124
125
  static get properties() {
@@ -178,8 +179,7 @@ export class TerminalsListCore {
178
179
  "text": ""
179
180
  },
180
181
  "attribute": "columns",
181
- "reflect": false,
182
- "defaultValue": "defaultColumnsKeys"
182
+ "reflect": false
183
183
  }
184
184
  };
185
185
  }
@@ -8,6 +8,7 @@ import { makeGetTerminals } from "./get-terminals";
8
8
  import { SubAccountService } from "../../api/services/subaccounts.service";
9
9
  import { makeGetSubAccounts } from "../../api/get-subaccounts";
10
10
  import { StyledHost, tableExportedParts } from "../../ui-components";
11
+ import { defaultColumnsKeys } from "./terminals-table";
11
12
  /**
12
13
  * @exportedPart label: Label for inputs
13
14
  * @exportedPart input: The input fields
@@ -42,7 +43,7 @@ export class TerminalsList {
42
43
  this.accountId = undefined;
43
44
  this.authToken = undefined;
44
45
  this.apiOrigin = config.proxyApiOrigin;
45
- this.columns = undefined;
46
+ this.columns = defaultColumnsKeys;
46
47
  }
47
48
  componentWillLoad() {
48
49
  checkPkgVersion();
@@ -88,7 +89,7 @@ export class TerminalsList {
88
89
  }
89
90
  }
90
91
  render() {
91
- return (h(StyledHost, { key: 'b150133d9e787d0a4f32d92d9fb26df50391e632', exportparts: tableExportedParts }, h("terminals-list-core", { key: '59302d93d0a308c34aacabf7e5a006099eaff2d6', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
92
+ return (h(StyledHost, { key: '8ffe95f21b5ef8c1c15fc0e22a9c824cff758ee6', exportparts: tableExportedParts }, h("terminals-list-core", { key: 'a550f1f85b84f6cc06bd93b5e5a9ec726b72b46c', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
92
93
  }
93
94
  static get is() { return "justifi-terminals-list"; }
94
95
  static get encapsulation() { return "shadow"; }
@@ -161,7 +162,8 @@ export class TerminalsList {
161
162
  "text": ""
162
163
  },
163
164
  "attribute": "columns",
164
- "reflect": false
165
+ "reflect": false,
166
+ "defaultValue": "defaultColumnsKeys"
165
167
  }
166
168
  };
167
169
  }
@@ -7,6 +7,9 @@ export class Table {
7
7
  return this.columnKeys.map((key) => this.tableCells[key](checkout[key]));
8
8
  });
9
9
  }
10
+ set collectionData(collection) {
11
+ this.collection = collection;
12
+ }
10
13
  constructor(collection, columns, tableColumns, tableCells) {
11
14
  this.columnKeys = columns.split(',');
12
15
  this.collection = collection;
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-11-26T20:10:08",
2
+ "timestamp": "2024-11-27T17:03:50",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.19.2",
@@ -186,7 +186,6 @@
186
186
  "reflectToAttr": false,
187
187
  "docs": "",
188
188
  "docsTags": [],
189
- "default": "defaultColumnsKeys",
190
189
  "values": [
191
190
  {
192
191
  "type": "string"
@@ -8962,6 +8961,7 @@
8962
8961
  "reflectToAttr": false,
8963
8962
  "docs": "",
8964
8963
  "docsTags": [],
8964
+ "default": "defaultColumnsKeys",
8965
8965
  "values": [
8966
8966
  {
8967
8967
  "type": "string"
@@ -15489,6 +15489,7 @@
15489
15489
  "reflectToAttr": false,
15490
15490
  "docs": "",
15491
15491
  "docsTags": [],
15492
+ "default": "defaultColumnsKeys",
15492
15493
  "values": [
15493
15494
  {
15494
15495
  "type": "string"
@@ -17454,7 +17455,6 @@
17454
17455
  "reflectToAttr": false,
17455
17456
  "docs": "",
17456
17457
  "docsTags": [],
17457
- "default": "defaultColumnsKeys",
17458
17458
  "values": [
17459
17459
  {
17460
17460
  "type": "string"
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-5144835c.js';
1
+ import { p as packageJson } from './package-6c5cc174.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
3
  import { A as Api } from './Api-391d00e2.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-5144835c.js';
1
+ import { p as packageJson } from './package-6c5cc174.js';
2
2
 
3
3
  const latestVersion = async (packageName) => {
4
4
  const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
@@ -1,51 +1,13 @@
1
- import { h, r as registerInstance, c as createEvent } from './index-57431c24.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import './Checkout-0b4086f8.js';
3
3
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
4
4
  import './Payment-30790721.js';
5
5
  import './SubAccount-7f7e4c56.js';
6
6
  import { o as onFilterChange } from './utils-3a4d8f3a.js';
7
7
  import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './table-loading-state-356c7215.js';
8
- import { f as formatTime, a as formatDate, b as formatCurrency } from './utils-3daada24.js';
9
- import { T as Table } from './table-75364107.js';
10
-
11
- const MapCheckoutStatusToBadge = (status) => {
12
- switch (status) {
13
- case 'created':
14
- return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
15
- case 'completed':
16
- return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
17
- case 'attempted':
18
- return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
19
- case 'expired':
20
- return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
21
- }
22
- };
23
-
24
- const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
25
- const checkoutTableColumns = {
26
- created_at: () => (h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
27
- payment_amount: () => (h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
28
- payment_description: () => (h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
29
- sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
30
- payment_mode: () => (h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
31
- status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
32
- };
33
- const checkoutTableCells = {
34
- created_at: (value) => (h("th", null,
35
- h("div", { class: "fw-bold" },
36
- formatDate(value),
37
- " "),
38
- h("div", { class: "fw-bold" },
39
- formatTime(value),
40
- " "))),
41
- payment_amount: (value) => (h("td", null,
42
- formatCurrency(value, true, true),
43
- " ")),
44
- payment_description: (value) => (h("td", null, value)),
45
- sub_account_name: (value) => (h("td", null, value)),
46
- payment_mode: (value) => (h("td", null, value)),
47
- status: (value) => (h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
48
- };
8
+ import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-table-62c44909.js';
9
+ import { T as Table } from './table-5da154e7.js';
10
+ import './utils-3daada24.js';
49
11
 
50
12
  const CheckoutsListCore = class {
51
13
  constructor(hostRef) {
@@ -78,9 +40,9 @@ const CheckoutsListCore = class {
78
40
  };
79
41
  this.getCheckouts = undefined;
80
42
  this.getSubAccounts = undefined;
81
- this.columns = defaultColumnsKeys;
43
+ this.columns = undefined;
82
44
  this.checkouts = [];
83
- this.checkoutsTable = new Table([], this.columns, checkoutTableColumns, checkoutTableCells);
45
+ this.checkoutsTable = undefined;
84
46
  this.subAccounts = [];
85
47
  this.loading = true;
86
48
  this.errorMessage = undefined;
@@ -91,6 +53,7 @@ const CheckoutsListCore = class {
91
53
  this.fetchCheckouts();
92
54
  }
93
55
  componentWillLoad() {
56
+ this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
94
57
  if (this.getCheckouts && this.getSubAccounts) {
95
58
  this.fetchCheckouts();
96
59
  }
@@ -102,7 +65,7 @@ const CheckoutsListCore = class {
102
65
  onSuccess: async ({ checkouts, pagingInfo }) => {
103
66
  this.checkouts = checkouts;
104
67
  this.paging = pagingInfo;
105
- this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
68
+ this.checkoutsTable.collectionData = this.checkouts;
106
69
  const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
107
70
  if (shouldFetchSubAccounts) {
108
71
  await this.fetchSubAccounts();
@@ -164,7 +127,7 @@ const CheckoutsListCore = class {
164
127
  return !this.showEmptyState && !this.showErrorState && !this.loading;
165
128
  }
166
129
  render() {
167
- return (h("div", { key: '2734f704620a60a5bedc46e3e41ab758af3fcb33' }, h("checkouts-list-filters", { key: '88ec654a9e15b976c47baee51ebed8c4bd8f11d7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '929ce2e4dbee2b6aad94705b90b33527ef88f324', class: "table-wrapper" }, h("table", { key: '734d75f3f6d0189ce21560a89e9bc28628188798', class: "table table-hover" }, h("thead", { key: '6b1bba45aaa29b741cf3422902bf1d63cb89fe9a', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '54f3e19d0d8b1414e9c0df4a6b9cd59516eb0e2e', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: '7454d36c6595e8341c0405833a919c56cd09fa3d', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'b6fc81a9293727005f0a13afbf518e57efeb8469', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ce449e05b1c0643f8a2157f44f2f2af16ee08f8c', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '89d0b6d1c4eb966fe0195cfe6e854a7cca10c7ed', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'ac6bb6d3cf02abc3f386a7d6bf92927f4a0ad244', class: "sticky-bottom" }, h("tr", { key: '352544ebda3e9a899fcb640b350fd60c55b97d17', class: "table-light align-middle" }, h("td", { key: '2dfc279e5e94bb1c0ea75670eb6584ff39a98f4a', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'a8ba0fd21c0dd9be75662b62db78980a74d5fbc6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
130
+ return (h("div", { key: '8d2c1fd960b2b3a66f3a1bf648b75576ad2e8857' }, h("checkouts-list-filters", { key: '18ba9bf560499112f71a690da751c8e3c4d345a7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '12cf6ee2912ac6a9518634ebd470dac5f7623aff', class: "table-wrapper" }, h("table", { key: '1ea2c118d7efb620dc1f39db55a510a8a473cb31', class: "table table-hover" }, h("thead", { key: '5e334a090be56c82b11ae7584bdf4014cc8743c7', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '233137a8b4e30bac28ded78010199bfecd0ac4e7', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: 'd4ed9d4bf3ac17d4dc7294b875734e02996c7444', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'a7afbb627c768139af4244da5c12fae493dceafb', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '802c43c8da770bca9a249a88d115901e9b14e102', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'f1cd197cf7d1d5d81868a5abfafa40df762ca3c8', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'f0c367854322c341515bc481159101e9659117c7', class: "sticky-bottom" }, h("tr", { key: '88bc665c23665eddc4c88d27acc8c8f1cb39e277', class: "table-light align-middle" }, h("td", { key: '8be265c9b43033cfd3e2c4b3f12ac6d6c104e53d', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '6abdb6091b78e58ec71ac6bf66f278ed9b6542fb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
168
131
  }
169
132
  static get watchers() { return {
170
133
  "params": ["updateOnPropChange"],
@@ -0,0 +1,43 @@
1
+ import { h } from './index-57431c24.js';
2
+ import { f as formatTime, a as formatDate, b as formatCurrency } from './utils-3daada24.js';
3
+
4
+ const MapCheckoutStatusToBadge = (status) => {
5
+ switch (status) {
6
+ case 'created':
7
+ return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
8
+ case 'completed':
9
+ return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
10
+ case 'attempted':
11
+ return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
12
+ case 'expired':
13
+ return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
14
+ }
15
+ };
16
+
17
+ const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
18
+ const checkoutTableColumns = {
19
+ created_at: () => (h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
20
+ payment_amount: () => (h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
21
+ payment_description: () => (h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
22
+ sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
23
+ payment_mode: () => (h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
24
+ status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
25
+ };
26
+ const checkoutTableCells = {
27
+ created_at: (value) => (h("th", null,
28
+ h("div", { class: "fw-bold" },
29
+ formatDate(value),
30
+ " "),
31
+ h("div", { class: "fw-bold" },
32
+ formatTime(value),
33
+ " "))),
34
+ payment_amount: (value) => (h("td", null,
35
+ formatCurrency(value, true, true),
36
+ " ")),
37
+ payment_description: (value) => (h("td", null, value)),
38
+ sub_account_name: (value) => (h("td", null, value)),
39
+ payment_mode: (value) => (h("td", null, value)),
40
+ status: (value) => (h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
41
+ };
42
+
43
+ export { checkoutTableCells as a, checkoutTableColumns as c, defaultColumnsKeys as d };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
4
- import './package-5144835c.js';
3
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
4
+ import './package-6c5cc174.js';
5
5
  import './Api-391d00e2.js';
6
6
 
7
7
  const BankAccountForm = class {
@@ -4,7 +4,7 @@ import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValida
4
4
  import { S as StateOptions } from './state-options-a356fb11.js';
5
5
  import { n as numberOnlyHandler } from './utils-20cdf321.js';
6
6
  import { S as StyledHost } from './styled-host-e0ddb759.js';
7
- import { p as packageJson } from './package-5144835c.js';
7
+ import { p as packageJson } from './package-6c5cc174.js';
8
8
  import { j as composeQueryParams } from './utils-3daada24.js';
9
9
  import './business-form-options-d790973e.js';
10
10
  import './Business-b73d5055.js';
@@ -4,13 +4,13 @@ import { B as BusinessService } from './business.service-97a3da69.js';
4
4
  import { B as Business } from './Business-b73d5055.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
6
6
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
7
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
7
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
9
9
  import './config-27764a9d.js';
10
10
  import './Api-391d00e2.js';
11
11
  import './helpers-96ea3464.js';
12
12
  import './state-options-a356fb11.js';
13
- import './package-5144835c.js';
13
+ import './package-6c5cc174.js';
14
14
 
15
15
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
16
16
  var _a;
@@ -10,14 +10,14 @@ import './SubAccount-7f7e4c56.js';
10
10
  import { c as config } from './config-27764a9d.js';
11
11
  import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-8fd61b0e.js';
12
12
  import { B as Business } from './Business-b73d5055.js';
13
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
13
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
14
14
  import { S as StyledHost } from './styled-host-e0ddb759.js';
15
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
15
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
16
16
  import './schema-validations-c1728516.js';
17
17
  import './state-options-a356fb11.js';
18
18
  import './business-form-options-d790973e.js';
19
19
  import './helpers-96ea3464.js';
20
- import './package-5144835c.js';
20
+ import './package-6c5cc174.js';
21
21
 
22
22
  const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
23
23
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
4
- import './package-5144835c.js';
3
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
4
+ import './package-6c5cc174.js';
5
5
  import './Api-391d00e2.js';
6
6
 
7
7
  const CardForm = class {
@@ -2,15 +2,15 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
3
3
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
4
4
  import { C as CheckoutService } from './checkout.service-ef1549c6.js';
5
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
6
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
5
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
6
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
7
7
  import './config-27764a9d.js';
8
8
  import './Api-391d00e2.js';
9
9
  import './Checkout-0b4086f8.js';
10
10
  import './Pagination-afc8f96d.js';
11
11
  import './Payment-30790721.js';
12
12
  import './SubAccount-7f7e4c56.js';
13
- import './package-5144835c.js';
13
+ import './package-6c5cc174.js';
14
14
 
15
15
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
16
16
  var _a;
@@ -5,15 +5,17 @@ import './Payment-30790721.js';
5
5
  import './SubAccount-7f7e4c56.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
9
9
  import { c as config } from './config-27764a9d.js';
10
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
10
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
11
11
  import { C as CheckoutService } from './checkout.service-ef1549c6.js';
12
12
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-16c8ce40.js';
13
13
  import { S as StyledHost } from './styled-host-e0ddb759.js';
14
14
  import { t as tableExportedParts } from './exported-parts-70e7a12b.js';
15
- import './package-5144835c.js';
15
+ import { d as defaultColumnsKeys } from './checkouts-table-62c44909.js';
16
+ import './package-6c5cc174.js';
16
17
  import './Api-391d00e2.js';
18
+ import './utils-3daada24.js';
17
19
 
18
20
  const makeGetCheckouts = ({ accountId, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
19
21
  var _a, _b;
@@ -58,7 +60,7 @@ const CheckoutsList = class {
58
60
  this.accountId = undefined;
59
61
  this.authToken = undefined;
60
62
  this.apiOrigin = config.proxyApiOrigin;
61
- this.columns = undefined;
63
+ this.columns = defaultColumnsKeys;
62
64
  }
63
65
  componentWillLoad() {
64
66
  checkPkgVersion();
@@ -104,7 +106,7 @@ const CheckoutsList = class {
104
106
  }
105
107
  }
106
108
  render() {
107
- return (h(StyledHost, { key: '42ff5c1cff57b185200aa0c31f4fdb44b3401c91', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '55565a5f61c671bae9554c7d9ecab044c7bb987c', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
109
+ return (h(StyledHost, { key: '6e6faed5df0fcdc48018650867672c5d325d1934', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '92ceb10f7bd76864629ed0990a7f34fab76ce517', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
108
110
  }
109
111
  static get watchers() { return {
110
112
  "accountId": ["propChanged"],
@@ -4,9 +4,9 @@ import { A as Api } from './Api-391d00e2.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
5
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
6
6
  import { E as ErrorState } from './utils-218275b7.js';
7
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
9
- import './package-5144835c.js';
7
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
9
+ import './package-6c5cc174.js';
10
10
 
11
11
  class ReportsService {
12
12
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -7,11 +7,11 @@ import './SubAccount-7f7e4c56.js';
7
7
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
9
9
  import { E as ErrorState } from './utils-218275b7.js';
10
- import { J as JustifiAnalytics } from './Analytics-777962a4.js';
11
- import { c as checkPkgVersion } from './check-pkg-version-bac8fac0.js';
10
+ import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
11
+ import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
12
12
  import './Api-391d00e2.js';
13
13
  import './config-27764a9d.js';
14
- import './package-5144835c.js';
14
+ import './package-6c5cc174.js';
15
15
 
16
16
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
17
17
  var _a;