@feedmepos/mf-menu 0.31.71-prod → 0.31.72-remy
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-B5R51HHK.js → App-27TpQ9Rh.js} +1442 -2546
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CumuJ63E.js} +3 -3
- package/dist/{Catalog-yv_fwu1h.js → Catalog-qUXEGPwx.js} +26 -26
- package/dist/{Category-lOaUwRrB.js → Category-C9sdulfS.js} +35 -35
- package/dist/{Category-DEkZ-IWE.js → Category-DGUI1Glw.js} +22 -22
- package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-DIVESXs6.js} +113 -113
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B48GyN96.js} +1 -1
- package/dist/{Group-CFS8D5Uf.js → Group-C8gRQIjf.js} +3 -3
- package/dist/{Group-B2EXYbcn.js → Group-CTzxLznN.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-BPCjOiTv.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-M7EU3tby.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-h09saJxj.js} +21 -22
- package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-DaWcvad4.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C9VpUX0B.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-b_gN9u5S.js} +3 -3
- package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-B32RCTN9.js} +31 -31
- package/dist/{PrintRoute-BwboeALA.js → PrintRoute-BEXM1XO1.js} +26 -26
- package/dist/{Product-CNKnPt-z.js → Product-Dg6vmxu4.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-m1D4IZS3.js} +71 -71
- package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-DiG53QXf.js} +17 -17
- package/dist/{Products-CkLZYybB.js → Products-Bp4RN2tP.js} +11 -11
- package/dist/{Publish-Bzq9aREC.js → Publish-DHrjYAJO.js} +56 -57
- package/dist/{Recipe-K55Bnscl.js → Recipe-CPpiiwTj.js} +13 -13
- package/dist/{Scheduler-ChAmTqSR.js → Scheduler-BVgOUrgq.js} +16 -16
- package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-BvvQ7iAu.js} +20 -20
- package/dist/{Setting-CHUNtVho.js → Setting-C828ShhE.js} +20 -20
- package/dist/{Subcategory-0-99_i06.js → Subcategory-Bw4NC1zr.js} +19 -19
- package/dist/{Takeaway-CsJf5I8I.js → Takeaway-BP9vO3uO.js} +1 -1
- package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-CZBbeNL8.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-Bf6h1oOm.js} +20 -20
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-BCqjdxf-.js} +20 -20
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CTouhy0y.js} +16 -17
- package/dist/{Unit-CbTkNhj2.js → Unit-C0XP2gQF.js} +13 -13
- package/dist/{Variant-NkbzEbF-.js → Variant-CR6fNlW6.js} +15 -15
- package/dist/{_id_-mr4_eirX.js → _id_-DPpuWlln.js} +14 -14
- package/dist/{app-DVB67WHZ.js → app-CtQEOIp5.js} +471 -468
- package/dist/{app-BzsHQwP_.js → app-xaGd6_oS.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +1626 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-Ds3VKRNn.js +13 -0
- package/dist/assets/override-menu-BVPA9mG0.js +13 -0
- package/dist/assets/validate-menu-Ctwk0tSN.js +13 -0
- package/dist/{catalog-C_6TM4e_.js → catalog-B1AtGIOR.js} +1 -1
- package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-D76y7yoz.js} +1 -1
- package/dist/{category-CHNICcWp.js → category-B3MkQ7Pp.js} +5 -5
- package/dist/{currency-Dx-pn9tw.js → currency-DYj4YAoX.js} +1 -1
- package/dist/{customAttributes-DvHKcDWb.js → customAttributes-CfwqBwao.js} +1 -1
- package/dist/{index-DqIorABw.js → index-8_TFzfuI.js} +1 -1
- package/dist/{index-CA3_R55p.js → index-CAQqh5h4.js} +13 -13
- package/dist/{index-X3RliLfv.js → index-DNhoEElA.js} +26 -26
- package/dist/{index-DGtoqrTo.js → index-DUUtEjnd.js} +1 -1
- package/dist/{item-JhHKgoMj.js → item-MTfRKilm.js} +378 -378
- package/dist/iteration-DXXAmTGt.js +27 -0
- package/dist/{jszip.min-BQReTtS0.js → jszip.min-y7wFpnaP.js} +245 -245
- package/dist/{menu-Bhfx50bt.js → menu-C_m3ZEIK.js} +1 -1
- package/dist/{menu-2ymqQnFE.js → menu-DQurCWMa.js} +27902 -27334
- package/dist/{menuV2-ZaA_QLdj.js → menuV2-0FFzegP7.js} +92 -92
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/{priceTier-IZtw6WUa.js → priceTier-DMFtjpmw.js} +1 -1
- package/dist/{scheduler-CzuGjuw5.js → scheduler-D0IlDwT3.js} +20 -20
- package/dist/{subcategory-Dt6tFvIu.js → subcategory-D32FJH5D.js} +6 -6
- package/dist/{toExcel-CUrEHCjB.js → toExcel-CsQ_y0DF.js} +2 -2
- package/dist/{unit-Ibbp0wZT.js → unit-Bthb3r-g.js} +9 -9
- package/package.json +4 -4
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
- package/dist/assets/linked-status-Dwqdwyog.js +0 -13
- package/dist/assets/override-menu-CGexvHxV.js +0 -13
- package/dist/assets/validate-menu-C2daBpKY.js +0 -13
- package/dist/dayjs.min-BZu87fXJ.js +0 -6
- package/dist/iteration-BoeoXAHD.js +0 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as g, computed as A, watch as ve, resolveComponent as I, createElementBlock as S, openBlock as v, Fragment as M, renderSlot as _e, createVNode as u, unref as l, withCtx as p, createBlock as T, createCommentVNode as z, createElementVNode as _, toDisplayString as Y, renderList as Re } from "vue";
|
|
2
|
-
import { H as F, Q as ye, u as q,
|
|
2
|
+
import { H as F, Q as ye, u as q, z as Ae, I as J } from "./menu-DQurCWMa.js";
|
|
3
3
|
import { b as U } from "./app-5fxKLAzS.js";
|
|
4
4
|
import { useI18n as ke, useCustomAttributes as K, useCoreStore as Ce, ItemSelector as he, EMPTY_RULE as B, isEmptyRule as W } from "@feedmepos/mf-common";
|
|
5
5
|
import { components as Ve, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
6
|
-
import { c as ge, u as Ie, a as h, m as O, f as E } from "./customAttributes-
|
|
6
|
+
import { c as ge, u as Ie, a as h, m as O, f as E } from "./customAttributes-CfwqBwao.js";
|
|
7
7
|
import { u as Se } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as we } from "./menuV2-
|
|
8
|
+
import { u as we } from "./menuV2-0FFzegP7.js";
|
|
9
9
|
import { c as Fe } from "./check-C9mY6LiX.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
const Ue = (c, N) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as le, ref as
|
|
2
|
-
import { u as se, I as W,
|
|
1
|
+
import { defineComponent as le, ref as $, computed as V, watch as P, resolveComponent as g, createBlock as J, openBlock as y, unref as e, withCtx as p, createElementVNode as r, createVNode as l, createElementBlock as R, Fragment as ue, renderList as oe, toDisplayString as D, createCommentVNode as z, withModifiers as be } from "vue";
|
|
2
|
+
import { u as se, I as W, D as ce, A as ge, H as re } from "./menu-DQurCWMa.js";
|
|
3
3
|
import { useI18n as ae, useCustomAttributes as ie, useCoreStore as de, EMPTY_RULE as Q, isEmptyRule as me } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as ne, FmButtonVariant as E, useDialog as ye, useSnackbar as pe, useBreakpoints as he, FmButtonColorThemeVariant as te } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as ke, c as Ce, m as q, _ as X, a as K, f as H } from "./customAttributes-
|
|
6
|
-
import { _ as _e } from "./app-
|
|
5
|
+
import { u as ke, c as Ce, m as q, _ as X, a as K, f as H } from "./customAttributes-CfwqBwao.js";
|
|
6
|
+
import { _ as _e } from "./app-CtQEOIp5.js";
|
|
7
7
|
import { b as Y } from "./app-5fxKLAzS.js";
|
|
8
8
|
import { u as Se } from "./discardConfirm-BHni0LNu.js";
|
|
9
9
|
import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
|
-
import { C as j, a as N } from "./catalogSetting-
|
|
11
|
-
import { u as we } from "./priceTier-
|
|
10
|
+
import { C as j, a as N } from "./catalogSetting-D76y7yoz.js";
|
|
11
|
+
import { u as we } from "./priceTier-DMFtjpmw.js";
|
|
12
12
|
const Re = {
|
|
13
13
|
class: "fm-typo-en-title-md-600 mr-auto"
|
|
14
14
|
}, Ae = {
|
|
@@ -19,11 +19,11 @@ const Re = {
|
|
|
19
19
|
class: "grid md:grid-cols-3 gap-16"
|
|
20
20
|
}, Fe = {
|
|
21
21
|
class: "md:col-span-2 space-y-16"
|
|
22
|
-
}, Ge = {
|
|
23
|
-
class: "flex justify-end"
|
|
24
22
|
}, Ue = {
|
|
23
|
+
class: "flex justify-end"
|
|
24
|
+
}, $e = {
|
|
25
25
|
class: "flex gap-8 items-center justify-start"
|
|
26
|
-
},
|
|
26
|
+
}, Ge = /* @__PURE__ */ le({
|
|
27
27
|
__name: "RuleGroupSideSheet",
|
|
28
28
|
props: {
|
|
29
29
|
modelValue: {
|
|
@@ -35,9 +35,9 @@ const Re = {
|
|
|
35
35
|
setup(Z, {
|
|
36
36
|
emit: o
|
|
37
37
|
}) {
|
|
38
|
-
const S = Z,
|
|
38
|
+
const S = Z, G = o, {
|
|
39
39
|
t: i
|
|
40
|
-
} = ae(), A = se(), t =
|
|
40
|
+
} = ae(), A = se(), t = $({
|
|
41
41
|
name: "",
|
|
42
42
|
description: "",
|
|
43
43
|
rules: []
|
|
@@ -62,8 +62,8 @@ const Re = {
|
|
|
62
62
|
categories: V(() => A.categories || [])
|
|
63
63
|
}), x = V({
|
|
64
64
|
get: () => S.modelValue,
|
|
65
|
-
set: (u) =>
|
|
66
|
-
}), L =
|
|
65
|
+
set: (u) => G("update:modelValue", u)
|
|
66
|
+
}), L = $(null);
|
|
67
67
|
P(() => S.editingGroup, (u) => {
|
|
68
68
|
u ? t.value = {
|
|
69
69
|
name: u.name,
|
|
@@ -93,13 +93,13 @@ const Re = {
|
|
|
93
93
|
rules: []
|
|
94
94
|
});
|
|
95
95
|
});
|
|
96
|
-
function
|
|
96
|
+
function U(u) {
|
|
97
97
|
return `${u}_${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
98
98
|
}
|
|
99
99
|
async function _() {
|
|
100
100
|
var a;
|
|
101
101
|
const u = {
|
|
102
|
-
_id: ((a = S.editingGroup) == null ? void 0 : a._id) ??
|
|
102
|
+
_id: ((a = S.editingGroup) == null ? void 0 : a._id) ?? U("group"),
|
|
103
103
|
name: t.value.name,
|
|
104
104
|
description: t.value.description,
|
|
105
105
|
rules: t.value.rules.map((s) => ({
|
|
@@ -114,11 +114,11 @@ const Re = {
|
|
|
114
114
|
} : void 0
|
|
115
115
|
}))
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
G("submit", u);
|
|
118
118
|
}
|
|
119
119
|
function m() {
|
|
120
120
|
t.value.rules.push({
|
|
121
|
-
_id:
|
|
121
|
+
_id: U("rule"),
|
|
122
122
|
restaurantRule: {
|
|
123
123
|
restaurantAttributes: null,
|
|
124
124
|
restaurantCustomAttributes: null
|
|
@@ -163,7 +163,7 @@ const Re = {
|
|
|
163
163
|
"prepend-icon": "arrow_back",
|
|
164
164
|
onClick: a[0] || (a[0] = () => x.value = !1)
|
|
165
165
|
}, null, 8, ["variant"]), r("p", Re, D(u.editingGroup ? e(i)("menu.rule_groups.edit_group") : e(i)("menu.rule_groups.create_group")), 1)]),
|
|
166
|
-
"side-sheet-footer": p(() => [r("div",
|
|
166
|
+
"side-sheet-footer": p(() => [r("div", $e, [l(s, {
|
|
167
167
|
label: e(i)("common.save"),
|
|
168
168
|
size: "lg",
|
|
169
169
|
type: "submit",
|
|
@@ -257,7 +257,7 @@ const Re = {
|
|
|
257
257
|
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
|
|
258
258
|
}),
|
|
259
259
|
_: 2
|
|
260
|
-
}, 1032, ["label"])])]), r("div",
|
|
260
|
+
}, 1032, ["label"])])]), r("div", Ue, [l(s, {
|
|
261
261
|
variant: e(E).Tertiary,
|
|
262
262
|
"prepend-icon": "delete",
|
|
263
263
|
onClick: (w) => v(O)
|
|
@@ -309,7 +309,7 @@ const Re = {
|
|
|
309
309
|
setup(Z) {
|
|
310
310
|
const {
|
|
311
311
|
t: o
|
|
312
|
-
} = ae(), S = ye(),
|
|
312
|
+
} = ae(), S = ye(), G = pe(), i = ce(G), A = se(), t = $(A.state.menu.ruleGroupSettings || {
|
|
313
313
|
groups: []
|
|
314
314
|
});
|
|
315
315
|
P(() => A.state.menu.ruleGroupSettings, (n) => {
|
|
@@ -319,7 +319,7 @@ const Re = {
|
|
|
319
319
|
}, {
|
|
320
320
|
deep: !0
|
|
321
321
|
});
|
|
322
|
-
const k =
|
|
322
|
+
const k = $(!1), F = $(null), h = he(), M = V(() => h.breakpoints.value.xs), T = $(""), I = V(() => t.value.groups.filter((n) => n.name.toLowerCase().includes(T.value.toLowerCase()))), x = [{
|
|
323
323
|
header: o("menu.rule_groups.table.columns.name"),
|
|
324
324
|
accessorKey: "name",
|
|
325
325
|
enableSorting: !0
|
|
@@ -344,7 +344,7 @@ const Re = {
|
|
|
344
344
|
function L(n) {
|
|
345
345
|
_(n.original);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function U() {
|
|
348
348
|
F.value = null, k.value = !0;
|
|
349
349
|
}
|
|
350
350
|
function _(n) {
|
|
@@ -398,7 +398,7 @@ const Re = {
|
|
|
398
398
|
}, null, 8, ["modelValue", "placeholder"])]), l(f, {
|
|
399
399
|
icon: "add",
|
|
400
400
|
variant: e(E).Secondary,
|
|
401
|
-
onClick:
|
|
401
|
+
onClick: U
|
|
402
402
|
}, null, 8, ["variant"])]), r("div", ze, [(y(!0), R(ue, null, oe(I.value, (s) => (y(), R("div", {
|
|
403
403
|
key: s._id,
|
|
404
404
|
class: "flex flex-row py-12 px-16 cursor-pointer",
|
|
@@ -411,7 +411,7 @@ const Re = {
|
|
|
411
411
|
}, null, 8, ["text-color", "variant", "onClick"])], 8, Pe))), 128))])])) : (y(), R("div", Me, [r("div", Ie, [r("div", null, [r("h1", Be, D(e(o)("menu.rule_groups.title")), 1), r("p", Ne, D(e(o)("menu.rule_groups.description")), 1)]), l(f, {
|
|
412
412
|
label: e(o)("menu.rule_groups.create_group"),
|
|
413
413
|
icon: "add",
|
|
414
|
-
onClick:
|
|
414
|
+
onClick: U
|
|
415
415
|
}, null, 8, ["label"])]), r("div", De, [r("div", Ee, [l(u, {
|
|
416
416
|
modelValue: T.value,
|
|
417
417
|
"onUpdate:modelValue": c[0] || (c[0] = (s) => T.value = s),
|
|
@@ -427,7 +427,7 @@ const Re = {
|
|
|
427
427
|
onRowClick: L
|
|
428
428
|
}, null, 8, ["row-data", "page-size"])]),
|
|
429
429
|
_: 1
|
|
430
|
-
})])), l(
|
|
430
|
+
})])), l(Ge, {
|
|
431
431
|
modelValue: k.value,
|
|
432
432
|
"onUpdate:modelValue": c[2] || (c[2] = (s) => k.value = s),
|
|
433
433
|
"editing-group": F.value,
|
|
@@ -458,14 +458,14 @@ const Re = {
|
|
|
458
458
|
}, vt = /* @__PURE__ */ le({
|
|
459
459
|
__name: "MenuSetting",
|
|
460
460
|
setup(Z) {
|
|
461
|
-
var
|
|
461
|
+
var U;
|
|
462
462
|
const {
|
|
463
463
|
t: o
|
|
464
|
-
} = ae(), S = se(),
|
|
464
|
+
} = ae(), S = se(), G = de(), i = pe(), A = ce(i), t = V(() => ({
|
|
465
465
|
lowStock: S.state.menu.lowStockThreshold,
|
|
466
466
|
taxSetting: S.state.menu.masterCatalogSetting,
|
|
467
467
|
priceTierSettings: S.state.menu.priceTierSettings
|
|
468
|
-
})), k =
|
|
468
|
+
})), k = $("conf"), F = V(() => [{
|
|
469
469
|
label: o("menu.menu_setting.tabs.menu_configuration"),
|
|
470
470
|
value: "conf"
|
|
471
471
|
}, ...S.isV4 ? [{
|
|
@@ -474,15 +474,15 @@ const Re = {
|
|
|
474
474
|
}, {
|
|
475
475
|
label: o("menu.menu_setting.tabs.link_product_rule_groups"),
|
|
476
476
|
value: "link-product-rule-groups"
|
|
477
|
-
}] : []]), h =
|
|
477
|
+
}] : []]), h = $(j.transformTax((U = t.value.taxSetting) == null ? void 0 : U.inclusiveTaxes));
|
|
478
478
|
P(() => t.value, (_) => {
|
|
479
479
|
var m;
|
|
480
480
|
h.value = j.transformTax((m = _.taxSetting) == null ? void 0 : m.inclusiveTaxes);
|
|
481
481
|
});
|
|
482
482
|
const M = V(() => {
|
|
483
|
-
if (
|
|
483
|
+
if (!G.currentCountry.value) return [];
|
|
484
484
|
const _ = h.value.mode === N.MANUAL ? h.value.inclusive ?? [] : [];
|
|
485
|
-
return ge.Country.getCountry(
|
|
485
|
+
return ge.Country.getCountry(G.currentCountry.value).taxSystems.map((v) => {
|
|
486
486
|
const C = _.find((n) => n.systemCode === v.code);
|
|
487
487
|
return {
|
|
488
488
|
inclusive: (C == null ? void 0 : C.inclusive) || !1,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, ref as T, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as G, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as B, h as _, withModifiers as q } from "vue";
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useSnackbar as te, useDialog 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 { _ as ae } from "./app-
|
|
6
|
-
import { H as j, I as le, J as Y,
|
|
7
|
-
import { _ as
|
|
5
|
+
import { _ as ae } from "./app-CtQEOIp5.js";
|
|
6
|
+
import { H as j, I as le, J as Y, z as C, u as re, O as se, D as ie } from "./menu-DQurCWMa.js";
|
|
7
|
+
import { _ as H } from "./customAttributes-CfwqBwao.js";
|
|
8
8
|
import { u as ue } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-
|
|
9
|
+
import { L as de } from "./LinkProductSideSheet-b_gN9u5S.js";
|
|
10
10
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
11
11
|
import { _ as me } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */
|
|
12
|
+
const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ J({
|
|
13
13
|
__name: "PrintDepartmentDialog",
|
|
14
14
|
props: {
|
|
15
15
|
categorizedItems: {
|
|
@@ -25,7 +25,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
25
25
|
setup(v, { expose: t, emit: h }) {
|
|
26
26
|
const N = v;
|
|
27
27
|
t({
|
|
28
|
-
showModal:
|
|
28
|
+
showModal: D,
|
|
29
29
|
hideModal: V
|
|
30
30
|
});
|
|
31
31
|
function b() {
|
|
@@ -36,7 +36,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
const x = T(!1), M = T(void 0);
|
|
39
|
-
function
|
|
39
|
+
function D(r) {
|
|
40
40
|
M.value = r ? j(r) : b(), n.value = j(M.value), x.value = !0;
|
|
41
41
|
}
|
|
42
42
|
function V() {
|
|
@@ -55,15 +55,15 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
55
55
|
applyToItems: n.value.applyToItems.filter((a) => a !== r)
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")),
|
|
58
|
+
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), z = f(() => n.value.applyToItems.length), K = f(
|
|
59
59
|
() => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
|
|
60
60
|
), e = T(""), o = f(() => {
|
|
61
61
|
const r = e.value.toLowerCase();
|
|
62
62
|
return N.categorizedItems.reduce((a, d) => {
|
|
63
|
-
const
|
|
63
|
+
const U = d.items.filter(
|
|
64
64
|
(I) => (!r || I.name.toLowerCase().includes(r)) && !!K.value[I._id]
|
|
65
65
|
);
|
|
66
|
-
return
|
|
66
|
+
return U.length && a.push({ ...d, items: U }), a;
|
|
67
67
|
}, []);
|
|
68
68
|
}), y = h, w = ue(
|
|
69
69
|
() => !le.isEqual(M.value, n.value),
|
|
@@ -75,7 +75,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
75
75
|
V(), y("onSave", n.value);
|
|
76
76
|
}
|
|
77
77
|
return (r, a) => {
|
|
78
|
-
const d = g("FmTextField"),
|
|
78
|
+
const d = g("FmTextField"), U = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
|
|
79
79
|
return p(), P(Z, {
|
|
80
80
|
modelValue: x.value,
|
|
81
81
|
"onUpdate:modelValue": a[3] || (a[3] = (s) => x.value = s),
|
|
@@ -110,7 +110,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
110
110
|
]),
|
|
111
111
|
default: m(() => [
|
|
112
112
|
i("div", _e, [
|
|
113
|
-
c(
|
|
113
|
+
c(H, {
|
|
114
114
|
title: l(u)("menu.print_route.department_dialog.sections.route_detail.title")
|
|
115
115
|
}, {
|
|
116
116
|
default: m(() => [
|
|
@@ -127,12 +127,12 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["title"]),
|
|
130
|
-
v.canApplyItems ? (p(), P(
|
|
130
|
+
v.canApplyItems ? (p(), P(H, {
|
|
131
131
|
key: 0,
|
|
132
132
|
title: l(u)("menu.print_route.department_dialog.sections.link_product.title")
|
|
133
133
|
}, {
|
|
134
134
|
"append-title": m(() => [
|
|
135
|
-
c(
|
|
135
|
+
c(U),
|
|
136
136
|
c(de, {
|
|
137
137
|
"categorized-items": v.categorizedItems,
|
|
138
138
|
"initial-value": n.value.applyToItems.map((s) => ({
|
|
@@ -157,7 +157,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
157
157
|
i("div", fe, [
|
|
158
158
|
i("div", ve, [
|
|
159
159
|
i("div", ye, S(l(u)("menu.print_route.department_dialog.sections.link_product.products_linked", {
|
|
160
|
-
count:
|
|
160
|
+
count: z.value
|
|
161
161
|
})), 1),
|
|
162
162
|
i("div", ge, [
|
|
163
163
|
c(X, {
|
|
@@ -191,7 +191,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
191
191
|
])
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
|
-
}, 8, ["title"])) :
|
|
194
|
+
}, 8, ["title"])) : G("", !0)
|
|
195
195
|
])
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
@@ -238,7 +238,7 @@ const Ee = {
|
|
|
238
238
|
class: "fm-typo-en-body-lg-600"
|
|
239
239
|
}, Le = {
|
|
240
240
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
241
|
-
}, Ye = /* @__PURE__ */
|
|
241
|
+
}, Ye = /* @__PURE__ */ J({
|
|
242
242
|
__name: "PrintRoute",
|
|
243
243
|
setup(v) {
|
|
244
244
|
const {
|
|
@@ -287,13 +287,13 @@ const Ee = {
|
|
|
287
287
|
}, ["stop", "prevent"])
|
|
288
288
|
})])
|
|
289
289
|
}]);
|
|
290
|
-
function
|
|
290
|
+
function D() {
|
|
291
291
|
var e;
|
|
292
|
-
k.value || (e =
|
|
292
|
+
k.value || (e = z.value) == null || e.showModal();
|
|
293
293
|
}
|
|
294
294
|
function V(e) {
|
|
295
295
|
var o;
|
|
296
|
-
k.value || (o =
|
|
296
|
+
k.value || (o = z.value) == null || o.showModal({
|
|
297
297
|
...e,
|
|
298
298
|
applyToItems: e.applyToItems.map(({
|
|
299
299
|
_id: y
|
|
@@ -332,7 +332,7 @@ const Ee = {
|
|
|
332
332
|
await n.updateMenu(we(e), e.name, !0);
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
const F = T(""),
|
|
335
|
+
const F = T(""), z = T(), K = f(() => {
|
|
336
336
|
if (!F.value) return b.value;
|
|
337
337
|
const e = F.value.toLowerCase();
|
|
338
338
|
return b.value.filter((o) => o.name.toLowerCase().includes(e));
|
|
@@ -348,8 +348,8 @@ const Ee = {
|
|
|
348
348
|
icon: "add",
|
|
349
349
|
label: l(t)("menu.print_route.actions.add"),
|
|
350
350
|
variant: "primary",
|
|
351
|
-
onClick:
|
|
352
|
-
}, null, 8, ["disabled", "label"])) :
|
|
351
|
+
onClick: D
|
|
352
|
+
}, null, 8, ["disabled", "label"])) : G("", !0)])]),
|
|
353
353
|
default: m(() => [x.value ? (p(), L(A, {
|
|
354
354
|
key: 1
|
|
355
355
|
}, [i("div", Te, [c(y, {
|
|
@@ -401,13 +401,13 @@ const Ee = {
|
|
|
401
401
|
key: 0,
|
|
402
402
|
action: {
|
|
403
403
|
text: l(t)("menu.print_route.empty.action"),
|
|
404
|
-
callback:
|
|
404
|
+
callback: D
|
|
405
405
|
},
|
|
406
406
|
subtitle: l(t)("menu.print_route.empty.subtitle"),
|
|
407
407
|
title: l(t)("menu.print_route.empty.title")
|
|
408
408
|
}, null, 8, ["action", "subtitle", "title"])), c(Ie, {
|
|
409
409
|
ref_key: "printDepartmentRef",
|
|
410
|
-
ref:
|
|
410
|
+
ref: z,
|
|
411
411
|
"categorized-items": N.value,
|
|
412
412
|
onOnSave: $
|
|
413
413
|
}, null, 8, ["categorized-items"])]),
|