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.
@@ -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,9 @@
1
+ declare enum EnumTableShape {
2
+ Square = 1,// مربع
3
+ Rectangle = 2,// مستطیل
4
+ Circle = 3,// دایره‌ای
5
+ Oval = 4,// بیضی
6
+ Pentagon = 5,// ۵ ضلعی
7
+ Triangle = 6
8
+ }
9
+ export default EnumTableShape;
@@ -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;
@@ -70,6 +70,5 @@ export default interface IPrintTemplate {
70
70
  * This is primarily used for Dine-in orders.
71
71
  */
72
72
  printProductsBySeat: boolean;
73
- showSeatRatioInPrint: boolean;
74
73
  }
75
74
  export declare const initPrintTemplate: IPrintTemplate;
@@ -65,5 +65,5 @@ export const initPrintTemplate = {
65
65
  printASAPLabel: false,
66
66
  skipWholePizzaToppingText: false,
67
67
  printProductsBySeat: false,
68
- showSeatRatioInPrint: false,
68
+ // showSeatRatioInPrint: false,
69
69
  };
@@ -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
  }
@@ -1 +1,2 @@
1
1
  export {};
2
+ //09118940845
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.6.8",
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.6.8\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.7.0\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"