@feedmepos/mf-menu 0.32.7 → 0.32.8-dev
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-6Q1nmlfA.js → App-B5S9byVJ.js} +5457 -4622
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
- package/dist/{Catalog-Bf5JieUH.js → Catalog-CTfF5FmI.js} +52 -52
- package/dist/{Category-BBATgN1o.js → Category-BntCVeoT.js} +57 -57
- package/dist/{Category-BSBZlBHF.js → Category-Z3bphlCX.js} +26 -26
- package/dist/{CookingGuide-BnjSTAL4.js → CookingGuide-CoPo2Alx.js} +127 -127
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BXdLDaBB.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
- package/dist/{Group-Dpbz5j1x.js → Group-B7rZfFlT.js} +3 -3
- package/dist/{Group-BqXtHWr2.js → Group-CblWJOl1.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Bz5hEPov.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3a6eV6cB.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +3127 -3127
- package/dist/{Ingredient-BZfbbI--.js → Ingredient-Bn-jeNeI.js} +46 -46
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DfyUAd9n.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
- package/dist/{LinkProductSideSheet-C-CcvD1Y.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
- package/dist/{MenuSetting-CRCXtk6n.js → MenuSetting-BT5YSMgK.js} +14 -14
- package/dist/{PrintRoute-BqRkve5U.js → PrintRoute-B0j0eqNM.js} +34 -34
- package/dist/{Product-cj-wKww4.js → Product-BOMprFhc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DtCzSk94.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
- package/dist/{ProductInternalTools-B5V7Hs15.js → ProductInternalTools-O5d2jMAH.js} +39 -39
- package/dist/{Products-a0N50IJw.js → Products-BnMrK40x.js} +15 -15
- package/dist/{Publish-CyiUajCw.js → Publish-dTP5mQS3.js} +26 -26
- package/dist/{Recipe-CKIoGrBI.js → Recipe-DnftcZPO.js} +26 -26
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
- package/dist/{Scheduler-CwTdAm-V.js → Scheduler-DRLaQK_V.js} +22 -22
- package/dist/{ServingSequence-BAxm0bx1.js → ServingSequence-CPIyJ7T8.js} +39 -39
- package/dist/{Setting-J9s4VpKm.js → Setting-CLtISC4c.js} +22 -22
- package/dist/{Subcategory-BXJ2H9cr.js → Subcategory-b0bXCYYY.js} +32 -32
- package/dist/{Takeaway-CPPrIbb0.js → Takeaway-CCIKDCoF.js} +12 -12
- package/dist/{Takeaway-Cm9DdUdf.js → Takeaway-h9uUxFJd.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PRAGlbyK.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BQcHroCG.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
- package/dist/{Unit-9pTm3F5W.js → Unit-B0kiwrN6.js} +13 -13
- package/dist/{Variant-qGJvwVW3.js → Variant-CJSk0kTW.js} +18 -18
- package/dist/{_id_-BPgTKleB.js → _id_-108G3lsv.js} +22 -22
- package/dist/{app-BYd7KCR0.js → app-BTn28hDr.js} +1 -1
- package/dist/{app-BoVVV8kG.js → app-CPJH5bgs.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{validate-menu-C55soZke.js → linked-status-Bp5piT25.js} +7 -7
- package/dist/assets/{override-menu-D2ffZ3LE.js → override-menu-D47qVZAi.js} +2 -2
- package/dist/assets/{linked-status-YBCdx1_k.js → validate-menu-YuXYm9iE.js} +7 -7
- package/dist/{catalog-DjMrJdom.js → catalog-CpFTifAS.js} +1 -1
- package/dist/{catalogSetting-DMUZ11RQ.js → catalogSetting-DjGqI2Vf.js} +1 -1
- package/dist/{category-DRr-IdFP.js → category-DaRWiQd8.js} +5 -5
- package/dist/{currency-CAUInXnj.js → currency-DbURufyM.js} +1 -1
- package/dist/{index-CG5i_sE7.js → index-C6AkIinM.js} +1 -1
- package/dist/{index-DOwV5hqi.js → index-D67GKEzf.js} +1 -1
- package/dist/{index-hDyuidIm.js → index-kjRAsH_h.js} +38 -38
- package/dist/{index-By_yIps1.js → index-pJtym1c6.js} +21 -21
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +440 -430
- package/dist/item-2WoPAnNJ.js +6838 -0
- package/dist/{iteration-V9L5Rk-0.js → iteration-BGItxpWj.js} +1 -1
- package/dist/{jszip.min-Danu3otn.js → jszip.min-D8NeBCPG.js} +353 -353
- package/dist/{menu-D1PHF11v.js → menu-DVdMR0zo.js} +1 -1
- package/dist/{menuV2-BfvbnMWo.js → menuV2-CcBdUc80.js} +73 -73
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DszOAydN.js → priceTier-CTfRyTuS.js} +1 -1
- package/dist/{scheduler-BbQrleYX.js → scheduler-DOMDX4d7.js} +20 -20
- package/dist/{subcategory-BnW2z6Vy.js → subcategory-NsslZ1my.js} +6 -6
- package/dist/{toExcel-De8V6KyO.js → toExcel-Bdne-Dw_.js} +2 -2
- package/dist/{unit-BjQ-Hi7b.js → unit-DKyvdauo.js} +29 -29
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BRmrp3_3.js +0 -6038
- package/dist/item-Cq7YkZBk.js +0 -7685
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as
|
|
1
|
+
import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as P, Fragment as z, renderList as U, toDisplayString as E, createBlock as S } from "vue";
|
|
2
2
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as M, useBreakpoints as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as R } from "./app-
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
3
|
+
import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
|
|
4
|
+
import { G as F, u as A, Y as I, P as T, K as j, A as q, a3 as G } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
5
|
+
import { _ as R } from "./app-CPJH5bgs.js";
|
|
6
|
+
import { u as B } from "./menu-DVdMR0zo.js";
|
|
7
|
+
import { u as H } from "./category-DaRWiQd8.js";
|
|
8
|
+
const J = {
|
|
9
9
|
key: 0
|
|
10
|
-
}, H = {
|
|
11
|
-
class: "flex justify-end items-center"
|
|
12
10
|
}, Q = {
|
|
13
|
-
class: "
|
|
11
|
+
class: "flex justify-end items-center"
|
|
14
12
|
}, W = {
|
|
13
|
+
class: "w-[320px]"
|
|
14
|
+
}, X = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "flex-1 flex flex-col min-h-0"
|
|
17
17
|
}, Z = {
|
|
@@ -26,10 +26,10 @@ const G = {
|
|
|
26
26
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
27
27
|
}, ne = /* @__PURE__ */ V({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
|
-
setup(
|
|
30
|
-
const f = M(), y = F(f), h =
|
|
29
|
+
setup(D) {
|
|
30
|
+
const f = M(), y = F(f), h = T(y), d = A(), {
|
|
31
31
|
categories: v
|
|
32
|
-
} =
|
|
32
|
+
} = B(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
34
34
|
const l = ((t = (r = d.currentCatalog) == null ? void 0 : r.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
|
|
35
35
|
var p;
|
|
@@ -39,7 +39,7 @@ const G = {
|
|
|
39
39
|
position: e.id ? ((p = l[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
|
|
40
40
|
};
|
|
41
41
|
});
|
|
42
|
-
return
|
|
42
|
+
return I(o, (e) => e.name);
|
|
43
43
|
}), n = C(""), m = k(() => b.value.filter((l) => l.name.toLowerCase().includes(n.value.toLowerCase()))), {
|
|
44
44
|
t: s
|
|
45
45
|
} = L(), x = C([{
|
|
@@ -61,7 +61,7 @@ const G = {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
64
|
-
async function
|
|
64
|
+
async function K(l) {
|
|
65
65
|
var e;
|
|
66
66
|
const o = d.currentCatalog;
|
|
67
67
|
if (!o)
|
|
@@ -75,8 +75,8 @@ const G = {
|
|
|
75
75
|
_id: c.id
|
|
76
76
|
});
|
|
77
77
|
}), await r({
|
|
78
|
-
module:
|
|
79
|
-
operation:
|
|
78
|
+
module: q.F_MENU_MODULE_V4_KEY.enum.catalog,
|
|
79
|
+
operation: j.F_OPERATION_TYPE.update,
|
|
80
80
|
data: {
|
|
81
81
|
...o,
|
|
82
82
|
override: {
|
|
@@ -86,10 +86,10 @@ const G = {
|
|
|
86
86
|
}
|
|
87
87
|
}, "Category");
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const N = Y(), O = k(() => N.breakpoints.value.xs);
|
|
90
90
|
return (l, o) => {
|
|
91
91
|
const r = w("FmSearch"), t = w("FmTable");
|
|
92
|
-
return
|
|
92
|
+
return O.value ? (u(), g("div", X, [i("div", Z, [_(r, {
|
|
93
93
|
autofocus: "",
|
|
94
94
|
modelValue: n.value,
|
|
95
95
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
|
|
@@ -97,12 +97,12 @@ const G = {
|
|
|
97
97
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
98
98
|
type: a(s)("menu.category.title")
|
|
99
99
|
})
|
|
100
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(
|
|
100
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(z, null, U(m.value, (e) => (u(), g("div", {
|
|
101
101
|
key: e.id || "",
|
|
102
102
|
class: "flex flex-row py-12 px-16"
|
|
103
103
|
}, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
104
104
|
count: e.items.length
|
|
105
|
-
})), 1)])]))), 128))])])) : (u(), g("div",
|
|
105
|
+
})), 1)])]))), 128))])])) : (u(), g("div", J, [i("div", Q, [i("div", W, [_(r, {
|
|
106
106
|
modelValue: n.value,
|
|
107
107
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
|
|
108
108
|
autofocus: "",
|
|
@@ -111,7 +111,7 @@ const G = {
|
|
|
111
111
|
type: a(s)("menu.category.title")
|
|
112
112
|
})
|
|
113
113
|
}, null, 8, ["modelValue", "placeholder"])])]), _(R, null, {
|
|
114
|
-
default:
|
|
114
|
+
default: P(() => [_(t, {
|
|
115
115
|
"column-defs": x.value,
|
|
116
116
|
draggable: a(d).rules.category.overrideSequence,
|
|
117
117
|
"page-size": m.value.length,
|
|
@@ -120,7 +120,7 @@ const G = {
|
|
|
120
120
|
"shrink-at": !1,
|
|
121
121
|
"hide-footer": "",
|
|
122
122
|
"pin-header-row": "",
|
|
123
|
-
onDndChanged:
|
|
123
|
+
onDndChanged: K
|
|
124
124
|
}, null, 8, ["column-defs", "draggable", "page-size", "row-data", "search-value"])]),
|
|
125
125
|
_: 1
|
|
126
126
|
})]));
|
|
@@ -128,15 +128,15 @@ const G = {
|
|
|
128
128
|
}
|
|
129
129
|
}), me = /* @__PURE__ */ V({
|
|
130
130
|
__name: "Category",
|
|
131
|
-
setup(
|
|
132
|
-
const f =
|
|
131
|
+
setup(D) {
|
|
132
|
+
const f = $(), y = M(), h = F(y), d = T(h), v = H({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = L();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|
|
136
136
|
return (s, x) => a(b).length > 0 ? (u(), S(ne, {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "pt-16"
|
|
139
|
-
})) : (u(), S(a(
|
|
139
|
+
})) : (u(), S(a(G), {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "pt-16",
|
|
142
142
|
action: {
|