@feedmepos/mf-menu 0.32.41 → 0.32.42-dev.2
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-Bt5lFavE.js → App-DyZQZRjQ.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Dmc7Gawc.js} +3 -3
- package/dist/{Catalog-DJyGxDRP.js → Catalog-DJK-TFnH.js} +44 -44
- package/dist/{Category-BlIUSUxn.js → Category-BuI4C-2a.js} +24 -24
- package/dist/{Category-CNTOOIJE.js → Category-CPzzDgEf.js} +24 -24
- package/dist/{CookingGuide-CpZfKE5H.js → CookingGuide-DUhJyB8k.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-QzZR2W1U.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CNFPeZwz.js} +1 -1
- package/dist/{Group-Bhnov3p8.js → Group-B3FUEieg.js} +3 -3
- package/dist/{Group-B88fbCOf.js → Group-BOzJII7-.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CRAX3mIt.js → Group.vue_vue_type_script_setup_true_lang-DnkI2_Oa.js} +18 -18
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bqh6a0oO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KRANAiR_.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DPAxkce6.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dossu1rN.js} +1652 -1651
- package/dist/{Ingredient-BORYH8yl.js → Ingredient-D2ikFdFk.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C_8s8d6S.js} +2 -2
- package/dist/{LinkProductSideSheet-DQN59t0a.js → LinkProductSideSheet-D4rj-g7A.js} +45 -45
- package/dist/{MenuSetting-cI0j1omE.js → MenuSetting-DoLdFE5R.js} +47 -47
- package/dist/{PrintRoute-CXSuomGR.js → PrintRoute-CCmnaHAm.js} +39 -39
- package/dist/{Product-DgbQeeKt.js → Product-BN6HXtCO.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-D0cnQC3i.js → Product.vue_vue_type_script_setup_true_lang-C0G-qKY-.js} +128 -128
- package/dist/{ProductInternalTools-B1zpNBze.js → ProductInternalTools-C0z1uq-O.js} +66 -66
- package/dist/Products-TpbvQRuF.js +334 -0
- package/dist/{Publish-Cqdk3SjG.js → Publish-CH1SAEmF.js} +29 -29
- package/dist/{Recipe-anT6QBZT.js → Recipe-Bv7Xvvig.js} +24 -24
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js → RuleView.vue_vue_type_script_setup_true_lang-yK04zs8F.js} +366 -366
- package/dist/{Scheduler-Z64VCw-y.js → Scheduler-34IfrdGd.js} +11 -11
- package/dist/{ServingSequence-B7ZbvY1v.js → ServingSequence-BZV2R5sJ.js} +44 -44
- package/dist/{Setting-DnVCq2hY.js → Setting-C2tFfdTn.js} +17 -17
- package/dist/{Subcategory-dpz-Um56.js → Subcategory-867aDkMq.js} +51 -51
- package/dist/{Takeaway-mwLXbT9q.js → Takeaway-DA67zMKW.js} +1 -1
- package/dist/{Takeaway-DiyOBq1g.js → Takeaway-DG6W-5rb.js} +13 -13
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-tg3AJE3_.js → Takeaway.vue_vue_type_script_setup_true_lang-oTjvIuW5.js} +28 -28
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-FRH0zCh6.js → Thumbnail.vue_vue_type_script_setup_true_lang-XOx8U70f.js} +27 -27
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaWVsB5J.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzwlZ9jW.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-EvzBnFBA.js} +13 -13
- package/dist/{Unit-CmF2olR8.js → Unit-BrnUnuKe.js} +8 -8
- package/dist/{Variant-C9-_-SLX.js → Variant-DNqNIjGo.js} +24 -24
- package/dist/{_id_-C4Zpr6wS.js → _id_-C3f3DoB2.js} +28 -28
- package/dist/{app-CrcPPLl1.js → app-B-QXUPPG.js} +1 -1
- package/dist/app-C6mqBuy7.js +1643 -0
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-68qGGp41.js → linked-status-dZQn0E-t.js} +5 -5
- package/dist/assets/{menu-export-CRtF4W1I.js → menu-export-DjmfmMlF.js} +2 -2
- package/dist/assets/{override-menu-DB0DJf_x.js → override-menu-VI40pTYL.js} +5 -5
- package/dist/assets/{validate-menu-oi_J1ue-.js → validate-menu-Bx6Q4XmI.js} +2 -2
- package/dist/{catalog-Cp4kVRAL.js → catalog-lpCtSLwi.js} +1 -1
- package/dist/{catalogSetting-Cr0DX5kw.js → catalogSetting-CjkTvvES.js} +1 -1
- package/dist/{currency-C_IuOt0j.js → currency-CvxKEiUE.js} +1 -1
- package/dist/dayjs.min-CIOb7sxL.js +7 -0
- package/dist/{index-vqNnqeRW.js → index-ByYyYErE.js} +1 -1
- package/dist/{index-CXzIkkUH.js → index-D2CiC7yd.js} +31 -31
- package/dist/{index-DzLNqNMt.js → index-vQOhdIJK.js} +43 -43
- package/dist/{index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js → index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js} +244 -269
- package/dist/{item-C3_GKsNy.js → item-BpsW9Dh2.js} +15 -15
- package/dist/{jszip.min-BiRK-xY3.js → jszip.min-Cu3w0lqa.js} +388 -387
- package/dist/{menu-CYrjppCV.js → menu-BDPvT1K5.js} +1 -1
- package/dist/{menuV2-DWQ093x3.js → menuV2-D_qXpcQq.js} +93 -93
- package/dist/{priceTier-CD3j-Ccs.js → priceTier-BfGUaC4W.js} +1 -1
- package/dist/{rules-BTZh0AjD.js → rules-Dyypmwof.js} +11 -11
- package/dist/{scheduler-PVlNN-pB.js → scheduler-4eaMAOaq.js} +29 -29
- package/dist/{toExcel-lSyQhZQ9.js → toExcel-BBKjTeeK.js} +2 -2
- package/dist/{unit-1MnbZYm8.js → unit-gujLoxgg.js} +35 -35
- package/package.json +2 -1
- package/dist/Products-JodXj4IG.js +0 -291
- package/dist/app-BC-PDZ1J.js +0 -363
- package/dist/dayjs.min-fN9Ef6y1.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
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
|
|
2
|
-
import {
|
|
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 { G as S, y as r, u as pe, H as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
-
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-yK04zs8F.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-BDPvT1K5.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-D4rj-g7A.js";
|
|
10
10
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -19,8 +19,8 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
19
19
|
modelValue: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(V, { emit:
|
|
23
|
-
const f = V, e =
|
|
22
|
+
setup(V, { emit: j }) {
|
|
23
|
+
const f = V, e = j, { categories: J } = he(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
|
|
24
24
|
label: s.name,
|
|
25
25
|
value: s.id
|
|
26
26
|
})), X = (s) => {
|
|
@@ -62,9 +62,9 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
62
62
|
"onUpdate:modelValue": X
|
|
63
63
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
64
64
|
f.modelValue ? (u(), d("div", Fe, [
|
|
65
|
-
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke,
|
|
65
|
+
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
|
|
66
66
|
((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
|
|
67
|
-
h("div", null,
|
|
67
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
68
68
|
t(te, {
|
|
69
69
|
content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
70
70
|
variant: "plain",
|
|
@@ -88,7 +88,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
88
88
|
items: Z,
|
|
89
89
|
"onUpdate:modelValue": (b) => z(k, b)
|
|
90
90
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
91
|
-
h("div", null,
|
|
91
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
92
92
|
T.type === "category" ? (u(), I(B, {
|
|
93
93
|
key: 0,
|
|
94
94
|
"model-value": T.value,
|
|
@@ -101,7 +101,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
101
101
|
class: "flex items-center gap-4",
|
|
102
102
|
key: U
|
|
103
103
|
}, [
|
|
104
|
-
U > 0 ? (u(), d("div", Ue,
|
|
104
|
+
U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
|
|
105
105
|
h("div", xe, [
|
|
106
106
|
t(q, {
|
|
107
107
|
"model-value": b,
|
|
@@ -148,10 +148,10 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
148
148
|
}, Pe = { class: "flex flex-wrap gap-8" }, Te = {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: "pl-32 flex flex-col items-start gap-16"
|
|
151
|
-
},
|
|
151
|
+
}, Le = { class: "w-full" }, Ae = {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: "mt-8"
|
|
154
|
-
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" },
|
|
154
|
+
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ ie({
|
|
155
155
|
__name: "SchedulerDialog",
|
|
156
156
|
props: {
|
|
157
157
|
categorizedItems: {
|
|
@@ -164,9 +164,9 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
emits: ["onComplete"],
|
|
167
|
-
setup(V, { expose:
|
|
167
|
+
setup(V, { expose: j, emit: f }) {
|
|
168
168
|
const { t: e } = de(), J = V;
|
|
169
|
-
|
|
169
|
+
j({
|
|
170
170
|
show: le,
|
|
171
171
|
hide: O
|
|
172
172
|
});
|
|
@@ -226,9 +226,9 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
226
226
|
if (i.length <= 1) return null;
|
|
227
227
|
for (let l = 0; l < i.length; l++)
|
|
228
228
|
for (let y = l + 1; y < i.length; y++) {
|
|
229
|
-
const g = i[l],
|
|
229
|
+
const g = i[l], L = i[y], ae = w(g.start, g.end), G = w(L.start, L.end);
|
|
230
230
|
for (const x of ae)
|
|
231
|
-
for (const oe of
|
|
231
|
+
for (const oe of G)
|
|
232
232
|
if (te(x, oe))
|
|
233
233
|
return e("menu.scheduler.dialog.sections.period.overlap");
|
|
234
234
|
}
|
|
@@ -251,7 +251,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
251
251
|
}
|
|
252
252
|
const b = Y(() => J.categorizedItems.reduce((i, l) => {
|
|
253
253
|
const y = l.items.filter(
|
|
254
|
-
(g) => a.value.items.some(({ _id:
|
|
254
|
+
(g) => a.value.items.some(({ _id: L }) => g._id === L)
|
|
255
255
|
);
|
|
256
256
|
return y.length && i.push({ ...l, items: y }), i;
|
|
257
257
|
}, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
|
|
@@ -261,7 +261,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
return (i, l) => {
|
|
264
|
-
const y = _("FmTextField"), g = _("FmRadio"),
|
|
264
|
+
const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), G = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
|
|
265
265
|
return u(), I(ce, {
|
|
266
266
|
modelValue: D.value,
|
|
267
267
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
|
|
@@ -322,7 +322,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
322
322
|
}, {
|
|
323
323
|
default: v(() => [
|
|
324
324
|
h("div", null, [
|
|
325
|
-
t(
|
|
325
|
+
t(L, {
|
|
326
326
|
modelValue: a.value.repeat,
|
|
327
327
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
|
|
328
328
|
}, {
|
|
@@ -356,7 +356,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
356
356
|
})
|
|
357
357
|
]),
|
|
358
358
|
h("div", null, [
|
|
359
|
-
t(
|
|
359
|
+
t(L, {
|
|
360
360
|
label: n(e)("menu.scheduler.dialog.sections.period.title"),
|
|
361
361
|
modelValue: C.value,
|
|
362
362
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
|
|
@@ -376,18 +376,18 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
376
376
|
t(se, { name: "expand" }, {
|
|
377
377
|
default: v(() => [
|
|
378
378
|
C.value === "custom" ? (u(), d("div", Te, [
|
|
379
|
-
h("div",
|
|
379
|
+
h("div", Le, [
|
|
380
380
|
(u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
|
|
381
381
|
key: E,
|
|
382
382
|
class: "w-full flex gap-8 items-center"
|
|
383
383
|
}, [
|
|
384
|
-
t(
|
|
384
|
+
t(G, {
|
|
385
385
|
modelValue: o.start,
|
|
386
386
|
"onUpdate:modelValue": (R) => o.start = R,
|
|
387
387
|
class: "flex-1"
|
|
388
388
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
389
389
|
l[8] || (l[8] = me(" - ")),
|
|
390
|
-
t(
|
|
390
|
+
t(G, {
|
|
391
391
|
modelValue: o.end,
|
|
392
392
|
"onUpdate:modelValue": (R) => o.end = R,
|
|
393
393
|
class: "flex-1"
|
|
@@ -398,8 +398,8 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
398
398
|
onClick: (R) => c(E)
|
|
399
399
|
}, null, 8, ["onClick"])
|
|
400
400
|
]))), 128)),
|
|
401
|
-
U.value ? (u(), d("div",
|
|
402
|
-
h("div", Ne,
|
|
401
|
+
U.value ? (u(), d("div", Ae, [
|
|
402
|
+
h("div", Ne, A(U.value), 1)
|
|
403
403
|
])) : F("", !0)
|
|
404
404
|
]),
|
|
405
405
|
t(x, {
|
|
@@ -458,12 +458,12 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
458
458
|
(u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
|
|
459
459
|
key: o.id
|
|
460
460
|
}, [
|
|
461
|
-
h("div", Re,
|
|
461
|
+
h("div", Re, A(o.name), 1),
|
|
462
462
|
(u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
|
|
463
463
|
key: E._id,
|
|
464
464
|
class: "flex border-b border-b-gray-100 items-center"
|
|
465
465
|
}, [
|
|
466
|
-
h("div", Ye,
|
|
466
|
+
h("div", Ye, A(E.name), 1),
|
|
467
467
|
h("div", Me, [
|
|
468
468
|
t(x, {
|
|
469
469
|
icon: "delete",
|
|
@@ -508,7 +508,7 @@ function Xe(V) {
|
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
510
|
export {
|
|
511
|
-
|
|
511
|
+
je as _,
|
|
512
512
|
Je as c,
|
|
513
513
|
Xe as d,
|
|
514
514
|
We as u
|
|
@@ -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-Dossu1rN.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.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 {
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useSnackbar as
|
|
1
|
+
import { defineStore as J } from "pinia";
|
|
2
|
+
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as y, createBlock as W, 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 q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
+
import { a5 as B, a6 as te, a3 as P, G as k, O as $, B as j, A as E, a4 as ne, J as C, y as D, H as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
4
|
+
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
|
+
import { useSnackbar as I, 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-D_qXpcQq.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__ */ O({
|
|
14
14
|
__name: "NumberPrecisionInput",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -21,9 +21,9 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
21
21
|
disabled: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const t =
|
|
26
|
-
|
|
24
|
+
setup(V, { emit: g }) {
|
|
25
|
+
const t = V, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
|
|
26
|
+
T([() => d.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
29
29
|
const b = (e) => {
|
|
@@ -33,13 +33,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
33
33
|
return;
|
|
34
34
|
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
35
|
if (isFinite(a)) {
|
|
36
|
-
|
|
36
|
+
B(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 a =
|
|
42
|
+
const a = y("FmField"), o = y("FmFormGroup");
|
|
43
43
|
return F(), W(o, {
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
modelValue: e.modelValue,
|
|
@@ -55,7 +55,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
55
55
|
onInput: i[0] || (i[0] = (_) => d.value = _.target.value),
|
|
56
56
|
onKeydown: b,
|
|
57
57
|
inputmode: "numeric",
|
|
58
|
-
class:
|
|
58
|
+
class: Q({
|
|
59
59
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
60
60
|
"text-fm-color-typo-primary": !e.disabled,
|
|
61
61
|
"text-fm-color-typo-disabled": e.disabled
|
|
@@ -70,7 +70,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
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" },
|
|
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" }, ye = /* @__PURE__ */ O({
|
|
74
74
|
__name: "UnitMeasurement",
|
|
75
75
|
props: {
|
|
76
76
|
title: {
|
|
@@ -91,28 +91,28 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:model-value", "delete"],
|
|
94
|
-
setup(
|
|
95
|
-
const { t } =
|
|
94
|
+
setup(V, { emit: g }) {
|
|
95
|
+
const { t } = L(), n = V, 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", P(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 T(
|
|
109
109
|
() => n.precision,
|
|
110
110
|
() => b(c.value)
|
|
111
111
|
), (a, o) => {
|
|
112
|
-
const p =
|
|
112
|
+
const p = y("FmButton"), _ = y("FmTextField");
|
|
113
113
|
return F(), A("div", pe, [
|
|
114
114
|
f("div", ve, [
|
|
115
|
-
f("div", fe, M(
|
|
115
|
+
f("div", fe, M(V.title), 1),
|
|
116
116
|
m(p, {
|
|
117
117
|
icon: "delete",
|
|
118
118
|
variant: "secondary",
|
|
@@ -151,13 +151,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
151
151
|
]);
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
}),
|
|
154
|
+
}), Ve = { 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__ */ O({
|
|
155
155
|
__name: "Form",
|
|
156
156
|
props: {
|
|
157
157
|
initialValue: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
const { t } =
|
|
159
|
+
setup(V, { expose: g }) {
|
|
160
|
+
const { t } = L(), n = V, c = $(j(I())), 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__ */ T({
|
|
|
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) {
|
|
@@ -207,7 +207,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
207
207
|
i.value = !1;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
|
-
return
|
|
210
|
+
return T(
|
|
211
211
|
() => a.value,
|
|
212
212
|
(u) => {
|
|
213
213
|
u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
@@ -216,7 +216,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
216
216
|
show: a,
|
|
217
217
|
trigger: o
|
|
218
218
|
}), (u, v) => {
|
|
219
|
-
const
|
|
219
|
+
const N = y("FmTextField"), R = y("FmStepperField"), z = y("FmButton"), S = y("fm-button"), G = y("fm-side-sheet");
|
|
220
220
|
return F(), A(q, null, [
|
|
221
221
|
X(u.$slots, "default", { trigger: o }),
|
|
222
222
|
m(G, {
|
|
@@ -232,7 +232,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
232
232
|
"onOn:clickedAway": l(K)
|
|
233
233
|
}, {
|
|
234
234
|
"side-sheet-header": w(() => [
|
|
235
|
-
f("p",
|
|
235
|
+
f("p", Ve, M(d.value), 1)
|
|
236
236
|
]),
|
|
237
237
|
"side-sheet-footer": w(() => [
|
|
238
238
|
f("div", we, [
|
|
@@ -254,7 +254,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
254
254
|
default: w(() => [
|
|
255
255
|
f("div", ge, [
|
|
256
256
|
f("div", Fe, [
|
|
257
|
-
m(
|
|
257
|
+
m(N, {
|
|
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__ */ T({
|
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
268
|
-
m(
|
|
268
|
+
m(N, {
|
|
269
269
|
class: "flex-1",
|
|
270
270
|
label: l(t)("menu.unit.columns.symbol"),
|
|
271
271
|
modelValue: e.value.abbrev,
|
|
@@ -299,9 +299,9 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
299
299
|
(F(!0), A(q, null, Z(e.value.measurements, (r, x) => (F(), A("div", {
|
|
300
300
|
key: r.id
|
|
301
301
|
}, [
|
|
302
|
-
m(
|
|
302
|
+
m(ye, {
|
|
303
303
|
modelValue: e.value.measurements[x],
|
|
304
|
-
"onUpdate:modelValue": (
|
|
304
|
+
"onUpdate:modelValue": (H) => e.value.measurements[x] = H,
|
|
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__ */ T({
|
|
|
315
315
|
], 64);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}), xe = Ue, qe =
|
|
319
|
-
const
|
|
318
|
+
}), xe = Ue, qe = J("unit-manager", () => {
|
|
319
|
+
const V = ue(), g = I(), t = j(g), n = $(t);
|
|
320
320
|
ae();
|
|
321
|
-
const c = ee(), { t: d } =
|
|
321
|
+
const c = ee(), { t: d } = L(), b = (o) => {
|
|
322
322
|
var _, s;
|
|
323
323
|
const { vNode: p } = me(
|
|
324
324
|
xe,
|
|
@@ -336,7 +336,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
async function a(o) {
|
|
339
|
-
|
|
339
|
+
V.open({
|
|
340
340
|
title: d("menu.common.dialog.remove.unit.title"),
|
|
341
341
|
message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
|
|
342
342
|
primaryActions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.42-dev.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"@feedmepos/core-dart": "^0.2.6",
|
|
22
22
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.5.tar.gz",
|
|
23
23
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
24
|
+
"@feedmepos/hrm-permission": "1.0.6-dev.2",
|
|
24
25
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
25
26
|
"@feedmepos/menu": "1.9.5",
|
|
26
27
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|