@feedmepos/mf-menu 0.32.62 → 0.32.63-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-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as
|
|
3
|
-
import {
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useSnackbar as I, components as
|
|
6
|
-
import { u as se } from "./discardConfirm-
|
|
1
|
+
import { defineStore as H } from "pinia";
|
|
2
|
+
import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as k, toDisplayString as C, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
+
import { A as O, B as te, y as P, d as E, i as $, b as j, m as h, z as ne, g as T, h as M, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
4
|
+
import { useI18n as q } from "@feedmepos/mf-common";
|
|
5
|
+
import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
|
|
6
|
+
import { u as ie, l as se } from "./discardConfirm-DZwzKO-Q.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
|
-
import "./menuV2-
|
|
9
|
+
import "./menuV2-fTlJdjxi.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
@@ -22,7 +22,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(_, { emit: g }) {
|
|
25
|
-
const t = _, n = g, c = x(() =>
|
|
25
|
+
const t = _, n = g, c = x(() => O(t.step ?? 1).precision), d = A(t.modelValue.toString());
|
|
26
26
|
D([() => d.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
@@ -31,16 +31,16 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
31
31
|
e.key
|
|
32
32
|
))
|
|
33
33
|
return;
|
|
34
|
-
const i = e.currentTarget,
|
|
35
|
-
if (isFinite(
|
|
36
|
-
|
|
34
|
+
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
|
+
if (isFinite(a)) {
|
|
36
|
+
O(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
|
-
const
|
|
43
|
-
return F(),
|
|
42
|
+
const a = V("FmField"), o = V("FmFormGroup");
|
|
43
|
+
return F(), J(o, {
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
modelValue: e.modelValue,
|
|
46
46
|
rules: e.rules,
|
|
@@ -48,7 +48,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
48
48
|
label: e.label
|
|
49
49
|
}, {
|
|
50
50
|
default: w(({ invalid: p }) => [
|
|
51
|
-
m(
|
|
51
|
+
m(a, { invalid: p }, {
|
|
52
52
|
default: w(() => [
|
|
53
53
|
f("input", {
|
|
54
54
|
value: d.value,
|
|
@@ -92,23 +92,23 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:model-value", "delete"],
|
|
94
94
|
setup(_, { emit: g }) {
|
|
95
|
-
const { t } =
|
|
95
|
+
const { t } = q(), n = _, c = x(() => te(n.modelValue.conversion)), d = x(() => t("menu.unit.measurement.preview", {
|
|
96
96
|
name: n.modelValue.name,
|
|
97
97
|
value: c.value,
|
|
98
98
|
unit: n.unitName
|
|
99
99
|
}));
|
|
100
|
-
function b(
|
|
101
|
-
e("conversion",
|
|
100
|
+
function b(a) {
|
|
101
|
+
e("conversion", P(a, n.precision));
|
|
102
102
|
}
|
|
103
|
-
function e(
|
|
103
|
+
function e(a, o) {
|
|
104
104
|
const p = E(n.modelValue);
|
|
105
|
-
p[
|
|
105
|
+
p[a] = o, i("update:model-value", p);
|
|
106
106
|
}
|
|
107
107
|
const i = g;
|
|
108
108
|
return D(
|
|
109
109
|
() => n.precision,
|
|
110
110
|
() => b(c.value)
|
|
111
|
-
), (
|
|
111
|
+
), (a, o) => {
|
|
112
112
|
const p = V("FmButton"), y = V("FmTextField");
|
|
113
113
|
return F(), k("div", pe, [
|
|
114
114
|
f("div", ve, [
|
|
@@ -116,7 +116,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
116
116
|
m(p, {
|
|
117
117
|
icon: "delete",
|
|
118
118
|
variant: "secondary",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: o[0] || (o[0] = (s) => i("delete"))
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
122
|
f("div", be, [
|
|
@@ -128,7 +128,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
128
128
|
})
|
|
129
129
|
],
|
|
130
130
|
label: l(t)("menu.unit.measurement.name"),
|
|
131
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": o[1] || (o[1] = (s) => e("name", s.trim()))
|
|
132
132
|
}, null, 8, ["model-value", "rules", "label"]),
|
|
133
133
|
m(y, {
|
|
134
134
|
"model-value": n.modelValue.abbrev,
|
|
@@ -138,7 +138,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
138
138
|
})
|
|
139
139
|
],
|
|
140
140
|
label: l(t)("menu.unit.measurement.symbol"),
|
|
141
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": o[2] || (o[2] = (s) => e("abbrev", s.trim()))
|
|
142
142
|
}, null, 8, ["model-value", "rules", "label"])
|
|
143
143
|
]),
|
|
144
144
|
m(ce, {
|
|
@@ -157,10 +157,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
157
157
|
initialValue: {}
|
|
158
158
|
},
|
|
159
159
|
setup(_, { expose: g }) {
|
|
160
|
-
const { t } =
|
|
160
|
+
const { t } = q(), n = _, c = $(j(I())), d = x(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = x(
|
|
161
161
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
162
|
-
), e = A(n.initialValue ? E(n.initialValue) : h.generator.initUnit()), i = A(!1),
|
|
163
|
-
re.isBoolean(u) ?
|
|
162
|
+
), e = A(n.initialValue ? E(n.initialValue) : h.generator.initUnit()), i = A(!1), a = A(!1), o = (u) => {
|
|
163
|
+
re.isBoolean(u) ? a.value = u : a.value = !a.value;
|
|
164
164
|
};
|
|
165
165
|
function p() {
|
|
166
166
|
e.value.measurements = e.value.measurements.map((u) => ({
|
|
@@ -173,18 +173,18 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
173
173
|
id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
name: "",
|
|
175
175
|
abbrev: "",
|
|
176
|
-
conversion:
|
|
176
|
+
conversion: P(0, e.value.precision)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function s(u) {
|
|
180
180
|
e.value.measurements.splice(u, 1);
|
|
181
181
|
}
|
|
182
|
-
const K =
|
|
183
|
-
() => !
|
|
182
|
+
const K = ie(
|
|
183
|
+
() => !se.isEqual(e.value, n.initialValue || h.generator.initUnit()),
|
|
184
184
|
() => {
|
|
185
|
-
|
|
185
|
+
a.value = !1;
|
|
186
186
|
}
|
|
187
|
-
),
|
|
187
|
+
), z = async () => {
|
|
188
188
|
try {
|
|
189
189
|
i.value = !0;
|
|
190
190
|
const u = E(e.value);
|
|
@@ -202,30 +202,30 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
202
202
|
data: u
|
|
203
203
|
},
|
|
204
204
|
u.name
|
|
205
|
-
),
|
|
205
|
+
), o(!1), e.value = h.generator.initUnit();
|
|
206
206
|
} finally {
|
|
207
207
|
i.value = !1;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
return D(
|
|
211
|
-
() =>
|
|
211
|
+
() => a.value,
|
|
212
212
|
(u) => {
|
|
213
213
|
u && (e.value = n.initialValue ? E(n.initialValue) : h.generator.initUnit());
|
|
214
214
|
}
|
|
215
215
|
), g({
|
|
216
|
-
show:
|
|
217
|
-
trigger:
|
|
216
|
+
show: a,
|
|
217
|
+
trigger: o
|
|
218
218
|
}), (u, v) => {
|
|
219
|
-
const
|
|
220
|
-
return F(), k(
|
|
221
|
-
X(u.$slots, "default", { trigger:
|
|
219
|
+
const B = V("FmTextField"), R = V("FmStepperField"), Y = V("FmButton"), L = V("fm-button"), G = V("fm-side-sheet");
|
|
220
|
+
return F(), k(N, null, [
|
|
221
|
+
X(u.$slots, "default", { trigger: o }),
|
|
222
222
|
m(G, {
|
|
223
223
|
id: "unit-form",
|
|
224
|
-
modelValue:
|
|
225
|
-
"onUpdate:modelValue": v[4] || (v[4] = (r) =>
|
|
226
|
-
"is-container": l(
|
|
224
|
+
modelValue: a.value,
|
|
225
|
+
"onUpdate:modelValue": v[4] || (v[4] = (r) => a.value = r),
|
|
226
|
+
"is-container": l(ae).FmForm,
|
|
227
227
|
"is-container-props": {
|
|
228
|
-
onValidationSuccess:
|
|
228
|
+
onValidationSuccess: z,
|
|
229
229
|
blameFormChildOnValidationFailed: !0
|
|
230
230
|
},
|
|
231
231
|
"max-width": 560,
|
|
@@ -236,25 +236,25 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
236
236
|
]),
|
|
237
237
|
"side-sheet-footer": w(() => [
|
|
238
238
|
f("div", we, [
|
|
239
|
-
m(
|
|
239
|
+
m(L, {
|
|
240
240
|
label: b.value,
|
|
241
241
|
loading: i.value,
|
|
242
242
|
size: "lg",
|
|
243
243
|
type: "submit",
|
|
244
244
|
variant: "primary"
|
|
245
245
|
}, null, 8, ["label", "loading"]),
|
|
246
|
-
m(
|
|
246
|
+
m(L, {
|
|
247
247
|
label: l(t)("menu.common.actions.cancel"),
|
|
248
248
|
size: "lg",
|
|
249
249
|
variant: "tertiary",
|
|
250
|
-
onClick: v[3] || (v[3] = () =>
|
|
250
|
+
onClick: v[3] || (v[3] = () => a.value = !1)
|
|
251
251
|
}, null, 8, ["label"])
|
|
252
252
|
])
|
|
253
253
|
]),
|
|
254
254
|
default: w(() => [
|
|
255
255
|
f("div", ge, [
|
|
256
256
|
f("div", Fe, [
|
|
257
|
-
m(
|
|
257
|
+
m(B, {
|
|
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__ */ S({
|
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
268
|
-
m(
|
|
268
|
+
m(B, {
|
|
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__ */ S({
|
|
|
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__ */ S({
|
|
|
291
291
|
max: 5
|
|
292
292
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
293
293
|
]),
|
|
294
|
-
m(
|
|
294
|
+
m(Y, {
|
|
295
295
|
label: l(t)("menu.unit.measurement.add"),
|
|
296
296
|
variant: "secondary",
|
|
297
297
|
onClick: y
|
|
298
298
|
}, null, 8, ["label"]),
|
|
299
|
-
(F(!0), k(
|
|
299
|
+
(F(!0), k(N, null, Z(e.value.measurements, (r, U) => (F(), k("div", {
|
|
300
300
|
key: r.id
|
|
301
301
|
}, [
|
|
302
302
|
m(Ve, {
|
|
303
303
|
modelValue: e.value.measurements[U],
|
|
304
|
-
"onUpdate:modelValue": (
|
|
304
|
+
"onUpdate:modelValue": (W) => e.value.measurements[U] = W,
|
|
305
305
|
"unit-name": e.value.name,
|
|
306
306
|
title: l(t)("menu.unit.measurement.title", { number: U + 1 }),
|
|
307
307
|
precision: e.value.precision,
|
|
@@ -315,34 +315,34 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
315
315
|
], 64);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}), Ue = xe,
|
|
319
|
-
const _ =
|
|
318
|
+
}), Ue = xe, Ne = H("unit-manager", () => {
|
|
319
|
+
const _ = le(), g = I(), t = j(g), n = $(t);
|
|
320
320
|
oe();
|
|
321
|
-
const c = ee(), { t: d } =
|
|
321
|
+
const c = ee(), { t: d } = q(), b = (o) => {
|
|
322
322
|
var y, s;
|
|
323
323
|
const { vNode: p } = me(
|
|
324
324
|
Ue,
|
|
325
325
|
c,
|
|
326
|
-
|
|
326
|
+
o
|
|
327
327
|
);
|
|
328
328
|
(s = (y = p.component) == null ? void 0 : y.exposed) == null || s.trigger();
|
|
329
329
|
};
|
|
330
330
|
async function e() {
|
|
331
331
|
b({});
|
|
332
332
|
}
|
|
333
|
-
async function i(
|
|
333
|
+
async function i(o) {
|
|
334
334
|
b({
|
|
335
|
-
initialValue:
|
|
335
|
+
initialValue: o
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
async function o
|
|
338
|
+
async function a(o) {
|
|
339
339
|
_.open({
|
|
340
340
|
title: d("menu.common.dialog.remove.unit.title"),
|
|
341
|
-
message: d("menu.common.dialog.remove.unit.message", { name:
|
|
341
|
+
message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
|
|
342
342
|
primaryActions: {
|
|
343
343
|
text: d("menu.common.actions.remove"),
|
|
344
344
|
close: !0,
|
|
345
|
-
variant:
|
|
345
|
+
variant: ue.Destructive
|
|
346
346
|
},
|
|
347
347
|
secondaryActions: {
|
|
348
348
|
text: d("menu.common.actions.cancel"),
|
|
@@ -353,20 +353,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
|
|
|
353
353
|
{
|
|
354
354
|
module: M.enum.unit,
|
|
355
355
|
operation: T.F_OPERATION_TYPE.delete,
|
|
356
|
-
data:
|
|
356
|
+
data: o._id
|
|
357
357
|
},
|
|
358
|
-
|
|
358
|
+
o.name,
|
|
359
359
|
!0
|
|
360
360
|
);
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
364
364
|
createUnit: e,
|
|
365
|
-
deleteUnit:
|
|
365
|
+
deleteUnit: a,
|
|
366
366
|
updateUnit: i
|
|
367
367
|
};
|
|
368
368
|
});
|
|
369
369
|
export {
|
|
370
370
|
Ue as U,
|
|
371
|
-
|
|
371
|
+
Ne as u
|
|
372
372
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.63-dev.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"./style.css": "./dist/style.css"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@feedmepos/feature-flag": "^0.0.15",
|
|
19
18
|
"@feedmepos/auth": "^1.1.14",
|
|
20
19
|
"@feedmepos/core": "2.15.22",
|
|
21
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
22
21
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.5.tar.gz",
|
|
23
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
|
+
"@feedmepos/entity": "0.0.19",
|
|
24
|
+
"@feedmepos/feature-flag": "^0.0.15",
|
|
24
25
|
"@feedmepos/hrm-permission": "1.0.6-dev.2",
|
|
25
26
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
26
27
|
"@feedmepos/menu": "2.0.4",
|
|
27
|
-
"@feedmepos/entity": "0.0.19",
|
|
28
28
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
29
29
|
"@feedmepos/mf-remy-panel": "^0.3.5",
|
|
30
30
|
"@feedmepos/ui-library": "1.10.13",
|