meemup-library 2.0.8 → 2.1.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/enums/enum-categories-view-mode.d.ts +7 -0
- package/dist/enums/enum-categories-view-mode.js +8 -0
- package/dist/enums/enum-pos-category-view-mode.d.ts +6 -0
- package/dist/enums/enum-pos-category-view-mode.js +7 -0
- package/dist/interfaces/pos/IPointOfSaleLocalSetting.d.ts +15 -0
- package/dist/interfaces/pos/IPointOfSaleLocalSetting.js +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var EnumCategoriesViewMode;
|
|
2
|
+
(function (EnumCategoriesViewMode) {
|
|
3
|
+
EnumCategoriesViewMode[EnumCategoriesViewMode["Grid"] = 0] = "Grid";
|
|
4
|
+
EnumCategoriesViewMode[EnumCategoriesViewMode["DragableGrid"] = 1] = "DragableGrid";
|
|
5
|
+
EnumCategoriesViewMode[EnumCategoriesViewMode["DragDrop"] = 2] = "DragDrop";
|
|
6
|
+
EnumCategoriesViewMode[EnumCategoriesViewMode["List"] = 3] = "List";
|
|
7
|
+
})(EnumCategoriesViewMode || (EnumCategoriesViewMode = {}));
|
|
8
|
+
export default EnumCategoriesViewMode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var EnumPosCategoryViewMode;
|
|
2
|
+
(function (EnumPosCategoryViewMode) {
|
|
3
|
+
EnumPosCategoryViewMode[EnumPosCategoryViewMode["ImageAndTitle"] = 0] = "ImageAndTitle";
|
|
4
|
+
EnumPosCategoryViewMode[EnumPosCategoryViewMode["OnlyImage"] = 1] = "OnlyImage";
|
|
5
|
+
EnumPosCategoryViewMode[EnumPosCategoryViewMode["OnlyTitle"] = 2] = "OnlyTitle";
|
|
6
|
+
})(EnumPosCategoryViewMode || (EnumPosCategoryViewMode = {}));
|
|
7
|
+
export default EnumPosCategoryViewMode;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import EnumCategoriesViewMode from "../../enums/enum-categories-view-mode";
|
|
1
2
|
import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
|
|
2
3
|
import EnumDriverNotification from "../../enums/enum-driver-notification";
|
|
4
|
+
import EnumPosCategoryViewMode from "../../enums/enum-pos-category-view-mode";
|
|
3
5
|
import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
|
|
4
6
|
import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
|
|
5
7
|
import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
|
|
@@ -83,6 +85,19 @@ interface IPointOfSaleLocalSetting {
|
|
|
83
85
|
onCourierOrderAccepted: EnumDriverNotification;
|
|
84
86
|
onCourierApproaching: EnumDriverNotification;
|
|
85
87
|
onCourierReachedDestination: EnumDriverNotification;
|
|
88
|
+
categories: {
|
|
89
|
+
/** * مدل کلی نمایش فهرستها (مثلاً گرید ساده یا گرید با قابلیت جابجایی دستی)
|
|
90
|
+
*/
|
|
91
|
+
viewMode: EnumCategoriesViewMode;
|
|
92
|
+
/** * مدل نمایش محتوای داخل هر باکس (فقط متن، فقط عکس، یا ترکیب هر دو)
|
|
93
|
+
*/
|
|
94
|
+
itemViewMode: EnumPosCategoryViewMode;
|
|
95
|
+
/** * آرایهای مرتبشده از ID کاتگوریها بر اساس آخرین چیدمان Drag & Drop کاربر.
|
|
96
|
+
* مثال: [45, 12, 89, 3, 7]
|
|
97
|
+
* سیستم در حالت سفارشی، آیتمها را دقیقاً با این توالی آیدیها رندر میکند.
|
|
98
|
+
*/
|
|
99
|
+
orderedCategoryIds: number[];
|
|
100
|
+
};
|
|
86
101
|
}
|
|
87
102
|
export default IPointOfSaleLocalSetting;
|
|
88
103
|
export declare const initPointOfSaleLocalSetting: IPointOfSaleLocalSetting;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import EnumCategoriesViewMode from "../../enums/enum-categories-view-mode";
|
|
1
2
|
import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
|
|
2
3
|
import EnumDriverNotification from "../../enums/enum-driver-notification";
|
|
4
|
+
import EnumPosCategoryViewMode from "../../enums/enum-pos-category-view-mode";
|
|
3
5
|
import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
|
|
4
6
|
import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
|
|
5
7
|
import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
|
|
@@ -82,4 +84,9 @@ export const initPointOfSaleLocalSetting = {
|
|
|
82
84
|
onCourierOrderAccepted: EnumDriverNotification.NotifyAndRepeatAlarm,
|
|
83
85
|
onCourierApproaching: EnumDriverNotification.NotifyAndRepeatAlarm,
|
|
84
86
|
onCourierReachedDestination: EnumDriverNotification.NotifyAndRepeatAlarm,
|
|
87
|
+
categories: {
|
|
88
|
+
itemViewMode: EnumPosCategoryViewMode.ImageAndTitle,
|
|
89
|
+
viewMode: EnumCategoriesViewMode.Grid,
|
|
90
|
+
orderedCategoryIds: []
|
|
91
|
+
}
|
|
85
92
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.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.2.0
|
|
14
|
+
"commit": "git add . && git commit -m \"version.2.1.0\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|