@unimaze/billing 0.19.0 → 0.20.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/README.md +0 -50
- package/lib/common/components/billing-lines/NewBillingLines.js +2 -0
- package/lib/common/components/customer/CostCenter.d.ts +4 -1
- package/lib/common/components/customer/CostCenter.js +110 -77
- package/lib/common/components/customer/CustomerContact.d.ts +13 -0
- package/lib/common/components/customer/CustomerContact.js +13 -0
- package/lib/common/components/customer/CustomerContactName.d.ts +15 -0
- package/lib/common/components/customer/CustomerContactName.js +37 -0
- package/lib/common/components/customer/index.js +5 -1
- package/lib/common/components/payment-method/index.js +1 -0
- package/lib/common/types/CommonProps.d.ts +2 -0
- package/lib/create-invoice/IntlLoader.js +1 -1
- package/lib/create-invoice/index.d.ts +1 -1
- package/lib/create-invoice/index.js +5 -1
- package/lib/style/index.css +50 -50
- package/lib/utils/BillingLineUtility.d.ts +1 -1
- package/lib/utils/ConversionUtility.js +7 -0
- package/lib/utils/RequirementsUtility.d.ts +2 -2
- package/lib/utils/RequirementsUtility.js +11 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,53 +18,3 @@ A form for creating an invoice and submitting it to the MAPI transaction service
|
|
|
18
18
|
|language |Sets the language of the component |`en` `is` `pl` `undefined` |`en` |
|
|
19
19
|
|mapiBaseUrl |Url of the MAPI |string | |
|
|
20
20
|
|rapiBaseUrl |Url of the RAPI |string | |
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Publishing new version ##
|
|
24
|
-
### Creating new version ###
|
|
25
|
-
```
|
|
26
|
-
yarn version
|
|
27
|
-
```
|
|
28
|
-
Create a new version using an interactive session to prompt you for a new version.
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
yarn version --new-version <version>
|
|
32
|
-
```
|
|
33
|
-
Creates a new version specified by <version>.
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
yarn version --major
|
|
37
|
-
```
|
|
38
|
-
```
|
|
39
|
-
yarn version --minor
|
|
40
|
-
```
|
|
41
|
-
```
|
|
42
|
-
yarn version --patch
|
|
43
|
-
```
|
|
44
|
-
Creates a new version by incrementing the major, minor, or patch number of the current version.
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
yarn version --premajor
|
|
48
|
-
```
|
|
49
|
-
```
|
|
50
|
-
yarn version --preminor
|
|
51
|
-
```
|
|
52
|
-
```
|
|
53
|
-
yarn version --prepatch
|
|
54
|
-
```
|
|
55
|
-
Creates a new prerelease version by incrementing the major, minor, or patch number of the current version and adding a prerelease number.
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
yarn version --prerelease
|
|
59
|
-
```
|
|
60
|
-
Increments the prerelease version number keeping the main version.
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
yarn version [--premajor | --preminor | --prepatch | --prerelease] --preid <pre-identifier>
|
|
64
|
-
```
|
|
65
|
-
Adds an identifier specified by <pre-identifier> to be used to prefix premajor, preminor, prepatch or prerelease version increments.
|
|
66
|
-
### Publishing to NPM ###
|
|
67
|
-
You must have npm username and password setup according to the instructions (check wiki)
|
|
68
|
-
```
|
|
69
|
-
yarn publish
|
|
70
|
-
```
|
|
@@ -89,6 +89,8 @@ var BillingLines = function (props) {
|
|
|
89
89
|
return outsideVatScope;
|
|
90
90
|
case mapi_1.TaxCategoryTypeEnum.OutsideTaxScope:
|
|
91
91
|
return !outsideVatScope;
|
|
92
|
+
default:
|
|
93
|
+
return true;
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
96
|
return (react_1.default.createElement(antd_1.Form.List, { name: ["invoice", "invoiceLines"] }, function (fields, _a) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InjectedIntlProps } from "react-intl";
|
|
3
3
|
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
+
import { FormInstance } from "antd/es/form";
|
|
4
5
|
interface Props extends InjectedIntlProps {
|
|
5
6
|
receiverRequirements: NewReceiverRequirements;
|
|
6
7
|
updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void;
|
|
7
8
|
rapiBaseUrl: string;
|
|
9
|
+
formInstance: FormInstance;
|
|
10
|
+
legalIdentifier: string;
|
|
8
11
|
}
|
|
9
|
-
declare const _default: React.ComponentClass<Pick<Props, "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl">, any> & {
|
|
12
|
+
declare const _default: React.ComponentClass<Pick<Props, "formInstance" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "legalIdentifier">, any> & {
|
|
10
13
|
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
11
14
|
};
|
|
12
15
|
export default _default;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
14
3
|
if (mod && mod.__esModule) return mod;
|
|
15
4
|
var result = {};
|
|
@@ -23,10 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
13
|
var react_1 = __importStar(require("react"));
|
|
25
14
|
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
26
|
-
var antd_1 = require("antd");
|
|
27
15
|
var form_item_1 = __importDefault(require("../form-item"));
|
|
28
16
|
var react_intl_1 = require("react-intl");
|
|
29
|
-
var axios_1 = __importDefault(require("axios"));
|
|
30
17
|
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
31
18
|
// import {FormInstance} from "antd/es/form";
|
|
32
19
|
var translationMessages = {
|
|
@@ -43,71 +30,117 @@ var translationMessages = {
|
|
|
43
30
|
defaultMessage: "Search cost centers",
|
|
44
31
|
},
|
|
45
32
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
33
|
+
//
|
|
34
|
+
// const handleReferenceIdentifierValueSearch = (
|
|
35
|
+
// searchValue: string,
|
|
36
|
+
// costCenterFieldDefinition: FieldDefinition,
|
|
37
|
+
// receiverRequirements: NewReceiverRequirements,
|
|
38
|
+
// rapiBaseUrl: string,
|
|
39
|
+
// setLoadingCostCenterValues: (loadingCostCenterValues: boolean) => void,
|
|
40
|
+
// updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void
|
|
41
|
+
// ) => {
|
|
42
|
+
// if (costCenterFieldDefinition && costCenterFieldDefinition.properties && costCenterFieldDefinition.properties.href) {
|
|
43
|
+
// const searchUrl = rapiBaseUrl + costCenterFieldDefinition.properties.href.replace("%7BtextFilter%7D", searchValue).replace("%7Boffset%7D", "0").replace("%7Blimit%7D", "15");
|
|
44
|
+
// setLoadingCostCenterValues(true)
|
|
45
|
+
// axios.get(searchUrl)
|
|
46
|
+
// .then(response => {
|
|
47
|
+
// setLoadingCostCenterValues(false)
|
|
48
|
+
// const updatedFieldDefinitions: FieldDefinition[] = [...receiverRequirements.fieldDefinitions];
|
|
49
|
+
// const index = updatedFieldDefinitions.findIndex(x => x.key === costCenterFieldDefinition.key)
|
|
50
|
+
//
|
|
51
|
+
// const updatedReferenceIdentifier: FieldDefinition = {
|
|
52
|
+
// ...updatedFieldDefinitions[index],
|
|
53
|
+
// properties: {
|
|
54
|
+
// label: updatedFieldDefinitions[index].properties.label,
|
|
55
|
+
// href: updatedFieldDefinitions[index].properties.href,
|
|
56
|
+
// cardinality: updatedFieldDefinitions[index].properties.cardinality,
|
|
57
|
+
// values: response.data.value
|
|
58
|
+
// }
|
|
59
|
+
// };
|
|
60
|
+
// updatedFieldDefinitions.splice(index, 1, updatedReferenceIdentifier)
|
|
61
|
+
//
|
|
62
|
+
// const newReceiverRequirements: NewReceiverRequirements = {
|
|
63
|
+
// ...receiverRequirements,
|
|
64
|
+
// fieldDefinitions: updatedFieldDefinitions
|
|
65
|
+
// }
|
|
66
|
+
//
|
|
67
|
+
// updateReceiverRequirementsProp(newReceiverRequirements);
|
|
68
|
+
// }
|
|
69
|
+
// )
|
|
70
|
+
// .catch(error => {
|
|
71
|
+
// setLoadingCostCenterValues(false)
|
|
72
|
+
// // tslint:disable-next-line:no-console
|
|
73
|
+
// console.log(error);
|
|
74
|
+
// })
|
|
75
|
+
//
|
|
76
|
+
// }
|
|
77
|
+
// }
|
|
78
|
+
//
|
|
79
|
+
// const getCostCenterInput = (
|
|
80
|
+
// fieldDefinition: FieldDefinition,
|
|
81
|
+
// receiverRequirements: NewReceiverRequirements,
|
|
82
|
+
// rapiBaseUrl: string,
|
|
83
|
+
// setLoadingCostCenterValues: (loadingCostCenterValues: boolean) => void,
|
|
84
|
+
// loadingCostCenterValues: boolean,
|
|
85
|
+
// updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void,
|
|
86
|
+
// constCenterPlaceholderInput: string,
|
|
87
|
+
// constCenterPlaceholderSearch: string,
|
|
88
|
+
// ): React.ReactElement => {
|
|
89
|
+
// let handling = null;
|
|
90
|
+
// if (fieldDefinition.properties.handling) {
|
|
91
|
+
// handling = JSON.parse(fieldDefinition.properties.handling)
|
|
92
|
+
// }
|
|
93
|
+
//
|
|
94
|
+
// if (fieldDefinition) {
|
|
95
|
+
// if (fieldDefinition.properties.values) {
|
|
96
|
+
// const selectProps: SelectProps<any> = fieldDefinition.properties.hasOwnProperty("href")
|
|
97
|
+
// ? {
|
|
98
|
+
// showSearch: true,
|
|
99
|
+
// filterOption: false,
|
|
100
|
+
// onSearch: (searchValue: string) => {
|
|
101
|
+
// handleReferenceIdentifierValueSearch(searchValue, fieldDefinition, receiverRequirements, rapiBaseUrl, setLoadingCostCenterValues, updateReceiverRequirementsProp);
|
|
102
|
+
// },
|
|
103
|
+
// onChange: (searchValue: string) => {
|
|
104
|
+
// if (!searchValue) {
|
|
105
|
+
// handleReferenceIdentifierValueSearch("", fieldDefinition, receiverRequirements, rapiBaseUrl, setLoadingCostCenterValues, updateReceiverRequirementsProp);
|
|
106
|
+
// }
|
|
107
|
+
// },
|
|
108
|
+
// loading: loadingCostCenterValues,
|
|
109
|
+
// }
|
|
110
|
+
// : {}
|
|
111
|
+
//
|
|
112
|
+
// return <Select
|
|
113
|
+
// dropdownMatchSelectWidth={false}
|
|
114
|
+
// allowClear
|
|
115
|
+
// {...selectProps}
|
|
116
|
+
// placeholder={getFieldPlaceholderOverride(receiverRequirements,AvailableFields["customer.locationIdentifier"], constCenterPlaceholderSearch)}
|
|
117
|
+
// >
|
|
118
|
+
// {fieldDefinition.properties.values.map(op => {
|
|
119
|
+
// return <Select.Option
|
|
120
|
+
// key={op.key}
|
|
121
|
+
// value={op.key}
|
|
122
|
+
// >
|
|
123
|
+
// {op.name}
|
|
124
|
+
// </Select.Option>;
|
|
125
|
+
// }
|
|
126
|
+
// )}
|
|
127
|
+
// </Select>;
|
|
128
|
+
// } else {
|
|
129
|
+
// return <Input
|
|
130
|
+
// placeholder={getFieldPlaceholderOverride(receiverRequirements,AvailableFields["customer.locationIdentifier"], constCenterPlaceholderInput)}/>
|
|
131
|
+
// }
|
|
132
|
+
// } else {
|
|
133
|
+
// return <Input
|
|
134
|
+
// placeholder={getFieldPlaceholderOverride(receiverRequirements,AvailableFields["customer.locationIdentifier"], constCenterPlaceholderInput)}/>
|
|
135
|
+
// }
|
|
136
|
+
// }
|
|
106
137
|
var CostCenter = function (props) {
|
|
107
|
-
var
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
138
|
+
var _a = react_1.useState(""), costCenterHandlingValidationStatus = _a[0], setCostCenterHandlingValidationStatus = _a[1];
|
|
139
|
+
var _b = react_1.useState({}), costCenterFieldProps = _b[0], setCostCenterFieldProps = _b[1];
|
|
140
|
+
var _c = react_1.useState(false), loadingCostCenterValues = _c[0], setLoadingCostCenterValues = _c[1];
|
|
141
|
+
var costCenterFieldDefinition = RequirementsUtility_1.getFieldRequirements(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["customer.locationIdentifier"]);
|
|
142
|
+
if (costCenterFieldDefinition) {
|
|
143
|
+
return (react_1.default.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["customer.locationIdentifier"], defaultLabel: props.intl.formatMessage(translationMessages.baseInformation_costCenter), defaultIsRequired: false, fieldName: ["invoice", "customer", "locationIdentifier"], validateStatus: costCenterHandlingValidationStatus }, RequirementsUtility_1.getInput(costCenterFieldDefinition, ["invoice", "customer", "locationIdentifier"], "handleCostCenterValidation", props.legalIdentifier, props.formInstance, props.rapiBaseUrl, props.receiverRequirements, props.updateReceiverRequirementsProp, setCostCenterFieldProps, costCenterFieldProps, setLoadingCostCenterValues, loadingCostCenterValues, setCostCenterHandlingValidationStatus, true)));
|
|
111
144
|
}
|
|
112
145
|
else {
|
|
113
146
|
return null;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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 CustomerContactNameProps extends InjectedIntlProps {
|
|
6
|
+
receiverRequirements: NewReceiverRequirements;
|
|
7
|
+
updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void;
|
|
8
|
+
rapiBaseUrl: string;
|
|
9
|
+
formInstance: FormInstance;
|
|
10
|
+
legalIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.ComponentClass<Pick<CustomerContactNameProps, "formInstance" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "legalIdentifier">, any> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<CustomerContactNameProps & InjectedIntlProps>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
var React = __importStar(require("react"));
|
|
14
|
+
var react_intl_1 = require("react-intl");
|
|
15
|
+
var react_1 = require("react");
|
|
16
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
17
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
18
|
+
var form_item_1 = __importDefault(require("../form-item"));
|
|
19
|
+
var translationMessages = {
|
|
20
|
+
baseInformation_customerContactName: {
|
|
21
|
+
id: "baseInformation_customerContactName",
|
|
22
|
+
defaultMessage: "Contact name",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
var CustomerContactName = function (props) {
|
|
26
|
+
var _a = react_1.useState(""), customerContactNameHandlingValidationStatus = _a[0], setCustomerContactNameHandlingValidationStatus = _a[1];
|
|
27
|
+
var _b = react_1.useState({}), customerContactNameFieldProps = _b[0], setCustomerContactNameFieldProps = _b[1];
|
|
28
|
+
var _c = react_1.useState(false), loadingCustomerContactNameValues = _c[0], setLoadingCustomerContactNameValues = _c[1];
|
|
29
|
+
var customerContactNameFieldDefinition = RequirementsUtility_1.getFieldRequirements(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["customer.contact.name"]);
|
|
30
|
+
if (customerContactNameFieldDefinition) {
|
|
31
|
+
return (React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["customer.contact.name"], defaultLabel: props.intl.formatMessage(translationMessages.baseInformation_customerContactName), defaultIsRequired: false, fieldName: ["invoice", "customer", "contact", "name"], validateStatus: customerContactNameHandlingValidationStatus }, RequirementsUtility_1.getInput(customerContactNameFieldDefinition, ["invoice", "customer", "contact", "name"], "handleCostCenterValidation", props.legalIdentifier, props.formInstance, props.rapiBaseUrl, props.receiverRequirements, props.updateReceiverRequirementsProp, setCustomerContactNameFieldProps, customerContactNameFieldProps, setLoadingCustomerContactNameValues, loadingCustomerContactNameValues, setCustomerContactNameHandlingValidationStatus, true)));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.default = react_intl_1.injectIntl(CustomerContactName);
|
|
@@ -23,6 +23,7 @@ var react_intl_1 = require("react-intl");
|
|
|
23
23
|
var ConversionUtility_1 = require("../../../utils/ConversionUtility");
|
|
24
24
|
var formLayout_1 = require("../../consts/formLayout");
|
|
25
25
|
var CostCenter_1 = __importDefault(require("./CostCenter"));
|
|
26
|
+
var CustomerContactName_1 = __importDefault(require("./CustomerContactName"));
|
|
26
27
|
var translationMessages = react_intl_1.defineMessages({
|
|
27
28
|
customer_title: {
|
|
28
29
|
id: "customer_title",
|
|
@@ -92,7 +93,10 @@ var Customer = function (props) {
|
|
|
92
93
|
", ",
|
|
93
94
|
chosenCustomer.address.countryCode)
|
|
94
95
|
: null),
|
|
95
|
-
|
|
96
|
+
chosenCustomer && chosenCustomer.identifier &&
|
|
97
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
98
|
+
react_1.default.createElement(CostCenter_1.default, { receiverRequirements: props.receiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: chosenCustomer.identifier, formInstance: props.formInstance }),
|
|
99
|
+
react_1.default.createElement(CustomerContactName_1.default, { receiverRequirements: props.receiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: chosenCustomer.identifier, formInstance: props.formInstance }))));
|
|
96
100
|
};
|
|
97
101
|
var CustomerIntl = react_intl_1.injectIntl(Customer);
|
|
98
102
|
exports.default = CustomerIntl;
|
|
@@ -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: "14" }, "14"),
|
|
111
112
|
react_1.default.createElement(antd_1.Select.Option, { value: "15" }, "15"),
|
|
112
113
|
react_1.default.createElement(antd_1.Select.Option, { value: "26" }, "26")))),
|
|
113
114
|
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NewReceiverRequirements } from "./NewReceiverRequirements";
|
|
2
|
+
import { PaymentMeansMetadataTypeEnum } from "@unimaze/api-clients/lib/mapi/models";
|
|
2
3
|
export interface CommonProps {
|
|
3
4
|
language?: LanguageProp;
|
|
4
5
|
mapiBaseUrl: string;
|
|
@@ -13,5 +14,6 @@ export interface CommonProps {
|
|
|
13
14
|
};
|
|
14
15
|
rapiApiKey: string;
|
|
15
16
|
dueDateMinimumOffset: number;
|
|
17
|
+
defaultPaymentType?: PaymentMeansMetadataTypeEnum;
|
|
16
18
|
}
|
|
17
19
|
export declare type LanguageProp = "en" | "is" | undefined;
|
|
@@ -46,6 +46,6 @@ var CreateInvoice = function (props) {
|
|
|
46
46
|
react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
|
|
47
47
|
react_1.default.createElement(index_1.default, { customers: props.customers, language: languageString, mapiBaseUrl: props.mapiBaseUrl, rapiBaseUrl: props.rapiBaseUrl, rapiApiKey: props.rapiApiKey, receiverRequirements: props.receiverRequirements, getReceiverRequirements: props.getReceiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp,
|
|
48
48
|
// legalIdentifier={props.legalIdentifier}
|
|
49
|
-
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset }))));
|
|
49
|
+
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType }))));
|
|
50
50
|
};
|
|
51
51
|
exports.default = CreateInvoice;
|
|
@@ -7,7 +7,7 @@ interface Props extends CommonProps, InjectedIntlProps {
|
|
|
7
7
|
referenceIdentifiersHelpText?: string;
|
|
8
8
|
referenceIdentifiersLabelText?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.ComponentClass<Pick<Props, "uploadSizeLimit" | "attachmentTooltipText" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "referenceIdentifiersLabelText" | "referenceIdentifiersHelpText" | "dueDateMinimumOffset" | "customers" | "rapiApiKey" | "language" | "mapiBaseUrl" | "getReceiverRequirements">, any> & {
|
|
10
|
+
declare const _default: React.ComponentClass<Pick<Props, "uploadSizeLimit" | "attachmentTooltipText" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "referenceIdentifiersLabelText" | "referenceIdentifiersHelpText" | "dueDateMinimumOffset" | "customers" | "rapiApiKey" | "language" | "mapiBaseUrl" | "getReceiverRequirements" | "defaultPaymentType">, any> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -34,6 +34,7 @@ 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");
|
|
37
38
|
var translationMessages = react_intl_1.defineMessages({
|
|
38
39
|
createInvoice_addDocumentLineMsg: {
|
|
39
40
|
id: "createInvoice_addDocumentLineMsg",
|
|
@@ -338,6 +339,9 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
338
339
|
setBillingLinesMetadata(mappedBillingLines);
|
|
339
340
|
}
|
|
340
341
|
};
|
|
342
|
+
var getDefaultPaymentType = function (defaultPaymentType) {
|
|
343
|
+
return defaultPaymentType || models_1.PaymentMeansMetadataTypeEnum.DomesticClaim;
|
|
344
|
+
};
|
|
341
345
|
return (react_1.default.createElement(antd_1.Spin, { spinning: submitting },
|
|
342
346
|
react_1.default.createElement(antd_1.Form, __assign({ onFieldsChange: function () {
|
|
343
347
|
if (captchaVerified && recaptchaRef) {
|
|
@@ -357,7 +361,7 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
357
361
|
countryCode: "IS"
|
|
358
362
|
} }),
|
|
359
363
|
paymentMeans: {
|
|
360
|
-
type:
|
|
364
|
+
type: getDefaultPaymentType(props.defaultPaymentType),
|
|
361
365
|
},
|
|
362
366
|
referenceIdentifiers: [
|
|
363
367
|
{}
|
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 */
|
|
@@ -8,4 +8,4 @@ export declare const calculateTaxableAmount: (discountValue: string | null | und
|
|
|
8
8
|
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
9
9
|
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum | undefined) => number;
|
|
10
10
|
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum | undefined, taxCategoryTypeTranslated: string) => string;
|
|
11
|
-
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "referenceIdentifiers" | "accountingCost" | "notes" | "billingPeriod" | "unitOfMeasure" | "taxCategoryType" | "itemNo" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "orderLineReference", intl: InjectedIntl) => React.ReactChild;
|
|
11
|
+
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "referenceIdentifiers" | "accountingCost" | "notes" | "billingPeriod" | "unitOfMeasure" | "taxCategoryType" | "itemNo" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "chargeValue" | "chargeReason" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "orderLineReference", intl: InjectedIntl) => React.ReactChild;
|
|
@@ -127,6 +127,7 @@ var convertToInvoiceMetadataInput = function (formValues, invoiceLinesWithCalcul
|
|
|
127
127
|
contact: {
|
|
128
128
|
electronicMail: chosenCustomer.contact.electronicMail,
|
|
129
129
|
telephone: chosenCustomer.contact.telephone,
|
|
130
|
+
name: invoice.customer.contact && invoice.customer.contact.name ? invoice.customer.contact.name : undefined,
|
|
130
131
|
},
|
|
131
132
|
locationIdentifier: invoice.customer.locationIdentifier,
|
|
132
133
|
},
|
|
@@ -159,6 +160,12 @@ var convertToInvoiceMetadataInput = function (formValues, invoiceLinesWithCalcul
|
|
|
159
160
|
referenceIdentifiers: referenceIdentifiers,
|
|
160
161
|
documentReferences: documentReferences,
|
|
161
162
|
orderReference: orderReference,
|
|
163
|
+
documentDescriptions: [
|
|
164
|
+
{
|
|
165
|
+
identifier: "UNIMAZE-BILLING-WEB",
|
|
166
|
+
description: location.hostname,
|
|
167
|
+
}
|
|
168
|
+
],
|
|
162
169
|
}
|
|
163
170
|
};
|
|
164
171
|
if (resp.invoice && resp.invoice.delivery && resp.invoice.delivery === {}) {
|
|
@@ -7,10 +7,10 @@ import { FormInstance } from "antd/es/form";
|
|
|
7
7
|
export declare const getFieldRequirements: (receiverRequirements: NewReceiverRequirements, key: AvailableFields) => FieldDefinition | undefined;
|
|
8
8
|
export declare const getFieldLabelOverride: (receiverRequirements: NewReceiverRequirements, key: AvailableFields, defaultLabel: React.ReactNode) => React.ReactNode;
|
|
9
9
|
export declare const getFieldLabelTooltipOverride: (receiverRequirements: NewReceiverRequirements, key: AvailableFields, defaultLabelTooltip: React.ReactNode) => React.ReactNode;
|
|
10
|
-
export declare const getFieldPlaceholderOverride: (
|
|
10
|
+
export declare const getFieldPlaceholderOverride: (fieldRequirement: FieldDefinition, defaultPlaceholder?: string | undefined) => string;
|
|
11
11
|
export declare const getFieldIsRequired: (receiverRequirements: NewReceiverRequirements, key: AvailableFields, defaultIsRequired: boolean) => boolean;
|
|
12
12
|
export interface FormItemPropsWithoutChildren extends Omit<FormItemProps, "children"> {
|
|
13
13
|
}
|
|
14
14
|
export declare const handleValueValidation: ((isoNumber: string, fieldName: string, value: string, rapiBaseUrl: string, namePath: string | number | (string | number)[], setValidationStatus: (validationStatus: "" | "error" | "success" | "validating" | "warning") => void, formInstance: FormInstance<any>, callName: string) => void) & import("lodash").Cancelable;
|
|
15
15
|
export declare const debouncedHandleSearchValues: ((searchValue: string, fieldDefinition: FieldDefinition, setLoadingValues: (loadingValues: boolean) => void, loadingValues: boolean, receiverRequirements: NewReceiverRequirements, updateReceiverRequirementsProp: (newReceiverRequirements: NewReceiverRequirements) => void, callName: string, rapiBaseUrl: string, overwrittenFieldDefinitionKey?: string | undefined) => void) & import("lodash").Cancelable;
|
|
16
|
-
export declare const getInput: (fieldDefinition: FieldDefinition, namePath: string | number | (string | number)[], validationCallName: string, legalIdentifier: string, formInstance: FormInstance<any>, rapiBaseUrl: string, receiverRequirements: NewReceiverRequirements, updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void, setAccountingCostFieldProps: (accountingCostFiledProps: FormItemPropsWithoutChildren) => void, accountingCostFieldProps: FormItemPropsWithoutChildren, setLoadingAccountingCostValues: (loadingAccountingCostValues: boolean) => void, loadingAccountingCostValues: boolean, setHandlingValidationStatus: (handlingValidationStatus: "" | "error" | "success" | "validating" | "warning") => void) => React.ReactNode;
|
|
16
|
+
export declare const getInput: (fieldDefinition: FieldDefinition, namePath: string | number | (string | number)[], validationCallName: string, legalIdentifier: string, formInstance: FormInstance<any>, rapiBaseUrl: string, receiverRequirements: NewReceiverRequirements, updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void, setAccountingCostFieldProps: (accountingCostFiledProps: FormItemPropsWithoutChildren) => void, accountingCostFieldProps: FormItemPropsWithoutChildren, setLoadingAccountingCostValues: (loadingAccountingCostValues: boolean) => void, loadingAccountingCostValues: boolean, setHandlingValidationStatus: (handlingValidationStatus: "" | "error" | "success" | "validating" | "warning") => void, allowClearSelect?: boolean | undefined) => React.ReactNode;
|
|
@@ -63,19 +63,12 @@ exports.getFieldLabelTooltipOverride = function (receiverRequirements, key, defa
|
|
|
63
63
|
return defaultLabelTooltip;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
exports.getFieldPlaceholderOverride = function (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var handling = JSON.parse(fieldRequirement.properties.handling);
|
|
71
|
-
return handling.placeholder ? handling.placeholder : defaultPlaceholder;
|
|
72
|
-
}
|
|
73
|
-
else
|
|
74
|
-
return defaultPlaceholder;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return defaultPlaceholder;
|
|
66
|
+
exports.getFieldPlaceholderOverride = function (fieldRequirement, defaultPlaceholder) {
|
|
67
|
+
if (fieldRequirement.properties.handling) {
|
|
68
|
+
var handling = JSON.parse(fieldRequirement.properties.handling);
|
|
69
|
+
return handling.placeholder ? handling.placeholder : defaultPlaceholder;
|
|
78
70
|
}
|
|
71
|
+
return defaultPlaceholder ? defaultPlaceholder : "";
|
|
79
72
|
};
|
|
80
73
|
exports.getFieldIsRequired = function (receiverRequirements, key, defaultIsRequired) {
|
|
81
74
|
var fieldRequirement = exports.getFieldRequirements(receiverRequirements, key);
|
|
@@ -105,7 +98,7 @@ exports.handleValueValidation = lodash_1.debounce(function (isoNumber, fieldName
|
|
|
105
98
|
.then(function (response) {
|
|
106
99
|
response.data ? setValidationStatus("success") : setValidationStatus("error");
|
|
107
100
|
})
|
|
108
|
-
.catch(function (
|
|
101
|
+
.catch(function () {
|
|
109
102
|
setValidationStatus("error");
|
|
110
103
|
});
|
|
111
104
|
}
|
|
@@ -135,15 +128,16 @@ var handleValueSearch = function (searchValue, fieldDefinition, setLoadingValues
|
|
|
135
128
|
}
|
|
136
129
|
};
|
|
137
130
|
exports.debouncedHandleSearchValues = lodash_1.debounce(handleValueSearch, 500);
|
|
138
|
-
exports.getInput = function (fieldDefinition, namePath, validationCallName, legalIdentifier, formInstance, rapiBaseUrl, receiverRequirements, updateReceiverRequirementsProp, setAccountingCostFieldProps, accountingCostFieldProps, setLoadingAccountingCostValues, loadingAccountingCostValues, setHandlingValidationStatus) {
|
|
131
|
+
exports.getInput = function (fieldDefinition, namePath, validationCallName, legalIdentifier, formInstance, rapiBaseUrl, receiverRequirements, updateReceiverRequirementsProp, setAccountingCostFieldProps, accountingCostFieldProps, setLoadingAccountingCostValues, loadingAccountingCostValues, setHandlingValidationStatus, allowClearSelect) {
|
|
139
132
|
var handling = null;
|
|
140
133
|
if (fieldDefinition.properties.handling) {
|
|
141
134
|
handling = JSON.parse(fieldDefinition.properties.handling);
|
|
142
135
|
}
|
|
136
|
+
var placeholder = exports.getFieldPlaceholderOverride(fieldDefinition);
|
|
143
137
|
if (handling && handling.shouldBeValidated) {
|
|
144
138
|
return (react_1.default.createElement(antd_1.Input, { onBlur: function (event) {
|
|
145
139
|
exports.handleValueValidation(legalIdentifier, fieldDefinition.name, event.currentTarget.value, rapiBaseUrl, namePath, setHandlingValidationStatus, formInstance, validationCallName);
|
|
146
|
-
} }));
|
|
140
|
+
}, placeholder: placeholder }));
|
|
147
141
|
}
|
|
148
142
|
else if (fieldDefinition.properties.values) {
|
|
149
143
|
var selectProps = fieldDefinition.properties.hasOwnProperty("href")
|
|
@@ -156,11 +150,11 @@ exports.getInput = function (fieldDefinition, namePath, validationCallName, lega
|
|
|
156
150
|
loading: loadingAccountingCostValues,
|
|
157
151
|
}
|
|
158
152
|
: {};
|
|
159
|
-
return (react_1.default.createElement(antd_1.Select, __assign({ dropdownMatchSelectWidth: false }, selectProps), fieldDefinition.properties.values.map(function (op) {
|
|
153
|
+
return (react_1.default.createElement(antd_1.Select, __assign({ dropdownMatchSelectWidth: false, allowClear: allowClearSelect }, selectProps, { placeholder: placeholder }), fieldDefinition.properties.values.map(function (op) {
|
|
160
154
|
return react_1.default.createElement(antd_1.Select.Option, { key: op.key, value: op.key }, op.name);
|
|
161
155
|
})));
|
|
162
156
|
}
|
|
163
157
|
else {
|
|
164
|
-
return (react_1.default.createElement(antd_1.Input,
|
|
158
|
+
return (react_1.default.createElement(antd_1.Input, { allowClear: allowClearSelect, placeholder: placeholder }));
|
|
165
159
|
}
|
|
166
160
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@ant-design/compatible": "latest",
|
|
12
|
-
"@unimaze/api-clients": "1.
|
|
12
|
+
"@unimaze/api-clients": "3.1.0",
|
|
13
13
|
"antd-mask-input": "^0.1.13",
|
|
14
14
|
"react-hot-loader": "^4.12.20",
|
|
15
15
|
"react-intl": "2.9.0",
|