@feedmepos/mf-menu 0.31.33-beta.1 → 0.31.33-beta.6
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-B4rnpCXN.js → App-Dt6RQiUh.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js} +2 -2
- package/dist/{Catalog-Cd7J8de0.js → Catalog-CFx7t_Nu.js} +79 -79
- package/dist/{Category-p8UUDEiv.js → Category-CPMx86rY.js} +23 -19
- package/dist/{Category-D3WDm9Fe.js → Category-OjK-v--G.js} +5 -5
- package/dist/{CookingGuide-hFtxmtGj.js → CookingGuide-ANnXKBjc.js} +3 -3
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-1OzZ-i.js +113 -0
- package/dist/{Group-Bv0dyi8v.js → Group--DJjkGab.js} +1 -1
- package/dist/{Group-BTrqZgFd.js → Group-K4925_bP.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-36O78xv0.js +684 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIX-gPUO.js +372 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js} +13987 -13378
- package/dist/{Ingredient-BCostN4Y.js → Ingredient-G4Txx6_0.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-HgHBlflo.js} +2 -2
- package/dist/{LinkProductSideSheet-abzVzmo3.js → LinkProductSideSheet-CWNarCEs.js} +1 -1
- package/dist/{MenuSetting-TfAo82-E.js → MenuSetting-Cx-EHG-6.js} +4 -4
- package/dist/{PrintRoute-B43rP5A9.js → PrintRoute-IxHGvGzF.js} +3 -3
- package/dist/{Product-C7cYyDHH.js → Product-D1gqn5J6.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-BCQd-ks4.js +1641 -0
- package/dist/{ProductInternalTools-CkswVuAF.js → ProductInternalTools-GJ2OE5gU.js} +5 -5
- package/dist/Products-DJqgSe-Y.js +270 -0
- package/dist/{Publish-DIKqaH2f.js → Publish-C86rd413.js} +3 -3
- package/dist/{Recipe-_ApT00c_.js → Recipe-BbQKou9p.js} +4 -4
- package/dist/{Scheduler-DWY1kKHO.js → Scheduler-DUeTkyGQ.js} +3 -3
- package/dist/{ServingSequence-Z1S9zOTO.js → ServingSequence-BROo5rC_.js} +3 -3
- package/dist/Setting-D-ueTlwO.js +259 -0
- package/dist/{Subcategory-Lqq6XHz2.js → Subcategory-DVewA8HX.js} +4 -4
- package/dist/{Takeaway-DiGzrarg.js → Takeaway-B4lDGQDh.js} +4 -4
- package/dist/{Takeaway-DGvM9SBP.js → Takeaway-DyPjHuCl.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js → Takeaway.vue_vue_type_script_setup_true_lang-BTDlzYuX.js} +6 -6
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5BAKDRP.js} +642 -642
- package/dist/{Unit-D11rRFAf.js → Unit-CVF0dom4.js} +2 -2
- package/dist/{Variant-LaKYPxDe.js → Variant-DmccAgFU.js} +3 -3
- package/dist/_id_-CWtK62Fy.js +178 -0
- package/dist/{app-C5UXrJGj.js → app-CV_q8OdE.js} +75 -75
- package/dist/{app-Br9mC24D.js → app-ClinzawZ.js} +1 -1
- package/dist/app-DvG3mOom.js +8024 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -1
- package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +12 -0
- 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/TreeEditor/store/menuV2.d.ts +77 -0
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +88 -0
- package/dist/apps/mf-menu/src/helper/{menuImport.d.ts → import-export.d.ts} +204 -3
- 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/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/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-fZD691Js.js +24 -0
- package/dist/assets/override-menu-Cjy1BJuz.js +24 -0
- package/dist/assets/validate-menu-uwysUwDP.js +24 -0
- package/dist/{catalog-BDyG_i9q.js → catalog-Wx88K6iI.js} +1 -1
- package/dist/catalogSetting-DTEHDSAd.js +71 -0
- package/dist/{category-Bi6gpIYU.js → category-BRTw76Vf.js} +1 -1
- package/dist/{currency-DDseyYg1.js → currency-562bPc2l.js} +1 -1
- package/dist/customAttributes-CXzd5ud1.js +33 -0
- package/dist/{dayjs.min-DoQgN0KD.js → dayjs.min-Cnfm8bQm.js} +1 -1
- package/dist/{index-DxrEwDTr.js → index-4hf9vONw.js} +2 -2
- package/dist/{index-C-zLHAG1.js → index-Crs_eZ0i.js} +28 -28
- package/dist/{index-DTUmry92.js → index-DJXrJdeQ.js} +3 -3
- package/dist/{item-DqXzPUy9.js → item-CuIxc9FT.js} +377 -377
- package/dist/{jszip.min-iAC5WNVU.js → jszip.min-C9xLIvo4.js} +245 -245
- package/dist/menu-ILWxqJQe.js +133263 -0
- package/dist/{menu-D6df9rcz.js → menu-Mkzv9c8C.js} +4 -4
- package/dist/{priceTier-C56BYecC.js → priceTier-D4joq_kN.js} +1 -1
- package/dist/{scheduler-DCSpt65t.js → scheduler-DuxWoNVb.js} +3 -3
- package/dist/{subcategory-CydaPy_X.js → subcategory-CLLMagXY.js} +43 -43
- package/dist/{toExcel-Bil8CwJs.js → toExcel-hGfpS_Uo.js} +2 -2
- package/dist/{unit-8DyuBx-X.js → unit-9fycj1fu.js} +1 -1
- package/package.json +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js +0 -7949
- package/dist/Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js +0 -206
- package/dist/Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js +0 -1560
- package/dist/Products-C7BtAjhB.js +0 -659
- package/dist/Setting-Bfuf26Gc.js +0 -258
- package/dist/_id_-Q_Tyhr4U.js +0 -200
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +0 -123
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +0 -32
- package/dist/assets/linked-status-BhGrXd73.js +0 -24
- package/dist/assets/override-menu-CUNDHOWA.js +0 -24
- package/dist/assets/validate-menu-BqOizHsX.js +0 -24
- package/dist/catalogSetting-C33p_dck.js +0 -65
- package/dist/menu-Cir-22ei.js +0 -108039
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
|
+
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
4
|
+
import { u as D } from "./menu-ILWxqJQe.js";
|
|
5
|
+
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
|
+
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
7
|
+
const X = /* @__PURE__ */ S({
|
|
8
|
+
__name: "SchedulerSelector",
|
|
9
|
+
setup(k) {
|
|
10
|
+
const s = D(), { t: n } = V(), l = o({
|
|
11
|
+
get: () => s.state.currentSchedulerId || "",
|
|
12
|
+
set: (e) => s.selectScheduler(e)
|
|
13
|
+
}), _ = o(() => [
|
|
14
|
+
{ label: n("menu.common.labels.summary"), value: "" },
|
|
15
|
+
...s.schedulers.map((e) => ({
|
|
16
|
+
label: e.name,
|
|
17
|
+
value: e._id
|
|
18
|
+
}))
|
|
19
|
+
]), h = o(() => {
|
|
20
|
+
var e;
|
|
21
|
+
return ((e = _.value.find((r) => r.value === l.value)) == null ? void 0 : e.label) || n("menu.common.labels.summary");
|
|
22
|
+
});
|
|
23
|
+
return (e, r) => (t(), v(M, {
|
|
24
|
+
modelValue: l.value,
|
|
25
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
|
|
26
|
+
items: _.value,
|
|
27
|
+
placeholder: c(n)("menu.common.labels.summary"),
|
|
28
|
+
"search-placeholder": c(n)("menu.common.actions.search"),
|
|
29
|
+
title: c(n)("menu.common.labels.scheduler_title", { label: h.value })
|
|
30
|
+
}, {
|
|
31
|
+
append: g(() => [
|
|
32
|
+
B(e.$slots, "append")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 8, ["modelValue", "items", "placeholder", "search-placeholder", "title"]));
|
|
36
|
+
}
|
|
37
|
+
}), L = { class: "flex flex-wrap gap-8" }, N = { class: "py-12 px-16 space-y-12" }, O = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, T = { class: "flex flex-wrap gap-8" }, z = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
40
|
+
}, U = { key: 0 }, q = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "inline-block w-8"
|
|
43
|
+
}, G = { key: 0 }, H = { key: 1 }, Y = /* @__PURE__ */ S({
|
|
44
|
+
__name: "CustomAttributeChip",
|
|
45
|
+
props: {
|
|
46
|
+
customAttributes: {},
|
|
47
|
+
ellipsis: { type: Boolean, default: !0 }
|
|
48
|
+
},
|
|
49
|
+
setup(k) {
|
|
50
|
+
const s = k, { t: n } = V(), l = o(() => Object.values(s.customAttributes || {})), _ = E(), h = o(() => _.breakpoints.value.xs), e = o(() => s.ellipsis ? h.value ? 1 : 2 : 1 / 0), r = o(() => l.value.length <= e.value ? l.value : l.value.slice(0, e.value)), u = A(!0), $ = o(() => {
|
|
51
|
+
if (u.value) {
|
|
52
|
+
const i = r.value.join(", ");
|
|
53
|
+
return i.length > 20 ? i.slice(0, 20) + "..." : i;
|
|
54
|
+
}
|
|
55
|
+
return l.value.join(", ");
|
|
56
|
+
});
|
|
57
|
+
return (j, i) => {
|
|
58
|
+
const w = I("FmTooltip");
|
|
59
|
+
return h.value ? (t(), a(f, { key: 1 }, [
|
|
60
|
+
l.value.length > 0 ? (t(), a("p", z, [
|
|
61
|
+
m("span", null, d(c(n)("menu.product.table.columns.tagging")) + ": ", 1),
|
|
62
|
+
m("span", null, d($.value), 1),
|
|
63
|
+
u.value ? (t(), a("span", q)) : (t(), a("br", U)),
|
|
64
|
+
l.value.length > e.value ? (t(), a("span", {
|
|
65
|
+
key: 2,
|
|
66
|
+
class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
|
|
67
|
+
onClick: i[0] || (i[0] = F((p) => u.value = !u.value, ["stop", "prevent"]))
|
|
68
|
+
}, [
|
|
69
|
+
u.value ? (t(), a("span", G, d(c(n)("menu.product.table.tagging.expand", { count: l.value.length - e.value })), 1)) : (t(), a("span", H, d(c(n)("menu.product.table.tagging.collapse")), 1))
|
|
70
|
+
])) : b("", !0)
|
|
71
|
+
])) : b("", !0)
|
|
72
|
+
], 64)) : (t(), v(w, {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "flex",
|
|
75
|
+
variant: "rich",
|
|
76
|
+
placement: "top",
|
|
77
|
+
"z-index": 50
|
|
78
|
+
}, {
|
|
79
|
+
content: g(() => [
|
|
80
|
+
m("div", N, [
|
|
81
|
+
m("p", O, d(c(n)("menu.product.table.tagging.all")), 1),
|
|
82
|
+
m("div", T, [
|
|
83
|
+
(t(!0), a(f, null, C(Object.entries(s.customAttributes || {}), ([p, x]) => (t(), v(y, {
|
|
84
|
+
key: x,
|
|
85
|
+
label: `${p}: ${x}`,
|
|
86
|
+
variant: "neutral"
|
|
87
|
+
}, null, 8, ["label"]))), 128))
|
|
88
|
+
])
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
default: g(() => [
|
|
92
|
+
m("div", L, [
|
|
93
|
+
(t(!0), a(f, null, C(r.value, (p) => (t(), v(y, {
|
|
94
|
+
key: p,
|
|
95
|
+
label: p,
|
|
96
|
+
variant: "neutral"
|
|
97
|
+
}, null, 8, ["label"]))), 128)),
|
|
98
|
+
l.value.length > e.value ? (t(), v(y, {
|
|
99
|
+
key: 0,
|
|
100
|
+
label: "...",
|
|
101
|
+
variant: "neutral"
|
|
102
|
+
})) : b("", !0)
|
|
103
|
+
])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}));
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
Y as _,
|
|
112
|
+
X as a
|
|
113
|
+
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { A as b } from "./item-
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-36O78xv0.js";
|
|
6
|
+
import { A as b } from "./item-CuIxc9FT.js";
|
|
7
|
+
import { a as h } from "./menu-Mkzv9c8C.js";
|
|
8
8
|
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|