@feedmepos/mf-menu 0.32.84 → 0.32.85-dev.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-DQYGVwqw.js → App-BedzAbQH.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-By550ll2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BgYPhGfV.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C9RL7B4X.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DGp1cgb5.js} +3 -3
- package/dist/{Catalog-SipvJmOi.js → Catalog-Cl3ukPUb.js} +6 -6
- package/dist/{CatalogBinding-DxJFf3hZ.js → CatalogBinding-Cw1QEQXM.js} +3 -3
- package/dist/{Category-Cvnddg_P.js → Category-C2wekT7O.js} +4 -4
- package/dist/{Category-eLeO5RmT.js → Category-CyX6gSIp.js} +4 -4
- package/dist/{CookingGuide-Dwy7sJ7L.js → CookingGuide-BTlMNdO1.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-2G8bjM0G.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-OPXY-Rh8.js} +1 -1
- package/dist/{Group-BHlqxHJa.js → Group-BBkF46Oc.js} +3 -3
- package/dist/{Group-Blprrrqp.js → Group-DpnCTVjt.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-tVdhx2MC.js → Group.vue_vue_type_script_setup_true_lang-vsIoX24Q.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CLTOwiqJ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BwKIUXuX.js} +6 -6
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-D9CnWzhf.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BUAHy9Ry.js} +212 -212
- package/dist/{Ingredient-CRDTN_Xq.js → Ingredient-b7q0SBMA.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-RgpcLcfL.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BVJj0nWF.js} +2 -2
- package/dist/{LinkProductSideSheet-t3GdVkkM.js → LinkProductSideSheet-xGQx5koN.js} +4 -4
- package/dist/{MenuSetting-CeHAYZIi.js → MenuSetting-BSHQnVEJ.js} +7 -7
- package/dist/{OrderPacing-DNj1_lES.js → OrderPacing-DLCxeBxO.js} +5 -5
- package/dist/{PrintRoute-BJl3KimH.js → PrintRoute-D-yUxg9y.js} +5 -5
- package/dist/{Product-CyZoxce5.js → Product-kNFCtiVJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-xteY_0JW.js → Product.vue_vue_type_script_setup_true_lang-B6MdggtX.js} +14 -14
- package/dist/{ProductInternalTools-CzBTkNnO.js → ProductInternalTools-CDpltb_0.js} +7 -7
- package/dist/{Products-CGgaDz0x.js → Products-DY1_X-q1.js} +32 -32
- package/dist/{Publish-BGsOETCG.js → Publish-ejYg6T33.js} +4 -4
- package/dist/{Recipe-Bkz-2WLW.js → Recipe-BXT9Mg0c.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-1bgL6T7Z.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DcAif3UF.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DKPBnekp.js → RuleView.vue_vue_type_script_setup_true_lang-DDj-YQhq.js} +704 -704
- package/dist/{Scheduler-DfVF2O45.js → Scheduler-PEHmhfcg.js} +3 -3
- package/dist/{ServingSequence-C8h-r1rS.js → ServingSequence-B9ZSXQIs.js} +3 -3
- package/dist/{Setting-DeDTKNG9.js → Setting-BR9LUT_a.js} +5 -5
- package/dist/{Subcategory-DVXY-Dc9.js → Subcategory--z7tJORq.js} +6 -6
- package/dist/{Takeaway-Gw4FjoA7.js → Takeaway-CQd9LoEJ.js} +1 -1
- package/dist/{Takeaway-UvvKWAyD.js → Takeaway-CxvWf2Zd.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-w0UeCL3D.js → Takeaway.vue_vue_type_script_setup_true_lang-BghSwhDH.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cv7w6gYb.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-iEPjeWq6.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-C6Cp-fU6.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DD71NZmp.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-iaxM178x.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-q1_HSMDw.js} +17 -17
- package/dist/{Unit-DX3fO6F6.js → Unit-BUsWmTw_.js} +2 -2
- package/dist/{Variant-Bi18iF8B.js → Variant--NVKPiul.js} +3 -3
- package/dist/{_id_-Cd_4U6pd.js → _id_-CUcDyBPe.js} +10 -10
- package/dist/{app-C2JspNB6.js → app-DpEsb92c.js} +116 -116
- package/dist/{app-CTLoSpZF.js → app-U8xTv0Fv.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/unavailableOptions.d.ts +19 -0
- package/dist/apps/mf-menu/src/helper/string.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Bc6oKGN7.js → linked-status-DmweNtBY.js} +2 -2
- package/dist/assets/{menu-export-B083R0x2.js → menu-export-BXLg19Lp.js} +2 -2
- package/dist/assets/{override-menu-CMbBDi39.js → override-menu-B00JBB87.js} +2 -2
- package/dist/assets/{validate-menu-4cf4mMlP.js → validate-menu-QlDNxwUZ.js} +12 -12
- package/dist/{catalog-Bh1Fuirs.js → catalog-BEPBwk8r.js} +1 -1
- package/dist/{catalogSetting-D52y96em.js → catalogSetting-wBGiKMBH.js} +1 -1
- package/dist/{currency-B8nwmKHp.js → currency-BPvwQjs4.js} +1 -1
- package/dist/{dayjs.min-D9nrsB-v.js → dayjs.min-Cimo-MlD.js} +2 -2
- package/dist/{discardConfirm-CuPIlVDv.js → discardConfirm-D0ksu9zI.js} +1 -1
- package/dist/{index-eNqjLjgW.js → index-BmK66rJK.js} +7 -7
- package/dist/{index-C2oCP5Yy.js → index-CR6GQ-Tu.js} +1 -1
- package/dist/{index-DEYN7phN.js → index-Dsm_Lxsb.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-BMh4uaSK.js → index.vue_vue_type_script_setup_true_lang-06cI6HhR.js} +452 -452
- package/dist/{item-L4ip2ikT.js → item-Be_Ynoxg.js} +4537 -4476
- package/dist/{jszip.min-DGhJqVaW.js → jszip.min-l8nHPUj6.js} +3 -3
- package/dist/{linkProducts-DzezeBIt.js → linkProducts-D8DmD9eC.js} +4 -4
- package/dist/{memberPricing-COizG9lb.js → memberPricing-D90ig1N5.js} +1 -1
- package/dist/{menu-BaTAUzXN.js → menu-DUzeC2H4.js} +1 -1
- package/dist/{menuV2-Bnf7F2oE.js → menuV2-BH9G9z0-.js} +66 -66
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-DCfDFy7Z.js → order_pacing-D9MGjUiy.js} +5 -5
- package/dist/{priceTier-oaQlHY3a.js → priceTier-CRWRetDB.js} +1 -1
- package/dist/{rules-CtgKAyt5.js → rules-BC0gmYTk.js} +3 -3
- package/dist/{scheduler--koGNOyt.js → scheduler-C5VjmtJ1.js} +5 -5
- package/dist/string-1k5Ir2VV.js +5 -0
- package/dist/{toExcel-CU27GHuS.js → toExcel-dS7C3NPe.js} +2 -2
- package/dist/{unit-PI7Buwy-.js → unit-PFyTSXk4.js} +3 -3
- package/package.json +1 -1
- package/dist/string-DpfFixWH.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as r } from "pinia";
|
|
2
|
-
import { L as a, M as s, N as l } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { L as a, M as s, N as l } from "./index.vue_vue_type_script_setup_true_lang-06cI6HhR.js";
|
|
3
3
|
const u = {
|
|
4
4
|
async read() {
|
|
5
5
|
return a(await s().get("/public-setting"));
|
package/dist/app.js
CHANGED
|
@@ -440,6 +440,8 @@ export declare const i18nMessages: {
|
|
|
440
440
|
title: string;
|
|
441
441
|
subtitle: string;
|
|
442
442
|
link_products: string;
|
|
443
|
+
unlinked_in_catalog: string;
|
|
444
|
+
not_for_sale_in_catalog: string;
|
|
443
445
|
add_option: string;
|
|
444
446
|
product_title: string;
|
|
445
447
|
product_title_required: string;
|
|
@@ -1065,6 +1067,7 @@ export declare const i18nMessages: {
|
|
|
1065
1067
|
placeholder: string;
|
|
1066
1068
|
add_new: string;
|
|
1067
1069
|
add_first: string;
|
|
1070
|
+
no_results: string;
|
|
1068
1071
|
options: {
|
|
1069
1072
|
product: {
|
|
1070
1073
|
label: string;
|
|
@@ -2583,6 +2586,8 @@ export declare const i18nMessages: {
|
|
|
2583
2586
|
title: string;
|
|
2584
2587
|
subtitle: string;
|
|
2585
2588
|
link_products: string;
|
|
2589
|
+
unlinked_in_catalog: string;
|
|
2590
|
+
not_for_sale_in_catalog: string;
|
|
2586
2591
|
add_option: string;
|
|
2587
2592
|
product_title: string;
|
|
2588
2593
|
product_title_required: string;
|
|
@@ -3208,6 +3213,7 @@ export declare const i18nMessages: {
|
|
|
3208
3213
|
placeholder: string;
|
|
3209
3214
|
add_new: string;
|
|
3210
3215
|
add_first: string;
|
|
3216
|
+
no_results: string;
|
|
3211
3217
|
options: {
|
|
3212
3218
|
product: {
|
|
3213
3219
|
label: string;
|
|
@@ -4724,6 +4730,8 @@ export declare const i18nMessages: {
|
|
|
4724
4730
|
title: string;
|
|
4725
4731
|
subtitle: string;
|
|
4726
4732
|
link_products: string;
|
|
4733
|
+
unlinked_in_catalog: string;
|
|
4734
|
+
not_for_sale_in_catalog: string;
|
|
4727
4735
|
add_option: string;
|
|
4728
4736
|
product_title: string;
|
|
4729
4737
|
product_title_required: string;
|
|
@@ -5349,6 +5357,7 @@ export declare const i18nMessages: {
|
|
|
5349
5357
|
placeholder: string;
|
|
5350
5358
|
add_new: string;
|
|
5351
5359
|
add_first: string;
|
|
5360
|
+
no_results: string;
|
|
5352
5361
|
options: {
|
|
5353
5362
|
product: {
|
|
5354
5363
|
label: string;
|
|
@@ -7491,6 +7500,7 @@ export declare const i18nMessages: {
|
|
|
7491
7500
|
placeholder: string;
|
|
7492
7501
|
add_new: string;
|
|
7493
7502
|
add_first: string;
|
|
7503
|
+
no_results: string;
|
|
7494
7504
|
options: {
|
|
7495
7505
|
product: {
|
|
7496
7506
|
label: string;
|
|
@@ -9632,6 +9642,7 @@ export declare const i18nMessages: {
|
|
|
9632
9642
|
placeholder: string;
|
|
9633
9643
|
add_new: string;
|
|
9634
9644
|
add_first: string;
|
|
9645
|
+
no_results: string;
|
|
9635
9646
|
options: {
|
|
9636
9647
|
product: {
|
|
9637
9648
|
label: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FdoMenuV4Catalog, type FdoMenuV4Item } from "@feedmepos/entity";
|
|
2
|
+
/**
|
|
3
|
+
* Why a group option is unavailable in a catalog:
|
|
4
|
+
* - NOT_LINKED: the catalog's item override sets the product to NONE, i.e. it was never linked
|
|
5
|
+
* (or was unlinked). Link product fixes it.
|
|
6
|
+
* - NOT_FOR_SALE: the catalog leaves orderFrom alone and the product inherits NONE from the master
|
|
7
|
+
* menu. The product sheet already shows it as linked; only changing its availability fixes it.
|
|
8
|
+
*/
|
|
9
|
+
export type UnavailableOptionReason = "NOT_LINKED" | "NOT_FOR_SALE";
|
|
10
|
+
/**
|
|
11
|
+
* Group options whose product resolves to NONE in the catalog-overridden menu, with the reason.
|
|
12
|
+
* The menu overrider forces such options to NONE and drops their group overrides, so any edit to
|
|
13
|
+
* them is saved but never takes effect.
|
|
14
|
+
*
|
|
15
|
+
* Catalogs that link products through linkItemRules are skipped: there the overridden menu depends
|
|
16
|
+
* on the store attributes picked in the editor (none by default), so NONE says nothing about what a
|
|
17
|
+
* given store will sell.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getUnavailableOptions(optionIds: string[], overriddenItems: Pick<FdoMenuV4Item, "_id" | "orderFrom">[], catalog: Pick<FdoMenuV4Catalog, "override" | "linkItemRules">): Map<string, UnavailableOptionReason>;
|