@feedmepos/mf-menu 0.32.83-dev.1 → 0.32.83-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-BYdCC3TK.js → App-CJtpyTsA.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CsMCfu1s.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C01hHwqy.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CWH86f_J.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-4xmgAa5D.js} +3 -3
- package/dist/{Catalog-BPRRb4QE.js → Catalog-CTUtAc6s.js} +6 -6
- package/dist/{CatalogBinding-B2vhvUHz.js → CatalogBinding-DQf2xYH8.js} +13 -13
- package/dist/{Category-zKR2QaeE.js → Category-DP6UnoXf.js} +4 -4
- package/dist/{Category-DeeXKn4P.js → Category-Q9BCIS4J.js} +4 -4
- package/dist/{CookingGuide-Wm39wm7Q.js → CookingGuide-GbojUPLO.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CAHNxiEJ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CBRNh-O-.js} +1 -1
- package/dist/{Group-BNcZYOU4.js → Group-CJqQLteU.js} +3 -3
- package/dist/{Group-E2HYqd9f.js → Group-Dsc8PGdX.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DPk_cgPi.js → Group.vue_vue_type_script_setup_true_lang-FWqqHQ20.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B0X5brpK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BcQa7V0d.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DxowkX0c.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Cb9tTsPG.js} +7 -7
- package/dist/{Ingredient-DcJrO6OE.js → Ingredient-DWEB328H.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DfrJBP75.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dab9-l-S.js} +2 -2
- package/dist/{LinkProductSideSheet-DTzuEcF5.js → LinkProductSideSheet-BluWowSV.js} +4 -4
- package/dist/{MenuSetting-DICpAfNK.js → MenuSetting-C_ZsIERs.js} +7 -7
- package/dist/{OrderPacing-pD1pgJG5.js → OrderPacing-BZhIFo4P.js} +5 -5
- package/dist/{PrintRoute-BAY_gpJS.js → PrintRoute-C5ZJs7tz.js} +5 -5
- package/dist/{Product-B_YsLenC.js → Product-rESWzhq6.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DEsNttgJ.js → Product.vue_vue_type_script_setup_true_lang-C-zJ0P53.js} +14 -14
- package/dist/{ProductInternalTools-CfA-6XtS.js → ProductInternalTools-tkLzH5hJ.js} +6 -6
- package/dist/{Products-arAA8I2u.js → Products-DxpE9Hhz.js} +49 -49
- package/dist/Publish-3z09Tj11.js +1608 -0
- package/dist/{Recipe-DRcrzXhA.js → Recipe-Dqtj2Ye9.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CAVrU6RI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CST9Gy_R.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DYnnO3SQ.js → RuleView.vue_vue_type_script_setup_true_lang-_MGk1b10.js} +211 -211
- package/dist/{Scheduler-oxLqE74K.js → Scheduler-BgkBxTeC.js} +3 -3
- package/dist/{ServingSequence-DVkB7hDy.js → ServingSequence-D92cps_j.js} +3 -3
- package/dist/{Setting-DOsTp22X.js → Setting-JUioq6ZT.js} +5 -5
- package/dist/{Subcategory-BaclYZ5p.js → Subcategory-vjc6gzqd.js} +6 -6
- package/dist/{Takeaway-D2jvmsuu.js → Takeaway-BXMBCjFg.js} +1 -1
- package/dist/Takeaway-DSOy02ma.js +64 -0
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-539rI3Ek.js +331 -0
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-M3Oh6Dr6.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C37PZJuF.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DjswjUjQ.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BjsExR0h.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dcd1ek03.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dy-eMWb4.js} +602 -601
- package/dist/{Unit-Dx8HMvAE.js → Unit-_Eoj6ONR.js} +2 -2
- package/dist/{Variant-Dx6EWp55.js → Variant-D1iCI3U5.js} +3 -3
- package/dist/{_id_-DIsWlajV.js → _id_-BUrZucNq.js} +10 -10
- package/dist/{app-curMXZbh.js → app-B8GiVUrR.js} +1 -1
- package/dist/{app-BdtPzkjA.js → app-BJA5-4eB.js} +392 -392
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/feature/TakeAwayManager/Form.vue.d.ts +3 -3
- package/dist/apps/mf-menu/src/helper/takeawayOverride.d.ts +12 -0
- package/dist/apps/mf-menu/src/manager/menu/takeaway.d.ts +14 -0
- package/dist/apps/mf-menu/src/views/Publish/publishError.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DsxqMxwe.js → linked-status-Bqmqi1JL.js} +2 -2
- package/dist/assets/{menu-export-DcW52Lu3.js → menu-export-CfrN-LuH.js} +2 -2
- package/dist/assets/{override-menu-DPPsvKsd.js → override-menu-Cy7YaK_1.js} +2 -2
- package/dist/assets/{validate-menu-Byl7hJI2.js → validate-menu-BPtUlI3H.js} +2 -2
- package/dist/{catalog-D4uhTN3P.js → catalog-B3YnChlG.js} +1 -1
- package/dist/{catalogSetting-_zy50XFm.js → catalogSetting-BeiJ3_Fx.js} +1 -1
- package/dist/{currency-8AD3AdtT.js → currency-BKZrZwjw.js} +1 -1
- package/dist/{dayjs.min-CSadJcjJ.js → dayjs.min-WGRuZAMu.js} +2 -2
- package/dist/{discardConfirm-egY5vwUU.js → discardConfirm-CuLDiWC_.js} +1 -1
- package/dist/{index-BPGZgTH-.js → index-BYh87zkc.js} +5 -5
- package/dist/{index-B0hyUFIc.js → index-C36SngVC.js} +1 -1
- package/dist/{index-BpoYrrVu.js → index-CUzEne2b.js} +137 -131
- package/dist/{index.vue_vue_type_script_setup_true_lang-qUahjdoy.js → index.vue_vue_type_script_setup_true_lang-BJZykcBx.js} +10600 -10590
- package/dist/{item-CGqK7sn4.js → item-BQYLe0DU.js} +1289 -1288
- package/dist/{jszip.min-Qb_fhEy6.js → jszip.min-kAXqpQrc.js} +384 -384
- package/dist/{linkProducts-DwBnfj3L.js → linkProducts-B3BYn9Cw.js} +4 -4
- package/dist/{memberPricing-CcXhcbV9.js → memberPricing-DzPTdmS5.js} +1 -1
- package/dist/{menu-Cmz90lOu.js → menu-DUOE-Q12.js} +1 -1
- package/dist/{menuV2-yXOZpuda.js → menuV2-BO3LtBSw.js} +48 -48
- package/dist/{order_pacing-Bp1Hpcp2.js → order_pacing-DqVag6W3.js} +5 -5
- package/dist/{priceTier-B14Zw5XH.js → priceTier-BFauU3rd.js} +1 -1
- package/dist/{rules-COZi7aRn.js → rules-B596A4CJ.js} +3 -3
- package/dist/{scheduler-eoUNmYqB.js → scheduler-KT6kOtgK.js} +5 -5
- package/dist/{toExcel-BkhEG-vD.js → toExcel-CgXzLIId.js} +2 -2
- package/dist/{unit-Bmje7das.js → unit-BJeua1T7.js} +3 -3
- package/package.json +2 -2
- package/dist/Publish-BORONVKG.js +0 -1582
- package/dist/Takeaway-BbcmF6t2.js +0 -64
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-BpswLmDw.js +0 -324
package/dist/app.js
CHANGED
|
@@ -1800,6 +1800,11 @@ export declare const i18nMessages: {
|
|
|
1800
1800
|
yearFormat: string;
|
|
1801
1801
|
};
|
|
1802
1802
|
};
|
|
1803
|
+
errors: {
|
|
1804
|
+
catalog_in_use_by_integration: string;
|
|
1805
|
+
catalogs_in_use_by_integration: string;
|
|
1806
|
+
catalog_in_use_by_integration_unknown: string;
|
|
1807
|
+
};
|
|
1803
1808
|
};
|
|
1804
1809
|
tax_setting: {
|
|
1805
1810
|
title: string;
|
|
@@ -3937,6 +3942,11 @@ export declare const i18nMessages: {
|
|
|
3937
3942
|
yearFormat: string;
|
|
3938
3943
|
};
|
|
3939
3944
|
};
|
|
3945
|
+
errors: {
|
|
3946
|
+
catalog_in_use_by_integration: string;
|
|
3947
|
+
catalogs_in_use_by_integration: string;
|
|
3948
|
+
catalog_in_use_by_integration_unknown: string;
|
|
3949
|
+
};
|
|
3940
3950
|
};
|
|
3941
3951
|
tax_setting: {
|
|
3942
3952
|
title: string;
|
|
@@ -6074,6 +6084,11 @@ export declare const i18nMessages: {
|
|
|
6074
6084
|
yearFormat: string;
|
|
6075
6085
|
};
|
|
6076
6086
|
};
|
|
6087
|
+
errors: {
|
|
6088
|
+
catalog_in_use_by_integration: string;
|
|
6089
|
+
catalogs_in_use_by_integration: string;
|
|
6090
|
+
catalog_in_use_by_integration_unknown: string;
|
|
6091
|
+
};
|
|
6077
6092
|
};
|
|
6078
6093
|
tax_setting: {
|
|
6079
6094
|
title: string;
|
|
@@ -8210,6 +8225,11 @@ export declare const i18nMessages: {
|
|
|
8210
8225
|
yearFormat: string;
|
|
8211
8226
|
};
|
|
8212
8227
|
};
|
|
8228
|
+
errors: {
|
|
8229
|
+
catalog_in_use_by_integration: string;
|
|
8230
|
+
catalogs_in_use_by_integration: string;
|
|
8231
|
+
catalog_in_use_by_integration_unknown: string;
|
|
8232
|
+
};
|
|
8213
8233
|
};
|
|
8214
8234
|
tax_setting: {
|
|
8215
8235
|
title: string;
|
|
@@ -10335,6 +10355,11 @@ export declare const i18nMessages: {
|
|
|
10335
10355
|
yearFormat: string;
|
|
10336
10356
|
};
|
|
10337
10357
|
};
|
|
10358
|
+
errors: {
|
|
10359
|
+
catalog_in_use_by_integration: string;
|
|
10360
|
+
catalogs_in_use_by_integration: string;
|
|
10361
|
+
catalog_in_use_by_integration_unknown: string;
|
|
10362
|
+
};
|
|
10338
10363
|
};
|
|
10339
10364
|
tax_setting: {
|
|
10340
10365
|
title: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Takeaway } from "@/manager/menu/takeaway";
|
|
1
|
+
import type { Takeaway, TakeawayFormValue } from "@/manager/menu/takeaway";
|
|
2
2
|
interface Props {
|
|
3
3
|
action: "add" | "update";
|
|
4
4
|
initialValue?: Partial<Takeaway>;
|
|
@@ -10,9 +10,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
10
10
|
trigger: (event?: any) => void;
|
|
11
11
|
show: import("vue").Ref<boolean, boolean>;
|
|
12
12
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"update:takeaway": (takeaway:
|
|
13
|
+
"update:takeaway": (takeaway: TakeawayFormValue) => void;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
15
|
-
"onUpdate:takeaway"?: ((takeaway:
|
|
15
|
+
"onUpdate:takeaway"?: ((takeaway: TakeawayFormValue) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
17
17
|
default?(_: {
|
|
18
18
|
trigger: (event?: any) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FdoDinero } from "@feedmepos/core/entity";
|
|
2
|
+
import type { FdoMenuV4Catalog } from "@feedmepos/entity";
|
|
3
|
+
/**
|
|
4
|
+
* Sets a catalog's own price for a takeaway.
|
|
5
|
+
*
|
|
6
|
+
* An empty price (`null`/`undefined`) removes the catalog entry, so the catalog inherits the
|
|
7
|
+
* takeaway's base price. A zero amount is kept: it is a real override meaning "no takeaway
|
|
8
|
+
* charge in this catalog", and the delivery-platform sync pushes it as the container price.
|
|
9
|
+
* Never pass a placeholder zero here for "not set" — ITS-002226 shipped RM0 takeaway to
|
|
10
|
+
* GrabFood, ShopeeFood and foodpanda for ten days that way.
|
|
11
|
+
*/
|
|
12
|
+
export declare function setCatalogTakeawayPrice(catalog: FdoMenuV4Catalog, takeawayId: string, price: FdoDinero | null | undefined): FdoMenuV4Catalog;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
+
import type { FdoDinero } from "@feedmepos/core/entity";
|
|
1
2
|
import { type FdoItemOverriderV4, type FdoMenuV4Takeaway } from "@feedmepos/entity";
|
|
2
3
|
import type { TakeawayLink } from "@feedmepos/menu/manager";
|
|
3
4
|
export type Takeaway = FdoMenuV4Takeaway & {
|
|
4
5
|
usedBy: FdoItemOverriderV4[];
|
|
5
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* What the takeaway form emits. `price` is `null` only when the form was given a `fallback`
|
|
9
|
+
* (editing inside a catalog that has no price of its own) and the field was left empty,
|
|
10
|
+
* meaning "inherit the takeaway's base price".
|
|
11
|
+
*/
|
|
12
|
+
export type TakeawayFormValue = Omit<Takeaway, "price"> & {
|
|
13
|
+
price: FdoDinero | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Narrows a value from a takeaway form opened without a `fallback` (creating or editing the
|
|
17
|
+
* takeaway itself), where the price field is not nullable and so is always set.
|
|
18
|
+
*/
|
|
19
|
+
export declare function withRequiredPrice(value: TakeawayFormValue): Takeaway;
|
|
6
20
|
export declare function link(usedBy: FdoItemOverriderV4[]): TakeawayLink[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* menu-service refuses a single-restaurant publish (PUT /restaurants) with this
|
|
3
|
+
* code when the new catalog selection leaves out a catalog one of the outlet's
|
|
4
|
+
* delivery integrations (ShopeeFood, GrabFood, ...) still uses. Its message is
|
|
5
|
+
* `{"catalogIds":["<id>", ...]}` — the ids only, no prose.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CATALOG_IN_USE_BY_INTEGRATION = "CATALOG_IN_USE_BY_INTEGRATION";
|
|
8
|
+
type Translate = (key: string, params?: Record<string, unknown>) => string;
|
|
9
|
+
interface NamedCatalog {
|
|
10
|
+
_id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The message to show for a failed single-restaurant publish. The integration
|
|
15
|
+
* refusal is translated and names each catalog the way the merchant knows it
|
|
16
|
+
* (ITS-001994: the raw id body told them nothing); every other failure keeps
|
|
17
|
+
* the message the transport gave, as before.
|
|
18
|
+
*/
|
|
19
|
+
export declare function describePublishError(error: unknown, catalogs: readonly NamedCatalog[], t: Translate): string;
|
|
20
|
+
export {};
|