@feedmepos/mf-menu 0.31.35-beta.1 → 0.31.36-beta
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-BkDEqZHN.js → App-Cui-XStB.js} +30 -53
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-YeaxfcJN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-cUYW6sW5.js} +2 -2
- package/dist/{Catalog-6pOytZU3.js → Catalog-MktLa55D.js} +68 -68
- package/dist/{Category-PtVyxTJZ.js → Category-C-s_lW3M.js} +14 -14
- package/dist/{Category-CXk98gto.js → Category-CEMqueNk.js} +29 -29
- package/dist/{CookingGuide-Cy8w8cd9.js → CookingGuide-eWdk6mho.js} +65 -65
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bxn29Ylq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CcKt1abw.js} +1 -1
- package/dist/{Group-D_fipwz6.js → Group-Bg2Ylu9p.js} +1 -1
- package/dist/{Group-DmNtEt9J.js → Group-VircdSF_.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C8W8uPvN.js → Group.vue_vue_type_script_setup_true_lang-CyW8Gh6c.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DfgXJWUw.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yQjS-X1R.js} +4 -4
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-KFWive_R.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-26ogJPxR.js} +7 -7
- package/dist/{Ingredient-BbGs11gS.js → Ingredient-CegrU_cQ.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-fNVMd9PS.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CzhbZPKE.js} +2 -2
- package/dist/{LinkProductSideSheet-CIUQw7oo.js → LinkProductSideSheet-BJlrPykg.js} +24 -24
- package/dist/{MenuSetting-BXSAAPma.js → MenuSetting-D70NMQWp.js} +20 -20
- package/dist/{PrintRoute-Bb25Wqx5.js → PrintRoute-bAS3UL9d.js} +18 -18
- package/dist/{Product-qNa1EPNM.js → Product-Cu2f-ZSs.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DI0d2huN.js → Product.vue_vue_type_script_setup_true_lang-CYfDGs7M.js} +65 -65
- package/dist/{ProductInternalTools-CyiAzThW.js → ProductInternalTools-6X6XUdH6.js} +16 -16
- package/dist/{Products-oCEkdzLE.js → Products-DYgr_65I.js} +11 -11
- package/dist/{Publish-CWGdR3nh.js → Publish-DhdYNYH2.js} +3 -3
- package/dist/{Recipe-DWlzfgXY.js → Recipe-Bb5gqrsE.js} +13 -13
- package/dist/{Scheduler-BGhRV9Yi.js → Scheduler-Tk0cPXz4.js} +7 -7
- package/dist/{ServingSequence-Dj6eZp3x.js → ServingSequence-DUghx8CU.js} +24 -24
- package/dist/{Setting-Di_Rn61o.js → Setting-DIl9WhmE.js} +11 -11
- package/dist/{Subcategory-CGinXMy8.js → Subcategory-C8Igjkze.js} +10 -10
- package/dist/{Takeaway-C1KdbLMw.js → Takeaway-ZfBLSZMG.js} +1 -1
- package/dist/{Takeaway-BSWrXSGI.js → Takeaway-xHGsoah-.js} +9 -9
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-wONUlNNM.js → Takeaway.vue_vue_type_script_setup_true_lang-DItRiL8J.js} +11 -11
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-_pWcSpCk.js → Thumbnail.vue_vue_type_script_setup_true_lang-Dmk-5eGV.js} +7 -7
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ncoMfO1b.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-OJ0A70lo.js} +13 -13
- package/dist/{Unit-B71wMP-S.js → Unit-CfmYi7kG.js} +13 -13
- package/dist/{Variant-B14TfXg7.js → Variant-D6hyic1A.js} +14 -14
- package/dist/{_id_-CjlhUxyd.js → _id_-DT2EQjcY.js} +32 -32
- package/dist/{app-C0_ZxHle.js → app-Do8sOqMh.js} +362 -367
- package/dist/{app-NhsMLypF.js → app-jvyTuOVi.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/router/shared.d.ts +1 -3
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DaKKqv0U.js → linked-status-DQ161R27.js} +2 -2
- package/dist/assets/{override-menu-BzQzJzDM.js → override-menu-VGwIGccm.js} +2 -2
- package/dist/assets/{validate-menu-DH8daaxV.js → validate-menu-Dx9kwuMh.js} +2 -2
- package/dist/{catalog-DDA5CEEW.js → catalog-BL6h_DDN.js} +1 -1
- package/dist/{catalogSetting-B2UCaWJL.js → catalogSetting-DEabwfXZ.js} +1 -1
- package/dist/{category-B29E8Z6Z.js → category-CKujA-NM.js} +5 -5
- package/dist/{currency-D8F5PN67.js → currency-BFai41BQ.js} +1 -1
- package/dist/{dayjs.min-C5O_Xdlu.js → dayjs.min-B5ost3s4.js} +1 -1
- package/dist/{index-Chaiecso.js → index-D70F0uL_.js} +14 -14
- package/dist/{index-DzWK9GfE.js → index-D9PdlnOv.js} +14 -14
- package/dist/{index-D6qeYZH_.js → index-nSRvCNb9.js} +1 -1
- package/dist/{item-CRYbpxtN.js → item-DqdhjOW8.js} +15 -15
- package/dist/{jszip.min-CEFKmniH.js → jszip.min-_LmXapMc.js} +2 -2
- package/dist/{menu-CyVBU_ww.js → menu-Cj3d6im1.js} +9 -9
- package/dist/{menu-Bi0HvP-T.js → menu-S1W5eNCT.js} +1 -1
- package/dist/{menuV2-DUplflZy.js → menuV2-K6oaeFE4.js} +70 -70
- package/dist/{priceTier-BKUDkpVL.js → priceTier-Cnci8Hf5.js} +1 -1
- package/dist/{scheduler-BQnvljfv.js → scheduler-D7qY3sLN.js} +30 -30
- package/dist/{subcategory-DI_tttwh.js → subcategory-CHsH67ID.js} +6 -6
- package/dist/{toExcel-Cld55eZa.js → toExcel-DhVG55bK.js} +2 -2
- package/dist/{unit-DCXUBn-h.js → unit-C3zaQSoS.js} +6 -6
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { G as i, O as W, u as G, D as Q } from "./menu-Cj3d6im1.js";
|
|
3
3
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ne } from "./app-
|
|
7
|
-
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-
|
|
6
|
+
import { _ as ne } from "./app-Do8sOqMh.js";
|
|
7
|
+
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-D7qY3sLN.js";
|
|
8
8
|
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
10
|
const ce = {
|
|
@@ -76,7 +76,7 @@ const ce = {
|
|
|
76
76
|
outline: !0,
|
|
77
77
|
color: "neutral-gray-400",
|
|
78
78
|
onClick: U(() => {
|
|
79
|
-
|
|
79
|
+
j(e.row.original);
|
|
80
80
|
}, ["stop", "prevent"])
|
|
81
81
|
})])
|
|
82
82
|
}]), r = {
|
|
@@ -117,7 +117,7 @@ const ce = {
|
|
|
117
117
|
C.value || (t = x.value) == null || t.show(e);
|
|
118
118
|
}
|
|
119
119
|
const O = Z();
|
|
120
|
-
function
|
|
120
|
+
function j(e) {
|
|
121
121
|
let t = [c("span", a("menu.scheduler.dialogs.remove.message", {
|
|
122
122
|
name: e.name
|
|
123
123
|
})), c("span", {
|
|
@@ -143,7 +143,7 @@ const ce = {
|
|
|
143
143
|
const t = e._id ? se(e) : le(e);
|
|
144
144
|
await w.updateMenu(t, e.name);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const A = G(), B = y(() => A.categorizedRawMenuItems), p = y(() => A.state.menu.modules.scheduler), w = W(Q(ee())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
|
|
147
147
|
const e = g.value.toLowerCase();
|
|
148
148
|
return e ? p.value.filter((t) => t.name.toLowerCase().includes(e)) : p.value;
|
|
149
149
|
});
|
|
@@ -206,7 +206,7 @@ const ce = {
|
|
|
206
206
|
icon: "delete",
|
|
207
207
|
variant: "tertiary",
|
|
208
208
|
"text-color": "neutral-gray-400",
|
|
209
|
-
onClick: U(() =>
|
|
209
|
+
onClick: U(() => j(n), ["stop"])
|
|
210
210
|
}, null, 8, ["onClick"])]),
|
|
211
211
|
_: 2
|
|
212
212
|
}, 1032, ["label", "onClick"]))), 128))]),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as
|
|
1
|
+
import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as A, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import { H, u as W,
|
|
3
|
+
import { H, u as W, D as X, O as Z, J as I, G as S } from "./menu-Cj3d6im1.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
|
|
5
|
-
import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as
|
|
5
|
+
import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as T, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as ge, R as ve } from "./app-
|
|
7
|
+
import { _ as ge, R as ve } from "./app-Do8sOqMh.js";
|
|
8
8
|
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { c as ye } from "./check-C9mY6LiX.js";
|
|
10
10
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
11
|
import { u as ke } from "./search-BAPEUu1R.js";
|
|
12
|
-
import { u as xe } from "./app-
|
|
12
|
+
import { u as xe } from "./app-jvyTuOVi.js";
|
|
13
13
|
import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
|
|
15
15
|
__name: "Form",
|
|
@@ -18,15 +18,15 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
18
18
|
initialValue: {}
|
|
19
19
|
},
|
|
20
20
|
emits: ["submitted"],
|
|
21
|
-
setup(K, { expose: b, emit:
|
|
22
|
-
const { t: r } = ee(), p = K,
|
|
21
|
+
setup(K, { expose: b, emit: D }) {
|
|
22
|
+
const { t: r } = ee(), p = K, N = D, s = L(
|
|
23
23
|
p.initialValue ? H(p.initialValue) : {
|
|
24
24
|
_id: "",
|
|
25
25
|
name: "",
|
|
26
26
|
position: 0,
|
|
27
27
|
items: []
|
|
28
28
|
}
|
|
29
|
-
), C = W(), i = ne(),
|
|
29
|
+
), C = W(), i = ne(), R = X(i), q = Z(R), c = L(!1), u = L(!1), _ = (f) => {
|
|
30
30
|
ye.isBoolean(f) ? u.value = f : u.value = !u.value;
|
|
31
31
|
}, E = O(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
|
|
32
32
|
async function P() {
|
|
@@ -55,7 +55,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
55
55
|
else
|
|
56
56
|
throw new Error("Invalid action");
|
|
57
57
|
} finally {
|
|
58
|
-
u.value = !1,
|
|
58
|
+
u.value = !1, N("submitted");
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
b({
|
|
@@ -82,7 +82,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
82
82
|
"max-width": 560
|
|
83
83
|
}, {
|
|
84
84
|
"side-sheet-header": m(() => [
|
|
85
|
-
y("p", Ce,
|
|
85
|
+
y("p", Ce, A(E.value), 1)
|
|
86
86
|
]),
|
|
87
87
|
"side-sheet-footer": m(() => [
|
|
88
88
|
y("div", Ee, [
|
|
@@ -130,7 +130,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
130
130
|
], 64);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
133
|
+
}), z = Ve, we = {
|
|
134
134
|
key: 0,
|
|
135
135
|
class: "xs:pt-24"
|
|
136
136
|
}, Me = {
|
|
@@ -142,15 +142,15 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
142
142
|
class: "flex-1 space-y-4"
|
|
143
143
|
}, Ie = {
|
|
144
144
|
class: "fm-typo-en-body-lg-600"
|
|
145
|
-
},
|
|
145
|
+
}, De = {
|
|
146
146
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
147
147
|
}, Je = /* @__PURE__ */ J({
|
|
148
148
|
__name: "ServingSequence",
|
|
149
149
|
setup(K) {
|
|
150
150
|
const {
|
|
151
151
|
searchKey: b,
|
|
152
|
-
filter:
|
|
153
|
-
} = ke(), r = W(), p = ne(),
|
|
152
|
+
filter: D
|
|
153
|
+
} = ke(), r = W(), p = ne(), N = X(p), s = Z(N), C = pe(), i = me(), R = xe(), q = ce(), {
|
|
154
154
|
t: c
|
|
155
155
|
} = ee(), u = (e) => {
|
|
156
156
|
e && e !== S.F_MENU_VERSION.enum.v4 && q.push({
|
|
@@ -166,7 +166,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
166
166
|
}, (e) => {
|
|
167
167
|
u(e);
|
|
168
168
|
}), F(() => i.sessionUser.value, (e) => {
|
|
169
|
-
e &&
|
|
169
|
+
e && R.getPublicSetting();
|
|
170
170
|
}), F(() => i.currentBusiness.value, async (e, n) => {
|
|
171
171
|
e && e._id !== (n == null ? void 0 : n._id) && await r.readRestaurants();
|
|
172
172
|
}), F(() => i.currentRestaurant.value, async (e, n) => {
|
|
@@ -176,7 +176,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
176
176
|
});
|
|
177
177
|
const _ = O(() => r.serveSequence.filter(({
|
|
178
178
|
name: e
|
|
179
|
-
}) =>
|
|
179
|
+
}) => D([e])) ?? []);
|
|
180
180
|
function E(e) {
|
|
181
181
|
C.open({
|
|
182
182
|
title: "Delete sequence",
|
|
@@ -184,7 +184,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
184
184
|
primaryActions: {
|
|
185
185
|
text: "Delete",
|
|
186
186
|
close: !0,
|
|
187
|
-
variant:
|
|
187
|
+
variant: T.Destructive
|
|
188
188
|
},
|
|
189
189
|
secondaryActions: {
|
|
190
190
|
text: "Cancel",
|
|
@@ -202,7 +202,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
202
202
|
servingSequence: e
|
|
203
203
|
}) => $(Y.FmButton, {
|
|
204
204
|
prependIcon: "delete",
|
|
205
|
-
variant:
|
|
205
|
+
variant: T.Tertiary,
|
|
206
206
|
textColor: "neutral-gray-400",
|
|
207
207
|
onClick: (n) => {
|
|
208
208
|
n.stopPropagation(), E(e);
|
|
@@ -237,7 +237,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
237
237
|
class: "w-full flex justify-end items-center"
|
|
238
238
|
}, [$(Y.FmButton, {
|
|
239
239
|
prependIcon: "delete",
|
|
240
|
-
variant:
|
|
240
|
+
variant: T.Tertiary,
|
|
241
241
|
textColor: "neutral-gray-400",
|
|
242
242
|
onClick: (n) => {
|
|
243
243
|
n.stopPropagation(), E(e.row.original);
|
|
@@ -249,7 +249,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
249
249
|
const {
|
|
250
250
|
container: n,
|
|
251
251
|
vNode: k
|
|
252
|
-
} = Se(
|
|
252
|
+
} = Se(z, f, {
|
|
253
253
|
initialValue: e,
|
|
254
254
|
action: "update",
|
|
255
255
|
onSubmitted: () => {
|
|
@@ -268,7 +268,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
268
268
|
}, {
|
|
269
269
|
"append-heading": m(() => [!t(s).checkMenuIsLoading() && _.value.length ? (d(), g(x, {
|
|
270
270
|
key: 0
|
|
271
|
-
}, [l(k), l(t(
|
|
271
|
+
}, [l(k), l(t(z), {
|
|
272
272
|
action: "add"
|
|
273
273
|
}, {
|
|
274
274
|
default: m(({
|
|
@@ -296,8 +296,8 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
296
296
|
}, null, 8, ["modelValue", "placeholder"])]), V.value ? (d(), g("div", Fe, [(d(!0), g(x, null, ue(_.value, (o) => (d(), g("div", {
|
|
297
297
|
key: o._id,
|
|
298
298
|
class: Q(["py-12 px-16", "flex items-center space-x-8"]),
|
|
299
|
-
onClick: (
|
|
300
|
-
}, [y("div", Oe, [y("p", Ie,
|
|
299
|
+
onClick: (Ne) => a(o)
|
|
300
|
+
}, [y("div", Oe, [y("p", Ie, A(o.name), 1), y("p", De, A(t(c)("menu.common.labels.products_linked", {
|
|
301
301
|
count: o.items.length
|
|
302
302
|
})), 1)]), l(P, {
|
|
303
303
|
servingSequence: o
|
|
@@ -323,7 +323,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
|
|
|
323
323
|
subtitle: t(c)("menu.serving_sequence.empty.subtitle"),
|
|
324
324
|
title: t(c)("menu.serving_sequence.empty.title")
|
|
325
325
|
}, {
|
|
326
|
-
action: m(() => [l(t(
|
|
326
|
+
action: m(() => [l(t(z), {
|
|
327
327
|
action: "add"
|
|
328
328
|
}, {
|
|
329
329
|
default: m(({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as
|
|
2
|
-
import { u as me,
|
|
1
|
+
import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as L, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
|
|
2
|
+
import { u as me, D as ce, G as f, O as de, A as pe, H as w } from "./menu-Cj3d6im1.js";
|
|
3
3
|
import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as E } from "./LinkProductSideSheet-
|
|
5
|
+
import { a as E } from "./LinkProductSideSheet-BJlrPykg.js";
|
|
6
6
|
import { _ as ye } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
|
-
import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { C as _, a as x } from "./catalogSetting-
|
|
9
|
-
import { C as xe } from "./catalog-
|
|
7
|
+
import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yQjS-X1R.js";
|
|
8
|
+
import { C as _, a as x } from "./catalogSetting-DEabwfXZ.js";
|
|
9
|
+
import { C as xe } from "./catalog-BL6h_DDN.js";
|
|
10
10
|
const Ce = {
|
|
11
11
|
class: /* @__PURE__ */ z(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
12
12
|
}, Oe = {
|
|
@@ -99,7 +99,7 @@ const Ce = {
|
|
|
99
99
|
o.markupOptions && (o.markupOptions.splice(t, 1), l.value = o);
|
|
100
100
|
}
|
|
101
101
|
return (t, o) => {
|
|
102
|
-
const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"),
|
|
102
|
+
const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), D = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"), oe = m("fm-form");
|
|
103
103
|
return r(), V("div", Ce, [s(oe, {
|
|
104
104
|
class: z(["space-y-40 max-w-[751px]", "h-fit"]),
|
|
105
105
|
"blame-form-child-on-validation-failed": "",
|
|
@@ -135,7 +135,7 @@ const Ce = {
|
|
|
135
135
|
sublabel: e(n)("menu.setting.tax.modes.manual.sublabel")
|
|
136
136
|
}, null, 8, ["value", "label", "sublabel"])]),
|
|
137
137
|
_: 1
|
|
138
|
-
}, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), V("div", Se, [(r(!0), V(
|
|
138
|
+
}, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), V("div", Se, [(r(!0), V(L, null, B(R.value, (a) => (r(), g(ee, {
|
|
139
139
|
key: a.systemCode,
|
|
140
140
|
"model-value": a.inclusive,
|
|
141
141
|
value: !0,
|
|
@@ -152,7 +152,7 @@ const Ce = {
|
|
|
152
152
|
key: 1,
|
|
153
153
|
label: e(n)("menu.setting.link.title")
|
|
154
154
|
}, {
|
|
155
|
-
default: c(() => [s(
|
|
155
|
+
default: c(() => [s(D, {
|
|
156
156
|
"model-value": l.value.orderFrom && l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE,
|
|
157
157
|
label: e(n)("menu.setting.link.auto_link.label"),
|
|
158
158
|
"label-placement": "right",
|
|
@@ -176,7 +176,7 @@ const Ce = {
|
|
|
176
176
|
key: 2,
|
|
177
177
|
label: e(n)("menu.setting.markup.title")
|
|
178
178
|
}, {
|
|
179
|
-
default: c(() => [s(
|
|
179
|
+
default: c(() => [s(D, {
|
|
180
180
|
"model-value": !!l.value.markupOptions,
|
|
181
181
|
label: e(n)("menu.setting.markup.auto_markup.label"),
|
|
182
182
|
"label-placement": "right",
|
|
@@ -201,7 +201,7 @@ const Ce = {
|
|
|
201
201
|
onClick: a
|
|
202
202
|
}, null, 8, ["text-color", "border-color", "variant", "onClick"])]),
|
|
203
203
|
_: 1
|
|
204
|
-
}, 8, ["categories", "items"]), (r(!0), V(
|
|
204
|
+
}, 8, ["categories", "items"]), (r(!0), V(L, null, B(l.value.markupOptions, (a, y) => (r(), g(H, {
|
|
205
205
|
key: y,
|
|
206
206
|
categories: e(u).categories,
|
|
207
207
|
items: e(u).items,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as L, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as O, computed as F, h as
|
|
1
|
+
import { defineComponent as L, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as O, computed as F, h as A, withModifiers as R, getCurrentInstance as Z, renderList as ee, createBlock as S, createCommentVNode as te } from "vue";
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as B, components as j, useDialog as Y, FmButtonVariant as z, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { D, u as N, O as U, J as K, G } from "./menu-Cj3d6im1.js";
|
|
6
6
|
import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as se } from "./app-
|
|
7
|
+
import { _ as se } from "./app-Do8sOqMh.js";
|
|
8
8
|
import { c as re } from "./createForm-BoUQeZTd.js";
|
|
9
9
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as I } from "./object-DVUNCr7w.js";
|
|
11
11
|
import { r as ce } from "./rules-CIWTZQfh.js";
|
|
12
12
|
import { c as ue } from "./check-C9mY6LiX.js";
|
|
13
|
-
import { u as q } from "./subcategory-
|
|
13
|
+
import { u as q } from "./subcategory-CHsH67ID.js";
|
|
14
14
|
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
15
|
-
import { a as me } from "./menu-
|
|
15
|
+
import { a as me } from "./menu-S1W5eNCT.js";
|
|
16
16
|
const pe = {
|
|
17
17
|
class: "fm-typo-en-title-md-600"
|
|
18
18
|
}, _e = {
|
|
@@ -27,7 +27,7 @@ const pe = {
|
|
|
27
27
|
setup($, {
|
|
28
28
|
expose: f
|
|
29
29
|
}) {
|
|
30
|
-
const _ = $, x = B(), g = D(x), k =
|
|
30
|
+
const _ = $, x = B(), g = D(x), k = U(g), d = N(), {
|
|
31
31
|
t: a
|
|
32
32
|
} = T(), v = w(!1), e = w(!1), b = (r) => {
|
|
33
33
|
ue.isBoolean(r) ? e.value = r : e.value = !e.value;
|
|
@@ -114,7 +114,7 @@ const pe = {
|
|
|
114
114
|
}, Se = /* @__PURE__ */ L({
|
|
115
115
|
__name: "SubcategoryTable",
|
|
116
116
|
setup($) {
|
|
117
|
-
const f = Y(), _ = B(), x = D(_), g =
|
|
117
|
+
const f = Y(), _ = B(), x = D(_), g = U(x), k = q({
|
|
118
118
|
dialog: f,
|
|
119
119
|
menuLoader: g
|
|
120
120
|
}), d = F(() => N().subcategories), a = w(""), v = F(() => d.value.filter((o) => o.name.toLowerCase().includes(a.value.toLowerCase()))), {
|
|
@@ -136,9 +136,9 @@ const pe = {
|
|
|
136
136
|
header: "",
|
|
137
137
|
cell: (o) => {
|
|
138
138
|
const l = o.row.original;
|
|
139
|
-
return
|
|
139
|
+
return A("div", {
|
|
140
140
|
class: "flex justify-end"
|
|
141
|
-
}, [
|
|
141
|
+
}, [A(j.FmButton, {
|
|
142
142
|
icon: "delete",
|
|
143
143
|
disabled: !l._id,
|
|
144
144
|
variant: "tertiary",
|
|
@@ -238,7 +238,7 @@ const pe = {
|
|
|
238
238
|
}), $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Me = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Le = { class: "fm-typo-en-body-md-600 font-semibold" }, qe = /* @__PURE__ */ L({
|
|
239
239
|
__name: "Subcategory",
|
|
240
240
|
setup($) {
|
|
241
|
-
const f = Y(), _ = B(), x = D(_), g =
|
|
241
|
+
const f = Y(), _ = B(), x = D(_), g = U(x), k = q({ dialog: f, menuLoader: g }), d = F(() => N().subcategories), { t: a } = T();
|
|
242
242
|
function v() {
|
|
243
243
|
k.create();
|
|
244
244
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { D as x, u as v, O as w, J as E, G as M } from "./menu-Cj3d6im1.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
6
|
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as O, l as S } from "./index-
|
|
9
|
-
import { a as L } from "./menu-
|
|
10
|
-
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" },
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-DItRiL8J.js";
|
|
8
|
+
import { T as O, l as S } from "./index-D9PdlnOv.js";
|
|
9
|
+
import { a as L } from "./menu-S1W5eNCT.js";
|
|
10
|
+
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, D = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, F = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
|
-
setup(
|
|
12
|
+
setup(I) {
|
|
13
13
|
const u = V(), l = x(u), p = v(), c = w(l), _ = y(() => p.rules.item.bindToVariant), n = k(0), { t: r } = T();
|
|
14
|
-
return L().resetOnMount(), (
|
|
14
|
+
return L().resetOnMount(), (P, o) => (d(), i(C, {
|
|
15
15
|
heading: a(r)("menu.takeaway.title")
|
|
16
16
|
}, {
|
|
17
17
|
default: s(() => [
|
|
@@ -22,8 +22,8 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
|
|
|
22
22
|
"append-heading": s(() => [
|
|
23
23
|
t("div", U, [
|
|
24
24
|
t("div", B, [
|
|
25
|
-
t("div",
|
|
26
|
-
t("p",
|
|
25
|
+
t("div", D, [
|
|
26
|
+
t("p", F, b(n.value), 1)
|
|
27
27
|
])
|
|
28
28
|
]),
|
|
29
29
|
t("div", null, [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as
|
|
2
|
-
import {
|
|
1
|
+
import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as H } from "vue";
|
|
2
|
+
import { D as q, u as Q, O as W, J as N, G as z, H as L, A as se, an as J } from "./menu-Cj3d6im1.js";
|
|
3
3
|
import { useI18n as X, useCoreStore as re } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as le, useSnackbar as Z, FmButtonVariant as A, components as ce, useBreakpoints as de } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./app-
|
|
5
|
+
import { _ as ue } from "./app-Do8sOqMh.js";
|
|
6
6
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
7
|
-
import { a as ye, l as ee, T as pe } from "./index-
|
|
7
|
+
import { a as ye, l as ee, T as pe } from "./index-D9PdlnOv.js";
|
|
8
8
|
import { u as fe } from "./search-BAPEUu1R.js";
|
|
9
|
-
import { f as F } from "./currency-
|
|
9
|
+
import { f as F } from "./currency-BFai41BQ.js";
|
|
10
10
|
import { defineStore as _e } from "pinia";
|
|
11
|
-
import { C as ke } from "./catalog-
|
|
11
|
+
import { C as ke } from "./catalog-BL6h_DDN.js";
|
|
12
12
|
import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
function we(T, U, l, m) {
|
|
14
14
|
var y, v, w, g;
|
|
@@ -140,7 +140,7 @@ const ge = _e("takeaway-manager", () => {
|
|
|
140
140
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
141
141
|
}, Ke = {
|
|
142
142
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
143
|
-
},
|
|
143
|
+
}, Ie = {
|
|
144
144
|
key: 1,
|
|
145
145
|
class: "xs:pt-24"
|
|
146
146
|
}, je = /* @__PURE__ */ oe({
|
|
@@ -227,7 +227,7 @@ const ge = _e("takeaway-manager", () => {
|
|
|
227
227
|
}) : null])
|
|
228
228
|
}]), M = de(), b = h(() => M.breakpoints.value.xs);
|
|
229
229
|
return (o, s) => {
|
|
230
|
-
const p = S("fm-search"), x = S("fm-table"),
|
|
230
|
+
const p = S("fm-search"), x = S("fm-table"), B = S("fm-button");
|
|
231
231
|
return g.value.length ? (_(), C(O, {
|
|
232
232
|
key: 0
|
|
233
233
|
}, [b.value ? (_(), C(O, {
|
|
@@ -244,7 +244,7 @@ const ge = _e("takeaway-manager", () => {
|
|
|
244
244
|
onClick: () => {
|
|
245
245
|
f.value.edit && t(m).updateTakeaway(n);
|
|
246
246
|
}
|
|
247
|
-
}, [k("div", Ue, [k("p", Me,
|
|
247
|
+
}, [k("div", Ue, [k("p", Me, I(n.name), 1), k("p", Ee, I(`${t(J)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
|
|
248
248
|
key: 0,
|
|
249
249
|
variant: t(A).Tertiary,
|
|
250
250
|
"text-color": "neutral-gray-400",
|
|
@@ -271,7 +271,7 @@ const ge = _e("takeaway-manager", () => {
|
|
|
271
271
|
})
|
|
272
272
|
}, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
|
|
273
273
|
_: 1
|
|
274
|
-
})]))], 64)) : (_(), C("div",
|
|
274
|
+
})]))], 64)) : (_(), C("div", Ie, [V(t(me), {
|
|
275
275
|
subtitle: t(e)("menu.takeaway.empty.subtitle"),
|
|
276
276
|
title: t(e)("menu.takeaway.empty.title")
|
|
277
277
|
}, {
|
|
@@ -289,7 +289,7 @@ const ge = _e("takeaway-manager", () => {
|
|
|
289
289
|
}, {
|
|
290
290
|
default: P(({
|
|
291
291
|
trigger: n
|
|
292
|
-
}) => [V(
|
|
292
|
+
}) => [V(B, {
|
|
293
293
|
"prepend-icon": "add",
|
|
294
294
|
label: t(e)("menu.takeaway.empty.action"),
|
|
295
295
|
onClick: H(n, ["stop"])
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed as i, defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { u as C } from "./menuV2-
|
|
4
|
-
import { C as I, h as $ } from "./catalog-
|
|
1
|
+
import { computed as i, defineComponent as D, ref as y, resolveComponent as P, createElementBlock as k, openBlock as v, normalizeClass as w, createVNode as z, normalizeStyle as A, withCtx as V, createBlock as b, createCommentVNode as K } from "vue";
|
|
2
|
+
import { G as p, J as M, D as R, O as S, ah as U, u as N, c as x } from "./menu-Cj3d6im1.js";
|
|
3
|
+
import { u as C } from "./menuV2-K6oaeFE4.js";
|
|
4
|
+
import { C as I, h as $ } from "./catalog-BL6h_DDN.js";
|
|
5
5
|
import { useSnackbar as F, useDialog as T } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as L } from "./LinkProductSideSheet-
|
|
6
|
+
import { b as L } from "./LinkProductSideSheet-BJlrPykg.js";
|
|
7
7
|
import { useI18n as B } from "@feedmepos/mf-common";
|
|
8
8
|
function j() {
|
|
9
9
|
const t = C(), s = i(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), d = i(() => {
|
|
@@ -358,7 +358,7 @@ function ae(t) {
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
const H = ["alt", "src", "crossorigin"], re = /* @__PURE__ */
|
|
361
|
+
const H = ["alt", "src", "crossorigin"], re = /* @__PURE__ */ D({
|
|
362
362
|
__name: "Thumbnail",
|
|
363
363
|
props: {
|
|
364
364
|
src: {},
|
|
@@ -393,7 +393,7 @@ const H = ["alt", "src", "crossorigin"], re = /* @__PURE__ */ A({
|
|
|
393
393
|
}, [
|
|
394
394
|
z(c, {
|
|
395
395
|
class: w(["flex items-center justify-center", "rounded-md"]),
|
|
396
|
-
style:
|
|
396
|
+
style: A({ width: `${e.value.width}px`, height: `${e.value.height}px` }),
|
|
397
397
|
variant: "outlined"
|
|
398
398
|
}, {
|
|
399
399
|
default: V(() => [
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as Pn, o as Un, f as Rn, a as Mn, n as qt, _ as Xt, I as An, S as Nn, b as St, C as Ln, R as Ye, c as Jt, d as Ct, e as Qt, h as Gn, m as Kn, F as Bn, M as Zt, j as zn, r as Yn, k as en, l as Rt, p as tn, q as jn, P as Wn, s as Hn, t as nn, u as qn, T as Be } from "./item-
|
|
3
|
-
import { _ as Xn, T as Jn } from "./app-
|
|
4
|
-
import {
|
|
1
|
+
import { shallowRef as zt, ref as q, computed as V, nextTick as dt, watch as _e, getCurrentInstance as In, onMounted as Ae, defineComponent as ae, resolveComponent as H, createElementBlock as Q, openBlock as P, createBlock as X, normalizeClass as pe, createElementVNode as A, createVNode as C, unref as o, withCtx as K, toDisplayString as fe, mergeModels as Yt, useModel as jt, createCommentVNode as J, resolveDirective as Wt, withDirectives as ct, createTextVNode as kn, renderSlot as Me, h as ge, Fragment as Fe, renderList as Ne, vShow as Ht, withModifiers as We, createSlots as En, onBeforeUnmount as xt, watchEffect as Tn, onUnmounted as xn, normalizeStyle as it, mergeProps as Sn, normalizeProps as Fn, guardReactiveProps as On, Teleport as Dn, Transition as Vn, withKeys as $n } from "vue";
|
|
2
|
+
import { g as Pn, o as Un, f as Rn, a as Mn, n as qt, _ as Xt, I as An, S as Nn, b as St, C as Ln, R as Ye, c as Jt, d as Ct, e as Qt, h as Gn, m as Kn, F as Bn, M as Zt, j as zn, r as Yn, k as en, l as Rt, p as tn, q as jn, P as Wn, s as Hn, t as nn, u as qn, T as Be } from "./item-DqdhjOW8.js";
|
|
3
|
+
import { _ as Xn, T as Jn } from "./app-Do8sOqMh.js";
|
|
4
|
+
import { A as ve, J as be, G as ee, D as et, K as Qn, M as Zn, N as eo, O as Ft, P as to, B as Le, Q as no, H as ce, R as oo, T as Ot, I as Ie, U as pt, V as ro, W as ao, X as ft, Y as Mt, Z as lo, u as on, $ as io } from "./menu-Cj3d6im1.js";
|
|
5
5
|
import { useI18n as de, useCoreStore as tt, CustomAttributesForm as rn } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Ge, useDialogChild as Dt, useSnackbar as Ue, FmButtonColorThemeVariant as Se, components as Ce, FmButtonVariant as je, useBreakpoints as so } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as Vt } from "./discardConfirm-BHni0LNu.js";
|
|
8
8
|
import { defineStore as uo } from "pinia";
|
|
9
9
|
import { _ as Oe, a as co } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
10
|
-
import { u as ue, g as an, m as mo } from "./menuV2-
|
|
11
|
-
import { s as It, _ as po } from "./index-
|
|
12
|
-
import { _ as Je, a as Pe, L as kt } from "./LinkProductSideSheet-
|
|
13
|
-
import { _ as At } from "./category-
|
|
14
|
-
import { _ as fo, a as go, u as vo } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as ue, g as an, m as mo } from "./menuV2-K6oaeFE4.js";
|
|
11
|
+
import { s as It, _ as po } from "./index-nSRvCNb9.js";
|
|
12
|
+
import { _ as Je, a as Pe, L as kt } from "./LinkProductSideSheet-BJlrPykg.js";
|
|
13
|
+
import { _ as At } from "./category-CKujA-NM.js";
|
|
14
|
+
import { _ as fo, a as go, u as vo } from "./Thumbnail.vue_vue_type_script_setup_true_lang-Dmk-5eGV.js";
|
|
15
15
|
import { _ as ln } from "./tooltip-B5BiPMx9.js";
|
|
16
|
-
import { _ as He, T as bo, l as _o } from "./index-
|
|
16
|
+
import { _ as He, T as bo, l as _o } from "./index-D9PdlnOv.js";
|
|
17
17
|
import { u as yo } from "./search-BAPEUu1R.js";
|
|
18
18
|
import { c as $t } from "./check-C9mY6LiX.js";
|
|
19
|
-
import { f as Ze } from "./currency-
|
|
19
|
+
import { f as Ze } from "./currency-BFai41BQ.js";
|
|
20
20
|
import { c as ho } from "./string-DpfFixWH.js";
|
|
21
21
|
import { useInventoryStore as wo, InventoryBindingSummary as Co } from "@feedmepos/mf-inventory-portal";
|
|
22
|
-
import { u as Io } from "./priceTier-
|
|
22
|
+
import { u as Io } from "./priceTier-Cnci8Hf5.js";
|
|
23
23
|
import { d as Pt } from "./vuedraggable-CK8z7qA8.js";
|
|
24
|
-
import { _ as ko } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
24
|
+
import { _ as ko } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-cUYW6sW5.js";
|
|
25
25
|
import "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
|
|
26
26
|
import { i as Eo, t as Ut, w as To, a as sn, b as un, n as xo, c as So, u as Fo, r as Oo, _ as Do } from "./index-D7yR1j9C.js";
|
|
27
27
|
import { c as st } from "./object-DVUNCr7w.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
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 D } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as E, components as K, useBreakpoints as R, FmButtonVariant as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as q } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { D as A, u as G } from "./menu-Cj3d6im1.js";
|
|
6
6
|
import { _ as H } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
7
|
import { _ as J } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
|
-
import { u as O, U as P } from "./unit-
|
|
8
|
+
import { u as O, U as P } from "./unit-C3zaQSoS.js";
|
|
9
9
|
const Q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "h-[600px]"
|
|
@@ -32,11 +32,11 @@ const Q = {
|
|
|
32
32
|
}, be = /* @__PURE__ */ L({
|
|
33
33
|
__name: "Unit",
|
|
34
34
|
setup(re) {
|
|
35
|
-
const w =
|
|
36
|
-
|
|
37
|
-
const S =
|
|
35
|
+
const w = E();
|
|
36
|
+
A(w);
|
|
37
|
+
const S = G(), i = O(), {
|
|
38
38
|
t: n
|
|
39
|
-
} =
|
|
39
|
+
} = D(), m = d(() => S.units), _ = d(() => m.value.filter((s) => `${s.name} ${s.abbrev}`.toLowerCase().includes(c.value.toLowerCase()))), c = g(""), U = g([{
|
|
40
40
|
accessorKey: "name",
|
|
41
41
|
header: () => n("menu.unit.columns.name"),
|
|
42
42
|
enableSorting: !1
|
|
@@ -56,7 +56,7 @@ const Q = {
|
|
|
56
56
|
const l = s.row.original;
|
|
57
57
|
return k("div", {
|
|
58
58
|
class: "flex justify-end"
|
|
59
|
-
}, [k(
|
|
59
|
+
}, [k(K.FmButton, {
|
|
60
60
|
icon: "delete",
|
|
61
61
|
textColor: "neutral-gray-400",
|
|
62
62
|
variant: "tertiary",
|
|
@@ -69,7 +69,7 @@ const Q = {
|
|
|
69
69
|
function V(s) {
|
|
70
70
|
i.updateUnit(s);
|
|
71
71
|
}
|
|
72
|
-
const F = d(() => m.value.length), B =
|
|
72
|
+
const F = d(() => m.value.length), B = R(), M = d(() => B.breakpoints.value.xs);
|
|
73
73
|
return (s, l) => {
|
|
74
74
|
const y = p("FmSearch"), $ = p("FmTable"), j = p("fm-button"), z = p("FmSpacer");
|
|
75
75
|
return a(), b(H, {
|
|
@@ -102,7 +102,7 @@ const Q = {
|
|
|
102
102
|
class: C(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
103
103
|
onClick: () => e(i).updateUnit(t)
|
|
104
104
|
}, [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, {
|
|
105
|
-
variant: e(
|
|
105
|
+
variant: e(I).Tertiary,
|
|
106
106
|
"prepend-icon": "delete",
|
|
107
107
|
"text-color": "neutral-gray-400",
|
|
108
108
|
onClick: x(() => e(i).deleteUnit(t), ["stop"])
|
|
@@ -126,7 +126,7 @@ const Q = {
|
|
|
126
126
|
"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, {
|
|
127
127
|
default: h(({
|
|
128
128
|
trigger: t
|
|
129
|
-
}) => [m.value.length > 0 ? (a(), b(
|
|
129
|
+
}) => [m.value.length > 0 ? (a(), b(q, {
|
|
130
130
|
key: 0,
|
|
131
131
|
label: e(n)("menu.unit.add"),
|
|
132
132
|
"prepend-icon": "add",
|