meemup-library 1.4.54 → 1.4.55
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.
|
@@ -616,7 +616,7 @@ export default new class PreviewContentController {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
body {
|
|
619
|
-
width :
|
|
619
|
+
width : 76mm;
|
|
620
620
|
margin: 0;
|
|
621
621
|
padding: 0;
|
|
622
622
|
background-color: #ffffff;
|
|
@@ -658,35 +658,35 @@ export default new class PreviewContentController {
|
|
|
658
658
|
if (infoList.length > 0) {
|
|
659
659
|
content += SimplePreviewController.createText(data.description);
|
|
660
660
|
for (let index = 0; index < infoList.length; index++) {
|
|
661
|
-
content += SimplePreviewController.createTextValueSpaceBetween(infoList[index].text, infoList[index].value);
|
|
661
|
+
content += SimplePreviewController.createTextValueSpaceBetween(infoList[index].text, infoList[index].value, 12);
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
if (summaryList.length > 0) {
|
|
665
665
|
content += SimplePreviewController.printSpace(20);
|
|
666
666
|
content += SimplePreviewController.createTitle("Summaries");
|
|
667
667
|
for (let index = 0; index < summaryList.length; index++) {
|
|
668
|
-
content += SimplePreviewController.createTextValueSpaceBetween(summaryList[index].text, summaryList[index].value);
|
|
668
|
+
content += SimplePreviewController.createTextValueSpaceBetween(summaryList[index].text, summaryList[index].value, 12);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
if (detailList.length > 0) {
|
|
672
672
|
content += SimplePreviewController.printSpace(20);
|
|
673
673
|
content += SimplePreviewController.createTitle("Details");
|
|
674
674
|
for (let index = 0; index < detailList.length; index++) {
|
|
675
|
-
content += SimplePreviewController.createTextValueSpaceBetween(detailList[index].text, detailList[index].value);
|
|
675
|
+
content += SimplePreviewController.createTextValueSpaceBetween(detailList[index].text, detailList[index].value, 12);
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
if (paymentMethodList.length > 0) {
|
|
679
679
|
content += SimplePreviewController.printSpace(20);
|
|
680
680
|
content += SimplePreviewController.createTitle("Payments");
|
|
681
681
|
for (let index = 0; index < paymentMethodList.length; index++) {
|
|
682
|
-
content += SimplePreviewController.createTextValueSpaceBetween(paymentMethodList[index].text, paymentMethodList[index].value);
|
|
682
|
+
content += SimplePreviewController.createTextValueSpaceBetween(paymentMethodList[index].text, paymentMethodList[index].value, 12);
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
if (categoryList.length > 0) {
|
|
686
686
|
content += SimplePreviewController.printSpace(20);
|
|
687
687
|
content += SimplePreviewController.createTitle("Categories");
|
|
688
688
|
for (let index = 0; index < categoryList.length; index++) {
|
|
689
|
-
content += SimplePreviewController.createTextValueSpaceBetween(categoryList[index].text, categoryList[index].value);
|
|
689
|
+
content += SimplePreviewController.createTextValueSpaceBetween(categoryList[index].text, categoryList[index].value, 12);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
content += SimplePreviewController.footer();
|
|
@@ -32,7 +32,7 @@ declare class SimplePreviewController {
|
|
|
32
32
|
private sortProduct;
|
|
33
33
|
private pizzaSideText;
|
|
34
34
|
createTextValue(text: string, value: string, textLength: number, template: IPrintTemplate): string;
|
|
35
|
-
createTextValueSpaceBetween(text: string, value: string): string;
|
|
35
|
+
createTextValueSpaceBetween(text: string, value: string, fontSize?: number): string;
|
|
36
36
|
createHeader(text: string, align?: "left" | "center" | "right"): string;
|
|
37
37
|
createTitle(text: string, align?: "left" | "center" | "right"): string;
|
|
38
38
|
createSubTitle(text: string, align?: "left" | "center" | "right"): string;
|
|
@@ -619,10 +619,10 @@ class SimplePreviewController {
|
|
|
619
619
|
<div style=" font-size: ${template.fontSize}px; text-align: left; font-family: ${template.font}; color: black;">${value}</div>
|
|
620
620
|
</div>`;
|
|
621
621
|
}
|
|
622
|
-
createTextValueSpaceBetween(text, value) {
|
|
622
|
+
createTextValueSpaceBetween(text, value, fontSize = 14) {
|
|
623
623
|
return `<div style="display:flex; flex-direction:row; justify-content:space-between; align-items:flex-start;">
|
|
624
|
-
<div style=" font-size
|
|
625
|
-
<div style=" font-size:
|
|
624
|
+
<div style=" font-size:${fontSize}px; text-align: left; color: black;">${text}</div>
|
|
625
|
+
<div style=" font-size: ${fontSize}px; text-align: left; color: black;">${value}</div>
|
|
626
626
|
</div>`;
|
|
627
627
|
}
|
|
628
628
|
createHeader(text, align = "left") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.55",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.4.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.4.55\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|