@feedmepos/mf-menu 1.0.1-dev.2 → 1.0.1-dev.4
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-CdIN4s5n.js → App-DhYTzDY0.js} +546 -533
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CoHlJwpz.js → BindingTable.vue_vue_type_script_setup_true_lang-BUiZxX6w.js} +1 -1
- package/dist/{Catalog-DjAubC9s.js → Catalog-DWj_TPwj.js} +4 -4
- package/dist/{CatalogBinding-5JNRTbyZ.js → CatalogBinding-DCUFGwTy.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BorOjk1k.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BYeOydGv.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-CkF7O_V-.js → CatalogEditor.vue_vue_type_script_setup_true_lang-BeuAv0jC.js} +6 -6
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-3fL43MuR.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-EnajbZtY.js} +3 -3
- package/dist/{Category-COug7fz8.js → Category-B9jpP8pf.js} +2 -2
- package/dist/{Category-BbiN4hd7.js → Category-C9BtFwBO.js} +5 -5
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B_9aPMIN.js → CategoryList.vue_vue_type_script_setup_true_lang-C11l9kUD.js} +92 -91
- package/dist/{CookingGuide-Dg7kuF6l.js → CookingGuide-xx0mHc6j.js} +262 -256
- package/dist/{Group-BRpmTqyT.js → Group-BkyVQTHZ.js} +5 -5
- package/dist/{Group-C-hwlkgJ.js → Group-DaNj2hu9.js} +2 -2
- package/dist/{GroupList.vue_vue_type_script_setup_true_lang-DowoJ3WM.js → GroupList.vue_vue_type_script_setup_true_lang-By6udos1.js} +5 -5
- package/dist/{Ingredient-BQYnARdC.js → Ingredient-DbV2TbTY.js} +3 -3
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CgTDkHle.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-DS7hUQpE.js} +1 -1
- package/dist/{MenuSetting-DsdM2_OW.js → MenuSetting-COJaCmJN.js} +3 -3
- package/dist/{OrderPacing-5x2YH-_l.js → OrderPacing-D6y9LBM_.js} +96 -93
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-DVGJjpiM.js → OrderPacingFields.vue_vue_type_script_setup_true_lang--J9nxeca.js} +1 -1
- package/dist/Preview-B19pRXmI.js +325 -0
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-vmxVZ2ya.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DwwfXWL8.js} +1 -1
- package/dist/{PrintRoute-COkCv4gf.js → PrintRoute-DkZaQWrC.js} +158 -152
- package/dist/{Product-BJFb_J4h.js → Product-DkxV4IfT.js} +4 -4
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Tpp8MBYS.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-BuhTMFZF.js} +2 -2
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-C25Pwqme.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-B_EmJhpN.js} +3 -3
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BMAtAK9D.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CniqNe-9.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-Dl4Zr5tx.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-Be9Y5Cc1.js} +1181 -1174
- package/dist/ProductInternalTools-CW7gKvtC.js +2147 -0
- package/dist/{ProductInventoryDialog-C3ruRWU5.js → ProductInventoryDialog-DA1A9YlU.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-MpdIixqI.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DDKjs88F.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-9_ohgfqE.js → ProductList.vue_vue_type_script_setup_true_lang-63u-Pxh-.js} +2328 -2298
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Ctbz-8cd.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-DjrHHLkY.js} +1 -1
- package/dist/{Products-DMrjQFfu.js → Products-CFxCduVf.js} +3 -3
- package/dist/{Publish-f6g0dIao.js → Publish-C50PRaWB.js} +3 -3
- package/dist/{Recipe-p-wxadSN.js → Recipe-CGwAatcb.js} +3 -3
- package/dist/{Scheduler-CtebRafn.js → Scheduler-hIe_BdwS.js} +3 -3
- package/dist/{ServingSequence-CEd4ywOQ.js → ServingSequence-CIzDiSll.js} +103 -97
- package/dist/{Setting-bPKadRu-.js → Setting-Cr6u3Vok.js} +6 -6
- package/dist/{Subcategory-DBCnIP0b.js → Subcategory-BYg9Z56P.js} +141 -129
- package/dist/{Takeaway-GNRHR5kN.js → Takeaway-BIF4hGTc.js} +2 -2
- package/dist/{Takeaway-VBkdW1DM.js → Takeaway-I5kTW17E.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-DvX3k0Jg.js → TakeawayList.vue_vue_type_script_setup_true_lang-Ph6sSiyp.js} +117 -111
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1qaEVUu.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3SRYt9b.js} +6 -6
- package/dist/{Unit-DbGKIprZ.js → Unit-CHVucFRl.js} +2 -2
- package/dist/{Variant-_edSAKif.js → Variant-CS0gRkGz.js} +114 -108
- package/dist/{_id_-BNVtBV3q.js → _id_-BpCfEGRx.js} +3 -3
- package/dist/{app-BlTv5xag.js → app-BcGXBcUK.js} +420 -409
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +3 -3
- package/dist/apps/mf-menu/src/router/shared.d.ts +33 -0
- package/dist/apps/mf-menu/src/sdk/import-export.d.ts +8 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-BzchkTYh.js → menu-compute-CFLJZpef.js} +2 -2
- package/dist/assets/{validate-menu-CTV_cJNG.js → validate-menu-DPQnAO0-.js} +2 -2
- package/dist/mf-menu.css +1 -1
- package/dist/{provide-dbE6Qt1z.js → provide-FZ08sGZH.js} +56332 -55258
- package/dist/{useActionFeedback-CdY_C_HX.js → useActionFeedback-BNYAkEZw.js} +1 -1
- package/package.json +1 -1
- package/dist/Preview-AdgGTYlQ.js +0 -321
- package/dist/ProductInternalTools-thlSvqbA.js +0 -2906
|
@@ -2,7 +2,7 @@ import { defineComponent as D, computed as P, ref as U, resolveComponent as k, o
|
|
|
2
2
|
import { a as j, _ as x, b as z } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
3
3
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as T } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as q } from "./provide-
|
|
5
|
+
import { u as q } from "./provide-FZ08sGZH.js";
|
|
6
6
|
const G = { class: "fm-typo-en-title-md-600" }, H = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "pt-8 space-y-24"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as w, ref as V, computed as C, resolveComponent as A, openBlock as _, createBlock as y, unref as t, withCtx as f, createElementVNode as p, toDisplayString as M, createVNode as l, createElementBlock as B, Fragment as $, createCommentVNode as x } from "vue";
|
|
2
|
-
import { _ as L } from "./ProductList.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as L } from "./ProductList.vue_vue_type_script_setup_true_lang-63u-Pxh-.js";
|
|
3
3
|
import { useI18n as S } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as m } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as U } from "./useActionFeedback-
|
|
6
|
-
import { b as j, u as D, a as z } from "./provide-
|
|
5
|
+
import { u as U } from "./useActionFeedback-BNYAkEZw.js";
|
|
6
|
+
import { b as j, u as D, a as z } from "./provide-FZ08sGZH.js";
|
|
7
7
|
const H = { class: "flex justify-end gap-8" }, O = /* @__PURE__ */ w({
|
|
8
8
|
__name: "V3ToV4MigrationConfirmDialog",
|
|
9
9
|
props: {
|
|
@@ -3,10 +3,10 @@ import { useRouter as bt } from "vue-router";
|
|
|
3
3
|
import { useI18n as Ce } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as vt, components as se } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
6
|
-
import { _ as gt } from "./app-
|
|
6
|
+
import { _ as gt } from "./app-BcGXBcUK.js";
|
|
7
7
|
import { _ as _t } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
-
import { b as Fe, u as me, a as ft } from "./provide-
|
|
9
|
-
import { u as yt } from "./useActionFeedback-
|
|
8
|
+
import { b as Fe, u as me, a as ft } from "./provide-FZ08sGZH.js";
|
|
9
|
+
import { u as yt } from "./useActionFeedback-BNYAkEZw.js";
|
|
10
10
|
const kt = ["aria-valuenow"], wt = /* @__PURE__ */ ae({
|
|
11
11
|
__name: "ProgressBar",
|
|
12
12
|
props: {
|
|
@@ -3,11 +3,11 @@ import { useI18n as ke } from "@feedmepos/mf-common";
|
|
|
3
3
|
import { useDialog as _e, components as G, FmButtonVariant as we } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
5
|
import { _ as xe } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
|
|
6
|
-
import { _ as H } from "./BindingTable.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as H } from "./BindingTable.vue_vue_type_script_setup_true_lang-BUiZxX6w.js";
|
|
7
7
|
import { _ as Ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
8
|
import { _ as Fe } from "./ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js";
|
|
9
|
-
import { u as Be } from "./useActionFeedback-
|
|
10
|
-
import { b as Se, u as Ve, a as Ae } from "./provide-
|
|
9
|
+
import { u as Be } from "./useActionFeedback-BNYAkEZw.js";
|
|
10
|
+
import { b as Se, u as Ve, a as Ae } from "./provide-FZ08sGZH.js";
|
|
11
11
|
const Ue = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex-1 flex justify-between gap-8 pl-8"
|
|
@@ -2,11 +2,11 @@ import { defineComponent as le, computed as T, ref as X, shallowRef as Y, h as R
|
|
|
2
2
|
import { useI18n as Ve, formatTimeOfDay as Z } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as Le, components as ee, FmButtonVariant as Se } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ue } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
-
import { _ as Pe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Pe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-DS7hUQpE.js";
|
|
6
6
|
import { _ as $ } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
7
7
|
import { _ as Te } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
-
import { u as Ie } from "./useActionFeedback-
|
|
9
|
-
import { b as $e, u as Me, a as De } from "./provide-
|
|
8
|
+
import { u as Ie } from "./useActionFeedback-BNYAkEZw.js";
|
|
9
|
+
import { b as $e, u as Me, a as De } from "./provide-FZ08sGZH.js";
|
|
10
10
|
const Ae = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "flex flex-1 justify-end"
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as ie, ItemSelector as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { b as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as T, computed as c, ref as le, shallowRef as B, h as K, withModifiers as oe, onUnmounted as ue, resolveComponent as _, openBlock as m, createBlock as y, unref as n, withCtx as h, createElementBlock as C, toDisplayString as U, Fragment as re, createElementVNode as k, createVNode as v, createCommentVNode as I } from "vue";
|
|
2
|
+
import { useI18n as ie, ItemSelector as ce } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as de, components as j, FmButtonVariant as me } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as ve } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
+
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
6
|
+
import { u as ge } from "./useActionFeedback-BNYAkEZw.js";
|
|
7
|
+
import { b as _e, u as A, a as fe } from "./provide-FZ08sGZH.js";
|
|
8
|
+
const be = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex-1 flex justify-end gap-8 pl-8"
|
|
11
|
-
},
|
|
11
|
+
}, he = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "alert",
|
|
14
14
|
class: "text-fm-color-typo-secondary"
|
|
15
|
-
},
|
|
15
|
+
}, ke = { class: "flex justify-end items-center" }, ye = { class: "w-[320px]" }, qe = { class: "fm-typo-en-title-md-600" }, Se = { class: "space-y-32 flex flex-col h-full" }, we = { class: "flex gap-8 items-center justify-start" }, xe = /* @__PURE__ */ T({
|
|
16
16
|
__name: "ServingSequenceList",
|
|
17
17
|
props: {
|
|
18
18
|
sdk: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
setup(V) {
|
|
21
|
+
const r = V, { t } = ie(), q = _e(), L = de(), { run: S } = ge(), p = A(
|
|
22
|
+
r.sdk.servingSequence.list
|
|
23
23
|
), l = c(
|
|
24
24
|
() => p.value.status === "ready" ? p.value.value : null
|
|
25
|
-
),
|
|
25
|
+
), z = c(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return ((e = l.value) == null ? void 0 : e.query) ?? "";
|
|
28
|
-
}),
|
|
28
|
+
}), P = c(() => {
|
|
29
29
|
var e;
|
|
30
30
|
return [...((e = l.value) == null ? void 0 : e.rows) ?? []];
|
|
31
|
-
}), g =
|
|
32
|
-
|
|
33
|
-
),
|
|
34
|
-
() =>
|
|
35
|
-
),
|
|
31
|
+
}), g = le(!1), D = A(
|
|
32
|
+
r.sdk.linkProduct.catalogue
|
|
33
|
+
), R = c(
|
|
34
|
+
() => D.value.status === "ready" ? D.value.value : null
|
|
35
|
+
), $ = c(
|
|
36
36
|
() => {
|
|
37
37
|
var e;
|
|
38
|
-
return (((e =
|
|
38
|
+
return (((e = R.value) == null ? void 0 : e.groups) ?? []).map((a) => ({
|
|
39
39
|
id: a.id,
|
|
40
40
|
name: a.name,
|
|
41
41
|
items: a.products.map((s) => ({
|
|
@@ -59,21 +59,21 @@ const fe = {
|
|
|
59
59
|
}))
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), O = [], G = c(
|
|
63
63
|
() => {
|
|
64
64
|
var e;
|
|
65
|
-
return ((e =
|
|
65
|
+
return ((e = i.value) == null ? void 0 : e.linkedItems) ?? O;
|
|
66
66
|
}
|
|
67
|
-
),
|
|
67
|
+
), Q = c(
|
|
68
68
|
() => {
|
|
69
69
|
const e = {};
|
|
70
|
-
for (const a of
|
|
70
|
+
for (const a of G.value)
|
|
71
71
|
e[a._id] = [...e[a._id] ?? [], a];
|
|
72
72
|
return e;
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
function
|
|
76
|
-
|
|
75
|
+
function H(e) {
|
|
76
|
+
u.value.setLinkedItems(
|
|
77
77
|
Object.values(e).flat().map((a) => ({
|
|
78
78
|
_id: a._id,
|
|
79
79
|
combinationKey: a.combinationKey ?? null,
|
|
@@ -81,44 +81,44 @@ const fe = {
|
|
|
81
81
|
}))
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
), f =
|
|
87
|
-
|
|
84
|
+
const u = B(
|
|
85
|
+
r.sdk.servingSequence.editor()
|
|
86
|
+
), f = B(
|
|
87
|
+
u.value.get()
|
|
88
88
|
);
|
|
89
|
-
let w =
|
|
89
|
+
let w = u.value.subscribe((e) => {
|
|
90
90
|
f.value = e;
|
|
91
91
|
});
|
|
92
|
-
const
|
|
92
|
+
const i = c(
|
|
93
93
|
() => f.value.status === "ready" ? f.value.value : null
|
|
94
94
|
);
|
|
95
|
-
function
|
|
96
|
-
w(),
|
|
95
|
+
function N(e) {
|
|
96
|
+
w(), u.value.dispose(), u.value = r.sdk.servingSequence.editor(e), f.value = u.value.get(), w = u.value.subscribe((a) => {
|
|
97
97
|
f.value = a;
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
function E() {
|
|
101
101
|
var e;
|
|
102
|
-
((e = l.value) == null ? void 0 : e.create.state) === "allowed" && (
|
|
102
|
+
((e = l.value) == null ? void 0 : e.create.state) === "allowed" && (N(), g.value = !0);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
104
|
+
function J(e) {
|
|
105
|
+
N(e.id), g.value = !0;
|
|
106
106
|
}
|
|
107
|
-
async function
|
|
107
|
+
async function W() {
|
|
108
108
|
var s;
|
|
109
|
-
const e = ((s =
|
|
110
|
-
(await S(() =>
|
|
109
|
+
const e = ((s = i.value) == null ? void 0 : s.name.trim()) ?? "";
|
|
110
|
+
(await S(() => u.value.submit(), {
|
|
111
111
|
showLoading: () => {
|
|
112
112
|
var d;
|
|
113
|
-
return ((d =
|
|
113
|
+
return ((d = i.value) == null ? void 0 : d.status) === "submitting";
|
|
114
114
|
},
|
|
115
115
|
successMessage: t("menu.serving_sequence.form.saved", {
|
|
116
116
|
name: e || t("menu.serving_sequence.title")
|
|
117
117
|
})
|
|
118
118
|
})).kind === "success" && (g.value = !1);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
e.remove.state === "allowed" &&
|
|
120
|
+
function X(e) {
|
|
121
|
+
e.remove.state === "allowed" && L.open({
|
|
122
122
|
title: t("menu.serving_sequence.delete.title"),
|
|
123
123
|
message: t("menu.serving_sequence.delete.message", {
|
|
124
124
|
name: e.name
|
|
@@ -126,29 +126,29 @@ const fe = {
|
|
|
126
126
|
primaryActions: {
|
|
127
127
|
text: t("menu.serving_sequence.delete.confirm"),
|
|
128
128
|
close: !0,
|
|
129
|
-
variant:
|
|
129
|
+
variant: me.Destructive
|
|
130
130
|
},
|
|
131
131
|
secondaryActions: {
|
|
132
132
|
text: t("menu.common.actions.cancel"),
|
|
133
133
|
close: !0
|
|
134
134
|
}
|
|
135
135
|
}).onPrimary(async () => {
|
|
136
|
-
await S(() =>
|
|
136
|
+
await S(() => r.sdk.servingSequence.remove(e.id), {
|
|
137
137
|
successMessage: t("menu.serving_sequence.delete.success", {
|
|
138
138
|
name: e.name
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const Y = c(() => {
|
|
144
144
|
var e;
|
|
145
145
|
return ((e = l.value) == null ? void 0 : e.reorder.state) === "allowed";
|
|
146
146
|
});
|
|
147
|
-
function
|
|
147
|
+
function Z(e) {
|
|
148
148
|
var s;
|
|
149
149
|
if (((s = l.value) == null ? void 0 : s.reorder.state) !== "allowed") return;
|
|
150
150
|
const a = e.map((d) => d.id);
|
|
151
|
-
a.length && S(() =>
|
|
151
|
+
a.length && S(() => r.sdk.servingSequence.reorder(a), {
|
|
152
152
|
// The only one of this module's success messages that takes no entity
|
|
153
153
|
// `{name}`: legacy fed the shared `{name} saved` template the module's own
|
|
154
154
|
// plural noun for a rearrange, so the toast reads "sequences saved" rather
|
|
@@ -161,7 +161,7 @@ const fe = {
|
|
|
161
161
|
successMessage: t("menu.serving_sequence.reorder.success")
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const ee = c(() => [
|
|
165
165
|
{
|
|
166
166
|
accessorKey: "name",
|
|
167
167
|
header: () => t("menu.serving_sequence.columns.name"),
|
|
@@ -192,90 +192,90 @@ const fe = {
|
|
|
192
192
|
// right edge (`ServingSequence.vue:176-192`). Both are reproduced; the
|
|
193
193
|
// accessible name is the one deliberate addition, owned by the new app
|
|
194
194
|
// (legacy's control is icon-only and unnamed).
|
|
195
|
-
cell: (e) =>
|
|
196
|
-
|
|
195
|
+
cell: (e) => K("div", { class: "w-full flex justify-end items-center" }, [
|
|
196
|
+
K(j.FmButton, {
|
|
197
197
|
prependIcon: "delete",
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
textColor: "neutral-gray-400",
|
|
200
200
|
disabled: e.row.original.remove.state !== "allowed",
|
|
201
201
|
"aria-label": t("menu.common.actions.delete"),
|
|
202
|
-
onClick:
|
|
203
|
-
() =>
|
|
202
|
+
onClick: oe(
|
|
203
|
+
() => X(e.row.original),
|
|
204
204
|
["stop", "prevent"]
|
|
205
205
|
)
|
|
206
206
|
})
|
|
207
207
|
])
|
|
208
208
|
}
|
|
209
209
|
]);
|
|
210
|
-
return
|
|
211
|
-
w(),
|
|
210
|
+
return ue(() => {
|
|
211
|
+
w(), u.value.dispose(), r.sdk.servingSequence.search("");
|
|
212
212
|
}), (e, a) => {
|
|
213
|
-
const s = _("FmButton"), d = _("FmCircularProgress"),
|
|
214
|
-
return m(), y(
|
|
213
|
+
const s = _("FmButton"), d = _("FmCircularProgress"), te = _("FmSearch"), ae = _("FmTable"), ne = _("FmTextField"), se = _("FmSideSheet");
|
|
214
|
+
return m(), y(pe, {
|
|
215
215
|
"data-visual-root": "serveSequence",
|
|
216
216
|
heading: n(t)("menu.serving_sequence.title")
|
|
217
217
|
}, {
|
|
218
218
|
"append-heading": h(() => [
|
|
219
|
-
n(p).status === "ready" && l.value ? (m(),
|
|
219
|
+
n(p).status === "ready" && l.value ? (m(), C("div", be, [
|
|
220
220
|
l.value.totalCount > 0 ? (m(), y(s, {
|
|
221
221
|
key: 0,
|
|
222
222
|
disabled: l.value.create.state !== "allowed",
|
|
223
223
|
label: n(t)("menu.serving_sequence.add"),
|
|
224
224
|
"prepend-icon": "add",
|
|
225
225
|
onClick: E
|
|
226
|
-
}, null, 8, ["disabled", "label"])) :
|
|
227
|
-
])) :
|
|
226
|
+
}, null, 8, ["disabled", "label"])) : I("", !0)
|
|
227
|
+
])) : I("", !0)
|
|
228
228
|
]),
|
|
229
229
|
default: h(() => [
|
|
230
|
-
n(p).status === "error" ? (m(),
|
|
230
|
+
n(p).status === "error" ? (m(), C("p", he, U(n(q)(n(p).error.message)), 1)) : n(p).status === "loading" ? (m(), y(d, { key: 1 })) : l.value && l.value.rows.length === 0 && !z.value ? (m(), y(n(ve), {
|
|
231
231
|
key: 2,
|
|
232
232
|
action: { text: n(t)("menu.serving_sequence.add"), callback: E },
|
|
233
233
|
title: n(t)("menu.serving_sequence.empty.title"),
|
|
234
234
|
subtitle: n(t)("menu.serving_sequence.empty.subtitle")
|
|
235
|
-
}, null, 8, ["action", "title", "subtitle"])) : l.value ? (m(),
|
|
236
|
-
k("div",
|
|
237
|
-
k("div",
|
|
238
|
-
v(
|
|
235
|
+
}, null, 8, ["action", "title", "subtitle"])) : l.value ? (m(), C(re, { key: 3 }, [
|
|
236
|
+
k("div", ke, [
|
|
237
|
+
k("div", ye, [
|
|
238
|
+
v(te, {
|
|
239
239
|
autofocus: "",
|
|
240
240
|
class: "mb-8",
|
|
241
|
-
"model-value":
|
|
241
|
+
"model-value": z.value,
|
|
242
242
|
placeholder: n(t)("menu.serving_sequence.search.placeholder"),
|
|
243
|
-
"onUpdate:modelValue":
|
|
243
|
+
"onUpdate:modelValue": r.sdk.servingSequence.search
|
|
244
244
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
245
245
|
])
|
|
246
246
|
]),
|
|
247
|
-
v(
|
|
248
|
-
"column-defs":
|
|
247
|
+
v(ae, {
|
|
248
|
+
"column-defs": ee.value,
|
|
249
249
|
"hide-footer": "",
|
|
250
250
|
"page-size": l.value.rows.length,
|
|
251
251
|
"pin-header-row": "",
|
|
252
|
-
"row-data":
|
|
252
|
+
"row-data": P.value,
|
|
253
253
|
"shrink-at": !1,
|
|
254
|
-
draggable:
|
|
255
|
-
onRowClick: a[0] || (a[0] = (o) =>
|
|
256
|
-
onDndChanged:
|
|
254
|
+
draggable: Y.value,
|
|
255
|
+
onRowClick: a[0] || (a[0] = (o) => J(o.original)),
|
|
256
|
+
onDndChanged: Z
|
|
257
257
|
}, null, 8, ["column-defs", "page-size", "row-data", "draggable"])
|
|
258
|
-
], 64)) :
|
|
259
|
-
v(
|
|
258
|
+
], 64)) : I("", !0),
|
|
259
|
+
v(se, {
|
|
260
260
|
modelValue: g.value,
|
|
261
261
|
"onUpdate:modelValue": a[3] || (a[3] = (o) => g.value = o),
|
|
262
|
-
"is-container": n(
|
|
263
|
-
"is-container-props": { onValidationSuccess:
|
|
262
|
+
"is-container": n(j).FmForm,
|
|
263
|
+
"is-container-props": { onValidationSuccess: W },
|
|
264
264
|
"max-width": 560
|
|
265
265
|
}, {
|
|
266
266
|
"side-sheet-header": h(() => {
|
|
267
267
|
var o;
|
|
268
268
|
return [
|
|
269
|
-
k("p",
|
|
269
|
+
k("p", qe, U(((o = i.value) == null ? void 0 : o.mode) === "update" ? n(t)("menu.serving_sequence.update") : n(t)("menu.serving_sequence.add")), 1)
|
|
270
270
|
];
|
|
271
271
|
}),
|
|
272
272
|
"side-sheet-footer": h(() => {
|
|
273
273
|
var o, b;
|
|
274
274
|
return [
|
|
275
|
-
k("div",
|
|
275
|
+
k("div", we, [
|
|
276
276
|
v(s, {
|
|
277
|
-
disabled: ((o =
|
|
278
|
-
label: ((b =
|
|
277
|
+
disabled: ((o = i.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
278
|
+
label: ((b = i.value) == null ? void 0 : b.mode) === "update" ? n(t)("menu.serving_sequence.update") : n(t)("menu.serving_sequence.add"),
|
|
279
279
|
size: "lg",
|
|
280
280
|
type: "submit",
|
|
281
281
|
variant: "primary"
|
|
@@ -292,23 +292,29 @@ const fe = {
|
|
|
292
292
|
default: h(() => {
|
|
293
293
|
var o, b, x;
|
|
294
294
|
return [
|
|
295
|
-
k("div",
|
|
296
|
-
v(
|
|
295
|
+
k("div", Se, [
|
|
296
|
+
v(ne, {
|
|
297
297
|
autofocus: "",
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
rules: [
|
|
299
|
+
(F) => {
|
|
300
|
+
const M = u.value.validateName(String(F ?? ""));
|
|
301
|
+
return M ? n(q)(M) : !0;
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"helper-state": (o = i.value) != null && o.nameIssue ? "error" : "none",
|
|
305
|
+
"helper-text": (b = i.value) != null && b.nameIssue ? n(q)(i.value.nameIssue) : "",
|
|
300
306
|
label: n(t)("menu.serving_sequence.columns.name"),
|
|
301
|
-
"model-value": ((x =
|
|
307
|
+
"model-value": ((x = i.value) == null ? void 0 : x.name) ?? "",
|
|
302
308
|
placeholder: n(t)("menu.common.labels.enter_name"),
|
|
303
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
304
|
-
}, null, 8, ["helper-state", "helper-text", "label", "model-value", "placeholder"]),
|
|
305
|
-
v(n(
|
|
306
|
-
"categorized-items":
|
|
307
|
-
data:
|
|
309
|
+
"onUpdate:modelValue": a[1] || (a[1] = (F) => u.value.setName(F))
|
|
310
|
+
}, null, 8, ["rules", "helper-state", "helper-text", "label", "model-value", "placeholder"]),
|
|
311
|
+
v(n(ce), {
|
|
312
|
+
"categorized-items": $.value,
|
|
313
|
+
data: Q.value,
|
|
308
314
|
class: "flex-1",
|
|
309
315
|
"select-variant": "",
|
|
310
316
|
"show-variant": "",
|
|
311
|
-
"onUpdate:data":
|
|
317
|
+
"onUpdate:data": H
|
|
312
318
|
}, null, 8, ["categorized-items", "data"])
|
|
313
319
|
])
|
|
314
320
|
];
|
|
@@ -320,11 +326,11 @@ const fe = {
|
|
|
320
326
|
}, 8, ["heading"]);
|
|
321
327
|
};
|
|
322
328
|
}
|
|
323
|
-
}), Ee = /* @__PURE__ */
|
|
329
|
+
}), Ee = /* @__PURE__ */ T({
|
|
324
330
|
__name: "ServingSequence",
|
|
325
|
-
setup(
|
|
326
|
-
const
|
|
327
|
-
return (t, q) => (m(), y(
|
|
331
|
+
setup(V) {
|
|
332
|
+
const r = fe();
|
|
333
|
+
return (t, q) => (m(), y(xe, { sdk: n(r) }, null, 8, ["sdk"]));
|
|
328
334
|
}
|
|
329
335
|
});
|
|
330
336
|
export {
|
|
@@ -2,13 +2,13 @@ import { defineComponent as y, computed as N, onUnmounted as R, resolveComponent
|
|
|
2
2
|
import { RouterLink as I, useRouter as T, useRoute as W } from "vue-router";
|
|
3
3
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as S } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
5
|
-
import { _ as O } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as O } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-EnajbZtY.js";
|
|
6
6
|
import { _ as j } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
7
|
-
import { u as D } from "./useActionFeedback-
|
|
8
|
-
import { R as V } from "./app-
|
|
9
|
-
import { a as $, u as P } from "./provide-
|
|
10
|
-
import { _ as q } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as z } from "./CatalogEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as D } from "./useActionFeedback-BNYAkEZw.js";
|
|
8
|
+
import { R as V } from "./app-BcGXBcUK.js";
|
|
9
|
+
import { a as $, u as P } from "./provide-FZ08sGZH.js";
|
|
10
|
+
import { _ as q } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-BYeOydGv.js";
|
|
11
|
+
import { _ as z } from "./CatalogEditor.vue_vue_type_script_setup_true_lang-BeuAv0jC.js";
|
|
12
12
|
const H = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "max-w-[752px] pt-16 space-y-32"
|