meemup-library 1.9.3 → 1.9.5

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.
@@ -270,17 +270,19 @@ class SimplePreviewController {
270
270
  printCustomerRemark(template, detail) {
271
271
  if (!detail.order.remarks || detail.order.remarks.trim().length === 0)
272
272
  return "";
273
+ const fontSize = template.layout === EnumPrintLayout.LARGE ? (template.printer === 5 ? 22 : template.fontSize + 10) : template.fontSize;
273
274
  return `${this.createDivContainer(template)}
274
275
  ${this.printSimpleDashLine()}
275
- <p style="text-align: left; font-size: ${template.fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.remarks}</p>
276
+ <p style="text-align: left; font-size: ${fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.remarks}</p>
276
277
  </div>`;
277
278
  }
278
279
  printDeliveryInstructionsRemarks(template, detail) {
279
280
  if (detail.order.orderType !== EnumOrderType.delivery || !detail.order.deliveryInstructionsRemarks || detail.order.deliveryInstructionsRemarks.trim().length === 0)
280
281
  return "";
282
+ const fontSize = template.layout === EnumPrintLayout.LARGE ? (template.printer === 5 ? 22 : template.fontSize + 10) : template.fontSize;
281
283
  return `${this.createDivContainer(template)}
282
284
  ${this.printSimpleDashLine()}
283
- <p style="text-align: left; font-size: ${template.fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.deliveryInstructionsRemarks}</p>
285
+ <p style="text-align: left; font-size: ${fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.deliveryInstructionsRemarks}</p>
284
286
  </div>`;
285
287
  }
286
288
  printCustomerSignature(template, detail) {
@@ -22,6 +22,6 @@ declare enum EnumPointOfSaleAccessType {
22
22
  TransactionReport = 21,
23
23
  TerminalReport = 22,
24
24
  Reservations = 23,
25
- Archive = 24
25
+ SnoozeProduct = 24
26
26
  }
27
27
  export default EnumPointOfSaleAccessType;
@@ -23,6 +23,7 @@ var EnumPointOfSaleAccessType;
23
23
  EnumPointOfSaleAccessType[EnumPointOfSaleAccessType["TransactionReport"] = 21] = "TransactionReport";
24
24
  EnumPointOfSaleAccessType[EnumPointOfSaleAccessType["TerminalReport"] = 22] = "TerminalReport";
25
25
  EnumPointOfSaleAccessType[EnumPointOfSaleAccessType["Reservations"] = 23] = "Reservations";
26
- EnumPointOfSaleAccessType[EnumPointOfSaleAccessType["Archive"] = 24] = "Archive";
26
+ EnumPointOfSaleAccessType[EnumPointOfSaleAccessType["SnoozeProduct"] = 24] = "SnoozeProduct";
27
+ // Archive = 24,
27
28
  })(EnumPointOfSaleAccessType || (EnumPointOfSaleAccessType = {}));
28
29
  export default EnumPointOfSaleAccessType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
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.9.3\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.9.5\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"