@feedmepos/mf-menu 0.1.1 → 0.1.2
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/app.js +129686 -0
- package/dist/assets/validate-menu-YlP2Xqch.js +20 -0
- package/dist/favicon.ico +0 -0
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/Entry.vue.d.ts +2 -0
- package/dist/src/api/index.d.ts +5 -0
- package/dist/src/api/menu.d.ts +25 -0
- package/dist/src/app.d.ts +2 -0
- package/dist/src/assets/icons/index.d.ts +2 -0
- package/dist/src/components/ApplyProducts.vue.d.ts +44 -0
- package/dist/src/components/Navigator.vue.d.ts +2 -0
- package/dist/src/components/feature/AppLoading.vue.d.ts +20 -0
- package/dist/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +929 -0
- package/dist/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +481 -0
- package/dist/src/components/feature/ApplyProduct/index.d.ts +2880 -0
- package/dist/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
- package/dist/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
- package/dist/src/components/feature/EmptyDataTemplate/index.vue.d.ts +27 -0
- package/dist/src/components/feature/Fields/CurrencyInput.vue.d.ts +47 -0
- package/dist/src/components/feature/Fields/ImageDropField.vue.d.ts +20 -0
- package/dist/src/components/feature/Fields/OrderFrom.vue.d.ts +91 -0
- package/dist/src/components/feature/GroupManager/Form.vue.d.ts +44 -0
- package/dist/src/components/feature/GroupManager/OptionTable.vue.d.ts +717 -0
- package/dist/src/components/feature/GroupManager/UpdateForm.vue.d.ts +485 -0
- package/dist/src/components/feature/GroupManager/index.d.ts +2505 -0
- package/dist/src/components/feature/InventoryManager/Form.vue.d.ts +63 -0
- package/dist/src/components/feature/InventoryManager/InventoryBinding.vue.d.ts +54 -0
- package/dist/src/components/feature/InventoryManager/index.d.ts +255 -0
- package/dist/src/components/feature/LinkProductSideSheet.vue.d.ts +63 -0
- package/dist/src/components/feature/Picker.vue.d.ts +37 -0
- package/dist/src/components/feature/PrintDeptManager/Form.vue.d.ts +25 -0
- package/dist/src/components/feature/PrintDeptManager/index.d.ts +51 -0
- package/dist/src/components/feature/TakeAwayManager/Form.vue.d.ts +32 -0
- package/dist/src/components/feature/TakeAwayManager/index.d.ts +107 -0
- package/dist/src/components/feature/VariantManager/Form.vue.d.ts +27 -0
- package/dist/src/components/feature/VariantManager/index.d.ts +35 -0
- package/dist/src/components/layout/LottieAnimation.vue.d.ts +39 -0
- package/dist/src/components/layout/PageLayout.vue.d.ts +23 -0
- package/dist/src/components/layout/ToggleCard.vue.d.ts +28 -0
- package/dist/src/composable/loading.d.ts +25 -0
- package/dist/src/composable/search.d.ts +5 -0
- package/dist/src/helper/check.d.ts +6 -0
- package/dist/src/helper/currency.d.ts +2 -0
- package/dist/src/helper/item.d.ts +20 -0
- package/dist/src/helper/iteration.d.ts +7 -0
- package/dist/src/helper/menu.d.ts +792 -0
- package/dist/src/helper/number.d.ts +11 -0
- package/dist/src/helper/object.d.ts +6 -0
- package/dist/src/helper/recipe.d.ts +3 -0
- package/dist/src/helper/setting/catalogSetting.d.ts +36 -0
- package/dist/src/helper/sku.d.ts +9 -0
- package/dist/src/helper/string.d.ts +1 -0
- package/dist/src/main.d.ts +2 -0
- package/dist/src/manager/cooking_guide.d.ts +5 -0
- package/dist/src/manager/menu/catalog.d.ts +26 -0
- package/dist/src/manager/menu/category.d.ts +38 -0
- package/dist/src/manager/menu/group.d.ts +59 -0
- package/dist/src/manager/menu/item.d.ts +13 -0
- package/dist/src/manager/menu/scheduler.d.ts +26 -0
- package/dist/src/manager/menu/takeaway.d.ts +6 -0
- package/dist/src/manager/menu/variantManager.d.ts +0 -0
- package/dist/src/manager/print_department.d.ts +5 -0
- package/dist/src/manager/scheduler.d.ts +5 -0
- package/dist/src/plugins.d.ts +4 -0
- package/dist/src/router/index.d.ts +2 -0
- package/dist/src/router/shared.d.ts +16 -0
- package/dist/src/stores/app.d.ts +14 -0
- package/dist/src/stores/manager/item.d.ts +2153 -0
- package/dist/src/stores/menu.d.ts +103 -0
- package/dist/src/types/recipe.d.ts +4 -0
- package/dist/src/types/rule.d.ts +63 -0
- package/dist/src/utils/createComponentProgrammatically.d.ts +7 -0
- package/dist/src/views/Catalog/Catalog.vue.d.ts +2 -0
- package/dist/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +14 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +1444 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +21 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductGroup.vue.d.ts +21 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductInventory.vue.d.ts +34 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductPrice.vue.d.ts +20 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductPrint.vue.d.ts +26 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductTakeaway.vue.d.ts +21 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/ProductVariants.vue.d.ts +21 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/index.d.ts +4323 -0
- package/dist/src/views/Catalog/Edit/Group.vue.d.ts +2 -0
- package/dist/src/views/Catalog/Edit/GroupMarkupPriceDialog.vue.d.ts +31 -0
- package/dist/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
- package/dist/src/views/Catalog/Edit/ProductTable.vue.d.ts +27 -0
- package/dist/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
- package/dist/src/views/Catalog/Edit/Takeaway.vue.d.ts +2 -0
- package/dist/src/views/Catalog/Edit/Thumbnail.vue.d.ts +15 -0
- package/dist/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
- package/dist/src/views/CookingGuide/CookingGuide.vue.d.ts +2 -0
- package/dist/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +186 -0
- package/dist/src/views/CookingGuide/CookingGuideStepDialog.vue.d.ts +36 -0
- package/dist/src/views/CookingGuide/CookingGuideStepOverrideDialog.vue.d.ts +70 -0
- package/dist/src/views/Overview/Overview.vue.d.ts +2 -0
- package/dist/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +35 -0
- package/dist/src/views/PrintRoute/PrintRoute.vue.d.ts +7 -0
- package/dist/src/views/Publish/Publish.vue.d.ts +2 -0
- package/dist/src/views/Publish/UpdateCatalogDialog.vue.d.ts +3143 -0
- package/dist/src/views/Scheduler/Scheduler.vue.d.ts +2 -0
- package/dist/src/views/Scheduler/SchedulerDialog.vue.d.ts +750 -0
- package/dist/src/views/Variant/Variant.vue.d.ts +2 -0
- package/dist/style.css +1 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -0
- package/package.json +1 -1
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type AxiosInstance, type AxiosResponse } from "axios";
|
|
2
|
+
export declare const baseClientInstance: (url: string) => AxiosInstance;
|
|
3
|
+
export declare const menuClientInstance: (url: string) => AxiosInstance;
|
|
4
|
+
export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
|
|
5
|
+
export * from "./menu";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FdoMasterCatalogSetting, FdoMenuV4, FdtoRestaurantWithMenuV4, FdtoPublishMenuRestaurant } from "@feedmepos/menu/entity";
|
|
2
|
+
import { type UpdateMenuRequest } from "@feedmepos/menu";
|
|
3
|
+
import { useCoreStore } from "@feedmepos/mf-common";
|
|
4
|
+
export type MenuV4Doc = FdoMenuV4 & {
|
|
5
|
+
_rev: string;
|
|
6
|
+
};
|
|
7
|
+
export interface FdtoUpdateMenuRes {
|
|
8
|
+
menu: MenuV4Doc;
|
|
9
|
+
updateId: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const menuService: {
|
|
12
|
+
coreStore: () => ReturnType<typeof useCoreStore>;
|
|
13
|
+
url: string;
|
|
14
|
+
listRestaurants: () => Promise<Array<FdtoRestaurantWithMenuV4>>;
|
|
15
|
+
readMenu: () => Promise<MenuV4Doc | null>;
|
|
16
|
+
readMenuById: (menuId: string) => Promise<MenuV4Doc | null>;
|
|
17
|
+
updateMenuModule: (req: UpdateMenuRequest[]) => Promise<FdtoUpdateMenuRes>;
|
|
18
|
+
updateMasterCatalog: (dto: FdoMasterCatalogSetting) => Promise<MenuV4Doc>;
|
|
19
|
+
publishMenu: (dto: FdtoPublishMenuRestaurant) => Promise<boolean>;
|
|
20
|
+
publishAllMenu: () => Promise<boolean>;
|
|
21
|
+
revertRestaurantMenu: (restaurantId: string) => Promise<boolean>;
|
|
22
|
+
importMenu: (menu: FdoMenuV4) => Promise<MenuV4Doc>;
|
|
23
|
+
readRestaurantsWithMenu: () => Promise<FdtoRestaurantWithMenuV4[]>;
|
|
24
|
+
migrateV3ToV4: () => Promise<MenuV4Doc>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { type CategorizedItem } from "@/helper/menu";
|
|
3
|
+
export type ApplyProduct = {
|
|
4
|
+
[itemId: string]: string[];
|
|
5
|
+
};
|
|
6
|
+
declare function show(value: ApplyProduct): void;
|
|
7
|
+
declare function hide(): void;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
title: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
options: {
|
|
14
|
+
type: PropType<CategorizedItem[]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
canSelectVariant: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
show: typeof show;
|
|
23
|
+
hide: typeof hide;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
onComplete: (value: ApplyProduct) => void;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
title: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: PropType<CategorizedItem[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
canSelectVariant: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & {
|
|
40
|
+
onOnComplete?: ((value: ApplyProduct) => any) | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
canSelectVariant: boolean;
|
|
43
|
+
}, {}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
width: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
height: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
width: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, {}>;
|
|
20
|
+
export default _default;
|