@unimaze/billing 0.20.2 → 0.20.4
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 +1 -1
- package/lib/common/components/CommonTranslations.js +12 -0
- package/lib/common/components/billing-lines/NewBillingLines.js +10 -11
- package/lib/common/components/payment-method/index.js +14 -13
- package/lib/common/components/payment-method/paymentMethodForConversion.d.ts +1 -2
- package/lib/common/types/CommonProps.d.ts +2 -2
- package/lib/create-invoice/index.js +1 -2
- package/lib/enums.d.ts +12 -0
- package/lib/enums.js +17 -0
- package/lib/style/index.css +50 -50
- package/lib/translations/locales/is.json +3 -0
- package/lib/translations/locales.d.ts +3 -0
- package/package.json +1 -1
- package/lib/common/components/customer/CustomerContact.d.ts +0 -13
- package/lib/common/components/customer/CustomerContact.js +0 -13
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react-intl" />
|
|
2
|
-
export declare const commonTranslationMessages: ReactIntl.Messages<"taxCategoryType_labels_StandardRated" | "taxCategoryType_labels_ReducedRated" | "taxCategoryType_labels_ZeroRated" | "taxCategoryType_labels_Exempt" | "taxCategoryType_labels_OutsideTaxScope" | "unitOfMeasure_labels_Piece" | "unitOfMeasure_labels_Kilogram" | "unitOfMeasure_labels_Month" | "unitOfMeasure_labels_Package" | "unitOfMeasure_labels_Year" | "unitOfMeasure_labels_Day" | "unitOfMeasure_labels_Hour" | "unitOfMeasure_labels_Kilometre" | "unitOfMeasure_labels_Metre" | "unitOfMeasure_labels_Litre" | "unitOfMeasure_labels_SquareMetre" | "unitOfMeasure_labels_CubicMetre" | "unitOfMeasure_labels_Tonne" | "unitOfMeasure_labels_KiloWattHour" | "unitOfMeasure_labels_One">;
|
|
2
|
+
export declare const commonTranslationMessages: ReactIntl.Messages<"taxCategoryType_labels_StandardRated" | "taxCategoryType_labels_ReducedRated" | "taxCategoryType_labels_ZeroRated" | "taxCategoryType_labels_Exempt" | "taxCategoryType_labels_OutsideTaxScope" | "taxCategoryType_labels_ReverseCharged" | "taxCategoryType_labels_FreeExportTaxNotCharged" | "taxCategoryType_labels_ExemptEuropeanEconomicArea" | "unitOfMeasure_labels_Piece" | "unitOfMeasure_labels_Kilogram" | "unitOfMeasure_labels_Month" | "unitOfMeasure_labels_Package" | "unitOfMeasure_labels_Year" | "unitOfMeasure_labels_Day" | "unitOfMeasure_labels_Hour" | "unitOfMeasure_labels_Kilometre" | "unitOfMeasure_labels_Metre" | "unitOfMeasure_labels_Litre" | "unitOfMeasure_labels_SquareMetre" | "unitOfMeasure_labels_CubicMetre" | "unitOfMeasure_labels_Tonne" | "unitOfMeasure_labels_KiloWattHour" | "unitOfMeasure_labels_One">;
|
|
@@ -22,6 +22,18 @@ exports.commonTranslationMessages = react_intl_1.defineMessages({
|
|
|
22
22
|
id: "taxCategoryType_labels_OutsideTaxScope",
|
|
23
23
|
defaultMessage: "Outside tax scope",
|
|
24
24
|
},
|
|
25
|
+
taxCategoryType_labels_ReverseCharged: {
|
|
26
|
+
id: "taxCategoryType_labels_ReverseCharged",
|
|
27
|
+
defaultMessage: "Reverse charged",
|
|
28
|
+
},
|
|
29
|
+
taxCategoryType_labels_FreeExportTaxNotCharged: {
|
|
30
|
+
id: "taxCategoryType_labels_FreeExportTaxNotCharged",
|
|
31
|
+
defaultMessage: "Free export tax not charged",
|
|
32
|
+
},
|
|
33
|
+
taxCategoryType_labels_ExemptEuropeanEconomicArea: {
|
|
34
|
+
id: "taxCategoryType_labels_ExemptEuropeanEconomicArea",
|
|
35
|
+
defaultMessage: "Exempt European economic area",
|
|
36
|
+
},
|
|
25
37
|
unitOfMeasure_labels_Piece: {
|
|
26
38
|
id: "unitOfMeasure_labels_Piece",
|
|
27
39
|
defaultMessage: "Piece",
|
|
@@ -22,9 +22,9 @@ var icons_1 = require("@ant-design/icons");
|
|
|
22
22
|
var form_item_1 = __importDefault(require("../form-item"));
|
|
23
23
|
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
24
24
|
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
25
|
-
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
26
25
|
var CommonTranslations_1 = require("../CommonTranslations");
|
|
27
26
|
var IntlUtility_1 = require("../../../utils/IntlUtility");
|
|
27
|
+
var enums_1 = require("../../../enums");
|
|
28
28
|
var translationMessages = react_intl_1.defineMessages({
|
|
29
29
|
billingLines_labels_addButton: {
|
|
30
30
|
id: "billingLines_labels_addButton",
|
|
@@ -82,12 +82,12 @@ var translationMessages = react_intl_1.defineMessages({
|
|
|
82
82
|
var BillingLines = function (props) {
|
|
83
83
|
var getTaxCategoryDisabled = function (taxCategoryType, outsideVatScope) {
|
|
84
84
|
switch (taxCategoryType) {
|
|
85
|
-
case
|
|
86
|
-
case
|
|
87
|
-
case
|
|
88
|
-
case
|
|
85
|
+
case enums_1.AvailableTaxCategoryTypeEnum.StandardRated:
|
|
86
|
+
case enums_1.AvailableTaxCategoryTypeEnum.ReducedRated:
|
|
87
|
+
case enums_1.AvailableTaxCategoryTypeEnum.ZeroRated:
|
|
88
|
+
case enums_1.AvailableTaxCategoryTypeEnum.Exempt:
|
|
89
89
|
return outsideVatScope;
|
|
90
|
-
case
|
|
90
|
+
case enums_1.AvailableTaxCategoryTypeEnum.OutsideTaxScope:
|
|
91
91
|
return !outsideVatScope;
|
|
92
92
|
default:
|
|
93
93
|
return true;
|
|
@@ -134,17 +134,16 @@ var BillingLines = function (props) {
|
|
|
134
134
|
react_1.default.createElement(antd_1.Col, { span: 2 },
|
|
135
135
|
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [field.name, "unitPriceAmount"], defaultLabel: props.intl.formatMessage(translationMessages.billingLines_unitPriceAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, BillingLineUtility_1.getCorrectInputNode("unitPriceAmount", props.intl))),
|
|
136
136
|
react_1.default.createElement(antd_1.Col, { span: 3 },
|
|
137
|
-
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.taxCategoryType"], defaultIsRequired: true, fieldName: [field.name, "taxCategoryType"], initialValue:
|
|
137
|
+
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.taxCategoryType"], defaultIsRequired: true, fieldName: [field.name, "taxCategoryType"], initialValue: enums_1.AvailableTaxCategoryTypeEnum.OutsideTaxScope, defaultLabel: react_1.default.createElement(antd_1.Tooltip, { title: props.intl.formatMessage(translationMessages.billingLines_taxCategoryType_title), placement: "right" },
|
|
138
138
|
react_1.default.createElement("span", null,
|
|
139
139
|
props.intl.formatMessage(translationMessages.billingLines_taxCategoryType),
|
|
140
140
|
"\u00A0",
|
|
141
141
|
react_1.default.createElement(icons_1.QuestionCircleOutlined, null))), verticalLabels: true, onlyLabelOnFirstInList: true, index: index },
|
|
142
142
|
react_1.default.createElement(antd_1.Select, { onChange: function (value) {
|
|
143
|
-
// console.log("valueChanged", value);
|
|
144
143
|
taxCatType = value;
|
|
145
|
-
}, dropdownMatchSelectWidth: false }, Object.keys(
|
|
146
|
-
var taxPercentage = BillingLineUtility_1.calculateTaxPercentage(
|
|
147
|
-
return (react_1.default.createElement(antd_1.Select.Option, { disabled: getTaxCategoryDisabled(
|
|
144
|
+
}, dropdownMatchSelectWidth: false }, Object.keys(enums_1.AvailableTaxCategoryTypeEnum).map(function (taxCategoryType) {
|
|
145
|
+
var taxPercentage = BillingLineUtility_1.calculateTaxPercentage(enums_1.AvailableTaxCategoryTypeEnum[taxCategoryType]);
|
|
146
|
+
return (react_1.default.createElement(antd_1.Select.Option, { disabled: getTaxCategoryDisabled(enums_1.AvailableTaxCategoryTypeEnum[taxCategoryType], props.outsideVatScope), value: taxCategoryType, title: taxCategoryType, key: taxCategoryType }, props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages["taxCategoryType_labels_" + taxCategoryType]) + " (" + taxPercentage + "%)"));
|
|
148
147
|
})))),
|
|
149
148
|
react_1.default.createElement(antd_1.Col, { span: 2 },
|
|
150
149
|
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.discountValue"], defaultIsRequired: false, fieldName: [field.name, "discountValue"], defaultLabel: props.intl.formatMessage(translationMessages.billingLines_discount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index, defaultLabelTooltip: props.intl.formatMessage(translationMessages.billingLines_discount_helpText) }, BillingLineUtility_1.getCorrectInputNode("discountValue", props.intl))),
|
|
@@ -10,11 +10,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importStar(require("react"));
|
|
11
11
|
var components_1 = require("../../components");
|
|
12
12
|
var antd_1 = require("antd");
|
|
13
|
-
var models_1 = require("@unimaze/api-clients/lib/mapi/models");
|
|
14
13
|
var react_intl_1 = require("react-intl");
|
|
15
14
|
var form_item_1 = require("../form-item");
|
|
16
15
|
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
17
16
|
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
17
|
+
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
18
18
|
exports.translationMessages = react_intl_1.defineMessages({
|
|
19
19
|
paymentMethod_title: {
|
|
20
20
|
id: "paymentMethod_title",
|
|
@@ -75,8 +75,8 @@ exports.translationMessages = react_intl_1.defineMessages({
|
|
|
75
75
|
});
|
|
76
76
|
var PaymentMethod = function (props) {
|
|
77
77
|
var paymentMeansType = props.formInstance.getFieldValue(["invoice", "paymentMeans", "type"]) ? props.formInstance.getFieldValue(["invoice", "paymentMeans", "type"]) : "NotSpecified";
|
|
78
|
-
var initialPaymentMeansType =
|
|
79
|
-
var _a = react_1.useState(initialPaymentMeansType), paymentMethod = _a[0], setPaymentMethod = _a[1]; //
|
|
78
|
+
var initialPaymentMeansType = mapi_1.PaymentMeansType[paymentMeansType];
|
|
79
|
+
var _a = react_1.useState(initialPaymentMeansType), paymentMethod = _a[0], setPaymentMethod = _a[1]; // PaymentMeansType.DomesticClaim);
|
|
80
80
|
var domesticTransferFormFields = react_1.default.createElement(react_1.default.Fragment, null,
|
|
81
81
|
react_1.default.createElement(antd_1.Form.Item, { label: props.intl.formatMessage(exports.translationMessages.paymentMethod_label) },
|
|
82
82
|
react_1.default.createElement(antd_1.Row, { gutter: [8, 0] },
|
|
@@ -108,6 +108,7 @@ var PaymentMethod = function (props) {
|
|
|
108
108
|
}] },
|
|
109
109
|
react_1.default.createElement(antd_1.Select, { placeholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountType), dropdownMatchSelectWidth: false },
|
|
110
110
|
react_1.default.createElement(antd_1.Select.Option, { value: "05" }, "05"),
|
|
111
|
+
react_1.default.createElement(antd_1.Select.Option, { value: "13" }, "13"),
|
|
111
112
|
react_1.default.createElement(antd_1.Select.Option, { value: "14" }, "14"),
|
|
112
113
|
react_1.default.createElement(antd_1.Select.Option, { value: "15" }, "15"),
|
|
113
114
|
react_1.default.createElement(antd_1.Select.Option, { value: "26" }, "26")))),
|
|
@@ -198,12 +199,12 @@ var PaymentMethod = function (props) {
|
|
|
198
199
|
react_1.default.createElement(antd_1.Input, { placeholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_icelandicClaim_claimNo) }))))));
|
|
199
200
|
var renderFormFields = function (payMthd) {
|
|
200
201
|
switch (payMthd) {
|
|
201
|
-
case
|
|
202
|
-
case
|
|
202
|
+
case mapi_1.PaymentMeansType.NotSpecified:
|
|
203
|
+
case mapi_1.PaymentMeansType.MutuallyAgreed:
|
|
203
204
|
return null;
|
|
204
|
-
case
|
|
205
|
+
case mapi_1.PaymentMeansType.DomesticTransfer:
|
|
205
206
|
return (domesticTransferFormFields);
|
|
206
|
-
case
|
|
207
|
+
case mapi_1.PaymentMeansType.DomesticClaim:
|
|
207
208
|
return (icelandicClaimFormFields);
|
|
208
209
|
default:
|
|
209
210
|
return null;
|
|
@@ -211,19 +212,19 @@ var PaymentMethod = function (props) {
|
|
|
211
212
|
};
|
|
212
213
|
var defaultPaymentMethods = [
|
|
213
214
|
{
|
|
214
|
-
key:
|
|
215
|
+
key: mapi_1.PaymentMeansType.NotSpecified,
|
|
215
216
|
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_undefined) // "Undefined" "Óskilgreint"
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
|
-
key:
|
|
219
|
+
key: mapi_1.PaymentMeansType.MutuallyAgreed,
|
|
219
220
|
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_mutuallyAgreed) // "Mutually agreed" "Skv. samkomulagi"
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
|
-
key:
|
|
223
|
+
key: mapi_1.PaymentMeansType.DomesticTransfer,
|
|
223
224
|
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_domesticTransfer) // "Transfer"
|
|
224
225
|
},
|
|
225
226
|
{
|
|
226
|
-
key:
|
|
227
|
+
key: mapi_1.PaymentMeansType.DomesticClaim,
|
|
227
228
|
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_domesticClaim) // "Claim"
|
|
228
229
|
}
|
|
229
230
|
];
|
|
@@ -234,12 +235,12 @@ var PaymentMethod = function (props) {
|
|
|
234
235
|
&& paymentMeansTypeFieldDefinition.properties.hasOwnProperty("values")
|
|
235
236
|
&& paymentMeansTypeFieldDefinition.properties.values) {
|
|
236
237
|
return paymentMeansTypeFieldDefinition.properties.values.map(function (op) {
|
|
237
|
-
return react_1.default.createElement(antd_1.Select.Option, { key: op.key, value:
|
|
238
|
+
return react_1.default.createElement(antd_1.Select.Option, { key: op.key, value: mapi_1.PaymentMeansType[op.key], title: op.name }, op.name);
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
241
|
else {
|
|
241
242
|
return defaultPaymentMethods.map(function (op) {
|
|
242
|
-
return react_1.default.createElement(antd_1.Select.Option, { key: op.key, value:
|
|
243
|
+
return react_1.default.createElement(antd_1.Select.Option, { key: op.key, value: mapi_1.PaymentMeansType[op.key], title: op.name }, op.name);
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
246
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PaymentMeansType } from "@unimaze/api-clients/lib/mapi";
|
|
2
|
-
import { TransferMetadata, ClaimMetadata } from '@unimaze/api-clients/lib/mapi/models';
|
|
1
|
+
import { ClaimMetadata, PaymentMeansType, TransferMetadata } from "@unimaze/api-clients/lib/mapi";
|
|
3
2
|
import { Store } from 'antd/es/form/interface';
|
|
4
3
|
export interface IPaymentMeans {
|
|
5
4
|
type: PaymentMeansType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NewReceiverRequirements } from "./NewReceiverRequirements";
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentMeansType } from "@unimaze/api-clients/lib/mapi";
|
|
3
3
|
export interface CommonProps {
|
|
4
4
|
language?: LanguageProp;
|
|
5
5
|
mapiBaseUrl: string;
|
|
@@ -14,6 +14,6 @@ export interface CommonProps {
|
|
|
14
14
|
};
|
|
15
15
|
rapiApiKey: string;
|
|
16
16
|
dueDateMinimumOffset: number;
|
|
17
|
-
defaultPaymentType?:
|
|
17
|
+
defaultPaymentType?: PaymentMeansType;
|
|
18
18
|
}
|
|
19
19
|
export declare type LanguageProp = "en" | "is" | undefined;
|
|
@@ -34,7 +34,6 @@ var uuid_1 = require("uuid");
|
|
|
34
34
|
var ApiUtility_1 = require("../utils/ApiUtility");
|
|
35
35
|
var ConversionUtility_1 = require("../utils/ConversionUtility");
|
|
36
36
|
var reaptcha_1 = __importDefault(require("reaptcha"));
|
|
37
|
-
var models_1 = require("@unimaze/api-clients/lib/mapi/models");
|
|
38
37
|
var translationMessages = react_intl_1.defineMessages({
|
|
39
38
|
createInvoice_addDocumentLineMsg: {
|
|
40
39
|
id: "createInvoice_addDocumentLineMsg",
|
|
@@ -340,7 +339,7 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
340
339
|
}
|
|
341
340
|
};
|
|
342
341
|
var getDefaultPaymentType = function (defaultPaymentType) {
|
|
343
|
-
return defaultPaymentType ||
|
|
342
|
+
return defaultPaymentType || mapi_1.PaymentMeansType.DomesticClaim;
|
|
344
343
|
};
|
|
345
344
|
return (react_1.default.createElement(antd_1.Spin, { spinning: submitting },
|
|
346
345
|
react_1.default.createElement(antd_1.Form, __assign({ onFieldsChange: function () {
|
package/lib/enums.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi";
|
|
2
|
+
declare const AvailableTaxCategoryTypeEnum: {
|
|
3
|
+
readonly [x: number]: string;
|
|
4
|
+
StandardRated: TaxCategoryTypeEnum.StandardRated;
|
|
5
|
+
ReducedRated: TaxCategoryTypeEnum.ReducedRated;
|
|
6
|
+
ZeroRated: TaxCategoryTypeEnum.ZeroRated;
|
|
7
|
+
Exempt: TaxCategoryTypeEnum.Exempt;
|
|
8
|
+
OutsideTaxScope: TaxCategoryTypeEnum.OutsideTaxScope;
|
|
9
|
+
};
|
|
10
|
+
declare type excludedOptions = typeof TaxCategoryTypeEnum.ExemptEuropeanEconomicArea | typeof TaxCategoryTypeEnum.FreeExportTaxNotCharged | typeof TaxCategoryTypeEnum.ReverseCharged;
|
|
11
|
+
declare type AvailableTaxCategoryTypeEnum = Exclude<TaxCategoryTypeEnum, excludedOptions>;
|
|
12
|
+
export { AvailableTaxCategoryTypeEnum };
|
package/lib/enums.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
// Remove ExemptEuropeanEconomicArea, FreeExportTaxNotCharged and ReverseCharged from AvailableTaxCategoryTypeEnum
|
|
15
|
+
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
16
|
+
var ExemptEuropeanEconomicArea = mapi_1.TaxCategoryTypeEnum.ExemptEuropeanEconomicArea, FreeExportTaxNotCharged = mapi_1.TaxCategoryTypeEnum.FreeExportTaxNotCharged, ReverseCharged = mapi_1.TaxCategoryTypeEnum.ReverseCharged, AvailableTaxCategoryTypeEnum = __rest(mapi_1.TaxCategoryTypeEnum, ["ExemptEuropeanEconomicArea", "FreeExportTaxNotCharged", "ReverseCharged"]);
|
|
17
|
+
exports.AvailableTaxCategoryTypeEnum = AvailableTaxCategoryTypeEnum;
|
package/lib/style/index.css
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
.component_header {
|
|
2
|
-
height: 3.3em;
|
|
3
|
-
background-color: #fff;
|
|
4
|
-
border-bottom: solid 1px #d9d9d9;
|
|
5
|
-
border-radius: 4px 4px 0 0;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
padding: 1em 2em;
|
|
10
|
-
}
|
|
11
|
-
.component_header_title {
|
|
12
|
-
font-size: 1.1em;
|
|
13
|
-
}
|
|
14
|
-
.component_header_title > span > i {
|
|
15
|
-
font-size: 20px;
|
|
16
|
-
}
|
|
17
|
-
.header_icon {
|
|
18
|
-
font-size: 1.5em;
|
|
19
|
-
margin-right: 0.75em;
|
|
20
|
-
color: #1890ff;
|
|
21
|
-
}
|
|
22
|
-
.header_right {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: flex-end;
|
|
25
|
-
}
|
|
26
|
-
@media screen and (max-width: 768px) {
|
|
27
|
-
.header_right {
|
|
28
|
-
justify-content: flex-start;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
.header_right > button {
|
|
32
|
-
margin-bottom: unset !important;
|
|
33
|
-
}
|
|
34
|
-
.component_body {
|
|
35
|
-
border-radius: 0 0 4px 4px;
|
|
36
|
-
}
|
|
37
|
-
.component_wrapper {
|
|
38
|
-
align-self: stretch;
|
|
39
|
-
height: 100%;
|
|
40
|
-
background-color: #fff;
|
|
41
|
-
border: solid 1px #d9d9d9;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
}
|
|
44
|
-
.component_wrapper_padding {
|
|
45
|
-
padding: 1em;
|
|
46
|
-
}
|
|
47
|
-
.umz_noValidationMessage .ant-form-item-explain {
|
|
48
|
-
height: 20px !important;
|
|
49
|
-
visibility: hidden !important;
|
|
50
|
-
}
|
|
1
|
+
.component_header {
|
|
2
|
+
height: 3.3em;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
border-bottom: solid 1px #d9d9d9;
|
|
5
|
+
border-radius: 4px 4px 0 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
padding: 1em 2em;
|
|
10
|
+
}
|
|
11
|
+
.component_header_title {
|
|
12
|
+
font-size: 1.1em;
|
|
13
|
+
}
|
|
14
|
+
.component_header_title > span > i {
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
}
|
|
17
|
+
.header_icon {
|
|
18
|
+
font-size: 1.5em;
|
|
19
|
+
margin-right: 0.75em;
|
|
20
|
+
color: #1890ff;
|
|
21
|
+
}
|
|
22
|
+
.header_right {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
@media screen and (max-width: 768px) {
|
|
27
|
+
.header_right {
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.header_right > button {
|
|
32
|
+
margin-bottom: unset !important;
|
|
33
|
+
}
|
|
34
|
+
.component_body {
|
|
35
|
+
border-radius: 0 0 4px 4px;
|
|
36
|
+
}
|
|
37
|
+
.component_wrapper {
|
|
38
|
+
align-self: stretch;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background-color: #fff;
|
|
41
|
+
border: solid 1px #d9d9d9;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
}
|
|
44
|
+
.component_wrapper_padding {
|
|
45
|
+
padding: 1em;
|
|
46
|
+
}
|
|
47
|
+
.umz_noValidationMessage .ant-form-item-explain {
|
|
48
|
+
height: 20px !important;
|
|
49
|
+
visibility: hidden !important;
|
|
50
|
+
}
|
|
51
51
|
/*# sourceMappingURL=index.css.map */
|
|
@@ -122,6 +122,9 @@
|
|
|
122
122
|
"taxCategoryType_labels_ZeroRated": "Enginn skattur",
|
|
123
123
|
"taxCategoryType_labels_Exempt": "Undaþeginn skatti",
|
|
124
124
|
"taxCategoryType_labels_OutsideTaxScope": "Utan skattumfangs",
|
|
125
|
+
"taxCategoryType_labels_ReverseCharged": "Reverse charged",
|
|
126
|
+
"taxCategoryType_labels_FreeExportTaxNotCharged": "Free export tax not charged",
|
|
127
|
+
"taxCategoryType_labels_ExemptEuropeanEconomicArea": "Exempt European economic area",
|
|
125
128
|
"unitOfMeasure_labels_Piece": "Stykki",
|
|
126
129
|
"unitOfMeasure_labels_Kilogram": "Kílógramm",
|
|
127
130
|
"unitOfMeasure_labels_Month": "Mánuður",
|
|
@@ -124,6 +124,9 @@ declare const _default: {
|
|
|
124
124
|
"taxCategoryType_labels_ZeroRated": string;
|
|
125
125
|
"taxCategoryType_labels_Exempt": string;
|
|
126
126
|
"taxCategoryType_labels_OutsideTaxScope": string;
|
|
127
|
+
"taxCategoryType_labels_ReverseCharged": string;
|
|
128
|
+
"taxCategoryType_labels_FreeExportTaxNotCharged": string;
|
|
129
|
+
"taxCategoryType_labels_ExemptEuropeanEconomicArea": string;
|
|
127
130
|
"unitOfMeasure_labels_Piece": string;
|
|
128
131
|
"unitOfMeasure_labels_Kilogram": string;
|
|
129
132
|
"unitOfMeasure_labels_Month": string;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InjectedIntlProps } from "react-intl";
|
|
3
|
-
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
-
import { FormInstance } from "antd/es/form";
|
|
5
|
-
interface CustomerContactProps extends InjectedIntlProps {
|
|
6
|
-
receiverRequirements: NewReceiverRequirements;
|
|
7
|
-
updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void;
|
|
8
|
-
rapiBaseUrl: string;
|
|
9
|
-
formInstance: FormInstance;
|
|
10
|
-
legalIdentifier: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const CustomerContact: React.FC<CustomerContactProps>;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var React = __importStar(require("react"));
|
|
11
|
-
exports.CustomerContact = function (props) {
|
|
12
|
-
return (React.createElement("div", null));
|
|
13
|
-
};
|