@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.
- package/dist/cjs/{Analytics-9db96975.js → Analytics-0d90fa0d.js} +1 -1
- package/dist/cjs/{check-pkg-version-23a1cabd.js → check-pkg-version-fafb21ae.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -47
- package/dist/cjs/checkouts-table-24c065ff.js +47 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -5
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/{package-41c8f38c.js → package-596f102c.js} +1 -1
- package/dist/cjs/{table-bb114e2f.js → table-20e9a053.js} +3 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +7 -30
- package/dist/cjs/terminals-table-99a7b87b.js +32 -0
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -7
- package/dist/collection/components/checkouts-list/checkouts-list.js +5 -3
- package/dist/collection/components/terminals-list/terminals-list-core.js +7 -7
- package/dist/collection/components/terminals-list/terminals-list.js +5 -3
- package/dist/collection/utils/table.js +3 -0
- package/dist/docs.json +3 -3
- package/dist/esm/{Analytics-777962a4.js → Analytics-a46c0c00.js} +1 -1
- package/dist/esm/{check-pkg-version-bac8fac0.js → check-pkg-version-ed46fa3b.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +9 -46
- package/dist/esm/checkouts-table-62c44909.js +43 -0
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +7 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-form.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +6 -5
- package/dist/esm/justifi-tokenize-payment-method.entry.js +3 -3
- package/dist/esm/{package-5144835c.js → package-6c5cc174.js} +1 -1
- package/dist/esm/{table-75364107.js → table-5da154e7.js} +3 -0
- package/dist/esm/terminals-list-core.entry.js +8 -31
- package/dist/esm/terminals-table-059c473e.js +28 -0
- package/dist/module/checkouts-list-core2.js +6 -5
- package/dist/module/justifi-checkouts-list.js +3 -3
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/package.js +1 -1
- package/dist/module/table.js +3 -0
- package/dist/module/terminals-list-core2.js +6 -5
- package/dist/types/utils/table.d.ts +1 -0
- package/dist/webcomponents/p-02cf5e6f.js +1 -0
- package/dist/webcomponents/{p-037e3545.entry.js → p-088826fe.entry.js} +1 -1
- package/dist/webcomponents/{p-f7077f93.entry.js → p-0eb0d813.entry.js} +1 -1
- package/dist/webcomponents/p-16fc16aa.entry.js +1 -0
- package/dist/webcomponents/{p-d1248039.entry.js → p-18afa159.entry.js} +1 -1
- package/dist/webcomponents/p-1ab798f4.entry.js +1 -0
- package/dist/webcomponents/p-1c44712a.entry.js +1 -0
- package/dist/webcomponents/{p-b4a7307b.entry.js → p-32a782c8.entry.js} +1 -1
- package/dist/webcomponents/p-366c49b6.entry.js +1 -0
- package/dist/webcomponents/{p-c63825d8.entry.js → p-3fbbdbba.entry.js} +1 -1
- package/dist/webcomponents/p-4422ca71.entry.js +1 -0
- package/dist/webcomponents/{p-f4a8215b.entry.js → p-5f10b3e9.entry.js} +1 -1
- package/dist/webcomponents/{p-e7d6609d.js → p-74822344.js} +1 -1
- package/dist/webcomponents/{p-56bda985.js → p-7fea661a.js} +1 -1
- package/dist/webcomponents/{p-2de65000.entry.js → p-84987cd4.entry.js} +1 -1
- package/dist/webcomponents/p-8e228e5a.js +1 -0
- package/dist/webcomponents/{p-52ca72cd.entry.js → p-8f26db63.entry.js} +1 -1
- package/dist/webcomponents/p-b16269d7.js +1 -0
- package/dist/webcomponents/p-bba131f9.entry.js +1 -0
- package/dist/webcomponents/{p-dae9b10e.entry.js → p-c4df0098.entry.js} +1 -1
- package/dist/webcomponents/{p-04d12939.entry.js → p-c8b2f11d.entry.js} +1 -1
- package/dist/webcomponents/{p-24392a86.entry.js → p-d5cd727b.entry.js} +1 -1
- package/dist/webcomponents/{p-b0686897.entry.js → p-e07d5e0f.entry.js} +1 -1
- package/dist/webcomponents/{p-0b686ada.entry.js → p-eee24bb2.entry.js} +1 -1
- package/dist/webcomponents/{p-c1cf7d5b.js → p-fb2005de.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0ac35b39.entry.js +0 -1
- package/dist/webcomponents/p-0c79e368.entry.js +0 -1
- package/dist/webcomponents/p-9bd13e22.js +0 -1
- package/dist/webcomponents/p-a2be972d.entry.js +0 -1
- package/dist/webcomponents/p-b1aacd6b.entry.js +0 -1
- package/dist/webcomponents/p-cb79f06c.entry.js +0 -1
- package/dist/webcomponents/p-ec7e69eb.entry.js +0 -1
|
@@ -7,49 +7,11 @@ require('./Checkout-a528241d.js');
|
|
|
7
7
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
8
8
|
require('./Payment-04a842f4.js');
|
|
9
9
|
require('./SubAccount-cc95a4a0.js');
|
|
10
|
-
const utils
|
|
10
|
+
const utils = require('./utils-f8a6962c.js');
|
|
11
11
|
const tableLoadingState = require('./table-loading-state-8b406852.js');
|
|
12
|
-
const
|
|
13
|
-
const table = require('./table-
|
|
14
|
-
|
|
15
|
-
const MapCheckoutStatusToBadge = (status) => {
|
|
16
|
-
switch (status) {
|
|
17
|
-
case 'created':
|
|
18
|
-
return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
|
|
19
|
-
case 'completed':
|
|
20
|
-
return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
|
|
21
|
-
case 'attempted':
|
|
22
|
-
return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
|
|
23
|
-
case 'expired':
|
|
24
|
-
return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
|
|
29
|
-
const checkoutTableColumns = {
|
|
30
|
-
created_at: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
|
|
31
|
-
payment_amount: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
|
|
32
|
-
payment_description: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
|
|
33
|
-
sub_account_name: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
|
|
34
|
-
payment_mode: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
|
|
35
|
-
status: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
|
|
36
|
-
};
|
|
37
|
-
const checkoutTableCells = {
|
|
38
|
-
created_at: (value) => (index.h("th", null,
|
|
39
|
-
index.h("div", { class: "fw-bold" },
|
|
40
|
-
utils.formatDate(value),
|
|
41
|
-
" "),
|
|
42
|
-
index.h("div", { class: "fw-bold" },
|
|
43
|
-
utils.formatTime(value),
|
|
44
|
-
" "))),
|
|
45
|
-
payment_amount: (value) => (index.h("td", null,
|
|
46
|
-
utils.formatCurrency(value, true, true),
|
|
47
|
-
" ")),
|
|
48
|
-
payment_description: (value) => (index.h("td", null, value)),
|
|
49
|
-
sub_account_name: (value) => (index.h("td", null, value)),
|
|
50
|
-
payment_mode: (value) => (index.h("td", null, value)),
|
|
51
|
-
status: (value) => (index.h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
|
|
52
|
-
};
|
|
12
|
+
const checkoutsTable = require('./checkouts-table-24c065ff.js');
|
|
13
|
+
const table = require('./table-20e9a053.js');
|
|
14
|
+
require('./utils-3d84442d.js');
|
|
53
15
|
|
|
54
16
|
const CheckoutsListCore = class {
|
|
55
17
|
constructor(hostRef) {
|
|
@@ -74,7 +36,7 @@ const CheckoutsListCore = class {
|
|
|
74
36
|
};
|
|
75
37
|
this.setParamsOnChange = (name, value) => {
|
|
76
38
|
let newParams = { [name]: value };
|
|
77
|
-
this.params = utils
|
|
39
|
+
this.params = utils.onFilterChange(newParams, this.params);
|
|
78
40
|
};
|
|
79
41
|
this.clearParams = () => {
|
|
80
42
|
this.errorMessage = '';
|
|
@@ -82,9 +44,9 @@ const CheckoutsListCore = class {
|
|
|
82
44
|
};
|
|
83
45
|
this.getCheckouts = undefined;
|
|
84
46
|
this.getSubAccounts = undefined;
|
|
85
|
-
this.columns =
|
|
47
|
+
this.columns = undefined;
|
|
86
48
|
this.checkouts = [];
|
|
87
|
-
this.checkoutsTable =
|
|
49
|
+
this.checkoutsTable = undefined;
|
|
88
50
|
this.subAccounts = [];
|
|
89
51
|
this.loading = true;
|
|
90
52
|
this.errorMessage = undefined;
|
|
@@ -95,6 +57,7 @@ const CheckoutsListCore = class {
|
|
|
95
57
|
this.fetchCheckouts();
|
|
96
58
|
}
|
|
97
59
|
componentWillLoad() {
|
|
60
|
+
this.checkoutsTable = new table.Table(this.checkouts, this.columns, checkoutsTable.checkoutTableColumns, checkoutsTable.checkoutTableCells);
|
|
98
61
|
if (this.getCheckouts && this.getSubAccounts) {
|
|
99
62
|
this.fetchCheckouts();
|
|
100
63
|
}
|
|
@@ -106,7 +69,7 @@ const CheckoutsListCore = class {
|
|
|
106
69
|
onSuccess: async ({ checkouts, pagingInfo }) => {
|
|
107
70
|
this.checkouts = checkouts;
|
|
108
71
|
this.paging = pagingInfo;
|
|
109
|
-
this.checkoutsTable =
|
|
72
|
+
this.checkoutsTable.collectionData = this.checkouts;
|
|
110
73
|
const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
|
|
111
74
|
if (shouldFetchSubAccounts) {
|
|
112
75
|
await this.fetchSubAccounts();
|
|
@@ -168,7 +131,7 @@ const CheckoutsListCore = class {
|
|
|
168
131
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
169
132
|
}
|
|
170
133
|
render() {
|
|
171
|
-
return (index.h("div", { key: '
|
|
134
|
+
return (index.h("div", { key: '8d2c1fd960b2b3a66f3a1bf648b75576ad2e8857' }, index.h("checkouts-list-filters", { key: '18ba9bf560499112f71a690da751c8e3c4d345a7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), index.h("div", { key: '12cf6ee2912ac6a9518634ebd470dac5f7623aff', class: "table-wrapper" }, index.h("table", { key: '1ea2c118d7efb620dc1f39db55a510a8a473cb31', class: "table table-hover" }, index.h("thead", { key: '5e334a090be56c82b11ae7584bdf4014cc8743c7', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: '233137a8b4e30bac28ded78010199bfecd0ac4e7', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), index.h("tbody", { key: 'd4ed9d4bf3ac17d4dc7294b875734e02996c7444', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: 'a7afbb627c768139af4244da5c12fae493dceafb', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: '802c43c8da770bca9a249a88d115901e9b14e102', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), index.h(tableLoadingState.TableErrorState, { key: 'f1cd197cf7d1d5d81868a5abfafa40df762ca3c8', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (index.h("tfoot", { key: 'f0c367854322c341515bc481159101e9659117c7', class: "sticky-bottom" }, index.h("tr", { key: '88bc665c23665eddc4c88d27acc8c8f1cb39e277', class: "table-light align-middle" }, index.h("td", { key: '8be265c9b43033cfd3e2c4b3f12ac6d6c104e53d', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, index.h("pagination-menu", { key: '6abdb6091b78e58ec71ac6bf66f278ed9b6542fb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
172
135
|
}
|
|
173
136
|
static get watchers() { return {
|
|
174
137
|
"params": ["updateOnPropChange"],
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-fb499e95.js');
|
|
4
|
+
const utils = require('./utils-3d84442d.js');
|
|
5
|
+
|
|
6
|
+
const MapCheckoutStatusToBadge = (status) => {
|
|
7
|
+
switch (status) {
|
|
8
|
+
case 'created':
|
|
9
|
+
return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
|
|
10
|
+
case 'completed':
|
|
11
|
+
return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
|
|
12
|
+
case 'attempted':
|
|
13
|
+
return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
|
|
14
|
+
case 'expired':
|
|
15
|
+
return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
|
|
20
|
+
const checkoutTableColumns = {
|
|
21
|
+
created_at: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
|
|
22
|
+
payment_amount: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
|
|
23
|
+
payment_description: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
|
|
24
|
+
sub_account_name: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
|
|
25
|
+
payment_mode: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
|
|
26
|
+
status: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
|
|
27
|
+
};
|
|
28
|
+
const checkoutTableCells = {
|
|
29
|
+
created_at: (value) => (index.h("th", null,
|
|
30
|
+
index.h("div", { class: "fw-bold" },
|
|
31
|
+
utils.formatDate(value),
|
|
32
|
+
" "),
|
|
33
|
+
index.h("div", { class: "fw-bold" },
|
|
34
|
+
utils.formatTime(value),
|
|
35
|
+
" "))),
|
|
36
|
+
payment_amount: (value) => (index.h("td", null,
|
|
37
|
+
utils.formatCurrency(value, true, true),
|
|
38
|
+
" ")),
|
|
39
|
+
payment_description: (value) => (index.h("td", null, value)),
|
|
40
|
+
sub_account_name: (value) => (index.h("td", null, value)),
|
|
41
|
+
payment_mode: (value) => (index.h("td", null, value)),
|
|
42
|
+
status: (value) => (index.h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.checkoutTableCells = checkoutTableCells;
|
|
46
|
+
exports.checkoutTableColumns = checkoutTableColumns;
|
|
47
|
+
exports.defaultColumnsKeys = defaultColumnsKeys;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const config = require('./config-05767cba.js');
|
|
7
|
-
const Analytics = require('./Analytics-
|
|
8
|
-
require('./package-
|
|
7
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
8
|
+
require('./package-596f102c.js');
|
|
9
9
|
require('./Api-f5280a80.js');
|
|
10
10
|
|
|
11
11
|
const BankAccountForm = class {
|
|
@@ -8,7 +8,7 @@ const schemaValidations = require('./schema-validations-184a4356.js');
|
|
|
8
8
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
9
9
|
const utils = require('./utils-bc03ca40.js');
|
|
10
10
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
11
|
-
const _package = require('./package-
|
|
11
|
+
const _package = require('./package-596f102c.js');
|
|
12
12
|
const utils$1 = require('./utils-3d84442d.js');
|
|
13
13
|
require('./business-form-options-5db0bd5e.js');
|
|
14
14
|
require('./Business-aa799fec.js');
|
|
@@ -8,13 +8,13 @@ const business_service = require('./business.service-7faffa0b.js');
|
|
|
8
8
|
const Business = require('./Business-aa799fec.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
11
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
13
13
|
require('./config-05767cba.js');
|
|
14
14
|
require('./Api-f5280a80.js');
|
|
15
15
|
require('./helpers-602962eb.js');
|
|
16
16
|
require('./state-options-4fbcb48a.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-596f102c.js');
|
|
18
18
|
|
|
19
19
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
20
20
|
var _a;
|
|
@@ -14,14 +14,14 @@ require('./SubAccount-cc95a4a0.js');
|
|
|
14
14
|
const config = require('./config-05767cba.js');
|
|
15
15
|
const businessFormTypes = require('./business-form-types-719b7f52.js');
|
|
16
16
|
const Business = require('./Business-aa799fec.js');
|
|
17
|
-
const Analytics = require('./Analytics-
|
|
17
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
18
18
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
19
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
19
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
20
20
|
require('./schema-validations-184a4356.js');
|
|
21
21
|
require('./state-options-4fbcb48a.js');
|
|
22
22
|
require('./business-form-options-5db0bd5e.js');
|
|
23
23
|
require('./helpers-602962eb.js');
|
|
24
|
-
require('./package-
|
|
24
|
+
require('./package-596f102c.js');
|
|
25
25
|
|
|
26
26
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
|
|
27
27
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const config = require('./config-05767cba.js');
|
|
7
|
-
const Analytics = require('./Analytics-
|
|
8
|
-
require('./package-
|
|
7
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
8
|
+
require('./package-596f102c.js');
|
|
9
9
|
require('./Api-f5280a80.js');
|
|
10
10
|
|
|
11
11
|
const CardForm = class {
|
|
@@ -6,15 +6,15 @@ const index = require('./index-fb499e95.js');
|
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const utils = require('./utils-7a478c37.js');
|
|
8
8
|
const checkout_service = require('./checkout.service-160f3a9c.js');
|
|
9
|
-
const Analytics = require('./Analytics-
|
|
10
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
9
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
10
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
11
11
|
require('./config-05767cba.js');
|
|
12
12
|
require('./Api-f5280a80.js');
|
|
13
13
|
require('./Checkout-a528241d.js');
|
|
14
14
|
require('./Pagination-0da8f095.js');
|
|
15
15
|
require('./Payment-04a842f4.js');
|
|
16
16
|
require('./SubAccount-cc95a4a0.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-596f102c.js');
|
|
18
18
|
|
|
19
19
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
20
20
|
var _a;
|
|
@@ -9,15 +9,17 @@ require('./Payment-04a842f4.js');
|
|
|
9
9
|
require('./SubAccount-cc95a4a0.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
13
13
|
const config = require('./config-05767cba.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
15
|
const checkout_service = require('./checkout.service-160f3a9c.js');
|
|
16
16
|
const getSubaccounts = require('./get-subaccounts-8f7a930f.js');
|
|
17
17
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
18
18
|
const exportedParts = require('./exported-parts-a994d693.js');
|
|
19
|
-
require('./
|
|
19
|
+
const checkoutsTable = require('./checkouts-table-24c065ff.js');
|
|
20
|
+
require('./package-596f102c.js');
|
|
20
21
|
require('./Api-f5280a80.js');
|
|
22
|
+
require('./utils-3d84442d.js');
|
|
21
23
|
|
|
22
24
|
const makeGetCheckouts = ({ accountId, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
23
25
|
var _a, _b;
|
|
@@ -62,7 +64,7 @@ const CheckoutsList = class {
|
|
|
62
64
|
this.accountId = undefined;
|
|
63
65
|
this.authToken = undefined;
|
|
64
66
|
this.apiOrigin = config.config.proxyApiOrigin;
|
|
65
|
-
this.columns =
|
|
67
|
+
this.columns = checkoutsTable.defaultColumnsKeys;
|
|
66
68
|
}
|
|
67
69
|
componentWillLoad() {
|
|
68
70
|
checkPkgVersion.checkPkgVersion();
|
|
@@ -108,7 +110,7 @@ const CheckoutsList = class {
|
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
112
|
render() {
|
|
111
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
113
|
+
return (index.h(styledHost.StyledHost, { key: '6e6faed5df0fcdc48018650867672c5d325d1934', exportparts: exportedParts.tableExportedParts }, index.h("checkouts-list-core", { key: '92ceb10f7bd76864629ed0990a7f34fab76ce517', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
112
114
|
}
|
|
113
115
|
static get watchers() { return {
|
|
114
116
|
"accountId": ["propChanged"],
|
|
@@ -8,9 +8,9 @@ const Api = require('./Api-f5280a80.js');
|
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
9
|
const utils = require('./utils-7a478c37.js');
|
|
10
10
|
const utils$1 = require('./utils-189dc30d.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
13
|
-
require('./package-
|
|
11
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
13
|
+
require('./package-596f102c.js');
|
|
14
14
|
|
|
15
15
|
class ReportsService {
|
|
16
16
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -11,11 +11,11 @@ require('./SubAccount-cc95a4a0.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-189dc30d.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
16
16
|
require('./Api-f5280a80.js');
|
|
17
17
|
require('./config-05767cba.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-596f102c.js');
|
|
19
19
|
|
|
20
20
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
21
21
|
var _a;
|
|
@@ -11,11 +11,11 @@ const utils = require('./utils-3d84442d.js');
|
|
|
11
11
|
const config = require('./config-05767cba.js');
|
|
12
12
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
13
13
|
const utils$1 = require('./utils-7a478c37.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
15
|
const button = require('./button-3f400a66.js');
|
|
16
16
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
17
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
18
|
-
require('./package-
|
|
17
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
18
|
+
require('./package-596f102c.js');
|
|
19
19
|
require('./Api-f5280a80.js');
|
|
20
20
|
|
|
21
21
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
6
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
9
|
const business_service = require('./business.service-7faffa0b.js');
|
|
10
10
|
const config = require('./config-05767cba.js');
|
|
11
11
|
const Api = require('./Api-f5280a80.js');
|
|
12
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
13
|
-
require('./package-
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
13
|
+
require('./package-596f102c.js');
|
|
14
14
|
require('./utils-7a478c37.js');
|
|
15
15
|
|
|
16
16
|
class ProvisionService {
|
|
@@ -10,13 +10,13 @@ const Payment = require('./Payment-04a842f4.js');
|
|
|
10
10
|
require('./SubAccount-cc95a4a0.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
13
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
15
15
|
const config = require('./config-05767cba.js');
|
|
16
16
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
17
17
|
const exportedParts = require('./exported-parts-a994d693.js');
|
|
18
18
|
require('./Api-f5280a80.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-596f102c.js');
|
|
20
20
|
|
|
21
21
|
const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
22
22
|
var _a, _b;
|
|
@@ -11,11 +11,11 @@ const SubAccount = require('./SubAccount-cc95a4a0.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-189dc30d.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
16
16
|
require('./Api-f5280a80.js');
|
|
17
17
|
require('./config-05767cba.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-596f102c.js');
|
|
19
19
|
|
|
20
20
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
21
21
|
var _a;
|
|
@@ -11,12 +11,12 @@ require('./Payment-04a842f4.js');
|
|
|
11
11
|
const SubAccount = require('./SubAccount-cc95a4a0.js');
|
|
12
12
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
13
13
|
const utils = require('./utils-7a478c37.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
16
16
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
17
17
|
require('./Api-f5280a80.js');
|
|
18
18
|
require('./config-05767cba.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-596f102c.js');
|
|
20
20
|
|
|
21
21
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
22
22
|
var _a, _b;
|
|
@@ -11,9 +11,9 @@ require('./SubAccount-cc95a4a0.js');
|
|
|
11
11
|
const config = require('./config-05767cba.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
16
|
-
require('./package-
|
|
14
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
16
|
+
require('./package-596f102c.js');
|
|
17
17
|
|
|
18
18
|
class InsuranceService {
|
|
19
19
|
async fetchQuote(authToken, payload) {
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const Analytics = require('./Analytics-
|
|
8
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
8
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
9
9
|
const config = require('./config-05767cba.js');
|
|
10
10
|
const Api = require('./Api-f5280a80.js');
|
|
11
11
|
require('./Checkout-a528241d.js');
|
|
@@ -16,7 +16,8 @@ const utils = require('./utils-7a478c37.js');
|
|
|
16
16
|
const getSubaccounts = require('./get-subaccounts-8f7a930f.js');
|
|
17
17
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
18
18
|
const exportedParts = require('./exported-parts-a994d693.js');
|
|
19
|
-
require('./
|
|
19
|
+
const terminalsTable = require('./terminals-table-99a7b87b.js');
|
|
20
|
+
require('./package-596f102c.js');
|
|
20
21
|
|
|
21
22
|
class TerminalService {
|
|
22
23
|
async fetchTerminals(accountId, authToken, params, apiOrigin) {
|
|
@@ -80,7 +81,7 @@ const TerminalsList = class {
|
|
|
80
81
|
this.accountId = undefined;
|
|
81
82
|
this.authToken = undefined;
|
|
82
83
|
this.apiOrigin = config.config.proxyApiOrigin;
|
|
83
|
-
this.columns =
|
|
84
|
+
this.columns = terminalsTable.defaultColumnsKeys;
|
|
84
85
|
}
|
|
85
86
|
componentWillLoad() {
|
|
86
87
|
checkPkgVersion.checkPkgVersion();
|
|
@@ -126,7 +127,7 @@ const TerminalsList = class {
|
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
render() {
|
|
129
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
130
|
+
return (index.h(styledHost.StyledHost, { key: '8ffe95f21b5ef8c1c15fc0e22a9c824cff758ee6', exportparts: exportedParts.tableExportedParts }, index.h("terminals-list-core", { key: 'a550f1f85b84f6cc06bd93b5e5a9ec726b72b46c', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
130
131
|
}
|
|
131
132
|
static get watchers() { return {
|
|
132
133
|
"accountId": ["propChanged"],
|
|
@@ -6,9 +6,9 @@ const index = require('./index-fb499e95.js');
|
|
|
6
6
|
const button = require('./button-3f400a66.js');
|
|
7
7
|
const styledHost = require('./styled-host-1adf46c3.js');
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
10
|
-
const Analytics = require('./Analytics-
|
|
11
|
-
require('./package-
|
|
9
|
+
const checkPkgVersion = require('./check-pkg-version-fafb21ae.js');
|
|
10
|
+
const Analytics = require('./Analytics-0d90fa0d.js');
|
|
11
|
+
require('./package-596f102c.js');
|
|
12
12
|
require('./config-05767cba.js');
|
|
13
13
|
require('./Api-f5280a80.js');
|
|
14
14
|
|
|
@@ -9,6 +9,9 @@ class Table {
|
|
|
9
9
|
return this.columnKeys.map((key) => this.tableCells[key](checkout[key]));
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
+
set collectionData(collection) {
|
|
13
|
+
this.collection = collection;
|
|
14
|
+
}
|
|
12
15
|
constructor(collection, columns, tableColumns, tableCells) {
|
|
13
16
|
this.columnKeys = columns.split(',');
|
|
14
17
|
this.collection = collection;
|
|
@@ -9,32 +9,8 @@ require('./Payment-04a842f4.js');
|
|
|
9
9
|
require('./SubAccount-cc95a4a0.js');
|
|
10
10
|
const tableLoadingState = require('./table-loading-state-8b406852.js');
|
|
11
11
|
const utils = require('./utils-f8a6962c.js');
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const MapTerminalStatusToBadge = (status) => {
|
|
15
|
-
switch (status) {
|
|
16
|
-
case 'connected':
|
|
17
|
-
return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
|
|
18
|
-
case 'disconnected':
|
|
19
|
-
return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
|
|
20
|
-
case 'unknown':
|
|
21
|
-
return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const defaultColumnsKeys = 'nickname,provider_id,status';
|
|
26
|
-
const terminalTableColumns = {
|
|
27
|
-
nickname: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
28
|
-
provider_id: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
29
|
-
sub_account_name: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
30
|
-
status: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
31
|
-
};
|
|
32
|
-
const terminalTableCells = {
|
|
33
|
-
nickname: (value) => (index.h("td", null, value)),
|
|
34
|
-
provider_id: (value) => (index.h("td", null, value)),
|
|
35
|
-
sub_account_name: (value) => (index.h("td", null, value)),
|
|
36
|
-
status: (value) => (index.h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
37
|
-
};
|
|
12
|
+
const terminalsTable = require('./terminals-table-99a7b87b.js');
|
|
13
|
+
const table = require('./table-20e9a053.js');
|
|
38
14
|
|
|
39
15
|
const TerminalsListCore = class {
|
|
40
16
|
constructor(hostRef) {
|
|
@@ -67,9 +43,9 @@ const TerminalsListCore = class {
|
|
|
67
43
|
};
|
|
68
44
|
this.getTerminals = undefined;
|
|
69
45
|
this.getSubAccounts = undefined;
|
|
70
|
-
this.columns =
|
|
46
|
+
this.columns = undefined;
|
|
71
47
|
this.terminals = [];
|
|
72
|
-
this.terminalsTable =
|
|
48
|
+
this.terminalsTable = undefined;
|
|
73
49
|
this.subAccounts = [];
|
|
74
50
|
this.loading = true;
|
|
75
51
|
this.errorMessage = undefined;
|
|
@@ -80,6 +56,7 @@ const TerminalsListCore = class {
|
|
|
80
56
|
this.fetchTerminals();
|
|
81
57
|
}
|
|
82
58
|
componentWillLoad() {
|
|
59
|
+
this.terminalsTable = new table.Table(this.terminals, this.columns, terminalsTable.terminalTableColumns, terminalsTable.terminalTableCells);
|
|
83
60
|
if (this.getTerminals && this.getSubAccounts) {
|
|
84
61
|
this.fetchTerminals();
|
|
85
62
|
}
|
|
@@ -91,7 +68,7 @@ const TerminalsListCore = class {
|
|
|
91
68
|
onSuccess: async ({ terminals, pagingInfo }) => {
|
|
92
69
|
this.terminals = terminals;
|
|
93
70
|
this.paging = pagingInfo;
|
|
94
|
-
this.terminalsTable =
|
|
71
|
+
this.terminalsTable.collectionData = this.terminals;
|
|
95
72
|
const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
|
|
96
73
|
if (shouldFetchSubAccounts) {
|
|
97
74
|
await this.fetchSubAccounts();
|
|
@@ -153,7 +130,7 @@ const TerminalsListCore = class {
|
|
|
153
130
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
154
131
|
}
|
|
155
132
|
render() {
|
|
156
|
-
return (index.h("div", { key: '
|
|
133
|
+
return (index.h("div", { key: '7f8bc3f39c1250281c2f2ad6fe081fc71bb20e79' }, index.h("terminals-list-filters", { key: 'd1184427fc74d970bd69d56a00d0ef4b7672516b', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), index.h("div", { key: '582e37429a153cd17bf3c7ebb16e7330c774f986', class: "table-wrapper" }, index.h("table", { key: '1c03b2ddc8ca2da6b1f2147113f7832b3f27ec1d', class: "table table-hover" }, index.h("thead", { key: '811d48219cc04256f4a37854504252ff53392bd9', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: 'fafa54ac3abba993dcf38ca2e47f248031226041', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), index.h("tbody", { key: '8c9072bf6ebb7f720f1fad0faa47c72c8ed84dd2', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: 'abddb3ce09e39245c0455893f09e54cc631b26bf', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: '166a461ee8aaf7405fc0a2b12cd17e1e1e9553f3', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), index.h(tableLoadingState.TableErrorState, { key: '969bbfcce66b6bcee4dadabe465eaef37022d13b', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (index.h("tfoot", { key: 'c63268c11facddaa44452c58743ad9c03f492898', class: "sticky-bottom" }, index.h("tr", { key: '0e247f8968ad4ed7e8c001354b1c29d5bf7976aa', class: "table-light align-middle" }, index.h("td", { key: '51c5157453d911f5bf370ba2ac6a556dd1592f24', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, index.h("pagination-menu", { key: '3a3ba65f31099125e9c01bc9c8c001c6437ed720', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
157
134
|
}
|
|
158
135
|
static get watchers() { return {
|
|
159
136
|
"params": ["updateOnPropChange"],
|