meemup-library 1.6.8 → 1.7.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/dist/controllers/SimplePreviewController.js +2 -2
- package/dist/enums/enum-table-shape.d.ts +9 -0
- package/dist/enums/enum-table-shape.js +10 -0
- package/dist/interfaces/IPrintTemplate.d.ts +0 -1
- package/dist/interfaces/IPrintTemplate.js +1 -1
- package/dist/interfaces/pos/IPointOfSaleRestaurantTable.d.ts +14 -1
- package/dist/interfaces/pos/IPointOfSaleRestaurantTable.js +1 -0
- package/package.json +2 -2
|
@@ -315,7 +315,7 @@ class SimplePreviewController {
|
|
|
315
315
|
const TagController = TagToolController.getInstance();
|
|
316
316
|
let flag = true;
|
|
317
317
|
const seats = TagController.allSeatInOrderDetail(detail.products);
|
|
318
|
-
if (detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
|
|
318
|
+
if (template.printProductsBySeat && detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
|
|
319
319
|
return this.printProductInDineIn(template, detail);
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
@@ -553,7 +553,7 @@ class SimplePreviewController {
|
|
|
553
553
|
const TagController = TagToolController.getInstance();
|
|
554
554
|
let flag = true;
|
|
555
555
|
const seats = TagController.allSeatInOrderDetail(detail.products);
|
|
556
|
-
if (detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
|
|
556
|
+
if (template.printProductsBySeat && detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
|
|
557
557
|
return this.printProductInDineIn(template, detail);
|
|
558
558
|
}
|
|
559
559
|
else {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var EnumTableShape;
|
|
2
|
+
(function (EnumTableShape) {
|
|
3
|
+
EnumTableShape[EnumTableShape["Square"] = 1] = "Square";
|
|
4
|
+
EnumTableShape[EnumTableShape["Rectangle"] = 2] = "Rectangle";
|
|
5
|
+
EnumTableShape[EnumTableShape["Circle"] = 3] = "Circle";
|
|
6
|
+
EnumTableShape[EnumTableShape["Oval"] = 4] = "Oval";
|
|
7
|
+
EnumTableShape[EnumTableShape["Pentagon"] = 5] = "Pentagon";
|
|
8
|
+
EnumTableShape[EnumTableShape["Triangle"] = 6] = "Triangle";
|
|
9
|
+
})(EnumTableShape || (EnumTableShape = {}));
|
|
10
|
+
export default EnumTableShape;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import EnumTableShape from "../../enums/enum-table-shape";
|
|
1
2
|
export default interface IPointOfSaleRestaurantTable {
|
|
2
3
|
id: number;
|
|
3
4
|
title: string;
|
|
4
5
|
description: string;
|
|
6
|
+
imageName: string;
|
|
5
7
|
locationType: number;
|
|
6
8
|
enabled: boolean;
|
|
7
|
-
imageName: string;
|
|
8
9
|
capacity: number;
|
|
10
|
+
shape: {
|
|
11
|
+
type: EnumTableShape;
|
|
12
|
+
sides?: number;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
rotation: number;
|
|
18
|
+
fillColor?: string;
|
|
19
|
+
strokeColor?: string;
|
|
20
|
+
strokeWidth?: number;
|
|
21
|
+
};
|
|
9
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
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.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.7.0\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|