merchi_cart 0.0.4-e → 0.0.4-f
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/lib/Cart.js +33 -39
- package/lib/CartAlert.js +20 -24
- package/lib/CartHeader.js +14 -21
- package/lib/CartProvider.js +8 -17
- package/lib/CartTotals.js +32 -37
- package/lib/MerchiSDK/constants/auto_assign_production_on_actions.js +1 -7
- package/lib/MerchiSDK/constants/call_to_actions.js +1 -7
- package/lib/MerchiSDK/constants/discount_types.js +1 -7
- package/lib/MerchiSDK/constants/domain_types.js +1 -7
- package/lib/MerchiSDK/constants/errors.js +2 -9
- package/lib/MerchiSDK/constants/event_types.js +1 -7
- package/lib/MerchiSDK/constants/field_types.js +1 -7
- package/lib/MerchiSDK/constants/input_types.js +1 -7
- package/lib/MerchiSDK/constants/inventory_statuses.js +1 -7
- package/lib/MerchiSDK/constants/invoice_types.js +1 -7
- package/lib/MerchiSDK/constants/item_types.js +1 -7
- package/lib/MerchiSDK/constants/job/drafting_status.js +1 -7
- package/lib/MerchiSDK/constants/job/payment_status.js +1 -7
- package/lib/MerchiSDK/constants/job/production_status.js +1 -7
- package/lib/MerchiSDK/constants/job/shipment_status.js +1 -7
- package/lib/MerchiSDK/constants/job/supply_chain_request_status.js +1 -7
- package/lib/MerchiSDK/constants/job_priorities.js +1 -7
- package/lib/MerchiSDK/constants/job_status.js +5 -11
- package/lib/MerchiSDK/constants/job_types.js +1 -7
- package/lib/MerchiSDK/constants/notification_sections.js +1 -7
- package/lib/MerchiSDK/constants/notification_types.js +1 -7
- package/lib/MerchiSDK/constants/notification_urgencies.js +1 -7
- package/lib/MerchiSDK/constants/payment_types.js +1 -7
- package/lib/MerchiSDK/constants/platform.js +5 -11
- package/lib/MerchiSDK/constants/product_types.js +1 -7
- package/lib/MerchiSDK/constants/rights.js +1 -7
- package/lib/MerchiSDK/constants/robots_meta_directives.js +1 -7
- package/lib/MerchiSDK/constants/roles.js +8 -14
- package/lib/MerchiSDK/constants/shipment_companies.js +1 -7
- package/lib/MerchiSDK/constants/shipment_services.js +1 -7
- package/lib/MerchiSDK/constants/system_roles.js +1 -7
- package/lib/MerchiSDK/constants/theme_foundations.js +1 -7
- package/lib/MerchiSDK/constants/theme_status.js +1 -7
- package/lib/MerchiSDK/constants/user_types.js +1 -7
- package/lib/MerchiSDK/constants/white_label_accessibilities.js +1 -7
- package/lib/MerchiSDK/cookie.js +1 -7
- package/lib/MerchiSDK/entities/address.js +3 -9
- package/lib/MerchiSDK/entities/assignment.js +11 -17
- package/lib/MerchiSDK/entities/automatic_payment_relationship.js +6 -12
- package/lib/MerchiSDK/entities/backup.js +2 -8
- package/lib/MerchiSDK/entities/bank.js +3 -9
- package/lib/MerchiSDK/entities/cart.js +7 -13
- package/lib/MerchiSDK/entities/cart_item.js +3 -9
- package/lib/MerchiSDK/entities/cart_shipment_group.js +3 -9
- package/lib/MerchiSDK/entities/cart_shipment_quote.js +5 -11
- package/lib/MerchiSDK/entities/category.js +3 -9
- package/lib/MerchiSDK/entities/company.js +7 -13
- package/lib/MerchiSDK/entities/company_invitation.js +3 -9
- package/lib/MerchiSDK/entities/component.js +5 -11
- package/lib/MerchiSDK/entities/component_tag.js +2 -8
- package/lib/MerchiSDK/entities/component_version.js +3 -9
- package/lib/MerchiSDK/entities/country_tax.js +3 -9
- package/lib/MerchiSDK/entities/discount.js +5 -11
- package/lib/MerchiSDK/entities/discount_group.js +3 -9
- package/lib/MerchiSDK/entities/domain.js +6 -12
- package/lib/MerchiSDK/entities/domain_invitation.js +3 -9
- package/lib/MerchiSDK/entities/domain_tag.js +3 -9
- package/lib/MerchiSDK/entities/draft.js +3 -9
- package/lib/MerchiSDK/entities/draft_comment.js +7 -13
- package/lib/MerchiSDK/entities/draft_template.js +9 -15
- package/lib/MerchiSDK/entities/email_address.js +3 -9
- package/lib/MerchiSDK/entities/email_counter.js +2 -8
- package/lib/MerchiSDK/entities/enrolled_domain.js +8 -14
- package/lib/MerchiSDK/entities/exchange_rate.js +2 -8
- package/lib/MerchiSDK/entities/file.js +5 -11
- package/lib/MerchiSDK/entities/internal_tag.js +3 -9
- package/lib/MerchiSDK/entities/inventory.js +7 -13
- package/lib/MerchiSDK/entities/inventory_unit_variation.js +3 -9
- package/lib/MerchiSDK/entities/invoice.js +20 -26
- package/lib/MerchiSDK/entities/item.js +7 -13
- package/lib/MerchiSDK/entities/job.js +23 -29
- package/lib/MerchiSDK/entities/job_comment.js +3 -9
- package/lib/MerchiSDK/entities/matching_inventory.js +5 -11
- package/lib/MerchiSDK/entities/menu.js +3 -9
- package/lib/MerchiSDK/entities/menu_item.js +3 -9
- package/lib/MerchiSDK/entities/notification.js +24 -30
- package/lib/MerchiSDK/entities/page.js +3 -9
- package/lib/MerchiSDK/entities/payment.js +10 -16
- package/lib/MerchiSDK/entities/payment_device.js +5 -11
- package/lib/MerchiSDK/entities/phone_number.js +3 -9
- package/lib/MerchiSDK/entities/product.js +14 -22
- package/lib/MerchiSDK/entities/production_comment.js +3 -9
- package/lib/MerchiSDK/entities/quote.js +12 -18
- package/lib/MerchiSDK/entities/quote_item.js +5 -11
- package/lib/MerchiSDK/entities/seo_domain_page.js +3 -9
- package/lib/MerchiSDK/entities/session.js +5 -11
- package/lib/MerchiSDK/entities/shipment.js +22 -28
- package/lib/MerchiSDK/entities/shipment_item.js +5 -11
- package/lib/MerchiSDK/entities/shipment_item_fulfillment.js +3 -9
- package/lib/MerchiSDK/entities/shipment_method.js +11 -17
- package/lib/MerchiSDK/entities/shipment_method_variation.js +3 -9
- package/lib/MerchiSDK/entities/short_url.js +5 -11
- package/lib/MerchiSDK/entities/subscription_plan.js +8 -14
- package/lib/MerchiSDK/entities/supply_domain.js +5 -11
- package/lib/MerchiSDK/entities/system_role.js +2 -8
- package/lib/MerchiSDK/entities/theme.js +9 -15
- package/lib/MerchiSDK/entities/theme_css_setting.js +5 -11
- package/lib/MerchiSDK/entities/user.js +14 -20
- package/lib/MerchiSDK/entities/user_company.js +7 -13
- package/lib/MerchiSDK/entities/variation.js +9 -15
- package/lib/MerchiSDK/entities/variation_field.js +7 -13
- package/lib/MerchiSDK/entities/variation_fields_option.js +7 -13
- package/lib/MerchiSDK/entities/variation_option.js +5 -11
- package/lib/MerchiSDK/entities/variations_group.js +9 -15
- package/lib/MerchiSDK/entity.js +5 -12
- package/lib/MerchiSDK/merchi.js +148 -155
- package/lib/MerchiSDK/request.js +7 -18
- package/lib/MerchiSDK/test_util.js +2 -9
- package/lib/MerchiSDK/toasts.js +2 -9
- package/lib/MerchiSDK/util/float.js +1 -7
- package/lib/MerchiSDK/util/query_string.js +1 -7
- package/lib/MerchiSDK/util/validation.js +1 -8
- package/lib/MerchiSDK/uuid.js +1 -7
- package/lib/buttons/Button.js +6 -14
- package/lib/buttons/ButtonBack.js +16 -24
- package/lib/buttons/ButtonClearCart.js +9 -16
- package/lib/buttons/ButtonInvoiceDownload.js +24 -30
- package/lib/buttons/ButtonNext.js +19 -27
- package/lib/buttons/ButtonNextDynamic.js +14 -22
- package/lib/buttons/ButtonPay.js +12 -20
- package/lib/buttons/ButtonShipmentTabNext.js +17 -25
- package/lib/buttons/index.js +7 -48
- package/lib/components/Alert.js +6 -14
- package/lib/components/CartBody.js +6 -14
- package/lib/components/CartClient.js +29 -38
- package/lib/components/CartFooter.js +6 -14
- package/lib/components/CartItemRow.js +47 -54
- package/lib/components/CartPaymentSettingsInvalid.js +7 -14
- package/lib/components/CartShipment.js +25 -31
- package/lib/components/CartTabContent.js +6 -14
- package/lib/components/CartTabPanel.js +7 -13
- package/lib/components/CartTableContainer.js +6 -14
- package/lib/components/Collapse.js +8 -16
- package/lib/components/LoadingTemplate.js +8 -15
- package/lib/components/NoCartItems.js +11 -19
- package/lib/components/ShipmentGroupCard.js +49 -56
- package/lib/components/Table.js +5 -11
- package/lib/components/Title.js +12 -19
- package/lib/components/containers.js +6 -15
- package/lib/components/index.js +14 -105
- package/lib/forms/FormNewCustomer.js +35 -44
- package/lib/forms/FormReturningCustomer.js +21 -27
- package/lib/forms/FormShipmentAddressAndNotes.js +33 -40
- package/lib/forms/FormSquarePayment.js +8 -14
- package/lib/forms/FormStripePayment.js +8 -14
- package/lib/forms/InputAcceptUserTermsAndConditions.js +10 -15
- package/lib/forms/InputError.js +6 -14
- package/lib/forms/InputSelect.js +15 -21
- package/lib/forms/InputText.js +12 -18
- package/lib/forms/InputsAddress.js +54 -59
- package/lib/index.js +4 -28
- package/lib/panels/PanelCartItems.js +23 -29
- package/lib/panels/PanelCartShipment.js +30 -34
- package/lib/panels/PanelClearCart.js +26 -31
- package/lib/panels/PanelClientCheckout.js +43 -48
- package/lib/panels/PanelEditCartItem.js +23 -29
- package/lib/panels/PanelPaymentSuccess.js +34 -39
- package/lib/panels/index.js +7 -48
- package/lib/slices/sliceCart.js +14 -21
- package/lib/slices/sliceCartAlert.js +6 -12
- package/lib/slices/sliceCartItem.js +3 -9
- package/lib/slices/sliceCartPayment.js +2 -8
- package/lib/slices/sliceCartShipment.js +3 -9
- package/lib/slices/sliceFormReturningCustomer.js +3 -9
- package/lib/slices/sliceNewCustomerForm.js +3 -9
- package/lib/square/SquareCard.js +19 -25
- package/lib/square/actions.js +8 -16
- package/lib/square/slices/reducersSquare.js +5 -12
- package/lib/square/slices/sliceSquareAlerts.js +3 -9
- package/lib/square/slices/sliceSquareForm.js +3 -9
- package/lib/store.js +119 -148
- package/lib/stripe/StripeCardFields.js +36 -43
- package/lib/stripe/StripeCardForm.js +35 -41
- package/lib/stripe/StripePaymentButtons.js +14 -22
- package/lib/stripe/actions.js +3 -11
- package/lib/stripe/slices/sliceStripeAlerts.js +3 -9
- package/lib/stripe/slices/sliceStripeCardForm.js +5 -12
- package/lib/stripe/slices/sliceStripeForm.js +3 -9
- package/lib/stripe/utils.js +2 -9
- package/lib/tabs/CartNav.js +12 -21
- package/lib/tabs/NavTab.js +15 -22
- package/lib/utilities/address.js +6 -15
- package/lib/utilities/cart.js +14 -28
- package/lib/utilities/company.js +2 -9
- package/lib/utilities/cookie.js +9 -18
- package/lib/utilities/currency.js +5 -15
- package/lib/utilities/helpers.js +9 -20
- package/lib/utilities/invoice.js +1 -7
- package/lib/utilities/product.js +3 -10
- package/lib/utilities/user.js +9 -19
- package/lib/utilities/variations.js +3 -11
- package/package.json +1 -1
package/lib/Cart.js
CHANGED
|
@@ -1,64 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _sliceCart = require("./slices/sliceCart");
|
|
19
|
-
require("./styles/globals.css");
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Provider, useSelector } from 'react-redux';
|
|
3
|
+
import { store } from './store';
|
|
4
|
+
import CartAlert from './CartAlert';
|
|
5
|
+
import CartHeader from './CartHeader';
|
|
6
|
+
import CartNav from './tabs/CartNav';
|
|
7
|
+
import CartTotals from './CartTotals';
|
|
8
|
+
import CartProvider, { useCartContext } from './CartProvider';
|
|
9
|
+
import { ButtonBack, ButtonClearCart, ButtonNextDynamic } from './buttons';
|
|
10
|
+
import { CartFooter, CartPaymentSettingsInvalid, LoadingTemplate } from './components';
|
|
11
|
+
import { PanelCartItems, PanelCartShipment, PanelClearCart, PanelClientCheckout, PanelEditCartItem, PanelPaymentSuccess } from './panels';
|
|
12
|
+
import { tabIdClearCart, tabIdItem, tabIdPaymentSuccess } from './slices/sliceCart';
|
|
13
|
+
import { actionFetchTheme, initMerchiCart } from './store';
|
|
14
|
+
import './styles/globals.css';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
18
|
function CartComponents() {
|
|
25
19
|
const {
|
|
26
20
|
domainId,
|
|
27
21
|
includeTheme,
|
|
28
22
|
initialiseCart
|
|
29
|
-
} =
|
|
23
|
+
} = useCartContext();
|
|
30
24
|
const {
|
|
31
25
|
activeTab,
|
|
32
26
|
cartSettingsInvalid,
|
|
33
27
|
fetchingCart
|
|
34
|
-
} =
|
|
28
|
+
} = useSelector(s => s.stateCart);
|
|
35
29
|
React.useEffect(() => {
|
|
36
30
|
if (initialiseCart && domainId) {
|
|
37
31
|
if (includeTheme) {
|
|
38
|
-
|
|
32
|
+
actionFetchTheme(domainId);
|
|
39
33
|
}
|
|
40
|
-
|
|
34
|
+
initMerchiCart(domainId);
|
|
41
35
|
}
|
|
42
36
|
}, [domainId, includeTheme, initialiseCart]);
|
|
43
|
-
return /*#__PURE__*/(
|
|
44
|
-
children: [/*#__PURE__*/(
|
|
37
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
38
|
+
children: [/*#__PURE__*/_jsx(CartHeader, {}), /*#__PURE__*/_jsx(CartAlert, {}), /*#__PURE__*/_jsx(CartNav, {}), fetchingCart ? /*#__PURE__*/_jsx(LoadingTemplate, {}) : cartSettingsInvalid ? /*#__PURE__*/_jsx(CartPaymentSettingsInvalid, {}) : /*#__PURE__*/_jsxs("div", {
|
|
45
39
|
className: "merchi-tab-pane",
|
|
46
|
-
children: [/*#__PURE__*/(
|
|
47
|
-
children: [/*#__PURE__*/(
|
|
48
|
-
children: /*#__PURE__*/(
|
|
49
|
-
}), /*#__PURE__*/(
|
|
50
|
-
children: [/*#__PURE__*/(
|
|
40
|
+
children: [/*#__PURE__*/_jsx(PanelClearCart, {}), /*#__PURE__*/_jsx(PanelEditCartItem, {}), /*#__PURE__*/_jsx(PanelCartItems, {}), /*#__PURE__*/_jsx(PanelCartShipment, {}), /*#__PURE__*/_jsx(PanelClientCheckout, {}), /*#__PURE__*/_jsx(PanelPaymentSuccess, {}), ![tabIdItem, tabIdClearCart, tabIdPaymentSuccess].includes(activeTab) && /*#__PURE__*/_jsxs(_Fragment, {
|
|
41
|
+
children: [/*#__PURE__*/_jsx(CartFooter, {
|
|
42
|
+
children: /*#__PURE__*/_jsx(CartTotals, {})
|
|
43
|
+
}), /*#__PURE__*/_jsxs(CartFooter, {
|
|
44
|
+
children: [/*#__PURE__*/_jsx(ButtonClearCart, {}), /*#__PURE__*/_jsx(ButtonBack, {}), /*#__PURE__*/_jsx(ButtonNextDynamic, {})]
|
|
51
45
|
})]
|
|
52
46
|
})]
|
|
53
47
|
})]
|
|
54
48
|
});
|
|
55
49
|
}
|
|
56
|
-
function Cart(props) {
|
|
57
|
-
return /*#__PURE__*/(
|
|
50
|
+
export default function Cart(props) {
|
|
51
|
+
return /*#__PURE__*/_jsx(CartProvider, {
|
|
58
52
|
...props,
|
|
59
|
-
children: /*#__PURE__*/(
|
|
60
|
-
store:
|
|
61
|
-
children: /*#__PURE__*/(
|
|
53
|
+
children: /*#__PURE__*/_jsx(Provider, {
|
|
54
|
+
store: store,
|
|
55
|
+
children: /*#__PURE__*/_jsx(CartComponents, {})
|
|
62
56
|
})
|
|
63
57
|
});
|
|
64
58
|
}
|
package/lib/CartAlert.js
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _components = require("./components");
|
|
11
|
-
var _store = require("./store");
|
|
12
|
-
var _CartProvider = require("./CartProvider");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { useSelector } from 'react-redux';
|
|
2
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import { faTimes } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
+
import { Alert } from './components';
|
|
5
|
+
import { closeAlert } from './store';
|
|
6
|
+
import { useCartContext } from './CartProvider';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
10
|
function CartAlert() {
|
|
15
11
|
const {
|
|
16
12
|
classNameBtnClose
|
|
17
|
-
} =
|
|
13
|
+
} = useCartContext();
|
|
18
14
|
const {
|
|
19
15
|
alert
|
|
20
|
-
} =
|
|
16
|
+
} = useSelector(s => s.stateCartAlert);
|
|
21
17
|
const {
|
|
22
18
|
icon,
|
|
23
19
|
message,
|
|
24
20
|
show,
|
|
25
21
|
title
|
|
26
22
|
} = alert;
|
|
27
|
-
return /*#__PURE__*/(
|
|
28
|
-
children: show && /*#__PURE__*/(
|
|
23
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
24
|
+
children: show && /*#__PURE__*/_jsxs(Alert, {
|
|
29
25
|
alertType: alert.type,
|
|
30
|
-
children: [icon && /*#__PURE__*/(
|
|
26
|
+
children: [icon && /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
31
27
|
icon: icon
|
|
32
|
-
}), " ", /*#__PURE__*/(
|
|
28
|
+
}), " ", /*#__PURE__*/_jsx("strong", {
|
|
33
29
|
children: title
|
|
34
|
-
}), " ", message, /*#__PURE__*/(
|
|
30
|
+
}), " ", message, /*#__PURE__*/_jsx("button", {
|
|
35
31
|
type: "button",
|
|
36
32
|
className: classNameBtnClose,
|
|
37
33
|
"data-bs-dismiss": "alert",
|
|
38
34
|
"aria-label": "Close",
|
|
39
|
-
onClick:
|
|
40
|
-
children: /*#__PURE__*/(
|
|
41
|
-
icon:
|
|
35
|
+
onClick: closeAlert,
|
|
36
|
+
children: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
37
|
+
icon: faTimes
|
|
42
38
|
})
|
|
43
39
|
})]
|
|
44
40
|
})
|
|
45
41
|
});
|
|
46
42
|
}
|
|
47
|
-
|
|
43
|
+
export default CartAlert;
|
package/lib/CartHeader.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
9
|
-
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
10
|
-
var _CartProvider = require("./CartProvider");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import { faShoppingCart, faTimes } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
+
import { useCartContext } from './CartProvider';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
7
|
function CartHeader() {
|
|
15
8
|
const {
|
|
16
9
|
classNameCartHeader,
|
|
17
10
|
classNameBtnClose,
|
|
18
11
|
onClickClose
|
|
19
|
-
} =
|
|
20
|
-
return /*#__PURE__*/(
|
|
12
|
+
} = useCartContext();
|
|
13
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
21
14
|
className: classNameCartHeader,
|
|
22
|
-
children: [/*#__PURE__*/(
|
|
23
|
-
icon:
|
|
24
|
-
}), " Shopping cart", /*#__PURE__*/(
|
|
15
|
+
children: [/*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
16
|
+
icon: faShoppingCart
|
|
17
|
+
}), " Shopping cart", /*#__PURE__*/_jsx("button", {
|
|
25
18
|
type: "button",
|
|
26
19
|
className: classNameBtnClose,
|
|
27
20
|
"aria-label": "Close",
|
|
28
21
|
onClick: onClickClose,
|
|
29
|
-
children: /*#__PURE__*/(
|
|
30
|
-
icon:
|
|
22
|
+
children: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
23
|
+
icon: faTimes
|
|
31
24
|
})
|
|
32
25
|
})]
|
|
33
26
|
});
|
|
34
27
|
}
|
|
35
|
-
|
|
28
|
+
export default CartHeader;
|
package/lib/CartProvider.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.useCartContext = exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var React = _react;
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
-
const CartContext = /*#__PURE__*/(0, _react.createContext)({
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { createContext, useContext, useState } from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const CartContext = /*#__PURE__*/createContext({
|
|
13
5
|
classNameAlertError: undefined,
|
|
14
6
|
classNameAlertInfo: undefined,
|
|
15
7
|
classNameAlertSuccess: undefined,
|
|
@@ -80,8 +72,7 @@ const CartContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
80
72
|
urlFrontend: undefined,
|
|
81
73
|
urlTrackingPage: undefined
|
|
82
74
|
});
|
|
83
|
-
const useCartContext = () =>
|
|
84
|
-
exports.useCartContext = useCartContext;
|
|
75
|
+
export const useCartContext = () => useContext(CartContext);
|
|
85
76
|
const CartProvider = _ref => {
|
|
86
77
|
let {
|
|
87
78
|
children,
|
|
@@ -161,7 +152,7 @@ const CartProvider = _ref => {
|
|
|
161
152
|
urlFrontend = 'https://merchi.co/',
|
|
162
153
|
urlTrackingPage
|
|
163
154
|
} = _ref;
|
|
164
|
-
const [googlePlacesLoaded, setGoogleMapsLoaded] =
|
|
155
|
+
const [googlePlacesLoaded, setGoogleMapsLoaded] = useState(false);
|
|
165
156
|
// Persistent callback setup
|
|
166
157
|
if (typeof window !== 'undefined') {
|
|
167
158
|
if (!window.googleMapsScriptLoaded) {
|
|
@@ -170,7 +161,7 @@ const CartProvider = _ref => {
|
|
|
170
161
|
};
|
|
171
162
|
}
|
|
172
163
|
}
|
|
173
|
-
return /*#__PURE__*/(
|
|
164
|
+
return /*#__PURE__*/_jsx(CartContext.Provider, {
|
|
174
165
|
value: {
|
|
175
166
|
classNameAlertError,
|
|
176
167
|
classNameAlertInfo,
|
|
@@ -245,4 +236,4 @@ const CartProvider = _ref => {
|
|
|
245
236
|
children: children
|
|
246
237
|
});
|
|
247
238
|
};
|
|
248
|
-
|
|
239
|
+
export default CartProvider;
|
package/lib/CartTotals.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
11
|
-
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
12
|
-
var _components = require("./components");
|
|
13
|
-
var _CartProvider = require("./CartProvider");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { useSelector } from 'react-redux';
|
|
2
|
+
import { formatCurrency } from './utilities/currency';
|
|
3
|
+
import { cartRequiresShipment } from './utilities/cart';
|
|
4
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
+
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons';
|
|
6
|
+
import { Table } from './components';
|
|
7
|
+
import { useCartContext } from './CartProvider';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
10
|
function CartTotal(_ref) {
|
|
16
11
|
let {
|
|
17
12
|
attribute
|
|
@@ -20,11 +15,11 @@ function CartTotal(_ref) {
|
|
|
20
15
|
cart,
|
|
21
16
|
fetchingCart,
|
|
22
17
|
loading
|
|
23
|
-
} =
|
|
18
|
+
} = useSelector(s => s.stateCart);
|
|
24
19
|
const {
|
|
25
20
|
fetchingShipmentGroups,
|
|
26
21
|
fetchingShipmentQuote
|
|
27
|
-
} =
|
|
22
|
+
} = useSelector(s => s.stateCartShipment);
|
|
28
23
|
const {
|
|
29
24
|
domain
|
|
30
25
|
} = cart;
|
|
@@ -32,14 +27,14 @@ function CartTotal(_ref) {
|
|
|
32
27
|
const currency = company ? company.defaultCurrency : 'AUD';
|
|
33
28
|
const isLoading = fetchingCart || fetchingShipmentGroups || fetchingShipmentQuote || loading;
|
|
34
29
|
const money = cart[attribute] ? cart[attribute] : 0;
|
|
35
|
-
return /*#__PURE__*/(
|
|
30
|
+
return /*#__PURE__*/_jsx("div", {
|
|
36
31
|
style: {
|
|
37
32
|
paddingRight: 8
|
|
38
33
|
},
|
|
39
|
-
children: isLoading ? /*#__PURE__*/(
|
|
40
|
-
icon:
|
|
34
|
+
children: isLoading ? /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
35
|
+
icon: faCircleNotch,
|
|
41
36
|
spin: true
|
|
42
|
-
}) : `${currency} ${
|
|
37
|
+
}) : `${currency} ${formatCurrency(money, {
|
|
43
38
|
currency
|
|
44
39
|
})}`
|
|
45
40
|
});
|
|
@@ -52,14 +47,14 @@ function CostsTableRow(_ref2) {
|
|
|
52
47
|
const {
|
|
53
48
|
classNameCartTotalItem,
|
|
54
49
|
classNameCartTotalItemPrice
|
|
55
|
-
} =
|
|
56
|
-
return /*#__PURE__*/(
|
|
57
|
-
children: [/*#__PURE__*/(
|
|
50
|
+
} = useCartContext();
|
|
51
|
+
return /*#__PURE__*/_jsxs("tr", {
|
|
52
|
+
children: [/*#__PURE__*/_jsx("td", {
|
|
58
53
|
className: classNameCartTotalItem,
|
|
59
54
|
children: name
|
|
60
|
-
}), /*#__PURE__*/(
|
|
55
|
+
}), /*#__PURE__*/_jsx("th", {
|
|
61
56
|
className: classNameCartTotalItemPrice,
|
|
62
|
-
children: /*#__PURE__*/(
|
|
57
|
+
children: /*#__PURE__*/_jsx(CartTotal, {
|
|
63
58
|
attribute: attr
|
|
64
59
|
})
|
|
65
60
|
})]
|
|
@@ -69,29 +64,29 @@ function CartTotals() {
|
|
|
69
64
|
const {
|
|
70
65
|
classNameCartTotalContainer,
|
|
71
66
|
classNameCartTotalItemPrice
|
|
72
|
-
} =
|
|
67
|
+
} = useCartContext();
|
|
73
68
|
const {
|
|
74
69
|
cart
|
|
75
|
-
} =
|
|
70
|
+
} = useSelector(s => s.stateCart);
|
|
76
71
|
const cartItems = cart.cartItems ? cart.cartItems : [];
|
|
77
|
-
return /*#__PURE__*/(
|
|
72
|
+
return /*#__PURE__*/_jsx("div", {
|
|
78
73
|
className: classNameCartTotalContainer,
|
|
79
|
-
children: /*#__PURE__*/(
|
|
80
|
-
children: /*#__PURE__*/(
|
|
81
|
-
children: [/*#__PURE__*/(
|
|
74
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
75
|
+
children: /*#__PURE__*/_jsxs("tbody", {
|
|
76
|
+
children: [/*#__PURE__*/_jsx(CostsTableRow, {
|
|
82
77
|
attr: "cartItemsTotalCost",
|
|
83
78
|
name: "Subtotal"
|
|
84
|
-
}),
|
|
79
|
+
}), cartRequiresShipment({
|
|
85
80
|
...cart,
|
|
86
81
|
cartItems
|
|
87
|
-
}) && /*#__PURE__*/(
|
|
82
|
+
}) && /*#__PURE__*/_jsx(CostsTableRow, {
|
|
88
83
|
attr: "shipmentTotalCost",
|
|
89
84
|
name: "Shipping"
|
|
90
|
-
}), /*#__PURE__*/(
|
|
85
|
+
}), /*#__PURE__*/_jsx(CostsTableRow, {
|
|
91
86
|
attr: "totalCost",
|
|
92
87
|
name: "Total"
|
|
93
|
-
}), /*#__PURE__*/(
|
|
94
|
-
children: [/*#__PURE__*/(
|
|
88
|
+
}), /*#__PURE__*/_jsxs("tr", {
|
|
89
|
+
children: [/*#__PURE__*/_jsx("td", {}), /*#__PURE__*/_jsx("td", {
|
|
95
90
|
className: classNameCartTotalItemPrice,
|
|
96
91
|
children: "Total price includes taxes"
|
|
97
92
|
})]
|
|
@@ -100,4 +95,4 @@ function CartTotals() {
|
|
|
100
95
|
})
|
|
101
96
|
});
|
|
102
97
|
}
|
|
103
|
-
|
|
98
|
+
export default CartTotals;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AutoAssignProductionOnAction = void 0;
|
|
7
|
-
let AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction = /*#__PURE__*/function (AutoAssignProductionOnAction) {
|
|
1
|
+
export let AutoAssignProductionOnAction = /*#__PURE__*/function (AutoAssignProductionOnAction) {
|
|
8
2
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["NOT_REQUIRED"] = 0] = "NOT_REQUIRED";
|
|
9
3
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_CREATION"] = 1] = "ON_JOB_CREATION";
|
|
10
4
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_INVOICE_PAID"] = 2] = "ON_JOB_INVOICE_PAID";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CallToActions = void 0;
|
|
7
|
-
let CallToActions = exports.CallToActions = /*#__PURE__*/function (CallToActions) {
|
|
1
|
+
export let CallToActions = /*#__PURE__*/function (CallToActions) {
|
|
8
2
|
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN"] = 0] = "COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN";
|
|
9
3
|
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE"] = 1] = "COMPLETE_COMPANY_PROFILE";
|
|
10
4
|
CallToActions[CallToActions["UPGRADE_SUBSCRIPTION_PLAN"] = 2] = "UPGRADE_SUBSCRIPTION_PLAN";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DiscountType = void 0;
|
|
7
|
-
let DiscountType = exports.DiscountType = /*#__PURE__*/function (DiscountType) {
|
|
1
|
+
export let DiscountType = /*#__PURE__*/function (DiscountType) {
|
|
8
2
|
DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
|
|
9
3
|
return DiscountType;
|
|
10
4
|
}({});
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DomainType = void 0;
|
|
7
|
-
let DomainType = exports.DomainType = /*#__PURE__*/function (DomainType) {
|
|
1
|
+
export let DomainType = /*#__PURE__*/function (DomainType) {
|
|
8
2
|
DomainType[DomainType["UNRESTRICTED"] = 0] = "UNRESTRICTED";
|
|
9
3
|
DomainType[DomainType["SELLER"] = 1] = "SELLER";
|
|
10
4
|
DomainType[DomainType["SELLER_PLUS"] = 2] = "SELLER_PLUS";
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ErrorType = void 0;
|
|
7
|
-
exports.getErrorFromCode = getErrorFromCode;
|
|
8
|
-
let ErrorType = exports.ErrorType = /*#__PURE__*/function (ErrorType) {
|
|
1
|
+
export let ErrorType = /*#__PURE__*/function (ErrorType) {
|
|
9
2
|
ErrorType[ErrorType["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
|
|
10
3
|
ErrorType[ErrorType["SERVER_ERROR"] = 1] = "SERVER_ERROR";
|
|
11
4
|
ErrorType[ErrorType["CLIENT_ERROR"] = 2] = "CLIENT_ERROR";
|
|
@@ -31,7 +24,7 @@ let ErrorType = exports.ErrorType = /*#__PURE__*/function (ErrorType) {
|
|
|
31
24
|
ErrorType[ErrorType["DOMAIN_NOT_FOUND"] = 22] = "DOMAIN_NOT_FOUND";
|
|
32
25
|
return ErrorType;
|
|
33
26
|
}({});
|
|
34
|
-
function getErrorFromCode(code) {
|
|
27
|
+
export function getErrorFromCode(code) {
|
|
35
28
|
if (code in ErrorType) {
|
|
36
29
|
return code;
|
|
37
30
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EventType = void 0;
|
|
7
|
-
let EventType = exports.EventType = /*#__PURE__*/function (EventType) {
|
|
1
|
+
export let EventType = /*#__PURE__*/function (EventType) {
|
|
8
2
|
EventType[EventType["POST"] = 0] = "POST";
|
|
9
3
|
EventType[EventType["PATCH"] = 1] = "PATCH";
|
|
10
4
|
EventType[EventType["DELETE"] = 1] = "DELETE";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FieldType = void 0;
|
|
7
|
-
let FieldType = exports.FieldType = /*#__PURE__*/function (FieldType) {
|
|
1
|
+
export let FieldType = /*#__PURE__*/function (FieldType) {
|
|
8
2
|
FieldType[FieldType["TEXT_INPUT"] = 1] = "TEXT_INPUT";
|
|
9
3
|
FieldType[FieldType["SELECT"] = 2] = "SELECT";
|
|
10
4
|
FieldType[FieldType["FILE_UPLOAD"] = 3] = "FILE_UPLOAD";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.InputType = void 0;
|
|
7
|
-
let InputType = exports.InputType = /*#__PURE__*/function (InputType) {
|
|
1
|
+
export let InputType = /*#__PURE__*/function (InputType) {
|
|
8
2
|
InputType[InputType["TEXT"] = 1] = "TEXT";
|
|
9
3
|
InputType[InputType["SELECT"] = 2] = "SELECT";
|
|
10
4
|
InputType[InputType["FILE"] = 3] = "FILE";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.InventoryStatus = void 0;
|
|
7
|
-
let InventoryStatus = exports.InventoryStatus = /*#__PURE__*/function (InventoryStatus) {
|
|
1
|
+
export let InventoryStatus = /*#__PURE__*/function (InventoryStatus) {
|
|
8
2
|
InventoryStatus[InventoryStatus["DEDUCTED"] = 0] = "DEDUCTED";
|
|
9
3
|
InventoryStatus[InventoryStatus["CAN_DEDUCT"] = 1] = "CAN_DEDUCT";
|
|
10
4
|
InventoryStatus[InventoryStatus["NOT_SUFFICIENT"] = 2] = "NOT_SUFFICIENT";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.InoviceType = void 0;
|
|
7
|
-
let InoviceType = exports.InoviceType = /*#__PURE__*/function (InoviceType) {
|
|
1
|
+
export let InoviceType = /*#__PURE__*/function (InoviceType) {
|
|
8
2
|
InoviceType[InoviceType["ORDER"] = 0] = "ORDER";
|
|
9
3
|
InoviceType[InoviceType["SUBSCRIPTION_BILL"] = 1] = "SUBSCRIPTION_BILL";
|
|
10
4
|
InoviceType[InoviceType["AUTO_SUPPLY_BILL"] = 2] = "AUTO_SUPPLY_BILL";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ItemType = void 0;
|
|
7
|
-
let ItemType = exports.ItemType = /*#__PURE__*/function (ItemType) {
|
|
1
|
+
export let ItemType = /*#__PURE__*/function (ItemType) {
|
|
8
2
|
ItemType[ItemType["CUSTOM"] = 0] = "CUSTOM";
|
|
9
3
|
ItemType[ItemType["SHIPPING"] = 1] = "SHIPPING";
|
|
10
4
|
ItemType[ItemType["TAX"] = 2] = "TAX";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DraftingStatus = void 0;
|
|
7
|
-
let DraftingStatus = exports.DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
|
|
1
|
+
export let DraftingStatus = /*#__PURE__*/function (DraftingStatus) {
|
|
8
2
|
DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
|
|
9
3
|
DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
|
|
10
4
|
DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PaymentStatus = void 0;
|
|
7
|
-
let PaymentStatus = exports.PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
|
|
1
|
+
export let PaymentStatus = /*#__PURE__*/function (PaymentStatus) {
|
|
8
2
|
PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
|
|
9
3
|
PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
|
|
10
4
|
PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProductionStatus = void 0;
|
|
7
|
-
let ProductionStatus = exports.ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
|
|
1
|
+
export let ProductionStatus = /*#__PURE__*/function (ProductionStatus) {
|
|
8
2
|
ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
|
|
9
3
|
ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
|
|
10
4
|
ProductionStatus[ProductionStatus["QUOTING"] = 2] = "QUOTING";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ShipmentStatus = void 0;
|
|
7
|
-
let ShipmentStatus = exports.ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
|
|
1
|
+
export let ShipmentStatus = /*#__PURE__*/function (ShipmentStatus) {
|
|
8
2
|
ShipmentStatus[ShipmentStatus["NOT_ASSIGNED"] = 0] = "NOT_ASSIGNED";
|
|
9
3
|
ShipmentStatus[ShipmentStatus["ASSIGNED"] = 1] = "ASSIGNED";
|
|
10
4
|
ShipmentStatus[ShipmentStatus["DISPATCH_SET"] = 2] = "DISPATCH_SET";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SupplyChainRequestStatus = void 0;
|
|
7
|
-
let SupplyChainRequestStatus = exports.SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
|
|
1
|
+
export let SupplyChainRequestStatus = /*#__PURE__*/function (SupplyChainRequestStatus) {
|
|
8
2
|
SupplyChainRequestStatus[SupplyChainRequestStatus["NO_REQUEST"] = 0] = "NO_REQUEST";
|
|
9
3
|
SupplyChainRequestStatus[SupplyChainRequestStatus["REQUESTED"] = 1] = "REQUESTED";
|
|
10
4
|
SupplyChainRequestStatus[SupplyChainRequestStatus["DECLINED"] = 2] = "DECLINED";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.JobPriority = void 0;
|
|
7
|
-
let JobPriority = exports.JobPriority = /*#__PURE__*/function (JobPriority) {
|
|
1
|
+
export let JobPriority = /*#__PURE__*/function (JobPriority) {
|
|
8
2
|
JobPriority[JobPriority["URGENT"] = 1] = "URGENT";
|
|
9
3
|
JobPriority[JobPriority["HIGH"] = 2] = "HIGH";
|
|
10
4
|
JobPriority[JobPriority["MEDIUM"] = 3] = "MEDIUM";
|