@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha
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-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
- package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
- package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
- package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
- package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
- package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
- package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
- package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
- package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
- package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
- package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
- package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
- package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
- package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
- package/dist/Products--adhOQ8n.js +283 -0
- package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
- package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
- package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
- package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
- package/dist/Setting-Vr3Thttm.js +259 -0
- package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
- package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
- package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
- package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
- package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
- package/dist/_id_-DOU7ieGB.js +202 -0
- package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
- package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
- package/dist/app.js +6 -7
- package/dist/apps/mf-menu/src/app.d.ts +62 -3
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
- package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BTF_dm9R.js +24 -0
- package/dist/assets/override-menu-BPu7TVCy.js +24 -0
- package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
- package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
- package/dist/catalogSetting-C34kIcYn.js +71 -0
- package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
- package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
- package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
- package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
- package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
- package/dist/index-D7yR1j9C.js +215 -0
- package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
- package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
- package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
- package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
- package/dist/menu-DK7wG3S5.js +133287 -0
- package/dist/menuV2-B-0V65cx.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
- package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
- package/dist/subcategory-DLdBwjHV.js +148 -0
- package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
- package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
- package/package.json +5 -5
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
- package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
- package/dist/Products-D0rrANT6.js +0 -270
- package/dist/Setting-3ISlMXOA.js +0 -258
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
- package/dist/_id_-DY8himeL.js +0 -200
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/assets/linked-status-CkBKnMXs.js +0 -24
- package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
- package/dist/assets/validate-menu-Bomogq01.js +0 -24
- package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/menu-IGORh0Ik.js +0 -108039
- package/dist/subcategory-CmVttqlG.js +0 -817
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
package/dist/app.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { F as e,
|
|
1
|
+
import { F as e, i as r, a as o, o as t, r as i, b as p } from "./app-CrXLAKdw.js";
|
|
2
2
|
export {
|
|
3
3
|
e as FmApp,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
i as
|
|
8
|
-
p as
|
|
9
|
-
u as useMenuNavigatorStatus
|
|
4
|
+
r as i18nMessages,
|
|
5
|
+
o as initMenuApp,
|
|
6
|
+
t as openTreeEditor,
|
|
7
|
+
i as routers,
|
|
8
|
+
p as useMenuNavigatorStatus
|
|
10
9
|
};
|
|
@@ -2,7 +2,7 @@ import "@feedmepos/remy-vue-client/style.css";
|
|
|
2
2
|
import type { App } from "vue";
|
|
3
3
|
import { useMenuNavigatorStatus } from "./composable/navigator";
|
|
4
4
|
import enUS from "./locales/en-US.json";
|
|
5
|
-
import { routers
|
|
5
|
+
import { routers } from "./router/shared";
|
|
6
6
|
export declare const FmApp: any;
|
|
7
7
|
declare function initMenuApp(app: App, vueRouter: any): void;
|
|
8
8
|
export type AppMessagesSchema = typeof enUS;
|
|
@@ -682,6 +682,7 @@ export declare const i18nMessages: {
|
|
|
682
682
|
products: string;
|
|
683
683
|
all_items: string;
|
|
684
684
|
};
|
|
685
|
+
restaurant_attributes_title: string;
|
|
685
686
|
};
|
|
686
687
|
validation: {
|
|
687
688
|
name_used: string;
|
|
@@ -798,6 +799,15 @@ export declare const i18nMessages: {
|
|
|
798
799
|
};
|
|
799
800
|
link_product: {
|
|
800
801
|
title: string;
|
|
802
|
+
rules: {
|
|
803
|
+
title: string;
|
|
804
|
+
section_title: string;
|
|
805
|
+
order_from: string;
|
|
806
|
+
restaurant_filter: string;
|
|
807
|
+
item_filter: string;
|
|
808
|
+
add_rule: string;
|
|
809
|
+
hint: string;
|
|
810
|
+
};
|
|
801
811
|
};
|
|
802
812
|
catalog_scheduler: {
|
|
803
813
|
title: string;
|
|
@@ -1549,8 +1559,13 @@ export declare const i18nMessages: {
|
|
|
1549
1559
|
};
|
|
1550
1560
|
};
|
|
1551
1561
|
price_tier_config: string;
|
|
1562
|
+
link_price_tier: string;
|
|
1552
1563
|
link_price_group: string;
|
|
1553
1564
|
link_price_group_description: string;
|
|
1565
|
+
not_linked: string;
|
|
1566
|
+
price_group_rule: string;
|
|
1567
|
+
price_group_rule_description: string;
|
|
1568
|
+
restaurant_filter: string;
|
|
1554
1569
|
};
|
|
1555
1570
|
tree_editor: {
|
|
1556
1571
|
title: string;
|
|
@@ -2255,6 +2270,7 @@ export declare const i18nMessages: {
|
|
|
2255
2270
|
products: string;
|
|
2256
2271
|
all_items: string;
|
|
2257
2272
|
};
|
|
2273
|
+
restaurant_attributes_title: string;
|
|
2258
2274
|
};
|
|
2259
2275
|
validation: {
|
|
2260
2276
|
name_used: string;
|
|
@@ -2371,6 +2387,15 @@ export declare const i18nMessages: {
|
|
|
2371
2387
|
};
|
|
2372
2388
|
link_product: {
|
|
2373
2389
|
title: string;
|
|
2390
|
+
rules: {
|
|
2391
|
+
title: string;
|
|
2392
|
+
section_title: string;
|
|
2393
|
+
order_from: string;
|
|
2394
|
+
restaurant_filter: string;
|
|
2395
|
+
item_filter: string;
|
|
2396
|
+
add_rule: string;
|
|
2397
|
+
hint: string;
|
|
2398
|
+
};
|
|
2374
2399
|
};
|
|
2375
2400
|
catalog_scheduler: {
|
|
2376
2401
|
title: string;
|
|
@@ -3122,8 +3147,13 @@ export declare const i18nMessages: {
|
|
|
3122
3147
|
};
|
|
3123
3148
|
};
|
|
3124
3149
|
price_tier_config: string;
|
|
3150
|
+
link_price_tier: string;
|
|
3125
3151
|
link_price_group: string;
|
|
3126
3152
|
link_price_group_description: string;
|
|
3153
|
+
not_linked: string;
|
|
3154
|
+
price_group_rule: string;
|
|
3155
|
+
price_group_rule_description: string;
|
|
3156
|
+
restaurant_filter: string;
|
|
3127
3157
|
};
|
|
3128
3158
|
tree_editor: {
|
|
3129
3159
|
title: string;
|
|
@@ -3824,10 +3854,10 @@ export declare const i18nMessages: {
|
|
|
3824
3854
|
};
|
|
3825
3855
|
add: string;
|
|
3826
3856
|
config: string;
|
|
3827
|
-
percentage: string;
|
|
3828
3857
|
products: string;
|
|
3829
3858
|
all_items: string;
|
|
3830
3859
|
};
|
|
3860
|
+
restaurant_attributes_title: string;
|
|
3831
3861
|
};
|
|
3832
3862
|
validation: {
|
|
3833
3863
|
name_used: string;
|
|
@@ -3944,6 +3974,15 @@ export declare const i18nMessages: {
|
|
|
3944
3974
|
};
|
|
3945
3975
|
link_product: {
|
|
3946
3976
|
title: string;
|
|
3977
|
+
rules: {
|
|
3978
|
+
title: string;
|
|
3979
|
+
section_title: string;
|
|
3980
|
+
order_from: string;
|
|
3981
|
+
restaurant_filter: string;
|
|
3982
|
+
item_filter: string;
|
|
3983
|
+
add_rule: string;
|
|
3984
|
+
hint: string;
|
|
3985
|
+
};
|
|
3947
3986
|
};
|
|
3948
3987
|
catalog_scheduler: {
|
|
3949
3988
|
title: string;
|
|
@@ -4695,8 +4734,13 @@ export declare const i18nMessages: {
|
|
|
4695
4734
|
};
|
|
4696
4735
|
};
|
|
4697
4736
|
price_tier_config: string;
|
|
4737
|
+
link_price_tier: string;
|
|
4698
4738
|
link_price_group: string;
|
|
4699
4739
|
link_price_group_description: string;
|
|
4740
|
+
not_linked: string;
|
|
4741
|
+
price_group_rule: string;
|
|
4742
|
+
price_group_rule_description: string;
|
|
4743
|
+
restaurant_filter: string;
|
|
4700
4744
|
};
|
|
4701
4745
|
tree_editor: {
|
|
4702
4746
|
title: string;
|
|
@@ -5401,6 +5445,7 @@ export declare const i18nMessages: {
|
|
|
5401
5445
|
products: string;
|
|
5402
5446
|
all_items: string;
|
|
5403
5447
|
};
|
|
5448
|
+
restaurant_attributes_title: string;
|
|
5404
5449
|
};
|
|
5405
5450
|
validation: {
|
|
5406
5451
|
name_used: string;
|
|
@@ -5517,6 +5562,15 @@ export declare const i18nMessages: {
|
|
|
5517
5562
|
};
|
|
5518
5563
|
link_product: {
|
|
5519
5564
|
title: string;
|
|
5565
|
+
rules: {
|
|
5566
|
+
title: string;
|
|
5567
|
+
section_title: string;
|
|
5568
|
+
order_from: string;
|
|
5569
|
+
restaurant_filter: string;
|
|
5570
|
+
item_filter: string;
|
|
5571
|
+
add_rule: string;
|
|
5572
|
+
hint: string;
|
|
5573
|
+
};
|
|
5520
5574
|
};
|
|
5521
5575
|
catalog_scheduler: {
|
|
5522
5576
|
title: string;
|
|
@@ -6268,8 +6322,13 @@ export declare const i18nMessages: {
|
|
|
6268
6322
|
};
|
|
6269
6323
|
};
|
|
6270
6324
|
price_tier_config: string;
|
|
6325
|
+
link_price_tier: string;
|
|
6271
6326
|
link_price_group: string;
|
|
6272
6327
|
link_price_group_description: string;
|
|
6328
|
+
not_linked: string;
|
|
6329
|
+
price_group_rule: string;
|
|
6330
|
+
price_group_rule_description: string;
|
|
6331
|
+
restaurant_filter: string;
|
|
6273
6332
|
};
|
|
6274
6333
|
tree_editor: {
|
|
6275
6334
|
title: string;
|
|
@@ -6301,4 +6360,4 @@ export declare const i18nMessages: {
|
|
|
6301
6360
|
};
|
|
6302
6361
|
};
|
|
6303
6362
|
export { openTreeEditor } from "./components/feature/TreeEditor/openner";
|
|
6304
|
-
export { routers,
|
|
6363
|
+
export { routers, initMenuApp, useMenuNavigatorStatus };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CatalogSetting } from "@/helper/setting/catalogSetting";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
modelValue: CatalogSetting;
|
|
4
|
+
isMainCatalog: boolean;
|
|
5
|
+
isV4: boolean;
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: CatalogSetting) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
modelValue: CatalogSetting;
|
|
10
|
+
isMainCatalog: boolean;
|
|
11
|
+
isV4: boolean;
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: CatalogSetting) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
required: true;
|
|
4
|
+
type: import("vue").PropType<z.infer<z.ZodObject<{
|
|
5
|
+
priceTier: z.ZodString;
|
|
6
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
restaurantAttributes?: any;
|
|
9
|
+
priceTier: string;
|
|
10
|
+
}, {
|
|
11
|
+
restaurantAttributes?: any;
|
|
12
|
+
priceTier: string;
|
|
13
|
+
}>>[] | null | undefined>;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
modelValue: {
|
|
17
|
+
required: true;
|
|
18
|
+
type: import("vue").PropType<z.infer<z.ZodObject<{
|
|
19
|
+
priceTier: z.ZodString;
|
|
20
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
restaurantAttributes?: any;
|
|
23
|
+
priceTier: string;
|
|
24
|
+
}, {
|
|
25
|
+
restaurantAttributes?: any;
|
|
26
|
+
priceTier: string;
|
|
27
|
+
}>>[] | null | undefined>;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
fullWidth?: boolean;
|
|
3
|
+
currentRestaurantCustomAttributes: Record<string, any>;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
6
|
+
fullWidth: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
confirm: (payload: Record<string, string>) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
fullWidth: boolean;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
onConfirm?: ((payload: Record<string, string>) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
fullWidth: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FdoCatalogLinkItemRule } from "@feedmepos/menu/entity";
|
|
1
2
|
export default function useCatalogManager(): {
|
|
2
3
|
linkableItems: import("vue").ComputedRef<import("../../../../helper/menu").CategorizedItem[]>;
|
|
3
4
|
currentItems: import("vue").ComputedRef<{
|
|
@@ -6,4 +7,5 @@ export default function useCatalogManager(): {
|
|
|
6
7
|
setProduct: (productIds: string[]) => Promise<void>;
|
|
7
8
|
applyProduct: (newProductIds: string[]) => Promise<void>;
|
|
8
9
|
removeProduct: (newProductIds: string[]) => Promise<void>;
|
|
10
|
+
saveLinkItemRules: (linkItemRules: FdoCatalogLinkItemRule[] | null | undefined) => Promise<void>;
|
|
9
11
|
};
|
|
@@ -13,6 +13,7 @@ interface MenuState {
|
|
|
13
13
|
currentCategoryIds: (string | null)[] | null;
|
|
14
14
|
currentCatalogId: string | null;
|
|
15
15
|
currentSchedulerId: string | null;
|
|
16
|
+
currentRestaurantCustomAttributes: any;
|
|
16
17
|
}
|
|
17
18
|
interface ITaxSetting {
|
|
18
19
|
systemCode: string;
|
|
@@ -1449,6 +1450,29 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1449
1450
|
percentage: number;
|
|
1450
1451
|
}>, "many">>>;
|
|
1451
1452
|
usePriceTiers: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1453
|
+
priceTierRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1454
|
+
priceTier: z.ZodString;
|
|
1455
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1456
|
+
}, "strip", z.ZodTypeAny, {
|
|
1457
|
+
restaurantAttributes?: any;
|
|
1458
|
+
priceTier: string;
|
|
1459
|
+
}, {
|
|
1460
|
+
restaurantAttributes?: any;
|
|
1461
|
+
priceTier: string;
|
|
1462
|
+
}>, "many">>>;
|
|
1463
|
+
linkItemRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1464
|
+
orderFrom: z.ZodEnum<["ALL", "POS_ONLY", "NONE"]>;
|
|
1465
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1466
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1467
|
+
}, "strip", z.ZodTypeAny, {
|
|
1468
|
+
restaurantAttributes?: any;
|
|
1469
|
+
itemAttributes?: any;
|
|
1470
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1471
|
+
}, {
|
|
1472
|
+
restaurantAttributes?: any;
|
|
1473
|
+
itemAttributes?: any;
|
|
1474
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1475
|
+
}>, "many">>>;
|
|
1452
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1453
1477
|
inclusiveTaxes?: {
|
|
1454
1478
|
inclusive: boolean;
|
|
@@ -1517,6 +1541,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1517
1541
|
percentage: number;
|
|
1518
1542
|
}[] | null | undefined;
|
|
1519
1543
|
usePriceTiers?: string[] | null | undefined;
|
|
1544
|
+
priceTierRules?: {
|
|
1545
|
+
restaurantAttributes?: any;
|
|
1546
|
+
priceTier: string;
|
|
1547
|
+
}[] | null | undefined;
|
|
1548
|
+
linkItemRules?: {
|
|
1549
|
+
restaurantAttributes?: any;
|
|
1550
|
+
itemAttributes?: any;
|
|
1551
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1552
|
+
}[] | null | undefined;
|
|
1520
1553
|
name: string;
|
|
1521
1554
|
_id: string;
|
|
1522
1555
|
override: {
|
|
@@ -1728,6 +1761,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1728
1761
|
percentage: number;
|
|
1729
1762
|
}[] | null | undefined;
|
|
1730
1763
|
usePriceTiers?: string[] | null | undefined;
|
|
1764
|
+
priceTierRules?: {
|
|
1765
|
+
restaurantAttributes?: any;
|
|
1766
|
+
priceTier: string;
|
|
1767
|
+
}[] | null | undefined;
|
|
1768
|
+
linkItemRules?: {
|
|
1769
|
+
restaurantAttributes?: any;
|
|
1770
|
+
itemAttributes?: any;
|
|
1771
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1772
|
+
}[] | null | undefined;
|
|
1731
1773
|
name: string;
|
|
1732
1774
|
_id: string;
|
|
1733
1775
|
override: {
|
|
@@ -5020,6 +5062,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5020
5062
|
percentage: number;
|
|
5021
5063
|
}[] | null | undefined;
|
|
5022
5064
|
usePriceTiers?: string[] | null | undefined;
|
|
5065
|
+
priceTierRules?: {
|
|
5066
|
+
restaurantAttributes?: any;
|
|
5067
|
+
priceTier: string;
|
|
5068
|
+
}[] | null | undefined;
|
|
5069
|
+
linkItemRules?: {
|
|
5070
|
+
restaurantAttributes?: any;
|
|
5071
|
+
itemAttributes?: any;
|
|
5072
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5073
|
+
}[] | null | undefined;
|
|
5023
5074
|
name: string;
|
|
5024
5075
|
_id: string;
|
|
5025
5076
|
override: {
|
|
@@ -5694,6 +5745,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5694
5745
|
percentage: number;
|
|
5695
5746
|
}[] | null | undefined;
|
|
5696
5747
|
usePriceTiers?: string[] | null | undefined;
|
|
5748
|
+
priceTierRules?: {
|
|
5749
|
+
restaurantAttributes?: any;
|
|
5750
|
+
priceTier: string;
|
|
5751
|
+
}[] | null | undefined;
|
|
5752
|
+
linkItemRules?: {
|
|
5753
|
+
restaurantAttributes?: any;
|
|
5754
|
+
itemAttributes?: any;
|
|
5755
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5756
|
+
}[] | null | undefined;
|
|
5697
5757
|
name: string;
|
|
5698
5758
|
_id: string;
|
|
5699
5759
|
override: {
|
|
@@ -6439,6 +6499,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6439
6499
|
percentage: number;
|
|
6440
6500
|
}[] | null | undefined;
|
|
6441
6501
|
usePriceTiers?: string[] | null | undefined;
|
|
6502
|
+
priceTierRules?: {
|
|
6503
|
+
restaurantAttributes?: any;
|
|
6504
|
+
priceTier: string;
|
|
6505
|
+
}[] | null | undefined;
|
|
6506
|
+
linkItemRules?: {
|
|
6507
|
+
restaurantAttributes?: any;
|
|
6508
|
+
itemAttributes?: any;
|
|
6509
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
6510
|
+
}[] | null | undefined;
|
|
6442
6511
|
name: string;
|
|
6443
6512
|
_id: string;
|
|
6444
6513
|
override: {
|
|
@@ -7134,6 +7203,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7134
7203
|
percentage: number;
|
|
7135
7204
|
}[] | null | undefined;
|
|
7136
7205
|
usePriceTiers?: string[] | null | undefined;
|
|
7206
|
+
priceTierRules?: {
|
|
7207
|
+
restaurantAttributes?: any;
|
|
7208
|
+
priceTier: string;
|
|
7209
|
+
}[] | null | undefined;
|
|
7210
|
+
linkItemRules?: {
|
|
7211
|
+
restaurantAttributes?: any;
|
|
7212
|
+
itemAttributes?: any;
|
|
7213
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
7214
|
+
}[] | null | undefined;
|
|
7137
7215
|
name: string;
|
|
7138
7216
|
_id: string;
|
|
7139
7217
|
override: {
|
|
@@ -7428,6 +7506,7 @@ interface MenuStoreType {
|
|
|
7428
7506
|
selectCatalog: (id: string | null) => void;
|
|
7429
7507
|
selectScheduler: (id: string | null) => void;
|
|
7430
7508
|
selectCategory: (id: (string | null)[] | null) => void;
|
|
7509
|
+
setRestaurantCustomAttributes: (attr?: any) => void;
|
|
7431
7510
|
updateMenu: (data: UpdateMenuModuleRequest | UpdateMenuModuleRequest[], performValidate?: boolean) => Promise<FdtoUpdateMenuRes | void>;
|
|
7432
7511
|
updateMenuSetting: (data: UpdateMenuSettingReq) => Promise<MenuV4Doc>;
|
|
7433
7512
|
computeMergedMenu: () => Promise<FdoMenuV4>;
|
|
@@ -7446,5 +7525,5 @@ interface MenuStoreType {
|
|
|
7446
7525
|
redoHistory: () => void;
|
|
7447
7526
|
clearHistory: () => void;
|
|
7448
7527
|
}
|
|
7449
|
-
export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "items" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "categories" | "subcategories" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "clearHistory">>;
|
|
7528
|
+
export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "items" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "categories" | "subcategories" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "setRestaurantCustomAttributes" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "clearHistory">>;
|
|
7450
7529
|
export {};
|