@bookipi/htmlgenerator 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/assets/css/invoicePreview.css +172 -0
- package/dist/index.css +392 -35
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +8 -4
package/dist/index.modern.js
CHANGED
|
@@ -1769,16 +1769,15 @@ var PreviewDocument = function PreviewDocument(_ref) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
-
var signatureContainer = document.signDate && "\n <div
|
|
1773
|
-
var clientSignature = (document.customer || customerSignBase64) && "\n <div
|
|
1774
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("link", {
|
|
1772
|
+
var signatureContainer = document.signDate && "\n <div className=\"col-6\" style={textAlign:'center'}>\n <strong>{document.customerSignature || customerSignBase64 ? company.name : ''}</strong>\n <div style={{height:'130px',borderBottom:'2px solid #dee2e6', marginRight:'40px', marginLeft:'40px'}}>\n { signatureBase64 && <img src=" + signatureBase64 + " style={{width:'220px',marginTop:'20px'}} />}\n </div>\n <div>{document.signDate && formatDate(document.signDate) }</div>\n </div>" || '';
|
|
1773
|
+
var clientSignature = (document.customer || customerSignBase64) && "\n <div className=\"col-6\" style={{textAlign: 'center'}}>\n <strong>{customer.companyName}</strong>\n <div style={{height:'130px',borderBottom:'2px solid #dee2e6', marginRight:'40px', marginLeft:'40px'}}>\n { customerSignBase64 && <img src=" + customerSignBase64 + " style={{width:'220px',marginTop:'20px'}} />}\n </div>\n <div>{customerSignBase64 ? formatDate(new Date()) : '(   /  /  )'}</div>\n </div>" || '';
|
|
1774
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("link", {
|
|
1775
1775
|
rel: "stylesheet",
|
|
1776
1776
|
href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css",
|
|
1777
1777
|
integrity: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh",
|
|
1778
1778
|
crossOrigin: "anonymous"
|
|
1779
1779
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1780
|
-
|
|
1781
|
-
className: "print"
|
|
1780
|
+
className: "print invoice-preview"
|
|
1782
1781
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1783
1782
|
className: "invoice-body"
|
|
1784
1783
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1991,9 +1990,9 @@ var PreviewDocument = function PreviewDocument(_ref) {
|
|
|
1991
1990
|
className: "invoice-price-right"
|
|
1992
1991
|
}, /*#__PURE__*/React.createElement("small", null, document.ty == 1 ? company.template.amountDue ? company.template.amountDue : 'Amount Due' : company.template.grandTotal ? company.template.grandTotal : 'Grand total' ), /*#__PURE__*/React.createElement("span", {
|
|
1993
1992
|
className: "f-w-600"
|
|
1994
|
-
}, FormatCurrency(document.amountDue, company.currency, company.language, company.currencyFormat)))), company.hasPaymentInstruction && document.amountDue > 0 && /*#__PURE__*/React.createElement("h2", null, company.template.payInt ? company.template.payInt : 'Payment Instruction' ), company.paymentInstruction1 && /*#__PURE__*/React.createElement(Fragment, null, company.paymentInstruction1, /*#__PURE__*/React.createElement("br", null)), company.paymentInstruction2 && /*#__PURE__*/React.createElement(Fragment, null, company.paymentInstruction2, /*#__PURE__*/React.createElement("br", null)), company.paymentInstruction3 && /*#__PURE__*/React.createElement(Fragment, null, company.paymentInstruction3, /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("div", {
|
|
1993
|
+
}, FormatCurrency(document.amountDue, company.currency, company.language, company.currencyFormat)))), company.hasPaymentInstruction && document.amountDue > 0 && /*#__PURE__*/React.createElement("h2", null, company.template.payInt ? company.template.payInt : 'Payment Instruction' ), company.paymentInstruction1 && /*#__PURE__*/React.createElement(React.Fragment, null, company.paymentInstruction1, /*#__PURE__*/React.createElement("br", null)), company.paymentInstruction2 && /*#__PURE__*/React.createElement(React.Fragment, null, company.paymentInstruction2, /*#__PURE__*/React.createElement("br", null)), company.paymentInstruction3 && /*#__PURE__*/React.createElement(React.Fragment, null, company.paymentInstruction3, /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("div", {
|
|
1995
1994
|
className: "mt-4"
|
|
1996
|
-
}, document.note && /*#__PURE__*/React.createElement(Fragment, null, document.note && /*#__PURE__*/React.createElement("div", {
|
|
1995
|
+
}, document.note && /*#__PURE__*/React.createElement(React.Fragment, null, document.note && /*#__PURE__*/React.createElement("div", {
|
|
1997
1996
|
className: "mt-4"
|
|
1998
1997
|
}, /*#__PURE__*/React.createElement("small", null, /*#__PURE__*/React.createElement("strong", null, company.template.note ? company.template.note : 'Note' )), /*#__PURE__*/React.createElement("div", {
|
|
1999
1998
|
dangerouslySetInnerHTML: {
|