@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
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { b as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as B, resolveComponent as p, openBlock as d, createElementBlock as y, createVNode as l, withCtx as m, createElementVNode as u, toDisplayString as h, createBlock as k, Fragment as U, renderList as X, createCommentVNode as A, computed as _, ref as $, shallowRef as G, onUnmounted as fe, h as F, withModifiers as q, unref as n } from "vue";
|
|
2
|
+
import { useI18n as ge } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as ye, components as z } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
+
import { _ as ke } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-DS7hUQpE.js";
|
|
6
|
+
import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
7
|
+
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
+
import { u as he } from "./useActionFeedback-BNYAkEZw.js";
|
|
9
|
+
import { b as we, u as W, a as Ce } from "./provide-FZ08sGZH.js";
|
|
10
|
+
const xe = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-lg-600" }, Se = { class: "fm-typo-en-body-md-400" }, Pe = /* @__PURE__ */ B({
|
|
11
11
|
__name: "RemoveRouteConfirmation",
|
|
12
12
|
props: {
|
|
13
13
|
row: {}
|
|
14
14
|
},
|
|
15
15
|
setup(L) {
|
|
16
16
|
return (s, t) => {
|
|
17
|
-
const
|
|
17
|
+
const b = p("i18n-t"), S = p("FmIcon"), w = p("FmListItem"), v = p("FmList");
|
|
18
18
|
return d(), y("div", null, [
|
|
19
|
-
l(
|
|
19
|
+
l(b, {
|
|
20
20
|
keypath: s.row.linkedProductCount > 0 ? "menu.print_route.dialogs.remove.message.with_products" : "menu.print_route.dialogs.remove.message.confirm",
|
|
21
21
|
scope: "global",
|
|
22
22
|
tag: "p"
|
|
23
23
|
}, {
|
|
24
|
-
count:
|
|
25
|
-
u("span",
|
|
24
|
+
count: m(() => [
|
|
25
|
+
u("span", xe, h(s.row.linkedProductCount), 1)
|
|
26
26
|
]),
|
|
27
|
-
name:
|
|
28
|
-
u("span",
|
|
27
|
+
name: m(() => [
|
|
28
|
+
u("span", Fe, h(s.row.name), 1)
|
|
29
29
|
]),
|
|
30
30
|
_: 1
|
|
31
31
|
}, 8, ["keypath"]),
|
|
@@ -33,76 +33,76 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "mt-8"
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
(d(!0), y(
|
|
36
|
+
default: m(() => [
|
|
37
|
+
(d(!0), y(U, null, X(s.row.linkedProductNames, (r) => (d(), k(w, {
|
|
38
38
|
key: r,
|
|
39
39
|
class: "!p-0 !gap-4 mt-4",
|
|
40
40
|
clickable: !1
|
|
41
41
|
}, {
|
|
42
|
-
prepend:
|
|
42
|
+
prepend: m(() => [
|
|
43
43
|
l(S, {
|
|
44
44
|
color: "neutral-gray-900",
|
|
45
45
|
name: "fiber_manual_record",
|
|
46
46
|
size: "sm"
|
|
47
47
|
})
|
|
48
48
|
]),
|
|
49
|
-
default:
|
|
50
|
-
u("span",
|
|
49
|
+
default: m(() => [
|
|
50
|
+
u("span", Se, h(r), 1)
|
|
51
51
|
]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, 1024))), 128))
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
})) :
|
|
56
|
+
})) : A("", !0)
|
|
57
57
|
]);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
}),
|
|
60
|
+
}), Ve = { class: "flex flex-1 justify-end" }, Le = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "flex flex-col gap-16 items-start"
|
|
63
|
-
},
|
|
63
|
+
}, De = {
|
|
64
64
|
class: "text-fm-color-typo-secondary",
|
|
65
65
|
role: "alert"
|
|
66
66
|
}, Ie = {
|
|
67
67
|
key: 1,
|
|
68
68
|
"data-menu-state": "unavailable"
|
|
69
|
-
}, Re = { class: "flex justify-end items-center" }, $e = { class: "w-[320px]" }, ze = { class: "fm-typo-en-title-md-600" },
|
|
69
|
+
}, Re = { class: "flex justify-end items-center" }, $e = { class: "w-[320px]" }, ze = { class: "fm-typo-en-title-md-600" }, Ue = { class: "flex flex-col gap-32 pb-16" }, Ae = { class: "space-y-16" }, Be = { class: "flex items-center gap-8" }, Ne = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ee = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ B({
|
|
70
70
|
__name: "PrintRouteList",
|
|
71
71
|
props: {
|
|
72
72
|
sdk: {}
|
|
73
73
|
},
|
|
74
74
|
setup(L) {
|
|
75
|
-
const s = L, { t } =
|
|
75
|
+
const s = L, { t } = ge(), b = we(), S = ye(), { run: w } = he(), v = W(
|
|
76
76
|
s.sdk.printDepartment.list
|
|
77
77
|
), r = _(
|
|
78
78
|
() => v.value.status === "ready" ? v.value.value : null
|
|
79
|
-
),
|
|
79
|
+
), Y = _(() => {
|
|
80
80
|
var e;
|
|
81
81
|
return ((e = r.value) == null ? void 0 : e.query) ?? "";
|
|
82
|
-
}),
|
|
82
|
+
}), Z = _(() => {
|
|
83
83
|
var e;
|
|
84
84
|
return [...((e = r.value) == null ? void 0 : e.rows) ?? []];
|
|
85
|
-
}), g = $(!1), P = $(!1),
|
|
86
|
-
async function
|
|
87
|
-
|
|
85
|
+
}), g = $(!1), P = $(!1), D = $(!1);
|
|
86
|
+
async function ee() {
|
|
87
|
+
D.value = !0;
|
|
88
88
|
try {
|
|
89
89
|
await w(() => s.sdk.printDepartment.retryRead(), {
|
|
90
90
|
showLoading: !1
|
|
91
91
|
});
|
|
92
92
|
} finally {
|
|
93
|
-
|
|
93
|
+
D.value = !1;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const N = W(
|
|
97
97
|
s.sdk.linkProduct.catalogue
|
|
98
|
-
),
|
|
99
|
-
() =>
|
|
100
|
-
),
|
|
98
|
+
), te = _(
|
|
99
|
+
() => N.value.status === "ready" ? N.value.value : null
|
|
100
|
+
), ne = _(
|
|
101
101
|
() => {
|
|
102
102
|
var e;
|
|
103
103
|
return ((e = i.value) == null ? void 0 : e.linkedProductIds) ?? [];
|
|
104
104
|
}
|
|
105
|
-
),
|
|
105
|
+
), ae = _(() => {
|
|
106
106
|
var e;
|
|
107
107
|
return ((e = i.value) == null ? void 0 : e.linkedGroups) ?? [];
|
|
108
108
|
}), oe = _(
|
|
@@ -110,13 +110,13 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
110
110
|
var e;
|
|
111
111
|
return ((e = i.value) == null ? void 0 : e.linkedProductQuery) ?? "";
|
|
112
112
|
}
|
|
113
|
-
),
|
|
113
|
+
), le = _(
|
|
114
114
|
() => {
|
|
115
115
|
var e;
|
|
116
116
|
return ((e = i.value) == null ? void 0 : e.linkedProductCount) ?? 0;
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
function
|
|
119
|
+
function se(e) {
|
|
120
120
|
return [
|
|
121
121
|
{
|
|
122
122
|
accessorKey: "name",
|
|
@@ -127,14 +127,14 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
127
127
|
id: "actions",
|
|
128
128
|
enableSorting: !1,
|
|
129
129
|
header: "",
|
|
130
|
-
cell: (
|
|
130
|
+
cell: (o) => F("div", { class: "flex justify-end" }, [
|
|
131
131
|
F(z.FmButton, {
|
|
132
132
|
icon: "delete",
|
|
133
133
|
variant: "tertiary",
|
|
134
134
|
textColor: "neutral-gray-400",
|
|
135
135
|
"aria-label": t("menu.common.actions.remove"),
|
|
136
|
-
onClick:
|
|
137
|
-
() =>
|
|
136
|
+
onClick: q(
|
|
137
|
+
() => c.value.unlinkProduct(o.row.original.id),
|
|
138
138
|
["stop", "prevent"]
|
|
139
139
|
)
|
|
140
140
|
})
|
|
@@ -142,35 +142,35 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
142
142
|
}
|
|
143
143
|
];
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const c = G(
|
|
146
146
|
s.sdk.printDepartment.editor()
|
|
147
|
-
), C =
|
|
148
|
-
|
|
147
|
+
), C = G(
|
|
148
|
+
c.value.get()
|
|
149
149
|
);
|
|
150
|
-
let
|
|
150
|
+
let I = c.value.subscribe(
|
|
151
151
|
(e) => C.value = e
|
|
152
152
|
);
|
|
153
153
|
const i = _(
|
|
154
154
|
() => C.value.status === "ready" ? C.value.value : null
|
|
155
155
|
);
|
|
156
156
|
function E(e) {
|
|
157
|
-
|
|
158
|
-
(
|
|
157
|
+
I(), c.value.dispose(), c.value = s.sdk.printDepartment.editor(e), C.value = c.value.get(), I = c.value.subscribe(
|
|
158
|
+
(o) => C.value = o
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
fe(() => {
|
|
162
|
+
s.sdk.printDepartment.search(""), I(), c.value.dispose();
|
|
163
163
|
});
|
|
164
164
|
function M() {
|
|
165
165
|
!r.value || r.value.create.state !== "allowed" || (E(), g.value = !0);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function re(e) {
|
|
168
168
|
E(e.id), g.value = !0;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function j() {
|
|
171
171
|
g.value = !1;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ie() {
|
|
174
174
|
var e;
|
|
175
175
|
if (!((e = i.value) != null && e.dirty)) {
|
|
176
176
|
g.value = !1;
|
|
@@ -191,10 +191,10 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
191
191
|
g.value = !1;
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
async function
|
|
194
|
+
async function ue() {
|
|
195
195
|
var f;
|
|
196
196
|
const e = ((f = i.value) == null ? void 0 : f.name.trim()) ?? "";
|
|
197
|
-
(await w(() =>
|
|
197
|
+
(await w(() => c.value.submit(), {
|
|
198
198
|
// Legacy's success copy is "<name> saved" for both create and update; the
|
|
199
199
|
// frozen baseline asserts that text, so it is not restyled here.
|
|
200
200
|
successMessage: t("menu.print_route.manager.action.saved", {
|
|
@@ -210,12 +210,12 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
210
210
|
var V;
|
|
211
211
|
return ((V = i.value) == null ? void 0 : V.status) === "submitting";
|
|
212
212
|
}
|
|
213
|
-
})).kind === "success" &&
|
|
213
|
+
})).kind === "success" && j();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function de(e) {
|
|
216
216
|
S.open({
|
|
217
217
|
title: t("menu.print_route.dialogs.remove.title"),
|
|
218
|
-
contentComponent: F(
|
|
218
|
+
contentComponent: F(Pe, { row: e }),
|
|
219
219
|
primaryActions: {
|
|
220
220
|
text: t("menu.print_route.actions.remove"),
|
|
221
221
|
close: !0,
|
|
@@ -233,7 +233,7 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const ce = _(() => [
|
|
237
237
|
{
|
|
238
238
|
accessorKey: "name",
|
|
239
239
|
header: () => t("menu.print_route.table.columns.name"),
|
|
@@ -261,177 +261,183 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
261
261
|
variant: "tertiary",
|
|
262
262
|
disabled: e.row.original.remove.state !== "allowed",
|
|
263
263
|
"aria-label": t("menu.print_route.actions.remove"),
|
|
264
|
-
onClick:
|
|
265
|
-
() =>
|
|
264
|
+
onClick: q(
|
|
265
|
+
() => de(e.row.original),
|
|
266
266
|
["stop", "prevent"]
|
|
267
267
|
)
|
|
268
268
|
})
|
|
269
269
|
])
|
|
270
270
|
}
|
|
271
271
|
]);
|
|
272
|
-
function
|
|
273
|
-
|
|
272
|
+
function me(e) {
|
|
273
|
+
c.value.setLinkedProducts(e), P.value = !1;
|
|
274
274
|
}
|
|
275
|
-
return (e,
|
|
276
|
-
const f = p("FmButton"), V = p("FmCircularProgress"),
|
|
277
|
-
return d(), k(
|
|
278
|
-
heading:
|
|
275
|
+
return (e, o) => {
|
|
276
|
+
const f = p("FmButton"), V = p("FmCircularProgress"), K = p("FmSearch"), Q = p("FmTable"), pe = p("FmTextField"), _e = p("FmSpacer"), ve = p("FmSideSheet");
|
|
277
|
+
return d(), k(be, {
|
|
278
|
+
heading: n(t)("menu.print_route.title")
|
|
279
279
|
}, {
|
|
280
|
-
"append-heading":
|
|
281
|
-
u("div",
|
|
280
|
+
"append-heading": m(() => [
|
|
281
|
+
u("div", Ve, [
|
|
282
282
|
r.value && r.value.totalCount > 0 ? (d(), k(f, {
|
|
283
283
|
key: 0,
|
|
284
284
|
disabled: r.value.create.state !== "allowed",
|
|
285
|
-
label:
|
|
285
|
+
label: n(t)("menu.print_route.actions.add"),
|
|
286
286
|
"prepend-icon": "add",
|
|
287
287
|
variant: "primary",
|
|
288
288
|
onClick: M
|
|
289
|
-
}, null, 8, ["disabled", "label"])) :
|
|
289
|
+
}, null, 8, ["disabled", "label"])) : A("", !0)
|
|
290
290
|
])
|
|
291
291
|
]),
|
|
292
|
-
default:
|
|
293
|
-
|
|
294
|
-
u("p",
|
|
292
|
+
default: m(() => [
|
|
293
|
+
n(v).status === "error" ? (d(), y("div", Le, [
|
|
294
|
+
u("p", De, h(n(b)(n(v).error.message)), 1),
|
|
295
295
|
l(f, {
|
|
296
|
-
label:
|
|
297
|
-
loading:
|
|
296
|
+
label: n(t)("menu.common.actions.retry"),
|
|
297
|
+
loading: D.value,
|
|
298
298
|
"prepend-icon": "refresh",
|
|
299
299
|
size: "md",
|
|
300
300
|
variant: "secondary",
|
|
301
|
-
onClick:
|
|
301
|
+
onClick: ee
|
|
302
302
|
}, null, 8, ["label", "loading"])
|
|
303
|
-
])) :
|
|
304
|
-
l(
|
|
305
|
-
subtitle:
|
|
306
|
-
title:
|
|
303
|
+
])) : n(v).status === "unavailable" ? (d(), y("div", Ie, [
|
|
304
|
+
l(n(H), {
|
|
305
|
+
subtitle: n(t)("menu.print_route.empty.subtitle"),
|
|
306
|
+
title: n(t)("menu.print_route.empty.title")
|
|
307
307
|
}, null, 8, ["subtitle", "title"])
|
|
308
|
-
])) :
|
|
308
|
+
])) : n(v).status === "loading" ? (d(), k(V, { key: 2 })) : r.value && r.value.totalCount === 0 ? (d(), k(n(H), {
|
|
309
309
|
key: 3,
|
|
310
|
-
action: r.value.create.state === "allowed" ? { text:
|
|
311
|
-
subtitle:
|
|
312
|
-
title:
|
|
313
|
-
}, null, 8, ["action", "subtitle", "title"])) : r.value ? (d(), y(
|
|
310
|
+
action: r.value.create.state === "allowed" ? { text: n(t)("menu.print_route.empty.action"), callback: M } : void 0,
|
|
311
|
+
subtitle: n(t)("menu.print_route.empty.subtitle"),
|
|
312
|
+
title: n(t)("menu.print_route.empty.title")
|
|
313
|
+
}, null, 8, ["action", "subtitle", "title"])) : r.value ? (d(), y(U, { key: 4 }, [
|
|
314
314
|
u("div", Re, [
|
|
315
315
|
u("div", $e, [
|
|
316
|
-
l(
|
|
316
|
+
l(K, {
|
|
317
317
|
autofocus: "",
|
|
318
318
|
class: "my-8",
|
|
319
|
-
"model-value":
|
|
320
|
-
placeholder:
|
|
319
|
+
"model-value": Y.value,
|
|
320
|
+
placeholder: n(t)("menu.print_route.table.search.placeholder"),
|
|
321
321
|
"onUpdate:modelValue": s.sdk.printDepartment.search
|
|
322
322
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
323
323
|
])
|
|
324
324
|
]),
|
|
325
|
-
l(
|
|
326
|
-
"column-defs":
|
|
325
|
+
l(Q, {
|
|
326
|
+
"column-defs": ce.value,
|
|
327
327
|
"page-size": r.value.rows.length,
|
|
328
|
-
"row-data":
|
|
328
|
+
"row-data": Z.value,
|
|
329
329
|
"shrink-at": !1,
|
|
330
330
|
"hide-footer": "",
|
|
331
331
|
"pin-header-row": "",
|
|
332
|
-
onRowClick:
|
|
332
|
+
onRowClick: o[0] || (o[0] = (a) => re(a.original))
|
|
333
333
|
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
334
|
-
], 64)) :
|
|
335
|
-
l(
|
|
334
|
+
], 64)) : A("", !0),
|
|
335
|
+
l(ve, {
|
|
336
336
|
modelValue: g.value,
|
|
337
|
-
"onUpdate:modelValue":
|
|
338
|
-
"is-container":
|
|
339
|
-
"is-container-props": { onValidationSuccess:
|
|
337
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => g.value = a),
|
|
338
|
+
"is-container": n(z).FmForm,
|
|
339
|
+
"is-container-props": { onValidationSuccess: ue },
|
|
340
340
|
"max-width": 560,
|
|
341
|
-
"onOn:clickedAway":
|
|
341
|
+
"onOn:clickedAway": ie
|
|
342
342
|
}, {
|
|
343
|
-
"side-sheet-header":
|
|
344
|
-
var
|
|
343
|
+
"side-sheet-header": m(() => {
|
|
344
|
+
var a;
|
|
345
345
|
return [
|
|
346
|
-
u("p", ze,
|
|
346
|
+
u("p", ze, h(((a = i.value) == null ? void 0 : a.mode) === "update" ? n(t)("menu.print_route.department_dialog.update.title") : n(t)("menu.print_route.department_dialog.add.title")), 1)
|
|
347
347
|
];
|
|
348
348
|
}),
|
|
349
|
-
"side-sheet-footer":
|
|
350
|
-
var
|
|
349
|
+
"side-sheet-footer": m(() => {
|
|
350
|
+
var a, x;
|
|
351
351
|
return [
|
|
352
352
|
u("div", Ee, [
|
|
353
353
|
l(f, {
|
|
354
|
-
disabled: ((
|
|
355
|
-
label: ((x = i.value) == null ? void 0 : x.mode) === "update" ?
|
|
354
|
+
disabled: ((a = i.value) == null ? void 0 : a.submit.state) !== "allowed",
|
|
355
|
+
label: ((x = i.value) == null ? void 0 : x.mode) === "update" ? n(t)("menu.print_route.department_dialog.update.action") : n(t)("menu.print_route.department_dialog.add.action"),
|
|
356
356
|
size: "lg",
|
|
357
357
|
type: "submit",
|
|
358
358
|
variant: "primary"
|
|
359
359
|
}, null, 8, ["disabled", "label"]),
|
|
360
360
|
l(f, {
|
|
361
|
-
label:
|
|
361
|
+
label: n(t)("menu.print_route.department_dialog.actions.cancel"),
|
|
362
362
|
size: "lg",
|
|
363
363
|
variant: "tertiary",
|
|
364
|
-
onClick:
|
|
364
|
+
onClick: j
|
|
365
365
|
}, null, 8, ["label"])
|
|
366
366
|
])
|
|
367
367
|
];
|
|
368
368
|
}),
|
|
369
|
-
default:
|
|
370
|
-
u("div",
|
|
371
|
-
l(
|
|
372
|
-
title:
|
|
369
|
+
default: m(() => [
|
|
370
|
+
u("div", Ue, [
|
|
371
|
+
l(J, {
|
|
372
|
+
title: n(t)("menu.print_route.department_dialog.sections.route_detail.title")
|
|
373
373
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
var
|
|
374
|
+
default: m(() => {
|
|
375
|
+
var a, x, T;
|
|
376
376
|
return [
|
|
377
|
-
l(
|
|
377
|
+
l(pe, {
|
|
378
378
|
autofocus: "",
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
rules: [
|
|
380
|
+
(R) => {
|
|
381
|
+
const O = c.value.validateName(String(R ?? ""));
|
|
382
|
+
return O ? n(b)(O) : !0;
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"helper-state": (a = i.value) != null && a.nameIssue ? "error" : "none",
|
|
386
|
+
"helper-text": (x = i.value) != null && x.nameIssue ? n(b)(i.value.nameIssue) : "",
|
|
387
|
+
label: n(t)(
|
|
382
388
|
"menu.print_route.department_dialog.sections.route_detail.name.label"
|
|
383
389
|
),
|
|
384
|
-
"model-value": ((
|
|
385
|
-
placeholder:
|
|
390
|
+
"model-value": ((T = i.value) == null ? void 0 : T.name) ?? "",
|
|
391
|
+
placeholder: n(t)(
|
|
386
392
|
"menu.print_route.department_dialog.sections.route_detail.name.placeholder"
|
|
387
393
|
),
|
|
388
|
-
"onUpdate:modelValue":
|
|
389
|
-
}, null, 8, ["helper-state", "helper-text", "label", "model-value", "placeholder"])
|
|
394
|
+
"onUpdate:modelValue": o[1] || (o[1] = (R) => c.value.setName(R))
|
|
395
|
+
}, null, 8, ["rules", "helper-state", "helper-text", "label", "model-value", "placeholder"])
|
|
390
396
|
];
|
|
391
397
|
}),
|
|
392
398
|
_: 1
|
|
393
399
|
}, 8, ["title"]),
|
|
394
|
-
l(
|
|
395
|
-
title:
|
|
400
|
+
l(J, {
|
|
401
|
+
title: n(t)("menu.print_route.department_dialog.sections.link_product.title")
|
|
396
402
|
}, {
|
|
397
|
-
"append-title":
|
|
398
|
-
l(
|
|
403
|
+
"append-title": m(() => [
|
|
404
|
+
l(_e),
|
|
399
405
|
l(f, {
|
|
400
|
-
label:
|
|
406
|
+
label: n(t)(
|
|
401
407
|
"menu.print_route.department_dialog.sections.link_product.link"
|
|
402
408
|
),
|
|
403
409
|
"border-color": "primary",
|
|
404
410
|
"prepend-icon": "link",
|
|
405
411
|
"text-color": "primary",
|
|
406
412
|
variant: "secondary",
|
|
407
|
-
onClick:
|
|
413
|
+
onClick: o[2] || (o[2] = (a) => P.value = !0)
|
|
408
414
|
}, null, 8, ["label"])
|
|
409
415
|
]),
|
|
410
|
-
default:
|
|
411
|
-
u("div",
|
|
412
|
-
u("div",
|
|
413
|
-
u("p",
|
|
416
|
+
default: m(() => [
|
|
417
|
+
u("div", Ae, [
|
|
418
|
+
u("div", Be, [
|
|
419
|
+
u("p", Ne, h(n(t)(
|
|
414
420
|
"menu.print_route.department_dialog.sections.link_product.products_linked",
|
|
415
|
-
{ count:
|
|
421
|
+
{ count: le.value }
|
|
416
422
|
)), 1),
|
|
417
|
-
l(
|
|
423
|
+
l(K, {
|
|
418
424
|
class: "flex-1",
|
|
419
425
|
"model-value": oe.value,
|
|
420
|
-
placeholder:
|
|
426
|
+
placeholder: n(t)(
|
|
421
427
|
"menu.print_route.department_dialog.sections.link_product.search"
|
|
422
428
|
),
|
|
423
|
-
"onUpdate:modelValue":
|
|
429
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => c.value.setLinkedProductQuery(String(a ?? "")))
|
|
424
430
|
}, null, 8, ["model-value", "placeholder"])
|
|
425
431
|
]),
|
|
426
432
|
u("div", null, [
|
|
427
|
-
(d(!0), y(
|
|
428
|
-
key:
|
|
433
|
+
(d(!0), y(U, null, X(ae.value, (a) => (d(), y("div", {
|
|
434
|
+
key: a.id ?? ""
|
|
429
435
|
}, [
|
|
430
|
-
l(
|
|
431
|
-
"column-defs":
|
|
436
|
+
l(Q, {
|
|
437
|
+
"column-defs": se(a),
|
|
432
438
|
"hide-footer": "",
|
|
433
|
-
"page-size":
|
|
434
|
-
"row-data": [...
|
|
439
|
+
"page-size": a.products.length,
|
|
440
|
+
"row-data": [...a.products],
|
|
435
441
|
"shrink-at": !1
|
|
436
442
|
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
437
443
|
]))), 128))
|
|
@@ -444,26 +450,26 @@ const Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-l
|
|
|
444
450
|
]),
|
|
445
451
|
_: 1
|
|
446
452
|
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
447
|
-
l(
|
|
453
|
+
l(ke, {
|
|
448
454
|
modelValue: P.value,
|
|
449
|
-
"onUpdate:modelValue":
|
|
450
|
-
catalogue:
|
|
451
|
-
"selected-product-ids":
|
|
452
|
-
title:
|
|
453
|
-
onSubmit:
|
|
455
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => P.value = a),
|
|
456
|
+
catalogue: te.value,
|
|
457
|
+
"selected-product-ids": ne.value,
|
|
458
|
+
title: n(t)("menu.print_route.department_dialog.sections.link_product.title"),
|
|
459
|
+
onSubmit: me
|
|
454
460
|
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
455
461
|
]),
|
|
456
462
|
_: 1
|
|
457
463
|
}, 8, ["heading"]);
|
|
458
464
|
};
|
|
459
465
|
}
|
|
460
|
-
}),
|
|
466
|
+
}), We = /* @__PURE__ */ B({
|
|
461
467
|
__name: "PrintRoute",
|
|
462
468
|
setup(L) {
|
|
463
|
-
const s =
|
|
464
|
-
return (t,
|
|
469
|
+
const s = Ce();
|
|
470
|
+
return (t, b) => (d(), k(Me, { sdk: n(s) }, null, 8, ["sdk"]));
|
|
465
471
|
}
|
|
466
472
|
});
|
|
467
473
|
export {
|
|
468
|
-
|
|
474
|
+
We as default
|
|
469
475
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as m, resolveComponent as i, openBlock as c, createBlock as s, unref as t, withCtx as e, createVNode as o } from "vue";
|
|
2
2
|
import { RouterLink as p } from "vue-router";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
|
-
import { _ as l } from "./ProductList.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a as u } from "./provide-
|
|
6
|
-
import { R as d } from "./app-
|
|
7
|
-
import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as l } from "./ProductList.vue_vue_type_script_setup_true_lang-63u-Pxh-.js";
|
|
5
|
+
import { a as u } from "./provide-FZ08sGZH.js";
|
|
6
|
+
import { R as d } from "./app-BcGXBcUK.js";
|
|
7
|
+
import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-BYeOydGv.js";
|
|
8
8
|
const A = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Product",
|
|
10
10
|
setup(k) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, ref as _, openBlock as r, createElementBlock as E, Fragment as g, createVNode as d, unref as t, withCtx as p, createBlock as f, createCommentVNode as v, createElementVNode as $ } from "vue";
|
|
2
2
|
import { useI18n as B } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as I, SnackbarPosition as N } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as O } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as S, b as P, a as T, I as V } from "./ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as O } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CniqNe-9.js";
|
|
5
|
+
import { _ as S, b as P, a as T, I as V } from "./ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-Be9Y5Cc1.js";
|
|
6
6
|
const A = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
7
7
|
__name: "ProductEditorHost",
|
|
8
8
|
props: {
|
|
@@ -3,14 +3,14 @@ import { useI18n as J, CustomAttributesForm as de } from "@feedmepos/mf-common";
|
|
|
3
3
|
import { useDialog as _e, components as E } from "@feedmepos/ui-library";
|
|
4
4
|
import { RemyButton as pe } from "@feedmepos/mf-remy-panel";
|
|
5
5
|
import { _ as Le } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
6
|
-
import { b as fe, u as le } from "./provide-
|
|
6
|
+
import { b as fe, u as le } from "./provide-FZ08sGZH.js";
|
|
7
7
|
import { _ as Ue } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
8
8
|
import { _ as Y, b as Ae } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
9
9
|
import { a as Ne, _ as ee } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
10
10
|
import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
11
11
|
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
import { a as Ie, A as Be, _ as De } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as Ee } from "./useActionFeedback-
|
|
12
|
+
import { a as Ie, A as Be, _ as De } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-DS7hUQpE.js";
|
|
13
|
+
import { u as Ee } from "./useActionFeedback-BNYAkEZw.js";
|
|
14
14
|
const ye = /* @__PURE__ */ q({
|
|
15
15
|
__name: "LocalizedCurrencySymbol",
|
|
16
16
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as Ft, resolveComponent as U, openBlock as b, createBlock as R, Teleport as Ye, createVNode as z, Transition as Xe, withCtx as I, withKeys as Kt, normalizeClass as Ut, createElementVNode as S, toDisplayString as O, renderSlot as J, createElementBlock as F, Fragment as pt, renderList as xt, createCommentVNode as V, resolveDynamicComponent as Mt, withDirectives as ce, vShow as ue, mergeProps as de, withModifiers as Ve, ref as L, watch as Ne, computed as st, normalizeStyle as Jt, onBeforeUnmount as qe, unref as A } from "vue";
|
|
2
2
|
import { useI18n as Ze } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as B } from "@feedmepos/ui-library";
|
|
4
|
-
import { b as Ge, A as Qe } from "./provide-
|
|
4
|
+
import { b as Ge, A as Qe } from "./provide-FZ08sGZH.js";
|
|
5
5
|
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Je = {
|
|
7
7
|
class: /* @__PURE__ */ Ut([
|