@feedmepos/mf-menu 0.32.17 → 0.32.18-dev.1
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-Cfl37TTw.js +152661 -0
- package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
- package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
- package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
- package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
- package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
- package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
- package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
- package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
- package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
- package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
- package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
- package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
- package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
- package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
- package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
- package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
- package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
- package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
- package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
- package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
- package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
- package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
- package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
- package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
- package/dist/app.js +4 -5
- package/dist/apps/mf-menu/src/app.d.ts +1 -2
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
- package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
- package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
- package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
- package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
- package/dist/dayjs.min-DNPTnUFp.js +6 -0
- package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
- package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
- package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
- package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
- package/package.json +1 -1
- package/dist/App-BiSEuDkd.js +0 -13484
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-5fxKLAzS.js +0 -8163
- package/dist/app-nTzkERJW.js +0 -68
- package/dist/catalog-BO2nXwe5.js +0 -199
- package/dist/category-CuG3DsGL.js +0 -156
- package/dist/check-C9mY6LiX.js +0 -9
- package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
- package/dist/currency-DxC5zyZB.js +0 -7
- package/dist/dayjs.min-BvFUSPWD.js +0 -6
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-B0nhvuxR.js +0 -273
- package/dist/index-C2zPvt64.js +0 -239
- package/dist/index-C36JQix-.js +0 -246
- package/dist/index-CisutoS9.js +0 -156
- package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
- package/dist/item-K01xd1Z0.js +0 -6868
- package/dist/menuV2-DKE-xanq.js +0 -1052
- package/dist/object-DVUNCr7w.js +0 -16
- package/dist/priceTier-Beavb91W.js +0 -87
- package/dist/search-BAPEUu1R.js +0 -15
- package/dist/string-DpfFixWH.js +0 -4
- package/dist/subcategory-DnslmmRD.js +0 -148
- package/dist/tooltip-B5BiPMx9.js +0 -32
- package/dist/vuedraggable-CK8z7qA8.js +0 -1728
package/dist/object-DVUNCr7w.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { toRaw as n } from "vue";
|
|
2
|
-
function t(r) {
|
|
3
|
-
return JSON.parse(JSON.stringify(r));
|
|
4
|
-
}
|
|
5
|
-
function u(r) {
|
|
6
|
-
if (typeof structuredClone > "u")
|
|
7
|
-
return t(r);
|
|
8
|
-
try {
|
|
9
|
-
return structuredClone(n(r));
|
|
10
|
-
} catch {
|
|
11
|
-
return t(r);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
u as c
|
|
16
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
|
-
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, G as M } from "./index.vue_vue_type_script_setup_true_lang-DCBYExNb.js";
|
|
5
|
-
const v = /* @__PURE__ */ d({
|
|
6
|
-
__name: "AddPriceGroupDialog",
|
|
7
|
-
setup(s) {
|
|
8
|
-
const { t: e } = m(), o = g(""), { emitData: t } = w();
|
|
9
|
-
return _(o, () => {
|
|
10
|
-
t(o.value);
|
|
11
|
-
}), (c, n) => {
|
|
12
|
-
const r = S("FmTextField");
|
|
13
|
-
return f(), T(r, {
|
|
14
|
-
label: y(e)("menu.price_tier.group_title"),
|
|
15
|
-
modelValue: o.value,
|
|
16
|
-
"onUpdate:modelValue": n[0] || (n[0] = (i) => o.value = i)
|
|
17
|
-
}, null, 8, ["label", "modelValue"]);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}), F = (s) => {
|
|
21
|
-
const { t: e } = m(), o = x(), t = s || k(), c = C(), n = M(c), r = h(() => t.state.menu.priceTierSettings || []);
|
|
22
|
-
function i() {
|
|
23
|
-
o.open({
|
|
24
|
-
title: e("menu.price_tier.add_price_group"),
|
|
25
|
-
contentComponent: v,
|
|
26
|
-
primaryActions: {
|
|
27
|
-
text: e("menu.category.manager.dialog.add.action"),
|
|
28
|
-
close: !1
|
|
29
|
-
},
|
|
30
|
-
secondaryActions: {
|
|
31
|
-
text: e("menu.common.actions.cancel"),
|
|
32
|
-
close: !0
|
|
33
|
-
}
|
|
34
|
-
}).onPrimary(async (a) => {
|
|
35
|
-
a && await n.minor(
|
|
36
|
-
async () => {
|
|
37
|
-
await t.updateMenuSetting({
|
|
38
|
-
lowStockThreshold: t.state.menu.lowStockThreshold,
|
|
39
|
-
masterCatalogSetting: t.state.menu.masterCatalogSetting,
|
|
40
|
-
priceTierSettings: [...t.state.menu.priceTierSettings || [], { key: a }]
|
|
41
|
-
}), o.close();
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
successMessage: e("menu.price_tier.add_price_group_success")
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function u(a) {
|
|
50
|
-
o.open({
|
|
51
|
-
title: e("menu.price_tier.delete_dialog.title"),
|
|
52
|
-
message: e("menu.price_tier.delete_dialog.message", { name: a }),
|
|
53
|
-
primaryActions: {
|
|
54
|
-
text: e("menu.common.actions.remove"),
|
|
55
|
-
close: !1
|
|
56
|
-
},
|
|
57
|
-
secondaryActions: {
|
|
58
|
-
text: e("menu.common.actions.cancel"),
|
|
59
|
-
close: !0
|
|
60
|
-
}
|
|
61
|
-
}).onPrimary(async () => {
|
|
62
|
-
await n.minor(
|
|
63
|
-
async () => {
|
|
64
|
-
var l;
|
|
65
|
-
await t.updateMenuSetting({
|
|
66
|
-
lowStockThreshold: t.state.menu.lowStockThreshold,
|
|
67
|
-
masterCatalogSetting: t.state.menu.masterCatalogSetting,
|
|
68
|
-
priceTierSettings: (l = t.state.menu.priceTierSettings) == null ? void 0 : l.filter(
|
|
69
|
-
(p) => p.key !== a
|
|
70
|
-
)
|
|
71
|
-
}), o.close();
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
successMessage: e("menu.price_tier.delete_dialog.success")
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
create: i,
|
|
81
|
-
deletePriceTier: u,
|
|
82
|
-
priceTiers: r
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
F as u
|
|
87
|
-
};
|
package/dist/search-BAPEUu1R.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ref as a, computed as c } from "vue";
|
|
2
|
-
const f = (i) => {
|
|
3
|
-
const r = a("");
|
|
4
|
-
function t(e) {
|
|
5
|
-
return `${e}`.trim().toLowerCase();
|
|
6
|
-
}
|
|
7
|
-
const u = c(() => t(r.value));
|
|
8
|
-
function o(e) {
|
|
9
|
-
return u.value ? e.some((n) => t(n).includes(u.value)) : !0;
|
|
10
|
-
}
|
|
11
|
-
return { searchKey: r, filter: o };
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
f as u
|
|
15
|
-
};
|
package/dist/string-DpfFixWH.js
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { M as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-DCBYExNb.js";
|
|
3
|
-
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
|
-
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-DKE-xanq.js";
|
|
6
|
-
const y = /* @__PURE__ */ M({
|
|
7
|
-
__name: "AddSubcategoryDialogContentComponent",
|
|
8
|
-
props: {
|
|
9
|
-
initialValue: {}
|
|
10
|
-
},
|
|
11
|
-
setup(o) {
|
|
12
|
-
const r = o, { t: n } = b();
|
|
13
|
-
_(
|
|
14
|
-
() => r.initialValue,
|
|
15
|
-
(i) => {
|
|
16
|
-
t.value = i ?? "";
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
const t = E(r.initialValue), { emitData: u, emitAction: p } = P();
|
|
20
|
-
return _(
|
|
21
|
-
t,
|
|
22
|
-
(i) => {
|
|
23
|
-
u(i);
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
immediate: !0
|
|
27
|
-
}
|
|
28
|
-
), (i, s) => {
|
|
29
|
-
const g = f("fm-text-field"), a = f("FmForm");
|
|
30
|
-
return A(), x(a, {
|
|
31
|
-
onValidationSuccess: s[1] || (s[1] = (e) => c(p)("primary"))
|
|
32
|
-
}, {
|
|
33
|
-
default: C(() => [
|
|
34
|
-
V(g, {
|
|
35
|
-
modelValue: t.value,
|
|
36
|
-
"onUpdate:modelValue": s[0] || (s[0] = (e) => t.value = e),
|
|
37
|
-
rules: [(e) => !!e || c(n)("menu.subcategory.dialog.add.name.required")],
|
|
38
|
-
autofocus: "",
|
|
39
|
-
label: c(n)("menu.subcategory.dialog.add.name.label"),
|
|
40
|
-
placeholder: c(n)("menu.subcategory.dialog.add.name.placeholder")
|
|
41
|
-
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
}), Y = ({
|
|
48
|
-
dialog: o,
|
|
49
|
-
menuLoader: r,
|
|
50
|
-
isLocalOnly: n = !1
|
|
51
|
-
}) => {
|
|
52
|
-
const { t } = b(), u = v().updateMenu;
|
|
53
|
-
function p() {
|
|
54
|
-
const a = E(!1);
|
|
55
|
-
o.open({
|
|
56
|
-
title: t("menu.subcategory.manager.dialog.add.title"),
|
|
57
|
-
contentComponent: y,
|
|
58
|
-
primaryActions: {
|
|
59
|
-
text: t("menu.subcategory.manager.dialog.add.action"),
|
|
60
|
-
close: !1,
|
|
61
|
-
isLoading: a
|
|
62
|
-
},
|
|
63
|
-
secondaryActions: {
|
|
64
|
-
text: t("menu.common.actions.cancel"),
|
|
65
|
-
close: !0
|
|
66
|
-
}
|
|
67
|
-
}).onPrimary(async (e) => {
|
|
68
|
-
if (e)
|
|
69
|
-
try {
|
|
70
|
-
a.value = !0;
|
|
71
|
-
const m = {
|
|
72
|
-
module: d.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
73
|
-
operation: l.F_OPERATION_TYPE.create,
|
|
74
|
-
data: {
|
|
75
|
-
name: e,
|
|
76
|
-
position: F().subcategories.length
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
n ? await u(m) : await r.updateMenu(m, e), o.close();
|
|
80
|
-
} finally {
|
|
81
|
-
a.value = !1;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function i(a) {
|
|
86
|
-
o.open({
|
|
87
|
-
title: t("menu.subcategory.manager.dialog.update.title"),
|
|
88
|
-
contentComponent: y,
|
|
89
|
-
contentComponentProps: {
|
|
90
|
-
initialValue: a.name
|
|
91
|
-
},
|
|
92
|
-
primaryActions: {
|
|
93
|
-
text: t("menu.subcategory.manager.dialog.update.action"),
|
|
94
|
-
close: !1
|
|
95
|
-
},
|
|
96
|
-
secondaryActions: {
|
|
97
|
-
text: t("menu.common.actions.cancel"),
|
|
98
|
-
close: !0
|
|
99
|
-
}
|
|
100
|
-
}).onPrimary(async (e) => {
|
|
101
|
-
if (!e) return;
|
|
102
|
-
const m = {
|
|
103
|
-
module: d.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
104
|
-
operation: l.F_OPERATION_TYPE.update,
|
|
105
|
-
data: { ...a, name: e ?? a.name }
|
|
106
|
-
};
|
|
107
|
-
n ? await u(m) : await r.updateMenu(m, e), o.close();
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function s(a) {
|
|
111
|
-
o.open({
|
|
112
|
-
title: t("menu.common.dialog.remove.subcategory.title"),
|
|
113
|
-
message: t("menu.common.dialog.remove.subcategory.message", { name: a.name }),
|
|
114
|
-
primaryActions: {
|
|
115
|
-
text: t("menu.common.actions.remove"),
|
|
116
|
-
close: !1
|
|
117
|
-
},
|
|
118
|
-
secondaryActions: {
|
|
119
|
-
text: t("menu.common.actions.cancel"),
|
|
120
|
-
close: !0
|
|
121
|
-
}
|
|
122
|
-
}).onPrimary(async () => {
|
|
123
|
-
const e = {
|
|
124
|
-
module: d.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
125
|
-
operation: l.F_OPERATION_TYPE.delete,
|
|
126
|
-
data: a._id
|
|
127
|
-
};
|
|
128
|
-
n ? await u(e) : await r.updateMenu(e, a.name, !0), o.close();
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
async function g(a) {
|
|
132
|
-
const e = {
|
|
133
|
-
module: d.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
134
|
-
operation: l.F_OPERATION_TYPE.rearrange,
|
|
135
|
-
data: a
|
|
136
|
-
};
|
|
137
|
-
n ? await u(e) : await r.updateMenu(e, "Subcategories");
|
|
138
|
-
}
|
|
139
|
-
return {
|
|
140
|
-
create: p,
|
|
141
|
-
update: i,
|
|
142
|
-
deleteSubcategory: s,
|
|
143
|
-
rearrange: g
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
export {
|
|
147
|
-
Y as u
|
|
148
|
-
};
|
package/dist/tooltip-B5BiPMx9.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createElementBlock as s, openBlock as a, createElementVNode as n, toDisplayString as i, resolveDirective as l, withDirectives as p } from "vue";
|
|
2
|
-
const d = { class: "space-y-4" }, u = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, m = { class: "fm-typo-en-body-lg-600" }, y = /* @__PURE__ */ c({
|
|
3
|
-
__name: "InfoBasic",
|
|
4
|
-
props: {
|
|
5
|
-
name: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
value: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: !0
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
return (t, o) => (a(), s("div", d, [
|
|
16
|
-
n("div", u, i(e.name), 1),
|
|
17
|
-
n("div", m, i(e.value), 1)
|
|
18
|
-
]));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
function f(e, t, o = 110) {
|
|
22
|
-
const r = l("tooltip");
|
|
23
|
-
return p(e, [[r, { content: t, zIndex: o }]]);
|
|
24
|
-
}
|
|
25
|
-
function v(e, t = 110) {
|
|
26
|
-
return { content: e, zIndex: t };
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
v as _,
|
|
30
|
-
y as a,
|
|
31
|
-
f as w
|
|
32
|
-
};
|