@unimaze/billing 0.20.17 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/components/CommonTranslations.d.ts +102 -2
- package/lib/common/components/CommonTranslations.js +10 -1
- package/lib/common/components/attachments/Attachment.d.ts +6 -4
- package/lib/common/components/attachments/Attachment.js +26 -10
- package/lib/common/components/attachments/AttachmentModal.d.ts +21 -0
- package/lib/common/components/attachments/AttachmentModal.js +195 -0
- package/lib/common/components/attachments/index.d.ts +13 -17
- package/lib/common/components/attachments/index.js +189 -23
- package/lib/common/components/base-information/AccountingCost.d.ts +7 -5
- package/lib/common/components/base-information/AccountingCost.js +32 -11
- package/lib/common/components/base-information/OrderReference.d.ts +6 -4
- package/lib/common/components/base-information/OrderReference.js +31 -14
- package/lib/common/components/base-information/ProjectReference.d.ts +9 -5
- package/lib/common/components/base-information/ProjectReference.js +8 -6
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +32 -5
- package/lib/common/components/base-information/ReferenceIdentifiers.js +126 -83
- package/lib/common/components/base-information/index.d.ts +51 -5
- package/lib/common/components/base-information/index.js +99 -154
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +7 -5
- package/lib/common/components/billing-lines/BillingCalculations.js +79 -46
- package/lib/common/components/billing-lines/BillingLinePreview.d.ts +21 -0
- package/lib/common/components/billing-lines/BillingLinePreview.js +41 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +6 -4
- package/lib/common/components/billing-lines/BillingTaxSummary.js +39 -13
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +120 -4
- package/lib/common/components/billing-lines/NewBillingLines.js +396 -72
- package/lib/common/components/billing-lines/index.d.ts +33 -6
- package/lib/common/components/billing-lines/index.js +71 -244
- package/lib/common/components/component-container/Content.d.ts +2 -2
- package/lib/common/components/component-container/index.d.ts +1 -0
- package/lib/common/components/component-container/index.js +1 -1
- package/lib/common/components/customer/CostCenter.d.ts +6 -4
- package/lib/common/components/customer/CostCenter.js +25 -9
- package/lib/common/components/customer/CustomerContactName.d.ts +6 -4
- package/lib/common/components/customer/CustomerContactName.js +24 -8
- package/lib/common/components/customer/hardCoddedCustomer.js +19 -3
- package/lib/common/components/customer/index.d.ts +11 -5
- package/lib/common/components/customer/index.js +97 -42
- package/lib/common/components/date-picker/index.d.ts +21 -0
- package/lib/common/components/date-picker/index.js +23 -0
- package/lib/common/components/delivery-location/index.d.ts +6 -4
- package/lib/common/components/delivery-location/index.js +20 -4
- package/lib/common/components/editable-cell/index.js +2 -2
- package/lib/common/components/editable-row/index.d.ts +1 -1
- package/lib/common/components/editable-row/index.js +24 -7
- package/lib/common/components/form-item/index.d.ts +13 -6
- package/lib/common/components/form-item/index.js +16 -20
- package/lib/common/components/index.d.ts +10 -0
- package/lib/common/components/index.js +30 -8
- package/lib/common/components/input/index.d.ts +23 -0
- package/lib/common/components/input/index.js +37 -0
- package/lib/common/components/invoice/index.d.ts +40 -0
- package/lib/common/components/invoice/index.js +52 -0
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +105 -0
- package/lib/common/components/invoice-preview/index.d.ts +16 -0
- package/lib/common/components/invoice-preview/index.js +393 -0
- package/lib/common/components/locale-intl/index.d.ts +0 -10
- package/lib/common/components/locale-intl/index.js +50 -42
- package/lib/common/components/payment-method/index.d.ts +69 -6
- package/lib/common/components/payment-method/index.js +145 -57
- package/lib/common/components/payment-method/paymentMethodForConversion.js +3 -1
- package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
- package/lib/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
- package/lib/common/components/submit-confirmation/index.d.ts +8 -0
- package/lib/common/components/submit-confirmation/index.js +34 -0
- package/lib/common/components/supplier/CityAutofill.d.ts +18 -0
- package/lib/common/components/supplier/CityAutofill.js +159 -0
- package/lib/common/components/supplier/index.d.ts +79 -5
- package/lib/common/components/supplier/index.js +195 -103
- package/lib/common/components/tooltip/index.d.ts +7 -0
- package/lib/common/components/tooltip/index.js +15 -0
- package/lib/common/components/welcome-modal/index.d.ts +15 -0
- package/lib/common/components/welcome-modal/index.js +26 -0
- package/lib/common/consts/formLayout.js +4 -3
- package/lib/common/consts/validationRules.d.ts +1 -1
- package/lib/common/consts/validationRules.js +6 -0
- package/lib/common/enums/index.js +5 -1
- package/lib/common/style/index.css +18 -0
- package/lib/common/types/BillingLineMetadataOverride.d.ts +2 -0
- package/lib/common/types/CommonProps.d.ts +15 -1
- package/lib/common/types/DiscountType.d.ts +1 -0
- package/lib/common/types/DiscountType.js +2 -0
- package/lib/common/types/ReceiverRequirements.d.ts +1 -1
- package/lib/common/types/ReceiverRequirements.js +1 -0
- package/lib/common/types/index.js +15 -0
- package/lib/create-invoice/IntlLoader.d.ts +0 -6
- package/lib/create-invoice/IntlLoader.js +78 -13
- package/lib/create-invoice/index.d.ts +65 -4
- package/lib/create-invoice/index.js +437 -181
- package/lib/enums.d.ts +2 -3
- package/lib/enums.js +1 -0
- package/lib/index.js +22 -6
- package/lib/translations/locales/en.json +181 -0
- package/lib/translations/locales/is.json +135 -116
- package/lib/translations/locales.d.ts +360 -161
- package/lib/translations/locales.js +3 -2
- package/lib/utils/ApiUtility.d.ts +4 -4
- package/lib/utils/ApiUtility.js +13 -10
- package/lib/utils/BillingLineUtility.d.ts +16 -5
- package/lib/utils/BillingLineUtility.js +65 -26
- package/lib/utils/ConversionUtility.js +15 -7
- package/lib/utils/FileUploadUtility.d.ts +4 -2
- package/lib/utils/FileUploadUtility.js +28 -9
- package/lib/utils/IntlUtility.d.ts +3 -2
- package/lib/utils/IntlUtility.js +2 -1
- package/lib/utils/LocationUtility.d.ts +1 -0
- package/lib/utils/LocationUtility.js +81 -0
- package/lib/utils/ReferenceIdentifierUtility.js +2 -1
- package/lib/utils/RequirementsUtility.d.ts +9 -7
- package/lib/utils/RequirementsUtility.js +46 -22
- package/lib/utils/index.js +4 -3
- package/package.json +36 -18
- package/lib/style/index.css +0 -51
|
@@ -1,31 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
2
18
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
19
|
if (mod && mod.__esModule) return mod;
|
|
4
20
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
7
23
|
return result;
|
|
8
24
|
};
|
|
25
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
26
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
+
if (ar || !(i in from)) {
|
|
28
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
+
ar[i] = from[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
+
};
|
|
9
34
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
36
|
};
|
|
12
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.translationMessages = void 0;
|
|
13
39
|
var React = __importStar(require("react"));
|
|
14
40
|
var react_1 = require("react");
|
|
15
|
-
var components_1 = require("../../components");
|
|
16
41
|
var antd_1 = require("antd");
|
|
17
42
|
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
18
43
|
var form_item_1 = __importDefault(require("../form-item"));
|
|
19
44
|
var react_intl_1 = require("react-intl");
|
|
20
|
-
var icons_1 = require("@ant-design/icons");
|
|
21
|
-
// import {defineMessages} from "react-intl.macro"
|
|
22
45
|
var payment_method_1 = require("../payment-method");
|
|
23
46
|
var form_item_2 = require("../form-item");
|
|
24
|
-
var antd_mask_input_1 = require("antd-mask-input");
|
|
25
47
|
var axios_1 = __importDefault(require("axios"));
|
|
26
48
|
var lodash_1 = require("lodash");
|
|
27
49
|
var ApiUtility_1 = require("../../../utils/ApiUtility");
|
|
28
|
-
var
|
|
50
|
+
var Title_1 = __importDefault(require("antd/es/typography/Title"));
|
|
51
|
+
var __1 = require("..");
|
|
52
|
+
var react_use_1 = require("react-use");
|
|
53
|
+
var CommonTranslations_1 = require("../CommonTranslations");
|
|
54
|
+
var CityAutofill_1 = __importDefault(require("./CityAutofill"));
|
|
55
|
+
exports.translationMessages = (0, react_intl_1.defineMessages)({
|
|
29
56
|
supplier_title: {
|
|
30
57
|
id: "supplier_title",
|
|
31
58
|
defaultMessage: "Supplier",
|
|
@@ -36,85 +63,97 @@ var translationMessages = react_intl_1.defineMessages({
|
|
|
36
63
|
},
|
|
37
64
|
supplier_identifier: {
|
|
38
65
|
id: "supplier_identifier",
|
|
39
|
-
defaultMessage: "Supplier identifier"
|
|
66
|
+
defaultMessage: "Supplier identifier",
|
|
40
67
|
},
|
|
41
68
|
supplier_vatNumber: {
|
|
42
69
|
id: "supplier_vatNumber",
|
|
43
|
-
defaultMessage: "VAT no"
|
|
70
|
+
defaultMessage: "VAT no",
|
|
44
71
|
},
|
|
45
72
|
supplier_notVatRegistered: {
|
|
46
73
|
id: "supplier_notVatRegistered",
|
|
47
|
-
defaultMessage: "Not VAT registered"
|
|
74
|
+
defaultMessage: "Not VAT registered",
|
|
48
75
|
},
|
|
49
76
|
supplier_address_streetNameAndNumber: {
|
|
50
77
|
id: "supplier_address_streetNameAndNumber",
|
|
51
|
-
defaultMessage: "Address"
|
|
78
|
+
defaultMessage: "Address",
|
|
52
79
|
},
|
|
53
80
|
supplier_address_zip_postalCode: {
|
|
54
81
|
id: "supplier_address_zip_postalCode",
|
|
55
|
-
defaultMessage: "Zip/Postal code"
|
|
82
|
+
defaultMessage: "Zip/Postal code",
|
|
56
83
|
},
|
|
57
84
|
supplier_address_city: {
|
|
58
85
|
id: "supplier_address_city",
|
|
59
|
-
defaultMessage: "City"
|
|
86
|
+
defaultMessage: "City",
|
|
60
87
|
},
|
|
61
88
|
supplier_address_countryCode: {
|
|
62
89
|
id: "supplier_address_countryCode",
|
|
63
|
-
defaultMessage: "Country code"
|
|
90
|
+
defaultMessage: "Country code",
|
|
64
91
|
},
|
|
65
92
|
supplier_contact_email: {
|
|
66
93
|
id: "supplier_contact_email",
|
|
67
|
-
defaultMessage: "E-mail"
|
|
94
|
+
defaultMessage: "E-mail",
|
|
68
95
|
},
|
|
69
96
|
supplier_contact_email_title: {
|
|
70
97
|
id: "supplier_contact_email_title",
|
|
71
|
-
defaultMessage: "A payment notification will be sent to this email address" // "Send verður greiðslutilkynning á þetta netfang"
|
|
98
|
+
defaultMessage: "A payment notification will be sent to this email address", // "Send verður greiðslutilkynning á þetta netfang"
|
|
72
99
|
},
|
|
73
100
|
supplier_contact_name: {
|
|
74
101
|
id: "supplier_contact_name",
|
|
75
|
-
defaultMessage: "Contact name"
|
|
102
|
+
defaultMessage: "Contact name",
|
|
76
103
|
},
|
|
77
104
|
supplier_contact_phoneNumber: {
|
|
78
105
|
id: "supplier_contact_phoneNumber",
|
|
79
|
-
defaultMessage: "Phone number"
|
|
106
|
+
defaultMessage: "Phone number",
|
|
80
107
|
},
|
|
81
108
|
supplier_notValidEmail: {
|
|
82
109
|
id: "supplier_notValidEmail",
|
|
83
|
-
defaultMessage: "This is not a valid E-Mail"
|
|
110
|
+
defaultMessage: "This is not a valid E-Mail",
|
|
84
111
|
},
|
|
85
112
|
validationRule_kennitalaPattern: {
|
|
86
113
|
id: "validationRule_kennitalaPattern",
|
|
87
|
-
defaultMessage: "Identifier must match pattern 111111-1111"
|
|
114
|
+
defaultMessage: "Identifier must match pattern 111111-1111",
|
|
88
115
|
},
|
|
89
116
|
supplier_vatNumber_mandatory: {
|
|
90
117
|
id: "supplier_vatNumber_mandatory",
|
|
91
|
-
defaultMessage: "VAT number is required if some document lines are using any tax category type other than 'Outside tax scope'"
|
|
118
|
+
defaultMessage: "VAT number is required if some document lines are using any tax category type other than 'Outside tax scope'",
|
|
92
119
|
},
|
|
93
120
|
});
|
|
94
121
|
var Supplier = function (props) {
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
122
|
+
var width = (0, react_use_1.useWindowSize)().width;
|
|
123
|
+
var _a = (0, react_1.useState)(false), isMobile = _a[0], setIsMobile = _a[1];
|
|
124
|
+
var _b = (0, react_1.useState)(false), isLoadingParticipantInfo = _b[0], setIsLoadingParticipantInfo = _b[1];
|
|
125
|
+
var _c = (0, react_1.useState)({}), participantInfo = _c[0], setParticipantInfo = _c[1];
|
|
126
|
+
var colorInfoBg = antd_1.theme.useToken().token.colorInfoBg;
|
|
127
|
+
var fieldPaths = [
|
|
128
|
+
["invoice", "supplier", "identifier"],
|
|
129
|
+
["invoice", "supplier", "name"],
|
|
130
|
+
["invoice", "supplier", "address", "streetNameAndNumber"],
|
|
131
|
+
["invoice", "supplier", "address", "postalZone"],
|
|
132
|
+
["invoice", "supplier", "address", "city"],
|
|
133
|
+
["invoice", "supplier", "address", "countryCode"],
|
|
134
|
+
["invoice", "supplier", "contact", "name"],
|
|
135
|
+
["invoice", "supplier", "contact", "electronicMail"],
|
|
136
|
+
["invoice", "supplier", "contact", "telephone"],
|
|
137
|
+
];
|
|
138
|
+
var vatNoFieldPath = ["invoice", "supplier", "vatNumber"];
|
|
139
|
+
var debouncedValidateFields = (0, lodash_1.debounce)(props.validateFields, 500);
|
|
140
|
+
(0, react_1.useEffect)(function () {
|
|
141
|
+
if (!props.isActiveStep)
|
|
142
|
+
return;
|
|
143
|
+
debouncedValidateFields(__spreadArray(__spreadArray([], fieldPaths, true), [!props.outsideVatScope ? vatNoFieldPath : []], false), true);
|
|
144
|
+
}, [props.isActiveStep, JSON.stringify(props.form.getFieldsValue(__spreadArray(__spreadArray([], fieldPaths, true), [vatNoFieldPath], false))), props.outsideVatScope]);
|
|
145
|
+
(0, react_1.useEffect)(function () {
|
|
146
|
+
if (width < 768) {
|
|
147
|
+
setIsMobile(true);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
setIsMobile(false);
|
|
151
|
+
}
|
|
152
|
+
}, [width]);
|
|
102
153
|
var getRequiredVatNumber = function () {
|
|
103
|
-
// const fieldsValueAll = props.form.getFieldsValue();
|
|
104
|
-
// if (fieldsValueAll.hasOwnProperty("invoice")) {
|
|
105
|
-
// if (fieldsValueAll.invoice.hasOwnProperty("invoiceLines")) {
|
|
106
|
-
// const invoiceLines: BillingLineMetadata[] = fieldsValueAll.invoice.invoiceLines;
|
|
107
|
-
// return invoiceLines.some(billingLine => {
|
|
108
|
-
// if (billingLine) {
|
|
109
|
-
// return (billingLine.taxCategoryType !== TaxCategoryTypeEnum.OutsideTaxScope);
|
|
110
|
-
// }
|
|
111
|
-
// })
|
|
112
|
-
// }
|
|
113
|
-
// }
|
|
114
|
-
// return true;
|
|
115
154
|
return !props.outsideVatScope;
|
|
116
155
|
};
|
|
117
|
-
react_1.useEffect(function () {
|
|
156
|
+
(0, react_1.useEffect)(function () {
|
|
118
157
|
if (participantInfo !== null && participantInfo !== undefined) {
|
|
119
158
|
// TODO: this will override the Form Initial values. consider changing so that it only overrides if there is a value
|
|
120
159
|
props.form.setFieldsValue({
|
|
@@ -125,20 +164,22 @@ var Supplier = function (props) {
|
|
|
125
164
|
streetNameAndNumber: participantInfo.streetAndNumber,
|
|
126
165
|
postalZone: participantInfo.postalCode,
|
|
127
166
|
city: participantInfo.city,
|
|
167
|
+
// countryCode: participantInfo.country // CountryCode must be IS... don't override this
|
|
128
168
|
},
|
|
129
|
-
}
|
|
169
|
+
},
|
|
130
170
|
},
|
|
131
171
|
});
|
|
132
172
|
}
|
|
133
173
|
}, [isLoadingParticipantInfo]);
|
|
134
174
|
var getParticipantInfoWithIdentifier = function (rapiUrl, token, searchValue) {
|
|
135
175
|
setIsLoadingParticipantInfo(true);
|
|
136
|
-
var constructedUrl = rapiUrl
|
|
137
|
-
axios_1.default
|
|
138
|
-
|
|
176
|
+
var constructedUrl = "".concat(rapiUrl, "/api/v1/participants/0196:").concat(searchValue, "/registrations");
|
|
177
|
+
axios_1.default
|
|
178
|
+
.get(constructedUrl, {
|
|
179
|
+
cancelToken: (0, ApiUtility_1.getCancelToken)("referenceIdentifierValueSearch", false),
|
|
139
180
|
headers: {
|
|
140
|
-
|
|
141
|
-
}
|
|
181
|
+
Authorization: "Bearer ".concat(token),
|
|
182
|
+
},
|
|
142
183
|
})
|
|
143
184
|
.then(function (response) {
|
|
144
185
|
setParticipantInfo(response.data);
|
|
@@ -172,67 +213,118 @@ var Supplier = function (props) {
|
|
|
172
213
|
});
|
|
173
214
|
return participantInfo;
|
|
174
215
|
};
|
|
175
|
-
var debouncerSearch = lodash_1.debounce(function (rapiUrl, rapiApiKey, searchValue) {
|
|
216
|
+
var debouncerSearch = (0, lodash_1.debounce)(function (rapiUrl, rapiApiKey, searchValue) {
|
|
176
217
|
var strippedSearchValue = searchValue.replace(/[_-]/g, "");
|
|
177
|
-
if (strippedSearchValue.length
|
|
218
|
+
if (strippedSearchValue.length === 10) {
|
|
178
219
|
getParticipantInfoWithIdentifier(rapiUrl, rapiApiKey, strippedSearchValue);
|
|
179
220
|
}
|
|
180
221
|
}, 500);
|
|
181
222
|
var getSupplierTelephoneFieldDefinitions = function (receiverRequirements) {
|
|
182
|
-
return receiverRequirements &&
|
|
223
|
+
return (receiverRequirements &&
|
|
224
|
+
receiverRequirements.fieldDefinitions.find(function (fieldRequirement) { return fieldRequirement.key === "supplier.contact.telephone"; }));
|
|
183
225
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
226
|
+
var formatIdentifierInput = function (value) {
|
|
227
|
+
var digitsOnly = value.replace(/\D/g, "");
|
|
228
|
+
if (digitsOnly.length > 6) {
|
|
229
|
+
return "".concat(digitsOnly.slice(0, 6), "-").concat(digitsOnly.slice(6, 10));
|
|
230
|
+
}
|
|
231
|
+
return digitsOnly;
|
|
232
|
+
};
|
|
233
|
+
return (React.createElement(antd_1.Flex, { style: {
|
|
234
|
+
backgroundColor: isMobile ? undefined : colorInfoBg,
|
|
235
|
+
padding: isMobile ? 0 : "35px",
|
|
236
|
+
}, justify: "center" },
|
|
237
|
+
React.createElement(antd_1.Flex, { vertical: true, style: { width: "100%", maxWidth: "900px" }, gap: isMobile ? "small" : "middle" },
|
|
238
|
+
React.createElement(antd_1.Row, { gutter: 60 },
|
|
239
|
+
React.createElement(antd_1.Col, { span: 24 },
|
|
240
|
+
React.createElement(Title_1.default, { level: 5 }, props.intl.formatMessage(exports.translationMessages.supplier_title))),
|
|
241
|
+
React.createElement(antd_1.Col, { span: props.isMobile ? 24 : 12 },
|
|
242
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.identifier"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_identifier), defaultIsRequired: true, fieldName: ["invoice", "supplier", "identifier"], hasFeedback: isLoadingParticipantInfo, validateStatus: isLoadingParticipantInfo ? "validating" : undefined, rules: [
|
|
243
|
+
{
|
|
244
|
+
pattern: /^\d{6}-\d{4}$/,
|
|
245
|
+
message: "Input must be in the format: 111111-1111",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
required: true,
|
|
249
|
+
message: props.intl.formatMessage(form_item_2.translationMessages.formItem_required_errorMessage),
|
|
250
|
+
},
|
|
251
|
+
], normalize: formatIdentifierInput, validateTrigger: ["onBlur"] },
|
|
252
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.identifier"], defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_identifier), defaultIsRequired: true, disabled: isLoadingParticipantInfo, onChange: function (value) {
|
|
253
|
+
return debouncerSearch(props.rapiBaseUrl, props.rapiApiKey, value.target.value);
|
|
254
|
+
} })),
|
|
255
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.name"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_name), defaultIsRequired: true, fieldName: ["invoice", "supplier", "name"] },
|
|
256
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.name"], disabled: isLoadingParticipantInfo, defaultIsRequired: true, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_name) })),
|
|
257
|
+
props.isMobile && (React.createElement(antd_1.Row, { gutter: 20, wrap: false },
|
|
258
|
+
React.createElement(antd_1.Col, { flex: "auto" },
|
|
259
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.vatNumber"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber), defaultIsRequired: false, fieldName: ["invoice", "supplier", "vatNumber"], dependencies: ["invoice", "invoiceLines"], additionalRules: [
|
|
260
|
+
{
|
|
261
|
+
required: getRequiredVatNumber(),
|
|
262
|
+
message: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber_mandatory), // VAT number is required if some document lines are using any tax category type other than "outside tax scope"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
max: 6,
|
|
266
|
+
min: 5,
|
|
267
|
+
message: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_rules_Length, {
|
|
268
|
+
fieldName: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber),
|
|
269
|
+
min: 5,
|
|
270
|
+
max: 6,
|
|
271
|
+
}),
|
|
272
|
+
},
|
|
273
|
+
] },
|
|
274
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.vatNumber"], disabled: isLoadingParticipantInfo ||
|
|
275
|
+
props.form.getFieldValue(["outsideVatScope"]), defaultIsRequired: getRequiredVatNumber(), defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber) }))),
|
|
276
|
+
React.createElement(antd_1.Col, { flex: "none" },
|
|
277
|
+
React.createElement(antd_1.Form.Item, { name: "outsideVatScope", valuePropName: "checked" },
|
|
278
|
+
React.createElement(antd_1.Checkbox, { onChange: function (e) { return props.setOutsideVatScope(e.target.checked); } }, props.intl.formatMessage(exports.translationMessages.supplier_notVatRegistered)))))),
|
|
279
|
+
props.isMobile ? (React.createElement(React.Fragment, null,
|
|
280
|
+
React.createElement(antd_1.Row, { gutter: 10 },
|
|
281
|
+
React.createElement(CityAutofill_1.default, { receiverRequirements: props.receiverRequirements, form: props.form, disabled: isLoadingParticipantInfo, defaultIsRequired: false, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_address_city) })),
|
|
282
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.streetNameAndNumber"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_address_streetNameAndNumber), defaultIsRequired: true, fieldName: ["invoice", "supplier", "address", "streetNameAndNumber"] },
|
|
283
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.streetNameAndNumber"], defaultIsRequired: true, disabled: isLoadingParticipantInfo, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_address_streetNameAndNumber) })),
|
|
284
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.countryCode"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_address_countryCode), defaultIsRequired: true, fieldName: ["invoice", "supplier", "address", "countryCode"] },
|
|
285
|
+
React.createElement(antd_1.Input, { disabled: true })))) : (React.createElement(React.Fragment, null,
|
|
286
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.streetNameAndNumber"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_address_streetNameAndNumber), defaultIsRequired: true, fieldName: ["invoice", "supplier", "address", "streetNameAndNumber"] },
|
|
287
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.streetNameAndNumber"], defaultIsRequired: true, disabled: isLoadingParticipantInfo, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_address_streetNameAndNumber) })),
|
|
288
|
+
React.createElement(antd_1.Row, { gutter: 10 },
|
|
289
|
+
React.createElement(CityAutofill_1.default, { receiverRequirements: props.receiverRequirements, form: props.form, defaultIsRequired: false, disabled: isLoadingParticipantInfo, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_address_city) }),
|
|
290
|
+
React.createElement(antd_1.Col, { span: 6 },
|
|
291
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.address.countryCode"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_address_countryCode), defaultIsRequired: true, fieldName: ["invoice", "supplier", "address", "countryCode"] },
|
|
292
|
+
React.createElement(antd_1.Input, { disabled: true }))))))),
|
|
293
|
+
React.createElement(antd_1.Col, { span: props.isMobile ? 24 : 12 },
|
|
294
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.name"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_contact_name), defaultIsRequired: false, fieldName: ["invoice", "supplier", "contact", "name"] },
|
|
295
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.name"], defaultIsRequired: false, disabled: isLoadingParticipantInfo, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_contact_name) })),
|
|
296
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.electronicMail"], defaultIsRequired: false, fieldName: ["invoice", "supplier", "contact", "electronicMail"], additionalRules: [
|
|
297
|
+
{
|
|
298
|
+
type: "email",
|
|
299
|
+
message: props.intl.formatMessage(exports.translationMessages.supplier_notValidEmail),
|
|
300
|
+
},
|
|
301
|
+
] },
|
|
302
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.electronicMail"], defaultIsRequired: false, disabled: isLoadingParticipantInfo, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_contact_email), defaultTooltip: props.intl.formatMessage(exports.translationMessages.supplier_contact_email_title) })),
|
|
303
|
+
getSupplierTelephoneFieldDefinitions(props.receiverRequirements) ? (React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.telephone"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_contact_phoneNumber), defaultIsRequired: false, fieldName: ["invoice", "supplier", "contact", "telephone"] },
|
|
304
|
+
React.createElement(__1.UmzInput, { defaultIsRequired: false, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_contact_phoneNumber), receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.contact.telephone"] }))) : null,
|
|
305
|
+
!props.isMobile && (React.createElement(antd_1.Row, { gutter: 20, wrap: false },
|
|
306
|
+
React.createElement(antd_1.Col, { flex: "auto" },
|
|
307
|
+
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.vatNumber"], defaultLabel: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber), defaultIsRequired: false, fieldName: ["invoice", "supplier", "vatNumber"], dependencies: ["invoice", "invoiceLines"], additionalRules: [
|
|
308
|
+
{
|
|
309
|
+
required: getRequiredVatNumber(),
|
|
310
|
+
message: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber_mandatory), // VAT number is required if some document lines are using any tax category type other than "outside tax scope"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
max: 6,
|
|
314
|
+
min: 5,
|
|
315
|
+
message: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_rules_Length, {
|
|
316
|
+
fieldName: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber),
|
|
317
|
+
min: 5,
|
|
318
|
+
max: 6,
|
|
319
|
+
}),
|
|
320
|
+
},
|
|
321
|
+
] },
|
|
322
|
+
React.createElement(__1.UmzInput, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["supplier.vatNumber"], disabled: isLoadingParticipantInfo || props.outsideVatScope, defaultIsRequired: getRequiredVatNumber(), defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.supplier_vatNumber) }))),
|
|
323
|
+
React.createElement(antd_1.Col, { flex: "none" },
|
|
324
|
+
React.createElement(antd_1.Form.Item, { name: "outsideVatScope", valuePropName: "checked" },
|
|
325
|
+
React.createElement(antd_1.Checkbox, { onChange: function (e) { return props.setOutsideVatScope(e.target.checked); }, defaultChecked: props.outsideVatScope }, props.intl.formatMessage(exports.translationMessages.supplier_notVatRegistered))))))),
|
|
326
|
+
React.createElement(antd_1.Col, { span: 24 },
|
|
327
|
+
React.createElement(antd_1.Checkbox, { checked: props.isSaveFieldValuesSelected, onChange: props.onSaveFieldValuesChange }, props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages.saveInformation_label)))))));
|
|
236
328
|
};
|
|
237
|
-
var SupplierIntl = react_intl_1.injectIntl(Supplier);
|
|
329
|
+
var SupplierIntl = (0, react_intl_1.injectIntl)(Supplier);
|
|
238
330
|
exports.default = SupplierIntl;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var antd_1 = require("antd");
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var icons_1 = require("@ant-design/icons");
|
|
9
|
+
var colors_1 = require("@ant-design/colors");
|
|
10
|
+
var UmzTooltip = function (props) {
|
|
11
|
+
var token = antd_1.theme.useToken().token;
|
|
12
|
+
return (react_1.default.createElement(antd_1.Tooltip, { title: props.title, placement: "right", style: props.style },
|
|
13
|
+
react_1.default.createElement(icons_1.QuestionCircleOutlined, { style: { fontSize: token.fontSizeIcon, color: colors_1.grey[0] } })));
|
|
14
|
+
};
|
|
15
|
+
exports.default = UmzTooltip;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WrappedComponentProps } from "react-intl";
|
|
3
|
+
interface Props extends WrappedComponentProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
paragraph: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
11
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
12
|
+
} & React.RefAttributes<any>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var antd_1 = require("antd");
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var icons_1 = require("@ant-design/icons");
|
|
10
|
+
var translationMessages = (0, react_intl_1.defineMessages)({
|
|
11
|
+
welcomeModal_button_title: {
|
|
12
|
+
id: "welcomeModal_button_title",
|
|
13
|
+
defaultMessage: "Continue",
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
var WelcomeModal = function (props) {
|
|
17
|
+
return (react_1.default.createElement(antd_1.Modal, { open: props.isOpen, footer: react_1.default.createElement(antd_1.Button, { type: "primary", size: 'large', onClick: props.onClose },
|
|
18
|
+
props.intl.formatMessage(translationMessages.welcomeModal_button_title),
|
|
19
|
+
react_1.default.createElement(icons_1.ArrowRightOutlined, null)), onCancel: props.onClose },
|
|
20
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, gap: 'middle' },
|
|
21
|
+
props.imageUrl && react_1.default.createElement(antd_1.Image, { style: { borderRadius: '6px' }, src: props.imageUrl, preview: false }),
|
|
22
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
23
|
+
react_1.default.createElement(antd_1.Typography.Title, { level: 4, type: "secondary" }, props.title),
|
|
24
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, props.paragraph)))));
|
|
25
|
+
};
|
|
26
|
+
exports.default = (0, react_intl_1.injectIntl)(WelcomeModal);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formItemLayoutWithOutLabel = exports.fullWidthInput = exports.formItemVerticalLayout = exports.formItemLayout = void 0;
|
|
3
4
|
var formItemLayout = {
|
|
4
5
|
labelCol: {
|
|
5
6
|
xs: { span: 24 },
|
|
@@ -10,10 +11,10 @@ var formItemLayout = {
|
|
|
10
11
|
},
|
|
11
12
|
wrapperCol: {
|
|
12
13
|
xs: { span: 24 },
|
|
13
|
-
sm: { span:
|
|
14
|
+
sm: { span: 24 },
|
|
14
15
|
md: { span: 24 },
|
|
15
|
-
lg: { span:
|
|
16
|
-
xxl: { span:
|
|
16
|
+
lg: { span: 24 },
|
|
17
|
+
xxl: { span: 24 },
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
exports.formItemLayout = formItemLayout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BillingLineMetadataOverride } from "../types/BillingLineMetadataOverride";
|
|
2
2
|
import { RuleObject } from "rc-field-form/lib/interface";
|
|
3
|
-
export
|
|
3
|
+
export type ValidationRulesObject = {
|
|
4
4
|
[key in keyof Omit<BillingLineMetadataOverride, 'key'>]: RuleObject[];
|
|
5
5
|
};
|
|
6
6
|
export declare const validationRules: ValidationRulesObject;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validationRules = void 0;
|
|
3
4
|
exports.validationRules = {
|
|
4
5
|
itemNo: [
|
|
5
6
|
{
|
|
@@ -40,6 +41,11 @@ exports.validationRules = {
|
|
|
40
41
|
message: "discountValue_pattern",
|
|
41
42
|
}
|
|
42
43
|
],
|
|
44
|
+
discountType: [
|
|
45
|
+
{
|
|
46
|
+
required: true,
|
|
47
|
+
}
|
|
48
|
+
],
|
|
43
49
|
taxableAmount: [
|
|
44
50
|
{
|
|
45
51
|
required: true,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DocumentTypeEnum = void 0;
|
|
3
7
|
var DocumentTypeEnum_1 = require("./DocumentTypeEnum");
|
|
4
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "DocumentTypeEnum", { enumerable: true, get: function () { return __importDefault(DocumentTypeEnum_1).default; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.date-picker-asterisk-wrapper .ant-picker-input input {
|
|
2
|
+
padding-left: 12px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.date-picker-asterisk-wrapper::before {
|
|
6
|
+
content: "*";
|
|
7
|
+
color: red;
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 50%;
|
|
10
|
+
left: '12px';
|
|
11
|
+
transform: translateY(-50%);
|
|
12
|
+
z-index: 2;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.upload-container .ant-upload {
|
|
17
|
+
width: 100%
|
|
18
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BillingLineMetadata } from "@unimaze/api-clients/lib/mapi";
|
|
2
2
|
import { UnitOfMeasureLabelInValueEnum } from "../components/billing-lines";
|
|
3
3
|
import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi/api";
|
|
4
|
+
import { DiscountType } from "./DiscountType";
|
|
4
5
|
export interface BillingLineMetadataOverride extends Omit<BillingLineMetadata, 'unitOfMeasure' | 'taxCategoryType'> {
|
|
5
6
|
key: number;
|
|
6
7
|
unitOfMeasure: UnitOfMeasureLabelInValueEnum;
|
|
7
8
|
taxCategoryType: TaxCategoryTypeEnum;
|
|
9
|
+
discountType: DiscountType;
|
|
8
10
|
}
|
|
@@ -15,5 +15,19 @@ export interface CommonProps {
|
|
|
15
15
|
rapiApiKey: string;
|
|
16
16
|
dueDateMinimumOffset: number;
|
|
17
17
|
defaultPaymentType?: PaymentMeansType;
|
|
18
|
+
supportEmail?: string;
|
|
19
|
+
welcomeModalTitle?: {
|
|
20
|
+
is: string;
|
|
21
|
+
en: string;
|
|
22
|
+
};
|
|
23
|
+
welcomeModalParagraph?: {
|
|
24
|
+
is: string;
|
|
25
|
+
en: string;
|
|
26
|
+
};
|
|
27
|
+
welcomeModalImageUrl?: string;
|
|
28
|
+
colorPrimary?: string;
|
|
29
|
+
colorError?: string;
|
|
30
|
+
colorLink?: string;
|
|
31
|
+
colorInfoBg?: string;
|
|
18
32
|
}
|
|
19
|
-
export
|
|
33
|
+
export type LanguageProp = "en" | "is" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DiscountType = "PERCENTAGE" | "AMOUNT";
|