@feedmepos/mf-menu 0.32.7-dev → 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-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
- package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
- package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
- package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
- package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
- package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
- package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
- package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
- package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
- package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
- package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
- package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
- package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
- package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
- package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
- package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
- package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
- package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
- package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
- package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
- package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
- package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.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-B0552qsN.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-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
- package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
- package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
- package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
- package/dist/{app-BhLVpUSl.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/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
- package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
- package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
- package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
- package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
- package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
- package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
- package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
- package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
- package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
- package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
- package/dist/item-2WoPAnNJ.js +6838 -0
- package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
- package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
- package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
- package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
- package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
- package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
- package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
- package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
- package/dist/item-BtKW0wdj.js +0 -7685
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as x, resolveComponent as p, createBlock as b, openBlock as a, unref as e, withCtx as h, createElementVNode as o, createVNode as r, toDisplayString as f, createCommentVNode as N, createElementBlock as u, Fragment as v, normalizeClass as C, renderList as T } from "vue";
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
2
|
+
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as G } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { G as q, u as A, a3 as H } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
6
6
|
import { _ as J } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as O, U as P } from "./unit-
|
|
7
|
+
import { u as O, U as P } from "./unit-DKyvdauo.js";
|
|
8
8
|
const Q = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "h-[600px]"
|
|
@@ -31,11 +31,11 @@ const Q = {
|
|
|
31
31
|
}, _e = /* @__PURE__ */ L({
|
|
32
32
|
__name: "Unit",
|
|
33
33
|
setup(re) {
|
|
34
|
-
const w =
|
|
35
|
-
|
|
36
|
-
const S =
|
|
34
|
+
const w = K();
|
|
35
|
+
q(w);
|
|
36
|
+
const S = A(), i = O(), {
|
|
37
37
|
t: n
|
|
38
|
-
} =
|
|
38
|
+
} = E(), m = d(() => S.units), _ = d(() => m.value.filter((s) => `${s.name} ${s.abbrev}`.toLowerCase().includes(c.value.toLowerCase()))), c = g(""), U = g([{
|
|
39
39
|
accessorKey: "name",
|
|
40
40
|
header: () => n("menu.unit.columns.name"),
|
|
41
41
|
enableSorting: !1
|
|
@@ -55,7 +55,7 @@ const Q = {
|
|
|
55
55
|
const l = s.row.original;
|
|
56
56
|
return k("div", {
|
|
57
57
|
class: "flex justify-end"
|
|
58
|
-
}, [k(
|
|
58
|
+
}, [k(R.FmButton, {
|
|
59
59
|
icon: "delete",
|
|
60
60
|
textColor: "neutral-gray-400",
|
|
61
61
|
variant: "tertiary",
|
|
@@ -68,7 +68,7 @@ const Q = {
|
|
|
68
68
|
function V(s) {
|
|
69
69
|
i.updateUnit(s);
|
|
70
70
|
}
|
|
71
|
-
const F = d(() => m.value.length), B =
|
|
71
|
+
const F = d(() => m.value.length), B = D(), M = d(() => B.breakpoints.value.xs);
|
|
72
72
|
return (s, l) => {
|
|
73
73
|
const y = p("FmSearch"), $ = p("FmTable"), j = p("fm-button"), z = p("FmSpacer");
|
|
74
74
|
return a(), b(J, {
|
|
@@ -101,7 +101,7 @@ const Q = {
|
|
|
101
101
|
class: C(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
102
102
|
onClick: () => e(i).updateUnit(t)
|
|
103
103
|
}, [o("div", ee, [o("p", te, f(t.name), 1), o("p", ne, f(e(n)("menu.common.labels.symbol")) + ": " + f(t.abbrev), 1)]), r(j, {
|
|
104
|
-
variant: e(
|
|
104
|
+
variant: e(G).Tertiary,
|
|
105
105
|
"prepend-icon": "delete",
|
|
106
106
|
"text-color": "neutral-gray-400",
|
|
107
107
|
onClick: x(() => e(i).deleteUnit(t), ["stop"])
|
|
@@ -125,7 +125,7 @@ const Q = {
|
|
|
125
125
|
"append-heading": h(() => [o("div", oe, [o("div", le, [o("div", ae, [o("p", se, f(F.value), 1)])]), r(z), r(e(P), null, {
|
|
126
126
|
default: h(({
|
|
127
127
|
trigger: t
|
|
128
|
-
}) => [m.value.length > 0 ? (a(), b(
|
|
128
|
+
}) => [m.value.length > 0 ? (a(), b(I, {
|
|
129
129
|
key: 0,
|
|
130
130
|
label: e(n)("menu.unit.add"),
|
|
131
131
|
"prepend-icon": "add",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as U, defineComponent as $, computed as g, onMounted as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as Q } from "./app-
|
|
6
|
-
import {
|
|
7
|
-
import { V as S } from "./index-
|
|
1
|
+
import { getCurrentInstance as U, defineComponent as $, computed as g, onMounted as O, h as z, resolveComponent as k, createBlock as F, openBlock as u, unref as t, withCtx as p, createElementBlock as f, Fragment as V, createElementVNode as r, createVNode as i, isRef as I, normalizeClass as L, renderList as R, toDisplayString as C, withModifiers as w, createCommentVNode as G } from "vue";
|
|
2
|
+
import { useI18n as K } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as Y, useSnackbar as N, FmButtonVariant as M, components as q, useBreakpoints as H } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as J } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { _ as Q } from "./app-CPJH5bgs.js";
|
|
6
|
+
import { G as P, u as D, P as j, K as W, A as X, a3 as Z } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
7
|
+
import { V as S } from "./index-kjRAsH_h.js";
|
|
8
8
|
import { _ as ee } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
9
|
import { u as te } from "./search-BAPEUu1R.js";
|
|
10
10
|
import { defineStore as ne } from "pinia";
|
|
11
11
|
import { c as oe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
12
|
const ae = ne("variant-manager", () => {
|
|
13
|
-
const B =
|
|
14
|
-
|
|
15
|
-
const d = U(), { t: c } =
|
|
13
|
+
const B = Y(), o = N(), _ = P(o), h = j(_);
|
|
14
|
+
D();
|
|
15
|
+
const d = U(), { t: c } = K(), x = (l) => {
|
|
16
16
|
var y, a;
|
|
17
17
|
const { vNode: b } = oe(
|
|
18
18
|
S,
|
|
@@ -82,7 +82,7 @@ const ae = ne("variant-manager", () => {
|
|
|
82
82
|
setup(B) {
|
|
83
83
|
const {
|
|
84
84
|
t: o
|
|
85
|
-
} =
|
|
85
|
+
} = K(), _ = D(), h = j(P(N())), d = ae(), c = g(() => _.variants.map((a) => ({
|
|
86
86
|
...a,
|
|
87
87
|
usedBy: _.items.filter((e) => {
|
|
88
88
|
var s;
|
|
@@ -99,7 +99,7 @@ const ae = ne("variant-manager", () => {
|
|
|
99
99
|
var e;
|
|
100
100
|
return x([a.name, ...((e = a.options) == null ? void 0 : e.map((s) => s.name)) ?? []]);
|
|
101
101
|
}));
|
|
102
|
-
|
|
102
|
+
O(() => _.selectCatalog(null));
|
|
103
103
|
const l = g(() => [{
|
|
104
104
|
accessorKey: "name",
|
|
105
105
|
header: () => o("menu.variant.columns.name"),
|
|
@@ -131,7 +131,7 @@ const ae = ne("variant-manager", () => {
|
|
|
131
131
|
},
|
|
132
132
|
cell: (a) => z("div", {
|
|
133
133
|
class: "w-full flex justify-end items-center"
|
|
134
|
-
}, [z(
|
|
134
|
+
}, [z(q.FmButton, {
|
|
135
135
|
prependIcon: "delete",
|
|
136
136
|
variant: M.Tertiary,
|
|
137
137
|
textColor: "neutral-gray-400",
|
|
@@ -139,9 +139,9 @@ const ae = ne("variant-manager", () => {
|
|
|
139
139
|
e.stopPropagation(), d.deleteVariant(a.row.original);
|
|
140
140
|
}
|
|
141
141
|
})])
|
|
142
|
-
}]), b =
|
|
142
|
+
}]), b = H(), y = g(() => b.breakpoints.value.xs);
|
|
143
143
|
return (a, e) => {
|
|
144
|
-
const s = k("fm-search"),
|
|
144
|
+
const s = k("fm-search"), A = k("fm-table"), E = k("fm-button");
|
|
145
145
|
return u(), F(ee, {
|
|
146
146
|
heading: t(o)("menu.variant.title")
|
|
147
147
|
}, {
|
|
@@ -150,14 +150,14 @@ const ae = ne("variant-manager", () => {
|
|
|
150
150
|
}, {
|
|
151
151
|
default: p(({
|
|
152
152
|
trigger: n
|
|
153
|
-
}) => [i(
|
|
153
|
+
}) => [i(J, {
|
|
154
154
|
class: "ml-auto",
|
|
155
155
|
label: t(o)("menu.variant.add"),
|
|
156
156
|
"prepend-icon": "add",
|
|
157
157
|
onClick: w(n, ["stop"])
|
|
158
158
|
}, null, 8, ["label", "onClick"])]),
|
|
159
159
|
_: 1
|
|
160
|
-
})) :
|
|
160
|
+
})) : G("", !0)]),
|
|
161
161
|
default: p(() => [c.value.length ? (u(), f(V, {
|
|
162
162
|
key: 0
|
|
163
163
|
}, [y.value ? (u(), f(V, {
|
|
@@ -190,7 +190,7 @@ const ae = ne("variant-manager", () => {
|
|
|
190
190
|
type: "variants"
|
|
191
191
|
})
|
|
192
192
|
}, null, 8, ["modelValue", "placeholder"])])]), i(Q, null, {
|
|
193
|
-
default: p(() => [i(
|
|
193
|
+
default: p(() => [i(A, {
|
|
194
194
|
"column-defs": l.value,
|
|
195
195
|
loading: t(h).checkMenuIsLoading(),
|
|
196
196
|
"page-size": v.value.length,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as j } from "./iteration-
|
|
1
|
+
import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as W, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as D } from "vue";
|
|
2
|
+
import { D as j } from "./iteration-BGItxpWj.js";
|
|
3
3
|
import { useRoute as J, useRouter as Q } from "vue-router";
|
|
4
|
-
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
4
|
+
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js";
|
|
5
|
+
import { G as ee, u as te, D as ae, I as oe, P as ne } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
6
6
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as R } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
-
import { L as V } from "./LinkProductSideSheet-
|
|
10
|
-
import { _ as ue } from "./index-
|
|
9
|
+
import { L as V } from "./LinkProductSideSheet-BjcQDT4U.js";
|
|
10
|
+
import { _ as ue } from "./index-D67GKEzf.js";
|
|
11
11
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as me } from "./menu-
|
|
14
|
-
import { m as ce } from "./toExcel-
|
|
15
|
-
import { _ as de, u as pe, c as _e } from "./scheduler-
|
|
16
|
-
import { R as r } from "./app-
|
|
17
|
-
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */
|
|
12
|
+
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js";
|
|
13
|
+
import { a as me } from "./menu-DVdMR0zo.js";
|
|
14
|
+
import { m as ce } from "./toExcel-Bdne-Dw_.js";
|
|
15
|
+
import { _ as de, u as pe, c as _e } from "./scheduler-DOMDX4d7.js";
|
|
16
|
+
import { R as r } from "./app-CPJH5bgs.js";
|
|
17
|
+
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */ F({
|
|
18
18
|
__name: "[id]",
|
|
19
19
|
setup(ke) {
|
|
20
20
|
const E = J(), _ = Q(), k = ee(se()), L = ne(k), a = te(), { t: l } = le(), O = d(() => a.categorizedRawMenuItems), f = d(() => !a.state.currentSchedulerId), G = p();
|
|
@@ -48,7 +48,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
48
48
|
_.replace({
|
|
49
49
|
name: o
|
|
50
50
|
});
|
|
51
|
-
}),
|
|
51
|
+
}), H(() => {
|
|
52
52
|
_.currentRoute.value.name !== r.EDIT_CATALOG && (c.value = _.currentRoute.value.name);
|
|
53
53
|
}), A(
|
|
54
54
|
() => a.state.menu._id,
|
|
@@ -82,11 +82,11 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
82
82
|
linkItemRules: T,
|
|
83
83
|
handleSubmit: y,
|
|
84
84
|
catalogManager: C,
|
|
85
|
-
schedulerManager:
|
|
85
|
+
schedulerManager: I
|
|
86
86
|
} = ie(!1);
|
|
87
87
|
return me().resetOnUnmount(), (o, t) => {
|
|
88
|
-
var
|
|
89
|
-
const Y = m("fm-bottom-sheet"), N = m("fm-button"),
|
|
88
|
+
var w;
|
|
89
|
+
const Y = m("fm-bottom-sheet"), N = m("fm-button"), P = m("router-link"), q = m("fm-tabs"), B = m("router-view");
|
|
90
90
|
return b(), K(W, null, [
|
|
91
91
|
n(de, {
|
|
92
92
|
ref_key: "schedulerDialogRef",
|
|
@@ -122,11 +122,11 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
122
122
|
_: 1
|
|
123
123
|
}, 8, ["modelValue"]),
|
|
124
124
|
n(re, {
|
|
125
|
-
heading: ((
|
|
125
|
+
heading: ((w = e(a).currentCatalog) == null ? void 0 : w.name) ?? "Main",
|
|
126
126
|
class: "flex flex-col max-h-[calc(100vh-56px)] overflow-hidden"
|
|
127
127
|
}, {
|
|
128
128
|
"prepend-heading": u(() => [
|
|
129
|
-
n(
|
|
129
|
+
n(P, {
|
|
130
130
|
to: { name: e(r).CATALOG },
|
|
131
131
|
class: "mr-8",
|
|
132
132
|
title: e(l)("menu.catalog.edit.back")
|
|
@@ -163,8 +163,8 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
163
163
|
_: 1
|
|
164
164
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (b(), D(V, {
|
|
165
165
|
key: 1,
|
|
166
|
-
"categorized-items": e(
|
|
167
|
-
"initial-value": e(
|
|
166
|
+
"categorized-items": e(I).linkableItems.value,
|
|
167
|
+
"initial-value": e(I).currentItems.value,
|
|
168
168
|
"show-variant": !1,
|
|
169
169
|
"menu-items": e(x),
|
|
170
170
|
categories: e(S),
|
|
@@ -183,7 +183,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
183
183
|
])
|
|
184
184
|
]),
|
|
185
185
|
default: u(() => [
|
|
186
|
-
n(
|
|
186
|
+
n(q, {
|
|
187
187
|
modelValue: c.value,
|
|
188
188
|
"onUpdate:modelValue": t[3] || (t[3] = (s) => c.value = s),
|
|
189
189
|
items: h.value,
|
|
@@ -191,7 +191,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
191
191
|
}, null, 8, ["modelValue", "items"]),
|
|
192
192
|
i("div", be, [
|
|
193
193
|
n(ue, { "menu-store": e(a) }, null, 8, ["menu-store"]),
|
|
194
|
-
n(
|
|
194
|
+
n(B)
|
|
195
195
|
])
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as r } from "pinia";
|
|
2
|
-
import { a8 as a, a9 as s, aa as l } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a8 as a, a9 as s, aa as l } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
3
3
|
const u = {
|
|
4
4
|
async read() {
|
|
5
5
|
return a(await s().get("/public-setting"));
|
|
@@ -97,7 +97,7 @@ const i = {
|
|
|
97
97
|
{
|
|
98
98
|
path: "/product",
|
|
99
99
|
name: "$menu-products",
|
|
100
|
-
component: t(e(() => import("./Products
|
|
100
|
+
component: t(e(() => import("./Products-BnMrK40x.js"))),
|
|
101
101
|
meta: {
|
|
102
102
|
...i,
|
|
103
103
|
isNavItem: !0,
|
|
@@ -108,7 +108,7 @@ const i = {
|
|
|
108
108
|
path: "/product-internal-tools",
|
|
109
109
|
name: "$menu-product-internal-tools",
|
|
110
110
|
component: t(
|
|
111
|
-
e(() => import("./ProductInternalTools-
|
|
111
|
+
e(() => import("./ProductInternalTools-O5d2jMAH.js"))
|
|
112
112
|
),
|
|
113
113
|
meta: {
|
|
114
114
|
i18nId: "menu.productInternalTools.title",
|
|
@@ -121,7 +121,7 @@ const i = {
|
|
|
121
121
|
{
|
|
122
122
|
path: "/category",
|
|
123
123
|
name: "$menu-category",
|
|
124
|
-
component: t(e(() => import("./Category-
|
|
124
|
+
component: t(e(() => import("./Category-BntCVeoT.js"))),
|
|
125
125
|
meta: {
|
|
126
126
|
...i,
|
|
127
127
|
isNavItem: !0,
|
|
@@ -131,7 +131,7 @@ const i = {
|
|
|
131
131
|
{
|
|
132
132
|
path: "/subcategory",
|
|
133
133
|
name: "$menu-subcategory",
|
|
134
|
-
component: t(e(() => import("./Subcategory-
|
|
134
|
+
component: t(e(() => import("./Subcategory-b0bXCYYY.js"))),
|
|
135
135
|
meta: {
|
|
136
136
|
...i,
|
|
137
137
|
isNavItem: () => d.value,
|
|
@@ -141,7 +141,7 @@ const i = {
|
|
|
141
141
|
{
|
|
142
142
|
path: "/group",
|
|
143
143
|
name: "$menu-group",
|
|
144
|
-
component: t(e(() => import("./Group-
|
|
144
|
+
component: t(e(() => import("./Group-B7rZfFlT.js"))),
|
|
145
145
|
meta: {
|
|
146
146
|
...i,
|
|
147
147
|
isNavItem: !0,
|
|
@@ -151,7 +151,7 @@ const i = {
|
|
|
151
151
|
{
|
|
152
152
|
path: "/takeaway",
|
|
153
153
|
name: "$menu-takeaway",
|
|
154
|
-
component: t(e(() => import("./Takeaway-
|
|
154
|
+
component: t(e(() => import("./Takeaway-CCIKDCoF.js"))),
|
|
155
155
|
meta: {
|
|
156
156
|
...i,
|
|
157
157
|
isNavItem: !0,
|
|
@@ -161,7 +161,7 @@ const i = {
|
|
|
161
161
|
{
|
|
162
162
|
path: "/scheduler",
|
|
163
163
|
name: "$menu-scheduler",
|
|
164
|
-
component: t(e(() => import("./Scheduler-
|
|
164
|
+
component: t(e(() => import("./Scheduler-DRLaQK_V.js"))),
|
|
165
165
|
meta: {
|
|
166
166
|
...i,
|
|
167
167
|
isNavItem: !0,
|
|
@@ -171,7 +171,7 @@ const i = {
|
|
|
171
171
|
{
|
|
172
172
|
path: "/variant",
|
|
173
173
|
name: "$menu-variant",
|
|
174
|
-
component: t(e(() => import("./Variant-
|
|
174
|
+
component: t(e(() => import("./Variant-CJSk0kTW.js"))),
|
|
175
175
|
meta: {
|
|
176
176
|
...i,
|
|
177
177
|
isNavItem: !0,
|
|
@@ -181,7 +181,7 @@ const i = {
|
|
|
181
181
|
{
|
|
182
182
|
path: "/recipe",
|
|
183
183
|
name: "$menu-recipe",
|
|
184
|
-
component: t(e(() => import("./Recipe-
|
|
184
|
+
component: t(e(() => import("./Recipe-DnftcZPO.js"))),
|
|
185
185
|
meta: {
|
|
186
186
|
...i,
|
|
187
187
|
isNavItem: () => !d.value,
|
|
@@ -191,7 +191,7 @@ const i = {
|
|
|
191
191
|
{
|
|
192
192
|
path: "/ingredient",
|
|
193
193
|
name: "$menu-ingredient",
|
|
194
|
-
component: t(e(() => import("./Ingredient-
|
|
194
|
+
component: t(e(() => import("./Ingredient-Bn-jeNeI.js"))),
|
|
195
195
|
meta: {
|
|
196
196
|
...i,
|
|
197
197
|
isNavItem: () => !d.value,
|
|
@@ -201,7 +201,7 @@ const i = {
|
|
|
201
201
|
{
|
|
202
202
|
path: "/unit",
|
|
203
203
|
name: "$menu-unit",
|
|
204
|
-
component: t(e(() => import("./Unit-
|
|
204
|
+
component: t(e(() => import("./Unit-B0kiwrN6.js"))),
|
|
205
205
|
meta: {
|
|
206
206
|
...i,
|
|
207
207
|
isNavItem: () => !d.value,
|
|
@@ -211,7 +211,7 @@ const i = {
|
|
|
211
211
|
{
|
|
212
212
|
path: "/cooking-guide",
|
|
213
213
|
name: "$menu-cooking-guide",
|
|
214
|
-
component: t(e(() => import("./CookingGuide-
|
|
214
|
+
component: t(e(() => import("./CookingGuide-CoPo2Alx.js"))),
|
|
215
215
|
meta: {
|
|
216
216
|
...i,
|
|
217
217
|
isNavItem: !0,
|
|
@@ -221,7 +221,7 @@ const i = {
|
|
|
221
221
|
{
|
|
222
222
|
path: "/print-route",
|
|
223
223
|
name: "$menu-print-route",
|
|
224
|
-
component: t(e(() => import("./PrintRoute-
|
|
224
|
+
component: t(e(() => import("./PrintRoute-B0j0eqNM.js"))),
|
|
225
225
|
meta: {
|
|
226
226
|
...i,
|
|
227
227
|
isNavItem: !0,
|
|
@@ -232,7 +232,7 @@ const i = {
|
|
|
232
232
|
path: "/serving-sequence",
|
|
233
233
|
name: "$menu-serving-sequence",
|
|
234
234
|
component: t(
|
|
235
|
-
e(() => import("./ServingSequence-
|
|
235
|
+
e(() => import("./ServingSequence-CPIyJ7T8.js"))
|
|
236
236
|
),
|
|
237
237
|
meta: {
|
|
238
238
|
...i,
|
|
@@ -243,7 +243,7 @@ const i = {
|
|
|
243
243
|
{
|
|
244
244
|
path: "/publish",
|
|
245
245
|
name: "$menu-publish",
|
|
246
|
-
component: t(e(() => import("./Publish-
|
|
246
|
+
component: t(e(() => import("./Publish-dTP5mQS3.js"))),
|
|
247
247
|
meta: {
|
|
248
248
|
...i,
|
|
249
249
|
isNavItem: !0,
|
|
@@ -257,7 +257,7 @@ const i = {
|
|
|
257
257
|
{
|
|
258
258
|
path: "/setting",
|
|
259
259
|
name: "$menu-menu-setting",
|
|
260
|
-
component: t(e(() => import("./MenuSetting-
|
|
260
|
+
component: t(e(() => import("./MenuSetting-BT5YSMgK.js"))),
|
|
261
261
|
meta: {
|
|
262
262
|
...i,
|
|
263
263
|
isNavItem: !0,
|
|
@@ -272,7 +272,7 @@ const i = {
|
|
|
272
272
|
{
|
|
273
273
|
path: "/catalog",
|
|
274
274
|
name: "$menu-catalog",
|
|
275
|
-
component: t(e(() => import("./Catalog-
|
|
275
|
+
component: t(e(() => import("./Catalog-CTfF5FmI.js"))),
|
|
276
276
|
meta: {
|
|
277
277
|
...i,
|
|
278
278
|
isNavItem: !0,
|
|
@@ -281,7 +281,7 @@ const i = {
|
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
path: "/catalog/edit/:id",
|
|
284
|
-
component: t(e(() => import("./_id_-
|
|
284
|
+
component: t(e(() => import("./_id_-108G3lsv.js"))),
|
|
285
285
|
name: "$menu-catalog-edit",
|
|
286
286
|
meta: {
|
|
287
287
|
...i
|
|
@@ -296,31 +296,31 @@ const i = {
|
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
path: "/catalog/edit/:id/product",
|
|
299
|
-
component: t(e(() => import("./Product-
|
|
299
|
+
component: t(e(() => import("./Product-BOMprFhc.js"))),
|
|
300
300
|
name: "$menu-catalog-edit-product",
|
|
301
301
|
meta: { ...i }
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
path: "/catalog/edit/:id/category",
|
|
305
|
-
component: t(e(() => import("./Category-
|
|
305
|
+
component: t(e(() => import("./Category-Z3bphlCX.js"))),
|
|
306
306
|
name: "$menu-catalog-edit-category",
|
|
307
307
|
meta: { ...i }
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
path: "/catalog/edit/:id/group",
|
|
311
|
-
component: t(e(() => import("./Group-
|
|
311
|
+
component: t(e(() => import("./Group-CblWJOl1.js"))),
|
|
312
312
|
name: "$menu-catalog-edit-group",
|
|
313
313
|
meta: { ...i }
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
path: "/catalog/edit/:id/takeaway",
|
|
317
|
-
component: t(e(() => import("./Takeaway-
|
|
317
|
+
component: t(e(() => import("./Takeaway-h9uUxFJd.js"))),
|
|
318
318
|
name: "$menu-catalog-edit-takeaway",
|
|
319
319
|
meta: { ...i }
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
path: "/catalog/edit/:id/setting",
|
|
323
|
-
component: t(e(() => import("./Setting-
|
|
323
|
+
component: t(e(() => import("./Setting-CLtISC4c.js"))),
|
|
324
324
|
name: "$menu-catalog-edit-setting",
|
|
325
325
|
meta: { ...i }
|
|
326
326
|
}
|
|
@@ -334,12 +334,12 @@ u.push({
|
|
|
334
334
|
name: ((y = u[0].children) == null ? void 0 : y[0].name) || u[0].name
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
|
-
t(e(() => import("./Catalog-
|
|
337
|
+
t(e(() => import("./Catalog-CTfF5FmI.js"))), {
|
|
338
338
|
...i
|
|
339
|
-
}, t(e(() => import("./_id_-
|
|
339
|
+
}, t(e(() => import("./_id_-108G3lsv.js"))), { ...i }, t(e(() => import("./Product-BOMprFhc.js"))), { ...i }, t(e(() => import("./Category-Z3bphlCX.js"))), { ...i }, t(e(() => import("./Group-CblWJOl1.js"))), { ...i }, t(e(() => import("./Takeaway-h9uUxFJd.js"))), { ...i }, t(e(() => import("./Setting-CLtISC4c.js"))), { ...i };
|
|
340
340
|
const K = "treeEditorOpen", Z = () => {
|
|
341
341
|
window.postMessage({ type: K }, "*");
|
|
342
|
-
}, ee = e(() => import("./App-
|
|
342
|
+
}, ee = e(() => import("./App-B5S9byVJ.js"));
|
|
343
343
|
function te(a, l) {
|
|
344
344
|
}
|
|
345
345
|
const ae = {
|
package/dist/app.js
CHANGED
|
@@ -21,6 +21,9 @@ interface MenuState {
|
|
|
21
21
|
} | null;
|
|
22
22
|
restaurantAttributes?: FdtoRestaurantInfo | null;
|
|
23
23
|
};
|
|
24
|
+
featureFlags: {
|
|
25
|
+
uniqueProductCode: boolean;
|
|
26
|
+
};
|
|
24
27
|
}
|
|
25
28
|
interface ITaxSetting {
|
|
26
29
|
systemCode: string;
|
|
@@ -8262,6 +8265,7 @@ interface MenuStore {
|
|
|
8262
8265
|
mapVariant: (variantGroupIds?: string[]) => {
|
|
8263
8266
|
[key: string]: string;
|
|
8264
8267
|
};
|
|
8268
|
+
updateFeatureFlags: (featureFlags: MenuState["featureFlags"]) => void;
|
|
8265
8269
|
}
|
|
8266
8270
|
export declare const useMenuStore: StoreDefinition<"mf-menu-store", _ExtractStateFromSetupStore<MenuStore>, _ExtractGettersFromSetupStore<MenuStore>, _ExtractActionsFromSetupStore<MenuStore>>;
|
|
8267
8271
|
export {};
|