@feedmepos/mf-menu-portal 1.0.4-dev.4 → 1.0.5-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-CrpoLCjA.js → App-B2xq1U4S.js} +699 -687
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
- package/dist/Catalog-BEI73S_k.js +433 -0
- package/dist/{CatalogBinding-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
- package/dist/{Category-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
- package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
- package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
- package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
- package/dist/{Group-DFR8q-tt.js → Group-qqr5SUIc.js} +17 -15
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
- package/dist/{Ingredient-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
- package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
- package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
- package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
- package/dist/{Preview-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
- package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
- package/dist/{Product-CQb0n06E.js → Product-sbMCaVhM.js} +8 -7
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
- package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
- package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
- package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
- package/dist/Publish-BlMxKniP.js +1300 -0
- package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
- package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
- package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
- package/dist/Setting-DBdNl3WL.js +185 -0
- package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
- package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
- package/dist/{Takeaway-aXsPg4JT.js → Takeaway-DFqOtls7.js} +17 -16
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
- package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
- package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
- package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
- package/dist/{app-BWwwHsWi.js → app-CxJjx2ma.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
- package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
- package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
- package/package.json +1 -1
- package/dist/Catalog-VU3HhNro.js +0 -374
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +0 -1807
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
- package/dist/Publish-DTvOvFNa.js +0 -1337
- package/dist/Setting-Ip0pGjks.js +0 -179
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { defineComponent as j, resolveComponent as p, openBlock as n, createElementBlock as
|
|
1
|
+
import { defineComponent as j, resolveComponent as p, openBlock as n, createElementBlock as k, createVNode as s, withCtx as u, createElementVNode as r, toDisplayString as g, createBlock as v, Fragment as L, renderList as N, createCommentVNode as $, computed as _, ref as E, shallowRef as W, onUnmounted as ge, h as x, withModifiers as M, unref as a, mergeProps as be } from "vue";
|
|
2
2
|
import { useI18n as he } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as we, useBreakpoints as
|
|
3
|
+
import { useDialog as we, useBreakpoints as Ce, components as U } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as xe } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
|
|
4
5
|
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
-
import { _ as
|
|
6
|
+
import { _ as Fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
|
|
6
7
|
import { _ as Y } from "./vuedraggable-CBtQLb_S.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
const
|
|
8
|
+
import { _ as Pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
|
|
9
|
+
import { u as Se } from "./useActionFeedback-CElXij1W.js";
|
|
10
|
+
import { u as Ve } from "./useEditorValidation-Ctef5Bxt.js";
|
|
11
|
+
import { b as Le, u as Z, a as $e } from "./provide-BGLSDsuJ.js";
|
|
12
|
+
const De = { class: "fm-typo-en-body-lg-600" }, Ie = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400" }, ze = /* @__PURE__ */ j({
|
|
12
13
|
__name: "RemoveRouteConfirmation",
|
|
13
14
|
props: {
|
|
14
15
|
row: {}
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
+
setup(D) {
|
|
17
18
|
return (i, t) => {
|
|
18
|
-
const h = p("i18n-t"), F = p("FmIcon"), w = p("FmListItem"),
|
|
19
|
-
return n(),
|
|
19
|
+
const h = p("i18n-t"), F = p("FmIcon"), w = p("FmListItem"), y = p("FmList");
|
|
20
|
+
return n(), k("div", null, [
|
|
20
21
|
s(h, {
|
|
21
22
|
keypath: i.row.linkedProductCount > 0 ? "menu.print_route.dialogs.remove.message.with_products" : "menu.print_route.dialogs.remove.message.confirm",
|
|
22
23
|
scope: "global",
|
|
23
24
|
tag: "p"
|
|
24
25
|
}, {
|
|
25
|
-
count:
|
|
26
|
-
r("span",
|
|
26
|
+
count: u(() => [
|
|
27
|
+
r("span", De, g(i.row.linkedProductCount), 1)
|
|
27
28
|
]),
|
|
28
|
-
name:
|
|
29
|
-
r("span",
|
|
29
|
+
name: u(() => [
|
|
30
|
+
r("span", Ie, g(i.row.name), 1)
|
|
30
31
|
]),
|
|
31
32
|
_: 1
|
|
32
33
|
}, 8, ["keypath"]),
|
|
33
|
-
i.row.linkedProductCount > 0 ? (n(),
|
|
34
|
+
i.row.linkedProductCount > 0 ? (n(), v(y, {
|
|
34
35
|
key: 0,
|
|
35
36
|
class: "mt-8"
|
|
36
37
|
}, {
|
|
37
|
-
default:
|
|
38
|
-
(n(!0),
|
|
38
|
+
default: u(() => [
|
|
39
|
+
(n(!0), k(L, null, N(i.row.linkedProductNames, (l) => (n(), v(w, {
|
|
39
40
|
key: l,
|
|
40
41
|
class: "!p-0 !gap-4 mt-4",
|
|
41
42
|
clickable: !1
|
|
42
43
|
}, {
|
|
43
|
-
prepend:
|
|
44
|
+
prepend: u(() => [
|
|
44
45
|
s(F, {
|
|
45
46
|
color: "neutral-gray-900",
|
|
46
47
|
name: "fiber_manual_record",
|
|
47
48
|
size: "sm"
|
|
48
49
|
})
|
|
49
50
|
]),
|
|
50
|
-
default:
|
|
51
|
-
r("span",
|
|
51
|
+
default: u(() => [
|
|
52
|
+
r("span", Re, g(l), 1)
|
|
52
53
|
]),
|
|
53
54
|
_: 2
|
|
54
55
|
}, 1024))), 128))
|
|
@@ -58,43 +59,40 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
58
59
|
]);
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
}),
|
|
62
|
+
}), Be = { class: "flex flex-1 justify-end" }, Ae = {
|
|
62
63
|
key: 0,
|
|
63
64
|
class: "flex flex-col gap-16 items-start"
|
|
64
|
-
},
|
|
65
|
+
}, Ee = {
|
|
65
66
|
class: "text-fm-color-typo-secondary",
|
|
66
67
|
role: "alert"
|
|
67
|
-
},
|
|
68
|
+
}, Me = {
|
|
68
69
|
key: 1,
|
|
69
70
|
"data-menu-state": "unavailable"
|
|
70
|
-
},
|
|
71
|
-
key: 2,
|
|
72
|
-
class: "fixed right-16 bottom-[72px] z-[100]"
|
|
73
|
-
}, Te = { class: "fm-typo-en-title-md-600" }, Oe = { class: "flex flex-col gap-32 pb-16" }, Ge = { class: "space-y-16" }, qe = { class: "flex items-center gap-8" }, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Je = { class: "flex gap-8 items-center justify-start" }, We = /* @__PURE__ */ j({
|
|
71
|
+
}, Ue = { class: "flex justify-end items-center" }, Ne = { class: "w-[320px] xs:w-full xs:px-16" }, je = { class: "min-w-0 grow space-y-4" }, Ke = { class: "fm-typo-en-body-lg-600 break-words" }, Qe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Te = { class: "fm-typo-en-title-md-600" }, Oe = { class: "flex flex-col gap-32 pb-16" }, Ge = { class: "space-y-16" }, qe = { class: "flex items-center gap-8" }, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Je = { class: "flex gap-8 items-center justify-start" }, We = /* @__PURE__ */ j({
|
|
74
72
|
__name: "PrintRouteList",
|
|
75
73
|
props: {
|
|
76
74
|
sdk: {}
|
|
77
75
|
},
|
|
78
|
-
setup(
|
|
79
|
-
const i =
|
|
76
|
+
setup(D) {
|
|
77
|
+
const i = D, { t } = he(), h = Le(), F = we(), { run: w } = Se(), y = Z(
|
|
80
78
|
i.sdk.printDepartment.list
|
|
81
79
|
), l = _(
|
|
82
|
-
() =>
|
|
80
|
+
() => y.value.status === "ready" ? y.value.value : null
|
|
83
81
|
), ee = _(() => {
|
|
84
82
|
var e;
|
|
85
83
|
return ((e = l.value) == null ? void 0 : e.query) ?? "";
|
|
86
|
-
}), { breakpoints: te } =
|
|
84
|
+
}), { breakpoints: te } = Ce(), I = _(() => te.value.xs), ae = _(() => {
|
|
87
85
|
var e;
|
|
88
86
|
return [...((e = l.value) == null ? void 0 : e.rows) ?? []];
|
|
89
|
-
}), b = E(!1), P = E(!1),
|
|
90
|
-
async function
|
|
91
|
-
|
|
87
|
+
}), b = E(!1), P = E(!1), R = E(!1);
|
|
88
|
+
async function oe() {
|
|
89
|
+
R.value = !0;
|
|
92
90
|
try {
|
|
93
91
|
await w(() => i.sdk.printDepartment.retryRead(), {
|
|
94
92
|
showLoading: !1
|
|
95
93
|
});
|
|
96
94
|
} finally {
|
|
97
|
-
|
|
95
|
+
R.value = !1;
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
const K = Z(
|
|
@@ -131,14 +129,14 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
131
129
|
id: "actions",
|
|
132
130
|
enableSorting: !1,
|
|
133
131
|
header: "",
|
|
134
|
-
cell: (
|
|
135
|
-
|
|
132
|
+
cell: (d) => x("div", { class: "flex justify-end" }, [
|
|
133
|
+
x(U.FmButton, {
|
|
136
134
|
icon: "delete",
|
|
137
135
|
variant: "tertiary",
|
|
138
136
|
textColor: "neutral-gray-400",
|
|
139
137
|
"aria-label": t("menu.common.actions.remove"),
|
|
140
138
|
onClick: M(
|
|
141
|
-
() => c.value.unlinkProduct(
|
|
139
|
+
() => c.value.unlinkProduct(d.row.original.id),
|
|
142
140
|
["stop", "prevent"]
|
|
143
141
|
)
|
|
144
142
|
})
|
|
@@ -148,24 +146,24 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
148
146
|
}
|
|
149
147
|
const c = W(
|
|
150
148
|
i.sdk.printDepartment.editor()
|
|
151
|
-
),
|
|
149
|
+
), C = W(
|
|
152
150
|
c.value.get()
|
|
153
151
|
);
|
|
154
|
-
let
|
|
155
|
-
(e) =>
|
|
152
|
+
let z = c.value.subscribe(
|
|
153
|
+
(e) => C.value = e
|
|
156
154
|
);
|
|
157
155
|
const m = _(
|
|
158
|
-
() =>
|
|
159
|
-
), B =
|
|
156
|
+
() => C.value.status === "ready" ? C.value.value : null
|
|
157
|
+
), B = Ve(() => c.value), Q = _(
|
|
160
158
|
() => m.value ? B.issue(m.value.fieldIssues, "name") : null
|
|
161
159
|
);
|
|
162
160
|
function T(e) {
|
|
163
|
-
|
|
164
|
-
(
|
|
161
|
+
z(), c.value.dispose(), c.value = i.sdk.printDepartment.editor(e), C.value = c.value.get(), z = c.value.subscribe(
|
|
162
|
+
(d) => C.value = d
|
|
165
163
|
);
|
|
166
164
|
}
|
|
167
|
-
|
|
168
|
-
i.sdk.printDepartment.search(""),
|
|
165
|
+
ge(() => {
|
|
166
|
+
i.sdk.printDepartment.search(""), z(), c.value.dispose();
|
|
169
167
|
});
|
|
170
168
|
function A() {
|
|
171
169
|
!l.value || l.value.create.state !== "allowed" || (T(), b.value = !0);
|
|
@@ -198,8 +196,8 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
198
196
|
});
|
|
199
197
|
}
|
|
200
198
|
async function ce() {
|
|
201
|
-
var
|
|
202
|
-
const e = ((
|
|
199
|
+
var f;
|
|
200
|
+
const e = ((f = m.value) == null ? void 0 : f.name.trim()) ?? "";
|
|
203
201
|
(await w(
|
|
204
202
|
() => B.submit(() => c.value.submit()),
|
|
205
203
|
{
|
|
@@ -224,7 +222,7 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
224
222
|
function q(e) {
|
|
225
223
|
F.open({
|
|
226
224
|
title: t("menu.print_route.dialogs.remove.title"),
|
|
227
|
-
contentComponent:
|
|
225
|
+
contentComponent: x(ze, { row: e }),
|
|
228
226
|
primaryActions: {
|
|
229
227
|
text: t("menu.print_route.actions.remove"),
|
|
230
228
|
close: !0,
|
|
@@ -263,8 +261,8 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
263
261
|
size: 52,
|
|
264
262
|
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
265
263
|
enableSorting: !1,
|
|
266
|
-
cell: (e) =>
|
|
267
|
-
|
|
264
|
+
cell: (e) => x("div", { class: "flex justify-end" }, [
|
|
265
|
+
x(U.FmButton, {
|
|
268
266
|
icon: "delete",
|
|
269
267
|
textColor: "neutral-gray-400",
|
|
270
268
|
variant: "tertiary",
|
|
@@ -281,135 +279,138 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
281
279
|
function pe(e) {
|
|
282
280
|
c.value.setLinkedProducts(e), P.value = !1;
|
|
283
281
|
}
|
|
284
|
-
return (e,
|
|
285
|
-
const
|
|
286
|
-
return n(),
|
|
287
|
-
heading:
|
|
282
|
+
return (e, d) => {
|
|
283
|
+
const f = p("FmButton"), S = p("FmCircularProgress"), H = p("FmSearch"), J = p("FmTable"), _e = p("FmListItem"), ve = p("FmList"), fe = p("FmTextField"), ye = p("FmSpacer"), ke = p("FmSideSheet");
|
|
284
|
+
return n(), v(Pe, {
|
|
285
|
+
heading: a(t)("menu.print_route.title")
|
|
288
286
|
}, {
|
|
289
|
-
"append-heading":
|
|
290
|
-
r("div",
|
|
291
|
-
l.value && l.value.totalCount > 0 && !
|
|
287
|
+
"append-heading": u(() => [
|
|
288
|
+
r("div", Be, [
|
|
289
|
+
l.value && l.value.totalCount > 0 && !I.value ? (n(), v(f, {
|
|
292
290
|
key: 0,
|
|
293
291
|
disabled: l.value.create.state !== "allowed",
|
|
294
|
-
label:
|
|
292
|
+
label: a(t)("menu.print_route.actions.add"),
|
|
295
293
|
"prepend-icon": "add",
|
|
296
294
|
variant: "primary",
|
|
297
295
|
onClick: A
|
|
298
296
|
}, null, 8, ["disabled", "label"])) : $("", !0)
|
|
299
297
|
])
|
|
300
298
|
]),
|
|
301
|
-
default:
|
|
302
|
-
|
|
303
|
-
r("p",
|
|
304
|
-
s(
|
|
305
|
-
label:
|
|
306
|
-
loading:
|
|
299
|
+
default: u(() => [
|
|
300
|
+
a(y).status === "error" ? (n(), k("div", Ae, [
|
|
301
|
+
r("p", Ee, g(a(h)(a(y).error.message)), 1),
|
|
302
|
+
s(f, {
|
|
303
|
+
label: a(t)("menu.common.actions.retry"),
|
|
304
|
+
loading: R.value,
|
|
307
305
|
"prepend-icon": "refresh",
|
|
308
306
|
size: "md",
|
|
309
307
|
variant: "secondary",
|
|
310
|
-
onClick:
|
|
308
|
+
onClick: oe
|
|
311
309
|
}, null, 8, ["label", "loading"])
|
|
312
|
-
])) :
|
|
313
|
-
s(
|
|
314
|
-
subtitle:
|
|
315
|
-
title:
|
|
310
|
+
])) : a(y).status === "unavailable" ? (n(), k("div", Me, [
|
|
311
|
+
s(a(X), {
|
|
312
|
+
subtitle: a(t)("menu.print_route.empty.subtitle"),
|
|
313
|
+
title: a(t)("menu.print_route.empty.title")
|
|
316
314
|
}, null, 8, ["subtitle", "title"])
|
|
317
|
-
])) :
|
|
315
|
+
])) : a(y).status === "loading" ? (n(), v(S, { key: 2 })) : l.value && l.value.totalCount === 0 ? (n(), v(a(X), {
|
|
318
316
|
key: 3,
|
|
319
|
-
action: l.value.create.state === "allowed" ? { text:
|
|
320
|
-
subtitle:
|
|
321
|
-
title:
|
|
322
|
-
}, null, 8, ["action", "subtitle", "title"])) : l.value ? (n(),
|
|
323
|
-
r("div",
|
|
324
|
-
r("div",
|
|
317
|
+
action: l.value.create.state === "allowed" ? { text: a(t)("menu.print_route.empty.action"), callback: A } : void 0,
|
|
318
|
+
subtitle: a(t)("menu.print_route.empty.subtitle"),
|
|
319
|
+
title: a(t)("menu.print_route.empty.title")
|
|
320
|
+
}, null, 8, ["action", "subtitle", "title"])) : l.value ? (n(), k(L, { key: 4 }, [
|
|
321
|
+
r("div", Ue, [
|
|
322
|
+
r("div", Ne, [
|
|
325
323
|
s(H, {
|
|
326
324
|
autofocus: "",
|
|
327
325
|
class: "my-8",
|
|
328
326
|
"model-value": ee.value,
|
|
329
|
-
placeholder:
|
|
327
|
+
placeholder: a(t)("menu.print_route.table.search.placeholder"),
|
|
330
328
|
"onUpdate:modelValue": i.sdk.printDepartment.search
|
|
331
329
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
332
330
|
])
|
|
333
331
|
]),
|
|
334
|
-
|
|
332
|
+
I.value ? (n(), v(ve, {
|
|
335
333
|
key: 1,
|
|
336
334
|
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
337
335
|
separator: ""
|
|
338
336
|
}, {
|
|
339
|
-
default:
|
|
340
|
-
(n(!0),
|
|
341
|
-
key:
|
|
337
|
+
default: u(() => [
|
|
338
|
+
(n(!0), k(L, null, N(l.value.rows, (o) => (n(), v(_e, {
|
|
339
|
+
key: o.id,
|
|
342
340
|
class: "!py-12 !px-0",
|
|
343
|
-
onClick: (V) => O(
|
|
341
|
+
onClick: (V) => O(o)
|
|
344
342
|
}, {
|
|
345
|
-
default:
|
|
346
|
-
r("div",
|
|
347
|
-
r("div",
|
|
348
|
-
r("div",
|
|
349
|
-
count:
|
|
343
|
+
default: u(() => [
|
|
344
|
+
r("div", je, [
|
|
345
|
+
r("div", Ke, g(o.name), 1),
|
|
346
|
+
r("div", Qe, g(a(t)("menu.print_route.table.mobile.products_linked", {
|
|
347
|
+
count: o.linkedProductCount
|
|
350
348
|
})), 1)
|
|
351
349
|
]),
|
|
352
|
-
s(
|
|
350
|
+
s(f, {
|
|
353
351
|
class: "shrink-0",
|
|
354
|
-
"aria-label":
|
|
355
|
-
disabled:
|
|
352
|
+
"aria-label": a(t)("menu.print_route.actions.remove"),
|
|
353
|
+
disabled: o.remove.state !== "allowed",
|
|
356
354
|
icon: "delete",
|
|
357
355
|
"text-color": "neutral-gray-400",
|
|
358
356
|
variant: "tertiary",
|
|
359
|
-
onClick: M((V) => q(
|
|
357
|
+
onClick: M((V) => q(o), ["stop"])
|
|
360
358
|
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
361
359
|
]),
|
|
362
360
|
_: 2
|
|
363
361
|
}, 1032, ["onClick"]))), 128))
|
|
364
362
|
]),
|
|
365
363
|
_: 1
|
|
366
|
-
})) : (n(),
|
|
364
|
+
})) : (n(), v(J, {
|
|
367
365
|
key: 0,
|
|
368
366
|
"column-defs": me.value,
|
|
369
367
|
"page-size": l.value.rows.length,
|
|
370
|
-
"row-data":
|
|
368
|
+
"row-data": ae.value,
|
|
371
369
|
"shrink-at": !1,
|
|
372
370
|
"hide-footer": "",
|
|
373
371
|
"pin-header-row": "",
|
|
374
|
-
onRowClick:
|
|
372
|
+
onRowClick: d[0] || (d[0] = (o) => O(o.original))
|
|
375
373
|
}, null, 8, ["column-defs", "page-size", "row-data"])),
|
|
376
|
-
l.value.totalCount > 0 &&
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
374
|
+
l.value.totalCount > 0 && I.value ? (n(), v(xe, { key: 2 }, {
|
|
375
|
+
default: u(() => [
|
|
376
|
+
s(f, {
|
|
377
|
+
disabled: l.value.create.state !== "allowed",
|
|
378
|
+
label: a(t)("menu.print_route.actions.add"),
|
|
379
|
+
"prepend-icon": "add",
|
|
380
|
+
variant: "fab",
|
|
381
|
+
onClick: A
|
|
382
|
+
}, null, 8, ["disabled", "label"])
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
})) : $("", !0)
|
|
385
386
|
], 64)) : $("", !0),
|
|
386
|
-
s(
|
|
387
|
+
s(ke, {
|
|
387
388
|
modelValue: b.value,
|
|
388
|
-
"onUpdate:modelValue":
|
|
389
|
-
"is-container":
|
|
389
|
+
"onUpdate:modelValue": d[3] || (d[3] = (o) => b.value = o),
|
|
390
|
+
"is-container": a(U).FmForm,
|
|
390
391
|
"is-container-props": { onValidationSuccess: ce },
|
|
391
392
|
"max-width": 560,
|
|
392
393
|
"onOn:clickedAway": de
|
|
393
394
|
}, {
|
|
394
|
-
"side-sheet-header":
|
|
395
|
-
var
|
|
395
|
+
"side-sheet-header": u(() => {
|
|
396
|
+
var o;
|
|
396
397
|
return [
|
|
397
|
-
r("p", Te,
|
|
398
|
+
r("p", Te, g(((o = m.value) == null ? void 0 : o.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.title") : a(t)("menu.print_route.department_dialog.add.title")), 1)
|
|
398
399
|
];
|
|
399
400
|
}),
|
|
400
|
-
"side-sheet-footer":
|
|
401
|
-
var
|
|
401
|
+
"side-sheet-footer": u(() => {
|
|
402
|
+
var o, V;
|
|
402
403
|
return [
|
|
403
404
|
r("div", Je, [
|
|
404
|
-
s(
|
|
405
|
-
disabled: ((
|
|
406
|
-
label: ((V = m.value) == null ? void 0 : V.mode) === "update" ?
|
|
405
|
+
s(f, {
|
|
406
|
+
disabled: ((o = m.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
407
|
+
label: ((V = m.value) == null ? void 0 : V.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.action") : a(t)("menu.print_route.department_dialog.add.action"),
|
|
407
408
|
size: "lg",
|
|
408
409
|
type: "submit",
|
|
409
410
|
variant: "primary"
|
|
410
411
|
}, null, 8, ["disabled", "label"]),
|
|
411
|
-
s(
|
|
412
|
-
label:
|
|
412
|
+
s(f, {
|
|
413
|
+
label: a(t)("menu.print_route.department_dialog.actions.cancel"),
|
|
413
414
|
size: "lg",
|
|
414
415
|
variant: "tertiary",
|
|
415
416
|
onClick: G
|
|
@@ -417,70 +418,70 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
417
418
|
])
|
|
418
419
|
];
|
|
419
420
|
}),
|
|
420
|
-
default:
|
|
421
|
+
default: u(() => [
|
|
421
422
|
r("div", Oe, [
|
|
422
423
|
s(Y, {
|
|
423
|
-
title:
|
|
424
|
+
title: a(t)("menu.print_route.department_dialog.sections.route_detail.title")
|
|
424
425
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
var
|
|
426
|
+
default: u(() => {
|
|
427
|
+
var o;
|
|
427
428
|
return [
|
|
428
429
|
s(fe, be({
|
|
429
430
|
autofocus: "",
|
|
430
|
-
"error-messages": Q.value ? [
|
|
431
|
-
label:
|
|
431
|
+
"error-messages": Q.value ? [a(h)(Q.value)] : [],
|
|
432
|
+
label: a(t)(
|
|
432
433
|
"menu.print_route.department_dialog.sections.route_detail.name.label"
|
|
433
434
|
),
|
|
434
|
-
"model-value": ((
|
|
435
|
-
placeholder:
|
|
435
|
+
"model-value": ((o = m.value) == null ? void 0 : o.name) ?? "",
|
|
436
|
+
placeholder: a(t)(
|
|
436
437
|
"menu.print_route.department_dialog.sections.route_detail.name.placeholder"
|
|
437
438
|
)
|
|
438
|
-
},
|
|
439
|
+
}, a(B).field("name", c.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
|
|
439
440
|
];
|
|
440
441
|
}),
|
|
441
442
|
_: 1
|
|
442
443
|
}, 8, ["title"]),
|
|
443
444
|
s(Y, {
|
|
444
|
-
title:
|
|
445
|
+
title: a(t)("menu.print_route.department_dialog.sections.link_product.title")
|
|
445
446
|
}, {
|
|
446
|
-
"append-title":
|
|
447
|
+
"append-title": u(() => [
|
|
447
448
|
s(ye),
|
|
448
|
-
s(
|
|
449
|
-
label:
|
|
449
|
+
s(f, {
|
|
450
|
+
label: a(t)(
|
|
450
451
|
"menu.print_route.department_dialog.sections.link_product.link"
|
|
451
452
|
),
|
|
452
453
|
"border-color": "primary",
|
|
453
454
|
"prepend-icon": "link",
|
|
454
455
|
"text-color": "primary",
|
|
455
456
|
variant: "secondary",
|
|
456
|
-
onClick:
|
|
457
|
+
onClick: d[1] || (d[1] = (o) => P.value = !0)
|
|
457
458
|
}, null, 8, ["label"])
|
|
458
459
|
]),
|
|
459
|
-
default:
|
|
460
|
+
default: u(() => [
|
|
460
461
|
r("div", Ge, [
|
|
461
462
|
r("div", qe, [
|
|
462
|
-
r("p", He,
|
|
463
|
+
r("p", He, g(a(t)(
|
|
463
464
|
"menu.print_route.department_dialog.sections.link_product.products_linked",
|
|
464
465
|
{ count: ie.value }
|
|
465
466
|
)), 1),
|
|
466
467
|
s(H, {
|
|
467
468
|
class: "flex-1",
|
|
468
469
|
"model-value": re.value,
|
|
469
|
-
placeholder:
|
|
470
|
+
placeholder: a(t)(
|
|
470
471
|
"menu.print_route.department_dialog.sections.link_product.search"
|
|
471
472
|
),
|
|
472
|
-
"onUpdate:modelValue":
|
|
473
|
+
"onUpdate:modelValue": d[2] || (d[2] = (o) => c.value.setLinkedProductQuery(String(o ?? "")))
|
|
473
474
|
}, null, 8, ["model-value", "placeholder"])
|
|
474
475
|
]),
|
|
475
476
|
r("div", null, [
|
|
476
|
-
(n(!0),
|
|
477
|
-
key:
|
|
477
|
+
(n(!0), k(L, null, N(se.value, (o) => (n(), k("div", {
|
|
478
|
+
key: o.id ?? ""
|
|
478
479
|
}, [
|
|
479
480
|
s(J, {
|
|
480
|
-
"column-defs": ue(
|
|
481
|
+
"column-defs": ue(o),
|
|
481
482
|
"hide-footer": "",
|
|
482
|
-
"page-size":
|
|
483
|
-
"row-data": [...
|
|
483
|
+
"page-size": o.products.length,
|
|
484
|
+
"row-data": [...o.products],
|
|
484
485
|
"shrink-at": !1
|
|
485
486
|
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
486
487
|
]))), 128))
|
|
@@ -493,12 +494,12 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
493
494
|
]),
|
|
494
495
|
_: 1
|
|
495
496
|
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
496
|
-
s(
|
|
497
|
+
s(Fe, {
|
|
497
498
|
modelValue: P.value,
|
|
498
|
-
"onUpdate:modelValue":
|
|
499
|
+
"onUpdate:modelValue": d[4] || (d[4] = (o) => P.value = o),
|
|
499
500
|
catalogue: ne.value,
|
|
500
501
|
"selected-product-ids": le.value,
|
|
501
|
-
title:
|
|
502
|
+
title: a(t)("menu.print_route.department_dialog.sections.link_product.title"),
|
|
502
503
|
onSubmit: pe
|
|
503
504
|
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
504
505
|
]),
|
|
@@ -506,13 +507,13 @@ const $e = { class: "fm-typo-en-body-lg-600" }, ze = { class: "fm-typo-en-body-l
|
|
|
506
507
|
}, 8, ["heading"]);
|
|
507
508
|
};
|
|
508
509
|
}
|
|
509
|
-
}),
|
|
510
|
+
}), it = /* @__PURE__ */ j({
|
|
510
511
|
__name: "PrintRoute",
|
|
511
|
-
setup(
|
|
512
|
-
const i =
|
|
513
|
-
return (t, h) => (n(),
|
|
512
|
+
setup(D) {
|
|
513
|
+
const i = $e();
|
|
514
|
+
return (t, h) => (n(), v(We, { sdk: a(i) }, null, 8, ["sdk"]));
|
|
514
515
|
}
|
|
515
516
|
});
|
|
516
517
|
export {
|
|
517
|
-
|
|
518
|
+
it as default
|
|
518
519
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
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
|
-
import { useI18n as
|
|
4
|
-
import { _
|
|
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-
|
|
3
|
+
import { useI18n as l } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ } from "./ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js";
|
|
5
|
+
import { a as u } from "./provide-BGLSDsuJ.js";
|
|
6
|
+
import { R as d } from "./app-CxJjx2ma.js";
|
|
7
|
+
import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js";
|
|
8
8
|
const A = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Product",
|
|
10
10
|
setup(k) {
|
|
11
|
-
const r = u(), { t: a } =
|
|
11
|
+
const r = u(), { t: a } = l();
|
|
12
12
|
return (g, b) => {
|
|
13
13
|
const n = i("FmButton");
|
|
14
|
-
return c(), s(
|
|
14
|
+
return c(), s(_, {
|
|
15
|
+
class: "xs:overflow-hidden",
|
|
15
16
|
sdk: t(r),
|
|
16
17
|
"catalog-page": ""
|
|
17
18
|
}, {
|