meemup-library 1.7.1 → 1.7.3

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.
@@ -38,5 +38,6 @@ declare class TagToolController {
38
38
  allTagsWithoutSeatsAndSharingType(tags: string[] | null | undefined): string[];
39
39
  allTagsWithoutBundles(tags: string[] | null | undefined): string[];
40
40
  createSeatLabel(num: number): string;
41
+ createDiscountTag(discount: number, currency: string): string;
41
42
  }
42
43
  export default TagToolController;
@@ -1,4 +1,5 @@
1
1
  import EnumPointOfSaleOrderItemSharingType from "../enums/EnumPointOfSaleOrderItemSharingType";
2
+ import MoneyController from "./MoneyController";
2
3
  class TagToolController {
3
4
  constructor() {
4
5
  }
@@ -165,6 +166,9 @@ class TagToolController {
165
166
  createSeatLabel(num) {
166
167
  return `${TagToolController.SeatTagPreName}${num}`;
167
168
  }
169
+ createDiscountTag(discount, currency) {
170
+ return `Discount ${MoneyController.format(discount, currency)}`;
171
+ }
168
172
  }
169
173
  TagToolController.SeatTagPreName = 'Seat #';
170
174
  TagToolController.SharingTypeTagPreName = 'SharingType #';
@@ -0,0 +1,5 @@
1
+ declare enum EnumDineInLandingMode {
2
+ Grid = 1,
3
+ DragDrop = 2
4
+ }
5
+ export default EnumDineInLandingMode;
@@ -0,0 +1,6 @@
1
+ var EnumDineInLandingMode;
2
+ (function (EnumDineInLandingMode) {
3
+ EnumDineInLandingMode[EnumDineInLandingMode["Grid"] = 1] = "Grid";
4
+ EnumDineInLandingMode[EnumDineInLandingMode["DragDrop"] = 2] = "DragDrop";
5
+ })(EnumDineInLandingMode || (EnumDineInLandingMode = {}));
6
+ export default EnumDineInLandingMode;
@@ -1,3 +1,4 @@
1
+ import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
1
2
  import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
2
3
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
3
4
  import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
@@ -68,6 +69,7 @@ interface IPointOfSaleLocalSetting {
68
69
  printerConnections: IPointOfSalePrinterConnections;
69
70
  productLongPress: EnumProductLongPress;
70
71
  activeLandingPage: boolean;
72
+ dineInScreenViewMode: EnumDineInLandingMode;
71
73
  elavonTerminals: IPointOfSaleElavonTerminalDevice[];
72
74
  externalClerkSystem: boolean;
73
75
  awaitingPaymentDeviceResponse: boolean;
@@ -1,3 +1,4 @@
1
+ import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
1
2
  import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
2
3
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
3
4
  import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
@@ -67,6 +68,7 @@ export const initPointOfSaleLocalSetting = {
67
68
  },
68
69
  productLongPress: EnumProductLongPress.TOGGLE_SNOOZ,
69
70
  activeLandingPage: false,
71
+ dineInScreenViewMode: EnumDineInLandingMode.Grid,
70
72
  elavonTerminals: [],
71
73
  externalClerkSystem: false,
72
74
  awaitingPaymentDeviceResponse: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
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.7.1\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.7.3\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"