@feedmepos/mf-menu 0.32.7 → 0.32.8-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-6Q1nmlfA.js → App-B5S9byVJ.js} +5457 -4622
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
- package/dist/{Catalog-Bf5JieUH.js → Catalog-CTfF5FmI.js} +52 -52
- package/dist/{Category-BBATgN1o.js → Category-BntCVeoT.js} +57 -57
- package/dist/{Category-BSBZlBHF.js → Category-Z3bphlCX.js} +26 -26
- package/dist/{CookingGuide-BnjSTAL4.js → CookingGuide-CoPo2Alx.js} +127 -127
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BXdLDaBB.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
- package/dist/{Group-Dpbz5j1x.js → Group-B7rZfFlT.js} +3 -3
- package/dist/{Group-BqXtHWr2.js → Group-CblWJOl1.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Bz5hEPov.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3a6eV6cB.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +3127 -3127
- package/dist/{Ingredient-BZfbbI--.js → Ingredient-Bn-jeNeI.js} +46 -46
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DfyUAd9n.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
- package/dist/{LinkProductSideSheet-C-CcvD1Y.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
- package/dist/{MenuSetting-CRCXtk6n.js → MenuSetting-BT5YSMgK.js} +14 -14
- package/dist/{PrintRoute-BqRkve5U.js → PrintRoute-B0j0eqNM.js} +34 -34
- package/dist/{Product-cj-wKww4.js → Product-BOMprFhc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DtCzSk94.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
- package/dist/{ProductInternalTools-B5V7Hs15.js → ProductInternalTools-O5d2jMAH.js} +39 -39
- package/dist/{Products-a0N50IJw.js → Products-BnMrK40x.js} +15 -15
- package/dist/{Publish-CyiUajCw.js → Publish-dTP5mQS3.js} +26 -26
- package/dist/{Recipe-CKIoGrBI.js → Recipe-DnftcZPO.js} +26 -26
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
- package/dist/{Scheduler-CwTdAm-V.js → Scheduler-DRLaQK_V.js} +22 -22
- package/dist/{ServingSequence-BAxm0bx1.js → ServingSequence-CPIyJ7T8.js} +39 -39
- package/dist/{Setting-J9s4VpKm.js → Setting-CLtISC4c.js} +22 -22
- package/dist/{Subcategory-BXJ2H9cr.js → Subcategory-b0bXCYYY.js} +32 -32
- package/dist/{Takeaway-CPPrIbb0.js → Takeaway-CCIKDCoF.js} +12 -12
- package/dist/{Takeaway-Cm9DdUdf.js → Takeaway-h9uUxFJd.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PRAGlbyK.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BQcHroCG.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
- package/dist/{Unit-9pTm3F5W.js → Unit-B0kiwrN6.js} +13 -13
- package/dist/{Variant-qGJvwVW3.js → Variant-CJSk0kTW.js} +18 -18
- package/dist/{_id_-BPgTKleB.js → _id_-108G3lsv.js} +22 -22
- package/dist/{app-BYd7KCR0.js → app-BTn28hDr.js} +1 -1
- package/dist/{app-BoVVV8kG.js → app-CPJH5bgs.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{validate-menu-C55soZke.js → linked-status-Bp5piT25.js} +7 -7
- package/dist/assets/{override-menu-D2ffZ3LE.js → override-menu-D47qVZAi.js} +2 -2
- package/dist/assets/{linked-status-YBCdx1_k.js → validate-menu-YuXYm9iE.js} +7 -7
- package/dist/{catalog-DjMrJdom.js → catalog-CpFTifAS.js} +1 -1
- package/dist/{catalogSetting-DMUZ11RQ.js → catalogSetting-DjGqI2Vf.js} +1 -1
- package/dist/{category-DRr-IdFP.js → category-DaRWiQd8.js} +5 -5
- package/dist/{currency-CAUInXnj.js → currency-DbURufyM.js} +1 -1
- package/dist/{index-CG5i_sE7.js → index-C6AkIinM.js} +1 -1
- package/dist/{index-DOwV5hqi.js → index-D67GKEzf.js} +1 -1
- package/dist/{index-hDyuidIm.js → index-kjRAsH_h.js} +38 -38
- package/dist/{index-By_yIps1.js → index-pJtym1c6.js} +21 -21
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +440 -430
- package/dist/item-2WoPAnNJ.js +6838 -0
- package/dist/{iteration-V9L5Rk-0.js → iteration-BGItxpWj.js} +1 -1
- package/dist/{jszip.min-Danu3otn.js → jszip.min-D8NeBCPG.js} +353 -353
- package/dist/{menu-D1PHF11v.js → menu-DVdMR0zo.js} +1 -1
- package/dist/{menuV2-BfvbnMWo.js → menuV2-CcBdUc80.js} +73 -73
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DszOAydN.js → priceTier-CTfRyTuS.js} +1 -1
- package/dist/{scheduler-BbQrleYX.js → scheduler-DOMDX4d7.js} +20 -20
- package/dist/{subcategory-BnW2z6Vy.js → subcategory-NsslZ1my.js} +6 -6
- package/dist/{toExcel-De8V6KyO.js → toExcel-Bdne-Dw_.js} +2 -2
- package/dist/{unit-BjQ-Hi7b.js → unit-DKyvdauo.js} +29 -29
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BRmrp3_3.js +0 -6038
- package/dist/item-Cq7YkZBk.js +0 -7685
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as
|
|
2
|
-
import {
|
|
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 { K as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-CcBdUc80.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -27,11 +27,11 @@ const y = /* @__PURE__ */ M({
|
|
|
27
27
|
}
|
|
28
28
|
), (i, s) => {
|
|
29
29
|
const g = f("fm-text-field"), a = f("FmForm");
|
|
30
|
-
return
|
|
30
|
+
return A(), x(a, {
|
|
31
31
|
onValidationSuccess: s[1] || (s[1] = (e) => c(p)("primary"))
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
33
|
+
default: C(() => [
|
|
34
|
+
V(g, {
|
|
35
35
|
modelValue: t.value,
|
|
36
36
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => t.value = e),
|
|
37
37
|
rules: [(e) => !!e || c(n)("menu.subcategory.dialog.add.name.required")],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { a6 as
|
|
4
|
-
import { useI18n as
|
|
1
|
+
import { defineStore as W } from "pinia";
|
|
2
|
+
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as H, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as P, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
+
import { a6 as q, a7 as te, a4 as B, I as k, P as $, G as I, D as E, a5 as ne, K as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
4
|
+
import { useI18n as N } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
|
-
import "./menuV2-
|
|
9
|
+
import "./menuV2-CcBdUc80.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
|
-
const de = ["value", "disabled"], ce = /* @__PURE__ */
|
|
13
|
+
const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
14
14
|
__name: "NumberPrecisionInput",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -22,8 +22,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(y, { emit: g }) {
|
|
25
|
-
const t = y, n = g, c = U(() =>
|
|
26
|
-
|
|
25
|
+
const t = y, n = g, c = U(() => q(t.step ?? 1).precision), d = h(t.modelValue.toString());
|
|
26
|
+
L([() => d.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
29
29
|
const b = (e) => {
|
|
@@ -33,14 +33,14 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
33
33
|
return;
|
|
34
34
|
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
35
|
if (isFinite(a)) {
|
|
36
|
-
|
|
36
|
+
q(a).precision > c.value && e.preventDefault();
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
40
40
|
};
|
|
41
41
|
return (e, i) => {
|
|
42
42
|
const a = V("FmField"), o = V("FmFormGroup");
|
|
43
|
-
return F(),
|
|
43
|
+
return F(), H(o, {
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
modelValue: e.modelValue,
|
|
46
46
|
rules: e.rules,
|
|
@@ -70,7 +70,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
70
70
|
}, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */
|
|
73
|
+
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ T({
|
|
74
74
|
__name: "UnitMeasurement",
|
|
75
75
|
props: {
|
|
76
76
|
title: {
|
|
@@ -92,20 +92,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:model-value", "delete"],
|
|
94
94
|
setup(y, { emit: g }) {
|
|
95
|
-
const { t } =
|
|
95
|
+
const { t } = N(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
|
|
96
96
|
name: n.modelValue.name,
|
|
97
97
|
value: c.value,
|
|
98
98
|
unit: n.unitName
|
|
99
99
|
}));
|
|
100
100
|
function b(a) {
|
|
101
|
-
e("conversion",
|
|
101
|
+
e("conversion", B(a, n.precision));
|
|
102
102
|
}
|
|
103
103
|
function e(a, o) {
|
|
104
104
|
const p = k(n.modelValue);
|
|
105
105
|
p[a] = o, i("update:model-value", p);
|
|
106
106
|
}
|
|
107
107
|
const i = g;
|
|
108
|
-
return
|
|
108
|
+
return L(
|
|
109
109
|
() => n.precision,
|
|
110
110
|
() => b(c.value)
|
|
111
111
|
), (a, o) => {
|
|
@@ -151,13 +151,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
151
151
|
]);
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
}), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */
|
|
154
|
+
}), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */ T({
|
|
155
155
|
__name: "Form",
|
|
156
156
|
props: {
|
|
157
157
|
initialValue: {}
|
|
158
158
|
},
|
|
159
159
|
setup(y, { expose: g }) {
|
|
160
|
-
const { t } =
|
|
160
|
+
const { t } = N(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
|
|
161
161
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
162
162
|
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), a = h(!1), o = (u) => {
|
|
163
163
|
re.isBoolean(u) ? a.value = u : a.value = !a.value;
|
|
@@ -173,7 +173,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
173
173
|
id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
name: "",
|
|
175
175
|
abbrev: "",
|
|
176
|
-
conversion:
|
|
176
|
+
conversion: B(0, e.value.precision)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function s(u) {
|
|
@@ -207,7 +207,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
207
207
|
i.value = !1;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
|
-
return
|
|
210
|
+
return L(
|
|
211
211
|
() => a.value,
|
|
212
212
|
(u) => {
|
|
213
213
|
u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
@@ -216,8 +216,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
216
216
|
show: a,
|
|
217
217
|
trigger: o
|
|
218
218
|
}), (u, v) => {
|
|
219
|
-
const
|
|
220
|
-
return F(), A(
|
|
219
|
+
const O = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
|
|
220
|
+
return F(), A(P, null, [
|
|
221
221
|
X(u.$slots, "default", { trigger: o }),
|
|
222
222
|
m(G, {
|
|
223
223
|
id: "unit-form",
|
|
@@ -254,7 +254,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
254
254
|
default: w(() => [
|
|
255
255
|
f("div", ge, [
|
|
256
256
|
f("div", Fe, [
|
|
257
|
-
m(
|
|
257
|
+
m(O, {
|
|
258
258
|
class: "flex-2",
|
|
259
259
|
label: l(t)("menu.unit.columns.name"),
|
|
260
260
|
modelValue: e.value.name,
|
|
@@ -265,7 +265,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
268
|
-
m(
|
|
268
|
+
m(O, {
|
|
269
269
|
class: "flex-1",
|
|
270
270
|
label: l(t)("menu.unit.columns.symbol"),
|
|
271
271
|
modelValue: e.value.abbrev,
|
|
@@ -278,7 +278,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
278
278
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
279
279
|
]),
|
|
280
280
|
f("div", null, [
|
|
281
|
-
m(
|
|
281
|
+
m(R, {
|
|
282
282
|
modelValue: e.value.precision,
|
|
283
283
|
"onUpdate:modelValue": [
|
|
284
284
|
v[2] || (v[2] = (r) => e.value.precision = r),
|
|
@@ -291,17 +291,17 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
291
291
|
max: 5
|
|
292
292
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
293
293
|
]),
|
|
294
|
-
m(
|
|
294
|
+
m(z, {
|
|
295
295
|
label: l(t)("menu.unit.measurement.add"),
|
|
296
296
|
variant: "secondary",
|
|
297
297
|
onClick: _
|
|
298
298
|
}, null, 8, ["label"]),
|
|
299
|
-
(F(!0), A(
|
|
299
|
+
(F(!0), A(P, null, Z(e.value.measurements, (r, x) => (F(), A("div", {
|
|
300
300
|
key: r.id
|
|
301
301
|
}, [
|
|
302
302
|
m(Ve, {
|
|
303
303
|
modelValue: e.value.measurements[x],
|
|
304
|
-
"onUpdate:modelValue": (
|
|
304
|
+
"onUpdate:modelValue": (J) => e.value.measurements[x] = J,
|
|
305
305
|
"unit-name": e.value.name,
|
|
306
306
|
title: l(t)("menu.unit.measurement.title", { number: x + 1 }),
|
|
307
307
|
precision: e.value.precision,
|
|
@@ -315,10 +315,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
315
315
|
], 64);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}), xe = Ue,
|
|
318
|
+
}), xe = Ue, Pe = W("unit-manager", () => {
|
|
319
319
|
const y = ue(), g = j(), t = I(g), n = $(t);
|
|
320
320
|
ae();
|
|
321
|
-
const c = ee(), { t: d } =
|
|
321
|
+
const c = ee(), { t: d } = N(), b = (o) => {
|
|
322
322
|
var _, s;
|
|
323
323
|
const { vNode: p } = me(
|
|
324
324
|
xe,
|
|
@@ -368,5 +368,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
368
368
|
});
|
|
369
369
|
export {
|
|
370
370
|
xe as U,
|
|
371
|
-
|
|
371
|
+
Pe as u
|
|
372
372
|
};
|