@feedmepos/mf-menu 0.31.74 → 0.31.75-prod
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-B6Hn5Wwr.js → App-Cw2D3IXT.js} +528 -585
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CFtcqy58.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +74 -0
- package/dist/{Catalog-D-2hDU2I.js → Catalog-B5kAKdVW.js} +9 -9
- package/dist/{Category-hSOIgBkH.js → Category-CAd9BTRX.js} +8 -8
- package/dist/{Category-DjTbuAvE.js → Category-DKjU47aW.js} +5 -5
- package/dist/{CookingGuide-D7ruB7eP.js → CookingGuide-BN739JkB.js} +7 -7
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gii2CTYD.js} +3 -3
- package/dist/{Group-evJZbgZn.js → Group-DmII5Nwf.js} +4 -4
- package/dist/{Group-CjlhbhDV.js → Group-DnpVxZkN.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js → Group.vue_vue_type_script_setup_true_lang-BEeCwmKt.js} +163 -163
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js} +90 -90
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js} +3046 -3046
- package/dist/{Ingredient-jNDx1pUw.js → Ingredient-CpuyDF4n.js} +30 -30
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js} +1112 -1112
- package/dist/{LinkProductSideSheet-CAPIdf6P.js → LinkProductSideSheet-DrSKOBLg.js} +129 -129
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +69 -0
- package/dist/{MenuSetting-C2MDgy57.js → MenuSetting-BNuIUnjz.js} +138 -138
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js → PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js} +8 -8
- package/dist/{PrintRoute-SmWbKr9Y.js → PrintRoute-Dl0oWYju.js} +6 -6
- package/dist/{Product-BCm49V9T.js → Product-IQBP1vvY.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js → Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js} +607 -607
- package/dist/{ProductInternalTools-DGsvvnIs.js → ProductInternalTools-Dkhbg1WE.js} +11 -11
- package/dist/{Products-D4qeSEfO.js → Products-Dcafs3Lk.js} +59 -59
- package/dist/{Publish-3A3EEQ9x.js → Publish-BTuO4AlR.js} +6 -6
- package/dist/{Recipe-CS7TZGA6.js → Recipe-Dx2ZkHsk.js} +6 -6
- package/dist/{Scheduler-BIwTUJMJ.js → Scheduler-Dh_0J2g9.js} +5 -5
- package/dist/{ServingSequence-C0N8wJfr.js → ServingSequence-DXhx9dcu.js} +5 -5
- package/dist/{Setting-fA6tvQK2.js → Setting-4x_w46t_.js} +5 -5
- package/dist/{Subcategory-BAFAmflQ.js → Subcategory-vztBpQnB.js} +6 -6
- package/dist/{Takeaway-D4aO8zzN.js → Takeaway-CDgIyUrN.js} +5 -5
- package/dist/{Takeaway-CLZouw1j.js → Takeaway-Dz5PxJk_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js → Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js} +6 -6
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js → TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js → Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js +5996 -0
- package/dist/{Unit-ByqUb4Po.js → Unit-z7OVmlSq.js} +4 -4
- package/dist/{Variant-BmqrUfen.js → Variant-CFRgvlXf.js} +5 -5
- package/dist/{_id_-RUWzOB0B.js → _id_-B9q3j4_m.js} +11 -11
- package/dist/{app-B1N2F0j8.js → app-CdsS_tMb.js} +1 -1
- package/dist/app-CkCBPor3.js +363 -0
- package/dist/{app-5fxKLAzS.js → app-CzXxFrl1.js} +447 -447
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +0 -1
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B8qYyYR6.js +13 -0
- package/dist/assets/override-menu-nmSTTTn7.js +13 -0
- package/dist/assets/validate-menu-CF1XZECU.js +13 -0
- package/dist/{catalog-CarmtheV.js → catalog-DBBEUpMo.js} +1 -1
- package/dist/{catalogSetting-BqrTpBP8.js → catalogSetting-DKvBjleU.js} +1 -1
- package/dist/{category-5R83ypNS.js → category-DILExwHL.js} +1 -1
- package/dist/{currency-CUl4r9rT.js → currency-B7Xm1xZJ.js} +1 -1
- package/dist/customAttributes-DrA0YC82.js +180 -0
- package/dist/{index-Ttqt4iFV.js → index-2lrKSO_O.js} +20 -20
- package/dist/{index-DlwLw-BQ.js → index-BoVEGKz7.js} +91 -91
- package/dist/{index-DAWSNP3G.js → index-Bu5LuO1j.js} +4 -4
- package/dist/{index-DUfYYdZ-.js → index-SNNvjtFa.js} +56 -56
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js → index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js} +16 -16
- package/dist/{item-B0UPYxsB.js → item-BnOnvN8x.js} +3091 -3174
- package/dist/{iteration-CfmAZiOO.js → iteration-Csz_aSxy.js} +3 -3
- package/dist/{jszip.min-zROpry0S.js → jszip.min-B0T3I-lE.js} +329 -329
- package/dist/{menu-DAac726D.js → menu-3XEn1C9F.js} +6402 -6332
- package/dist/{menu-DpYo8dYR.js → menu-DzbYSPGP.js} +1 -1
- package/dist/{menuV2-DZj_FPqR.js → menuV2-cXg54GYW.js} +93 -93
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-BvDLl8v2.js → priceTier-DVd27LFd.js} +1 -1
- package/dist/{scheduler-pNUXG6En.js → scheduler-D8IgBrUX.js} +6 -6
- package/dist/{subcategory-DCDCQnAX.js → subcategory-BOpm3s8K.js} +2 -2
- package/dist/{toExcel-DqMa1Hn8.js → toExcel-BJM3fOB2.js} +2 -2
- package/dist/{unit-CuCXoWPG.js → unit-DF9d3piP.js} +151 -151
- package/dist/{vuedraggable-CK8z7qA8.js → vuedraggable-DnBIRDMr.js} +2 -2
- package/package.json +5 -5
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +0 -74
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js +0 -6012
- package/dist/app-CHpw_EM1.js +0 -2101
- package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
- package/dist/assets/linked-status-CFdi7K3K.js +0 -13
- package/dist/assets/override-menu-CXOY8i3w.js +0 -13
- package/dist/assets/validate-menu-DLlrsx2f.js +0 -13
- package/dist/customAttributes-BkqKM_KW.js +0 -180
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-3XEn1C9F.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-DrA0YC82.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-DzbYSPGP.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-DrSKOBLg.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -212,7 +212,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
212
212
|
function w(i, l) {
|
|
213
213
|
const y = m(i), g = m(l);
|
|
214
214
|
return y <= g ? [{ start: y, end: g }] : [
|
|
215
|
-
{ start: y, end:
|
|
215
|
+
{ start: y, end: 1439 },
|
|
216
216
|
// Until end of day (23:59)
|
|
217
217
|
{ start: 0, end: g }
|
|
218
218
|
// From start of next day
|
|
@@ -385,7 +385,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
385
385
|
"onUpdate:modelValue": (R) => o.start = R,
|
|
386
386
|
class: "flex-1"
|
|
387
387
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
388
|
-
l[8] || (l[8] = me(" - ")),
|
|
388
|
+
l[8] || (l[8] = me(" - ", -1)),
|
|
389
389
|
t(j, {
|
|
390
390
|
modelValue: o.end,
|
|
391
391
|
"onUpdate:modelValue": (R) => o.end = R,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as l, z as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, z as d, u as F } from "./menu-3XEn1C9F.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-cXg54GYW.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js";
|
|
2
|
+
import "./menu-3XEn1C9F.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
|
-
import { defineComponent as O, computed as
|
|
3
|
-
import { a5 as B, a6 as te, a3 as P, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as
|
|
2
|
+
import { defineComponent as O, computed as w, ref as h, watch as T, resolveComponent as _, createBlock as W, openBlock as F, withCtx as x, createVNode as d, createElementVNode as b, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
+
import { a5 as B, a6 as te, a3 as P, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as ae, u as oe } from "./menu-3XEn1C9F.js";
|
|
4
4
|
import { useI18n as L } 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
|
-
import { c as
|
|
8
|
-
import "./vuedraggable-
|
|
9
|
-
import "./app-
|
|
10
|
-
import "./menuV2-
|
|
7
|
+
import { c as me } from "./check-C9mY6LiX.js";
|
|
8
|
+
import "./vuedraggable-DnBIRDMr.js";
|
|
9
|
+
import "./app-CzXxFrl1.js";
|
|
10
|
+
import "./menuV2-cXg54GYW.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { c as
|
|
12
|
+
import { c as re } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
14
14
|
__name: "NumberPrecisionInput",
|
|
15
15
|
props: {
|
|
@@ -21,56 +21,56 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
21
21
|
disabled: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const t =
|
|
26
|
-
T([() =>
|
|
24
|
+
setup(u, { emit: g }) {
|
|
25
|
+
const t = u, n = g, p = w(() => B(t.step ?? 1).precision), c = h(t.modelValue.toString());
|
|
26
|
+
T([() => c.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const V = (e) => {
|
|
30
30
|
if (e.ctrlKey || e.altKey || e.metaKey || ["Backspace", "Tab", "Enter", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(
|
|
31
31
|
e.key
|
|
32
32
|
))
|
|
33
33
|
return;
|
|
34
|
-
const
|
|
35
|
-
if (isFinite(
|
|
36
|
-
B(
|
|
34
|
+
const s = e.currentTarget, o = +`${s.value}${e.key}`;
|
|
35
|
+
if (isFinite(o)) {
|
|
36
|
+
B(o).precision > p.value && e.preventDefault();
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
s.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
40
40
|
};
|
|
41
|
-
return (e,
|
|
42
|
-
const
|
|
43
|
-
return F(), W(
|
|
44
|
-
disabled:
|
|
45
|
-
modelValue:
|
|
46
|
-
rules:
|
|
47
|
-
"helper-text":
|
|
48
|
-
label:
|
|
41
|
+
return (e, s) => {
|
|
42
|
+
const o = _("FmField"), a = _("FmFormGroup");
|
|
43
|
+
return F(), W(a, {
|
|
44
|
+
disabled: u.disabled,
|
|
45
|
+
modelValue: u.modelValue,
|
|
46
|
+
rules: u.rules,
|
|
47
|
+
"helper-text": u.helperText,
|
|
48
|
+
label: u.label
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
value:
|
|
55
|
-
onInput:
|
|
56
|
-
onKeydown:
|
|
50
|
+
default: x(({ invalid: v }) => [
|
|
51
|
+
d(o, { invalid: v }, {
|
|
52
|
+
default: x(() => [
|
|
53
|
+
b("input", {
|
|
54
|
+
value: c.value,
|
|
55
|
+
onInput: s[0] || (s[0] = (y) => c.value = y.target.value),
|
|
56
|
+
onKeydown: V,
|
|
57
57
|
inputmode: "numeric",
|
|
58
58
|
class: Q({
|
|
59
59
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
60
|
-
"text-fm-color-typo-primary": !
|
|
61
|
-
"text-fm-color-typo-disabled":
|
|
60
|
+
"text-fm-color-typo-primary": !u.disabled,
|
|
61
|
+
"text-fm-color-typo-disabled": u.disabled
|
|
62
62
|
}),
|
|
63
|
-
disabled:
|
|
63
|
+
disabled: u.disabled
|
|
64
64
|
}, null, 42, de)
|
|
65
65
|
]),
|
|
66
|
-
_:
|
|
67
|
-
},
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["invalid"])
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
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" },
|
|
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" }, Ve = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, ye = /* @__PURE__ */ O({
|
|
74
74
|
__name: "UnitMeasurement",
|
|
75
75
|
props: {
|
|
76
76
|
title: {
|
|
@@ -91,84 +91,84 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:model-value", "delete"],
|
|
94
|
-
setup(
|
|
95
|
-
const { t } = L(), n =
|
|
94
|
+
setup(u, { emit: g }) {
|
|
95
|
+
const { t } = L(), n = u, p = w(() => te(n.modelValue.conversion)), c = w(() => t("menu.unit.measurement.preview", {
|
|
96
96
|
name: n.modelValue.name,
|
|
97
|
-
value:
|
|
97
|
+
value: p.value,
|
|
98
98
|
unit: n.unitName
|
|
99
99
|
}));
|
|
100
|
-
function
|
|
101
|
-
e("conversion", P(
|
|
100
|
+
function V(o) {
|
|
101
|
+
e("conversion", P(o, n.precision));
|
|
102
102
|
}
|
|
103
|
-
function e(
|
|
104
|
-
const
|
|
105
|
-
|
|
103
|
+
function e(o, a) {
|
|
104
|
+
const v = k(n.modelValue);
|
|
105
|
+
v[o] = a, s("update:model-value", v);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const s = g;
|
|
108
108
|
return T(
|
|
109
109
|
() => n.precision,
|
|
110
|
-
() =>
|
|
111
|
-
), (
|
|
112
|
-
const
|
|
110
|
+
() => V(p.value)
|
|
111
|
+
), (o, a) => {
|
|
112
|
+
const v = _("FmButton"), y = _("FmTextField");
|
|
113
113
|
return F(), A("div", pe, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
b("div", ve, [
|
|
115
|
+
b("div", fe, M(u.title), 1),
|
|
116
|
+
d(v, {
|
|
117
117
|
icon: "delete",
|
|
118
118
|
variant: "secondary",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: a[0] || (a[0] = (m) => s("delete"))
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
b("div", be, [
|
|
123
|
+
d(y, {
|
|
124
124
|
"model-value": n.modelValue.name,
|
|
125
125
|
rules: [
|
|
126
|
-
(
|
|
126
|
+
(m) => m ? !0 : l(t)("menu.common.validation.required", {
|
|
127
127
|
field: l(t)("menu.unit.measurement.name").toLowerCase()
|
|
128
128
|
})
|
|
129
129
|
],
|
|
130
130
|
label: l(t)("menu.unit.measurement.name"),
|
|
131
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => e("name", m.trim()))
|
|
132
132
|
}, null, 8, ["model-value", "rules", "label"]),
|
|
133
|
-
|
|
133
|
+
d(y, {
|
|
134
134
|
"model-value": n.modelValue.abbrev,
|
|
135
135
|
rules: [
|
|
136
|
-
(
|
|
136
|
+
(m) => m ? !0 : l(t)("menu.common.validation.required", {
|
|
137
137
|
field: l(t)("menu.unit.measurement.symbol").toLowerCase()
|
|
138
138
|
})
|
|
139
139
|
],
|
|
140
140
|
label: l(t)("menu.unit.measurement.symbol"),
|
|
141
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": a[2] || (a[2] = (m) => e("abbrev", m.trim()))
|
|
142
142
|
}, null, 8, ["model-value", "rules", "label"])
|
|
143
143
|
]),
|
|
144
|
-
|
|
144
|
+
d(ce, {
|
|
145
145
|
label: l(t)("menu.unit.measurement.conversion"),
|
|
146
|
-
"model-value":
|
|
147
|
-
"onUpdate:modelValue":
|
|
146
|
+
"model-value": p.value,
|
|
147
|
+
"onUpdate:modelValue": V,
|
|
148
148
|
step: 1 / Math.pow(10, n.precision)
|
|
149
149
|
}, null, 8, ["label", "model-value", "step"]),
|
|
150
|
-
|
|
150
|
+
b("div", Ve, M(l(t)("menu.unit.measurement.preview_label")) + ": " + M(c.value), 1)
|
|
151
151
|
]);
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
}),
|
|
154
|
+
}), _e = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, xe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ O({
|
|
155
155
|
__name: "Form",
|
|
156
156
|
props: {
|
|
157
157
|
initialValue: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
const { t } = L(), n =
|
|
159
|
+
setup(u, { expose: g }) {
|
|
160
|
+
const { t } = L(), n = u, p = $(I(j())), c = w(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), V = w(
|
|
161
161
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
162
|
-
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()),
|
|
163
|
-
|
|
162
|
+
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), s = h(!1), o = h(!1), a = (i) => {
|
|
163
|
+
me.isBoolean(i) ? o.value = i : o.value = !o.value;
|
|
164
164
|
};
|
|
165
|
-
function
|
|
166
|
-
e.value.measurements = e.value.measurements.map((
|
|
167
|
-
...
|
|
168
|
-
conversion: ne(
|
|
165
|
+
function v() {
|
|
166
|
+
e.value.measurements = e.value.measurements.map((i) => ({
|
|
167
|
+
...i,
|
|
168
|
+
conversion: ne(i.conversion, e.value.precision)
|
|
169
169
|
}));
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function y() {
|
|
172
172
|
e.value.measurements.push({
|
|
173
173
|
id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
name: "",
|
|
@@ -176,53 +176,53 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
176
176
|
conversion: P(0, e.value.precision)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.value.measurements.splice(
|
|
179
|
+
function m(i) {
|
|
180
|
+
e.value.measurements.splice(i, 1);
|
|
181
181
|
}
|
|
182
182
|
const K = se(
|
|
183
|
-
() => !
|
|
183
|
+
() => !ae.isEqual(e.value, n.initialValue || E.generator.initUnit()),
|
|
184
184
|
() => {
|
|
185
|
-
|
|
185
|
+
o.value = !1;
|
|
186
186
|
}
|
|
187
187
|
), Y = async () => {
|
|
188
188
|
try {
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
n.initialValue ? await
|
|
189
|
+
s.value = !0;
|
|
190
|
+
const i = k(e.value);
|
|
191
|
+
n.initialValue ? await p.updateMenu(
|
|
192
192
|
{
|
|
193
193
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
194
194
|
operation: C.F_OPERATION_TYPE.update,
|
|
195
|
-
data:
|
|
195
|
+
data: i
|
|
196
196
|
},
|
|
197
|
-
|
|
198
|
-
) : await
|
|
197
|
+
i.name
|
|
198
|
+
) : await p.updateMenu(
|
|
199
199
|
{
|
|
200
200
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
201
201
|
operation: C.F_OPERATION_TYPE.create,
|
|
202
|
-
data:
|
|
202
|
+
data: i
|
|
203
203
|
},
|
|
204
|
-
|
|
205
|
-
),
|
|
204
|
+
i.name
|
|
205
|
+
), a(!1), e.value = E.generator.initUnit();
|
|
206
206
|
} finally {
|
|
207
|
-
|
|
207
|
+
s.value = !1;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
return T(
|
|
211
|
-
() =>
|
|
212
|
-
(
|
|
213
|
-
|
|
211
|
+
() => o.value,
|
|
212
|
+
(i) => {
|
|
213
|
+
i && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
214
214
|
}
|
|
215
215
|
), g({
|
|
216
|
-
show:
|
|
217
|
-
trigger:
|
|
218
|
-
}), (
|
|
219
|
-
const N =
|
|
216
|
+
show: o,
|
|
217
|
+
trigger: a
|
|
218
|
+
}), (i, f) => {
|
|
219
|
+
const N = _("FmTextField"), z = _("FmStepperField"), R = _("FmButton"), S = _("fm-button"), G = _("fm-side-sheet");
|
|
220
220
|
return F(), A(q, null, [
|
|
221
|
-
X(
|
|
222
|
-
|
|
221
|
+
X(i.$slots, "default", { trigger: a }),
|
|
222
|
+
d(G, {
|
|
223
223
|
id: "unit-form",
|
|
224
|
-
modelValue:
|
|
225
|
-
"onUpdate:modelValue":
|
|
224
|
+
modelValue: o.value,
|
|
225
|
+
"onUpdate:modelValue": f[4] || (f[4] = (r) => o.value = r),
|
|
226
226
|
"is-container": l(le).FmForm,
|
|
227
227
|
"is-container-props": {
|
|
228
228
|
onValidationSuccess: Y,
|
|
@@ -231,45 +231,45 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
231
231
|
"max-width": 560,
|
|
232
232
|
"onOn:clickedAway": l(K)
|
|
233
233
|
}, {
|
|
234
|
-
"side-sheet-header":
|
|
235
|
-
|
|
234
|
+
"side-sheet-header": x(() => [
|
|
235
|
+
b("p", _e, M(c.value), 1)
|
|
236
236
|
]),
|
|
237
|
-
"side-sheet-footer":
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
label:
|
|
241
|
-
loading:
|
|
237
|
+
"side-sheet-footer": x(() => [
|
|
238
|
+
b("div", xe, [
|
|
239
|
+
d(S, {
|
|
240
|
+
label: V.value,
|
|
241
|
+
loading: s.value,
|
|
242
242
|
size: "lg",
|
|
243
243
|
type: "submit",
|
|
244
244
|
variant: "primary"
|
|
245
245
|
}, null, 8, ["label", "loading"]),
|
|
246
|
-
|
|
246
|
+
d(S, {
|
|
247
247
|
label: l(t)("menu.common.actions.cancel"),
|
|
248
248
|
size: "lg",
|
|
249
249
|
variant: "tertiary",
|
|
250
|
-
onClick:
|
|
250
|
+
onClick: f[3] || (f[3] = () => o.value = !1)
|
|
251
251
|
}, null, 8, ["label"])
|
|
252
252
|
])
|
|
253
253
|
]),
|
|
254
|
-
default:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
default: x(() => [
|
|
255
|
+
b("div", ge, [
|
|
256
|
+
b("div", Fe, [
|
|
257
|
+
d(N, {
|
|
258
258
|
class: "flex-2",
|
|
259
259
|
label: l(t)("menu.unit.columns.name"),
|
|
260
260
|
modelValue: e.value.name,
|
|
261
|
-
"onUpdate:modelValue":
|
|
261
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => e.value.name = r),
|
|
262
262
|
rules: [
|
|
263
263
|
(r) => r ? !0 : l(t)("menu.common.validation.required", {
|
|
264
264
|
field: l(t)("menu.unit.columns.name").toLowerCase()
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
268
|
-
|
|
268
|
+
d(N, {
|
|
269
269
|
class: "flex-1",
|
|
270
270
|
label: l(t)("menu.unit.columns.symbol"),
|
|
271
271
|
modelValue: e.value.abbrev,
|
|
272
|
-
"onUpdate:modelValue":
|
|
272
|
+
"onUpdate:modelValue": f[1] || (f[1] = (r) => e.value.abbrev = r),
|
|
273
273
|
rules: [
|
|
274
274
|
(r) => r ? !0 : l(t)("menu.common.validation.required", {
|
|
275
275
|
field: l(t)("menu.unit.columns.symbol").toLowerCase()
|
|
@@ -277,12 +277,12 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
277
277
|
]
|
|
278
278
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
279
279
|
]),
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
b("div", null, [
|
|
281
|
+
d(z, {
|
|
282
282
|
modelValue: e.value.precision,
|
|
283
283
|
"onUpdate:modelValue": [
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
f[2] || (f[2] = (r) => e.value.precision = r),
|
|
285
|
+
v
|
|
286
286
|
],
|
|
287
287
|
label: l(t)("menu.unit.precision"),
|
|
288
288
|
placeholder: l(t)("menu.unit.precision_placeholder"),
|
|
@@ -291,21 +291,21 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
291
291
|
max: 5
|
|
292
292
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
293
293
|
]),
|
|
294
|
-
|
|
294
|
+
d(R, {
|
|
295
295
|
label: l(t)("menu.unit.measurement.add"),
|
|
296
296
|
variant: "secondary",
|
|
297
|
-
onClick:
|
|
297
|
+
onClick: y
|
|
298
298
|
}, null, 8, ["label"]),
|
|
299
|
-
(F(!0), A(q, null, Z(e.value.measurements, (r,
|
|
299
|
+
(F(!0), A(q, null, Z(e.value.measurements, (r, U) => (F(), A("div", {
|
|
300
300
|
key: r.id
|
|
301
301
|
}, [
|
|
302
|
-
|
|
303
|
-
modelValue: e.value.measurements[
|
|
304
|
-
"onUpdate:modelValue": (H) => e.value.measurements[
|
|
302
|
+
d(ye, {
|
|
303
|
+
modelValue: e.value.measurements[U],
|
|
304
|
+
"onUpdate:modelValue": (H) => e.value.measurements[U] = H,
|
|
305
305
|
"unit-name": e.value.name,
|
|
306
|
-
title: l(t)("menu.unit.measurement.title", { number:
|
|
306
|
+
title: l(t)("menu.unit.measurement.title", { number: U + 1 }),
|
|
307
307
|
precision: e.value.precision,
|
|
308
|
-
onDelete: () =>
|
|
308
|
+
onDelete: () => m(U)
|
|
309
309
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "unit-name", "title", "precision", "onDelete"])
|
|
310
310
|
]))), 128))
|
|
311
311
|
])
|
|
@@ -315,37 +315,37 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
315
315
|
], 64);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
var
|
|
323
|
-
const { vNode:
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
318
|
+
}), Ue = we, qe = J("unit-manager", () => {
|
|
319
|
+
const u = ue(), g = j(), t = I(g), n = $(t);
|
|
320
|
+
oe();
|
|
321
|
+
const p = ee(), { t: c } = L(), V = (a) => {
|
|
322
|
+
var y, m;
|
|
323
|
+
const { vNode: v } = re(
|
|
324
|
+
Ue,
|
|
325
|
+
p,
|
|
326
|
+
a
|
|
327
327
|
);
|
|
328
|
-
(
|
|
328
|
+
(m = (y = v.component) == null ? void 0 : y.exposed) == null || m.trigger();
|
|
329
329
|
};
|
|
330
330
|
async function e() {
|
|
331
|
-
|
|
331
|
+
V({});
|
|
332
332
|
}
|
|
333
|
-
async function
|
|
334
|
-
|
|
335
|
-
initialValue:
|
|
333
|
+
async function s(a) {
|
|
334
|
+
V({
|
|
335
|
+
initialValue: a
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
async function a
|
|
339
|
-
|
|
340
|
-
title:
|
|
341
|
-
message:
|
|
338
|
+
async function o(a) {
|
|
339
|
+
u.open({
|
|
340
|
+
title: c("menu.common.dialog.remove.unit.title"),
|
|
341
|
+
message: c("menu.common.dialog.remove.unit.message", { name: a.name }),
|
|
342
342
|
primaryActions: {
|
|
343
|
-
text:
|
|
343
|
+
text: c("menu.common.actions.remove"),
|
|
344
344
|
close: !0,
|
|
345
345
|
variant: ie.Destructive
|
|
346
346
|
},
|
|
347
347
|
secondaryActions: {
|
|
348
|
-
text:
|
|
348
|
+
text: c("menu.common.actions.cancel"),
|
|
349
349
|
close: !0
|
|
350
350
|
}
|
|
351
351
|
}).onPrimary(async () => {
|
|
@@ -353,20 +353,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
353
353
|
{
|
|
354
354
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
355
355
|
operation: C.F_OPERATION_TYPE.delete,
|
|
356
|
-
data:
|
|
356
|
+
data: a._id
|
|
357
357
|
},
|
|
358
|
-
|
|
358
|
+
a.name,
|
|
359
359
|
!0
|
|
360
360
|
);
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
364
364
|
createUnit: e,
|
|
365
|
-
deleteUnit:
|
|
366
|
-
updateUnit:
|
|
365
|
+
deleteUnit: o,
|
|
366
|
+
updateUnit: s
|
|
367
367
|
};
|
|
368
368
|
});
|
|
369
369
|
export {
|
|
370
|
-
|
|
370
|
+
Ue as U,
|
|
371
371
|
qe as u
|
|
372
372
|
};
|
|
@@ -457,14 +457,14 @@ function A(e) {
|
|
|
457
457
|
newDraggableIndex: Q
|
|
458
458
|
}, e));
|
|
459
459
|
}
|
|
460
|
-
var c, D, m, _, at, Mt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Yt = !1, Bt = [], rt, Y, $t, zt, ge, ve, bt, st, St, Ct = !1, At = !1, Lt, I, Ut = [], ee = !1, Ht = [], Wt = typeof document < "u", Pt = Se, be = Tt || q ? "cssFloat" : "float", cn = Wt && !Je && !Se && "draggable" in document.createElement("div"), Ae = function() {
|
|
460
|
+
var c, D, m, _, at, Mt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Yt = !1, Bt = [], rt, Y, $t, zt, ge, ve, bt, st, St, Ct = !1, At = !1, Lt, I, Ut = [], ee = !1, Ht = [], Wt = typeof document < "u", Pt = Se, be = Tt || q ? "cssFloat" : "float", cn = Wt && !Je && !Se && "draggable" in document.createElement("div"), Ae = (function() {
|
|
461
461
|
if (Wt) {
|
|
462
462
|
if (q)
|
|
463
463
|
return !1;
|
|
464
464
|
var e = document.createElement("x");
|
|
465
465
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
466
466
|
}
|
|
467
|
-
}(), Pe = function(t, n) {
|
|
467
|
+
})(), Pe = function(t, n) {
|
|
468
468
|
var o = h(t), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = ft(t, 0, n), a = ft(t, 1, n), l = i && h(i), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(a).width;
|
|
469
469
|
if (o.display === "flex")
|
|
470
470
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.75-prod",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
24
|
"@feedmepos/menu": "1.7.32",
|
|
25
25
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
|
-
"@feedmepos/remy-
|
|
26
|
+
"@feedmepos/mf-remy-panel": "^0.1.0",
|
|
27
27
|
"@feedmepos/ui-library": "1.8.7",
|
|
28
28
|
"@feedmepos/zod-entity": "0.0.4-alpha.9",
|
|
29
29
|
"@types/dinero.js": "^1.9.4",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"uuid": "^10.0.0",
|
|
47
47
|
"vite-svg-loader": "^5.1.0",
|
|
48
48
|
"vue": "^3.5.16",
|
|
49
|
-
"vue3-carousel": "0.16.0",
|
|
50
49
|
"vue-advanced-cropper": "^2.8.9",
|
|
51
50
|
"vue-i18n": "10.0.5",
|
|
52
51
|
"vue-router": "^4.2.5",
|
|
52
|
+
"vue3-carousel": "0.16.0",
|
|
53
53
|
"vue3-lottie": "^3.3.0",
|
|
54
54
|
"vuedraggable": "^4.1.0",
|
|
55
55
|
"xlsx": "^0.18.5",
|
|
56
|
-
"@feedmepos/mf-common": "^1.28.
|
|
56
|
+
"@feedmepos/mf-common": "^1.28.6"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@types/uuid": "^10.0.0",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
67
67
|
"@vitejs/plugin-vue-jsx": "^5.0.0",
|
|
68
|
-
"@vue/tsconfig": "^0.4.0",
|
|
69
68
|
"@vitest/ui": "^2.1.8",
|
|
69
|
+
"@vue/tsconfig": "^0.4.0",
|
|
70
70
|
"autoprefixer": "^10.4.16",
|
|
71
71
|
"eslint": "^8.49.0",
|
|
72
72
|
"eslint-plugin-tailwindcss": "^3.14.0",
|