@feedmepos/mf-menu 0.1.0 → 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 +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FdoMarkupOption, FdoMenuV4Category, FdoMenuV4Item } from "@feedmepos/menu/entity";
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: FdoMarkupOption;
|
|
4
|
+
items: FdoMenuV4Item[];
|
|
5
|
+
categories: FdoMenuV4Category[];
|
|
6
|
+
action: "add" | "update";
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:model-value": (v: any) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
11
|
+
"onUpdate:model-value"?: ((v: any) => any) | undefined;
|
|
12
|
+
}, {}, {}>, {
|
|
13
|
+
default?(_: {
|
|
14
|
+
trigger: (event: any) => void;
|
|
15
|
+
}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CategorizedItem } from "@/helper/menu";
|
|
2
|
+
import { type MappedItem } from "@/helper/item";
|
|
3
|
+
interface Props {
|
|
4
|
+
category: CategorizedItem;
|
|
5
|
+
modelValue: Record<string, MappedItem>;
|
|
6
|
+
originalValue: Record<string, MappedItem>;
|
|
7
|
+
isCalculating: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:model-value": (v: Record<string, MappedItem>) => void;
|
|
11
|
+
"reset:model-value": () => void;
|
|
12
|
+
"update:editing": (v: boolean) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
14
|
+
"onUpdate:model-value"?: ((v: Record<string, MappedItem>) => any) | undefined;
|
|
15
|
+
"onReset:model-value"?: (() => any) | undefined;
|
|
16
|
+
"onUpdate:editing"?: ((v: boolean) => any) | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
src: string | null;
|
|
3
|
+
alt: string | null;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { FdoMenuCookingGuide } from "@feedmepos/menu/entity";
|
|
3
|
+
import { type CategorizedItem } from "@/helper/menu";
|
|
4
|
+
declare function showModal(value: FdoMenuCookingGuide | undefined): void;
|
|
5
|
+
declare function hideModal(): void;
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
categorizedItems: {
|
|
8
|
+
type: PropType<CategorizedItem[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
canApplyItems: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
showModal: typeof showModal;
|
|
17
|
+
hideModal: typeof hideModal;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
onSave: (value: z.infer<z.ZodObject<{
|
|
20
|
+
_id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
instruction: z.ZodString;
|
|
25
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
id: string;
|
|
28
|
+
instruction: string;
|
|
29
|
+
variables: Record<string, string>;
|
|
30
|
+
}, {
|
|
31
|
+
id: string;
|
|
32
|
+
instruction: string;
|
|
33
|
+
variables: Record<string, string>;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
36
|
+
productId: z.ZodString;
|
|
37
|
+
combinationKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
id: string;
|
|
43
|
+
variables: Record<string, string>;
|
|
44
|
+
}, {
|
|
45
|
+
id: string;
|
|
46
|
+
variables: Record<string, string>;
|
|
47
|
+
}>, "many">;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
combinationKey?: string | null | undefined;
|
|
50
|
+
productId: string;
|
|
51
|
+
overrides: {
|
|
52
|
+
id: string;
|
|
53
|
+
variables: Record<string, string>;
|
|
54
|
+
}[];
|
|
55
|
+
}, {
|
|
56
|
+
combinationKey?: string | null | undefined;
|
|
57
|
+
productId: string;
|
|
58
|
+
overrides: {
|
|
59
|
+
id: string;
|
|
60
|
+
variables: Record<string, string>;
|
|
61
|
+
}[];
|
|
62
|
+
}>, "many">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
_id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
bindings: {
|
|
67
|
+
combinationKey?: string | null | undefined;
|
|
68
|
+
productId: string;
|
|
69
|
+
overrides: {
|
|
70
|
+
id: string;
|
|
71
|
+
variables: Record<string, string>;
|
|
72
|
+
}[];
|
|
73
|
+
}[];
|
|
74
|
+
steps: {
|
|
75
|
+
id: string;
|
|
76
|
+
instruction: string;
|
|
77
|
+
variables: Record<string, string>;
|
|
78
|
+
}[];
|
|
79
|
+
}, {
|
|
80
|
+
_id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
bindings: {
|
|
83
|
+
combinationKey?: string | null | undefined;
|
|
84
|
+
productId: string;
|
|
85
|
+
overrides: {
|
|
86
|
+
id: string;
|
|
87
|
+
variables: Record<string, string>;
|
|
88
|
+
}[];
|
|
89
|
+
}[];
|
|
90
|
+
steps: {
|
|
91
|
+
id: string;
|
|
92
|
+
instruction: string;
|
|
93
|
+
variables: Record<string, string>;
|
|
94
|
+
}[];
|
|
95
|
+
}>>) => void;
|
|
96
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
97
|
+
categorizedItems: {
|
|
98
|
+
type: PropType<CategorizedItem[]>;
|
|
99
|
+
required: true;
|
|
100
|
+
};
|
|
101
|
+
canApplyItems: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
onOnSave?: ((value: z.infer<z.ZodObject<{
|
|
107
|
+
_id: z.ZodString;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
instruction: z.ZodString;
|
|
112
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
id: string;
|
|
115
|
+
instruction: string;
|
|
116
|
+
variables: Record<string, string>;
|
|
117
|
+
}, {
|
|
118
|
+
id: string;
|
|
119
|
+
instruction: string;
|
|
120
|
+
variables: Record<string, string>;
|
|
121
|
+
}>, "many">;
|
|
122
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
123
|
+
productId: z.ZodString;
|
|
124
|
+
combinationKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
id: string;
|
|
130
|
+
variables: Record<string, string>;
|
|
131
|
+
}, {
|
|
132
|
+
id: string;
|
|
133
|
+
variables: Record<string, string>;
|
|
134
|
+
}>, "many">;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
combinationKey?: string | null | undefined;
|
|
137
|
+
productId: string;
|
|
138
|
+
overrides: {
|
|
139
|
+
id: string;
|
|
140
|
+
variables: Record<string, string>;
|
|
141
|
+
}[];
|
|
142
|
+
}, {
|
|
143
|
+
combinationKey?: string | null | undefined;
|
|
144
|
+
productId: string;
|
|
145
|
+
overrides: {
|
|
146
|
+
id: string;
|
|
147
|
+
variables: Record<string, string>;
|
|
148
|
+
}[];
|
|
149
|
+
}>, "many">;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
_id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
bindings: {
|
|
154
|
+
combinationKey?: string | null | undefined;
|
|
155
|
+
productId: string;
|
|
156
|
+
overrides: {
|
|
157
|
+
id: string;
|
|
158
|
+
variables: Record<string, string>;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
steps: {
|
|
162
|
+
id: string;
|
|
163
|
+
instruction: string;
|
|
164
|
+
variables: Record<string, string>;
|
|
165
|
+
}[];
|
|
166
|
+
}, {
|
|
167
|
+
_id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
bindings: {
|
|
170
|
+
combinationKey?: string | null | undefined;
|
|
171
|
+
productId: string;
|
|
172
|
+
overrides: {
|
|
173
|
+
id: string;
|
|
174
|
+
variables: Record<string, string>;
|
|
175
|
+
}[];
|
|
176
|
+
}[];
|
|
177
|
+
steps: {
|
|
178
|
+
id: string;
|
|
179
|
+
instruction: string;
|
|
180
|
+
variables: Record<string, string>;
|
|
181
|
+
}[];
|
|
182
|
+
}>>) => any) | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
canApplyItems: boolean;
|
|
185
|
+
}, {}>;
|
|
186
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FdoMenuCookingStep } from "@feedmepos/menu/entity";
|
|
2
|
+
declare function show(value: FdoMenuCookingStep | undefined): void;
|
|
3
|
+
declare function hide(): void;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
|
+
show: typeof show;
|
|
6
|
+
hide: typeof hide;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
onComplete: (value: z.infer<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
instruction: z.ZodString;
|
|
11
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
instruction: string;
|
|
15
|
+
variables: Record<string, string>;
|
|
16
|
+
}, {
|
|
17
|
+
id: string;
|
|
18
|
+
instruction: string;
|
|
19
|
+
variables: Record<string, string>;
|
|
20
|
+
}>>) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
22
|
+
onOnComplete?: ((value: z.infer<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
instruction: z.ZodString;
|
|
25
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
id: string;
|
|
28
|
+
instruction: string;
|
|
29
|
+
variables: Record<string, string>;
|
|
30
|
+
}, {
|
|
31
|
+
id: string;
|
|
32
|
+
instruction: string;
|
|
33
|
+
variables: Record<string, string>;
|
|
34
|
+
}>>) => any) | undefined;
|
|
35
|
+
}, {}, {}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FdoMenuCookingStep, FdoMenuCookingStepBinding } from "@feedmepos/menu/entity";
|
|
2
|
+
declare function show(dto: {
|
|
3
|
+
itemName: string;
|
|
4
|
+
steps: FdoMenuCookingStep[];
|
|
5
|
+
bindings: FdoMenuCookingStepBinding | undefined;
|
|
6
|
+
}): void;
|
|
7
|
+
declare function hide(): void;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
9
|
+
show: typeof show;
|
|
10
|
+
hide: typeof hide;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
onComplete: (value: z.infer<z.ZodObject<{
|
|
13
|
+
productId: z.ZodString;
|
|
14
|
+
combinationKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
id: string;
|
|
20
|
+
variables: Record<string, string>;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
variables: Record<string, string>;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
combinationKey?: string | null | undefined;
|
|
27
|
+
productId: string;
|
|
28
|
+
overrides: {
|
|
29
|
+
id: string;
|
|
30
|
+
variables: Record<string, string>;
|
|
31
|
+
}[];
|
|
32
|
+
}, {
|
|
33
|
+
combinationKey?: string | null | undefined;
|
|
34
|
+
productId: string;
|
|
35
|
+
overrides: {
|
|
36
|
+
id: string;
|
|
37
|
+
variables: Record<string, string>;
|
|
38
|
+
}[];
|
|
39
|
+
}>>) => void;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
41
|
+
onOnComplete?: ((value: z.infer<z.ZodObject<{
|
|
42
|
+
productId: z.ZodString;
|
|
43
|
+
combinationKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
id: string;
|
|
49
|
+
variables: Record<string, string>;
|
|
50
|
+
}, {
|
|
51
|
+
id: string;
|
|
52
|
+
variables: Record<string, string>;
|
|
53
|
+
}>, "many">;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
combinationKey?: string | null | undefined;
|
|
56
|
+
productId: string;
|
|
57
|
+
overrides: {
|
|
58
|
+
id: string;
|
|
59
|
+
variables: Record<string, string>;
|
|
60
|
+
}[];
|
|
61
|
+
}, {
|
|
62
|
+
combinationKey?: string | null | undefined;
|
|
63
|
+
productId: string;
|
|
64
|
+
overrides: {
|
|
65
|
+
id: string;
|
|
66
|
+
variables: Record<string, string>;
|
|
67
|
+
}[];
|
|
68
|
+
}>>) => any) | undefined;
|
|
69
|
+
}, {}, {}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { type CategorizedItem } from "@/helper/menu";
|
|
3
|
+
import type { FdoMenuPrintDepartment } from "@feedmepos/menu/entity";
|
|
4
|
+
export type PrintDepartmentInfo = FdoMenuPrintDepartment & {
|
|
5
|
+
applyToItems: string[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
categorizedItems: {
|
|
9
|
+
type: PropType<CategorizedItem[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
canApplyItems: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
showModal: (value: PrintDepartmentInfo | undefined) => void;
|
|
18
|
+
hideModal: () => void;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
onSave: (value: any) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
categorizedItems: {
|
|
23
|
+
type: PropType<CategorizedItem[]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
canApplyItems: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>> & {
|
|
31
|
+
onOnSave?: ((value: any) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
canApplyItems: boolean;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FdoItemOverriderV4, FdoMenuPrintDepartment, FdoMenuV4Item } from "@feedmepos/menu/entity";
|
|
2
|
+
export type PrintDepartment = FdoMenuPrintDepartment & {
|
|
3
|
+
applyToItems: FdoMenuV4Item[];
|
|
4
|
+
usedBy?: FdoItemOverriderV4[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
7
|
+
export default _default;
|