@feedmepos/mf-menu-portal 1.0.4-dev.3 → 1.0.4-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-nS46pByh.js → App-CrpoLCjA.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
- package/dist/{Catalog-B4RS8T29.js → Catalog-VU3HhNro.js} +4 -4
- package/dist/{CatalogBinding-6_783kbu.js → CatalogBinding-BNATtZEY.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js → CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js} +7 -7
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
- package/dist/{Category-CqneIGq4.js → Category-DMoXTsfG.js} +5 -5
- package/dist/{Category-DNQH1CI7.js → Category-DxjdQ-NN.js} +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js +847 -0
- package/dist/{CookingGuide-DTAiFmEL.js → CookingGuide-DiZZDYD-.js} +5 -5
- package/dist/{Group-DeUqUomY.js → Group-DFR8q-tt.js} +5 -5
- package/dist/{Group-5xO2j3CL.js → Group-rzfh_o6r.js} +2 -2
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +1807 -0
- package/dist/Ingredient-DpjGIuH9.js +505 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js +782 -0
- package/dist/{MenuSetting-DdekHsQy.js → MenuSetting-DR-pDSF_.js} +4 -4
- package/dist/OrderPacing-JcTuweqF.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
- package/dist/{Preview-DGTw0POk.js → Preview-BZyun5lZ.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
- package/dist/PrintRoute-CzEx2dCt.js +518 -0
- package/dist/{Product-CsbcyIgD.js → Product-CQb0n06E.js} +4 -4
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js} +9 -9
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js +2011 -0
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +630 -587
- package/dist/{ProductInternalTools-Ccd4dAmx.js → ProductInternalTools-QrBR1nFp.js} +2 -2
- package/dist/{ProductInventoryDialog-DYcKdKHi.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js} +1 -1
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js +2765 -0
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
- package/dist/{Products-phZwCZhU.js → Products-B8tysOAL.js} +3 -3
- package/dist/Publish-DTvOvFNa.js +1337 -0
- package/dist/Recipe-Ddx31csF.js +388 -0
- package/dist/{Scheduler-C-A5m92O.js → Scheduler-CST5L_cw.js} +314 -254
- package/dist/ServingSequence-DYyEZI2S.js +374 -0
- package/dist/{Setting-C24V-lps.js → Setting-Ip0pGjks.js} +6 -6
- package/dist/Subcategory-BIgjzVta.js +459 -0
- package/dist/{Takeaway-DywX5BiX.js → Takeaway-CekhGM-m.js} +2 -2
- package/dist/{Takeaway-BFP2ohJn.js → Takeaway-aXsPg4JT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js → TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js} +4 -4
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js +1291 -0
- package/dist/Unit-BMW8u0Us.js +424 -0
- package/dist/{Variant-BBfWhH-s.js → Variant-CZsrYRMU.js} +5 -5
- package/dist/{_id_-BooM3FX1.js → _id_-D4swrvNa.js} +3 -3
- package/dist/{app-Bmgb8ACe.js → app-BWwwHsWi.js} +312 -312
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -0
- package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-CG-fX5pi.js → menu-compute-D7TdiHt4.js} +4 -4
- package/dist/assets/{validate-menu-BeGMWVns.js → validate-menu-DXppWUVq.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CfF0FmUz.js → provide-CDmXzkhz.js} +67990 -66891
- package/dist/{useActionFeedback-DyUCQl2x.js → useActionFeedback-Dm2HDa_2.js} +1 -1
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
- package/package.json +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js +0 -2183
- package/dist/Ingredient-BlDW3TfZ.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js +0 -709
- package/dist/OrderPacing-Bb2n5wmI.js +0 -698
- package/dist/PrintRoute-CJB4gIP2.js +0 -473
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js +0 -10353
- package/dist/Publish-BeKIXu3z.js +0 -1261
- package/dist/Recipe-Fo4tBkBv.js +0 -350
- package/dist/ServingSequence-BrCwLSO7.js +0 -336
- package/dist/Subcategory-B0oZIKbw.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js +0 -1213
- package/dist/Unit-NhEwH-kr.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ue, computed as y, ref as R, shallowRef as te, h as le, withModifiers as ye, onUnmounted as fe, resolveComponent as b, openBlock as r, createBlock as _, unref as e, withCtx as c, createElementBlock as g, toDisplayString as f, createVNode as i, Fragment as A, createElementVNode as v, createCommentVNode as k, mergeProps as oe, renderList as ne } from "vue";
|
|
2
|
-
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as he, components as q, FmButtonVariant as ke } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as se } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
-
import { _ as we } from "./ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js";
|
|
6
|
-
import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
7
|
-
import { _ as Fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
8
|
-
import { u as Ce } from "./useActionFeedback-DyUCQl2x.js";
|
|
9
|
-
import { u as Se } from "./useEditorValidation-Ctef5Bxt.js";
|
|
10
|
-
import { b as Ve, u as Le, a as De } from "./provide-CfF0FmUz.js";
|
|
11
|
-
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Ue = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ee = { class: "flex items-center" }, ze = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "text-fm-color-typo-secondary",
|
|
15
|
-
role: "alert"
|
|
16
|
-
}, je = {
|
|
17
|
-
key: 1,
|
|
18
|
-
"data-menu-state": "unavailable"
|
|
19
|
-
}, Ne = { class: "flex justify-end items-center" }, Be = { class: "w-[320px]" }, Me = { class: "fm-typo-en-title-md-600" }, Oe = { class: "flex flex-col gap-32 h-full min-h-0 py-16" }, Ie = { "data-testid": "subcategory-translation-button" }, $e = { class: "py-12 px-16 space-y-4" }, Pe = { key: 0 }, Re = { class: "flex gap-8 items-center justify-start" }, Ae = { class: "fm-typo-en-title-sm-600" }, qe = { class: "py-12 px-16 space-y-4" }, Ke = { key: 0 }, Qe = { class: "flex w-full gap-8 items-center justify-end px-0 pb-0" }, Ge = /* @__PURE__ */ ue({
|
|
20
|
-
__name: "SubcategoryList",
|
|
21
|
-
props: {
|
|
22
|
-
sdk: {}
|
|
23
|
-
},
|
|
24
|
-
setup(K) {
|
|
25
|
-
const p = K, { t: a, n: Q } = _e(), O = Ve(), re = he(), { run: I } = Ce(), h = Le(p.sdk.subCategory.list), s = y(
|
|
26
|
-
() => h.value.status === "ready" ? h.value.value : null
|
|
27
|
-
), w = R(!1), x = R(!1), T = R(!1), G = y(() => {
|
|
28
|
-
var t;
|
|
29
|
-
return ((t = s.value) == null ? void 0 : t.query) ?? "";
|
|
30
|
-
}), u = te(
|
|
31
|
-
p.sdk.subCategory.editor()
|
|
32
|
-
), F = te(
|
|
33
|
-
u.value.get()
|
|
34
|
-
);
|
|
35
|
-
let $ = u.value.subscribe(
|
|
36
|
-
(t) => F.value = t
|
|
37
|
-
);
|
|
38
|
-
const l = y(
|
|
39
|
-
() => F.value.status === "ready" ? F.value.value : null
|
|
40
|
-
), U = Se(() => u.value), E = y(
|
|
41
|
-
() => l.value ? U.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
|
|
42
|
-
);
|
|
43
|
-
function H(t) {
|
|
44
|
-
var n, m;
|
|
45
|
-
return ((m = (n = l.value) == null ? void 0 : n.supportedLocales.find(
|
|
46
|
-
(j) => j.code === t
|
|
47
|
-
)) == null ? void 0 : m.name) ?? t;
|
|
48
|
-
}
|
|
49
|
-
function J(t) {
|
|
50
|
-
$(), u.value.dispose(), u.value = p.sdk.subCategory.editor(t), F.value = u.value.get(), $ = u.value.subscribe(
|
|
51
|
-
(n) => F.value = n
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function W() {
|
|
55
|
-
!s.value || s.value.create.state !== "allowed" || (J(), T.value = !0);
|
|
56
|
-
}
|
|
57
|
-
function ie(t) {
|
|
58
|
-
J(t.id), w.value = !0;
|
|
59
|
-
}
|
|
60
|
-
function z() {
|
|
61
|
-
w.value = !1, T.value = !1, x.value = !1;
|
|
62
|
-
}
|
|
63
|
-
function X() {
|
|
64
|
-
var t;
|
|
65
|
-
((t = l.value) == null ? void 0 : t.translation.state) === "allowed" && (u.value.beginTranslationEdit(), x.value = !0);
|
|
66
|
-
}
|
|
67
|
-
function de() {
|
|
68
|
-
u.value.saveTranslationEdit(), x.value = !1;
|
|
69
|
-
}
|
|
70
|
-
function Y() {
|
|
71
|
-
u.value.discardTranslationEdit(), x.value = !1;
|
|
72
|
-
}
|
|
73
|
-
async function Z() {
|
|
74
|
-
var N, B, C, S;
|
|
75
|
-
const t = (N = l.value) == null ? void 0 : N.mode, n = ((C = (B = l.value) == null ? void 0 : B.name) == null ? void 0 : C.trim()) ?? "", m = Object.keys(((S = l.value) == null ? void 0 : S.fieldIssues) ?? {}).length > 0;
|
|
76
|
-
t === "update" && !m && z(), (await I(
|
|
77
|
-
() => U.submit(() => u.value.submit()),
|
|
78
|
-
{
|
|
79
|
-
// A draft refused locally never reaches `submitting`: no spinner.
|
|
80
|
-
showLoading: () => {
|
|
81
|
-
var M;
|
|
82
|
-
return ((M = l.value) == null ? void 0 : M.status) === "submitting";
|
|
83
|
-
},
|
|
84
|
-
successMessage: t === "update" ? a("menu.subcategory.manager.dialog.update.success", { name: n }) : a("menu.subcategory.manager.dialog.add.success", { name: n })
|
|
85
|
-
}
|
|
86
|
-
)).kind === "success" ? z() : t === "update" && (w.value = !0);
|
|
87
|
-
}
|
|
88
|
-
function ce(t) {
|
|
89
|
-
t.remove.state === "allowed" && re.open({
|
|
90
|
-
title: a("menu.subcategory.dialog.remove.title"),
|
|
91
|
-
message: a("menu.common.dialog.remove_confirmation", {
|
|
92
|
-
name: t.name
|
|
93
|
-
}),
|
|
94
|
-
primaryActions: {
|
|
95
|
-
text: a("menu.common.actions.remove"),
|
|
96
|
-
close: !0,
|
|
97
|
-
variant: ke.Destructive
|
|
98
|
-
},
|
|
99
|
-
secondaryActions: {
|
|
100
|
-
text: a("menu.common.actions.cancel"),
|
|
101
|
-
close: !0
|
|
102
|
-
}
|
|
103
|
-
}).onPrimary(async () => {
|
|
104
|
-
await I(() => p.sdk.subCategory.remove(t.id), {
|
|
105
|
-
successMessage: a("menu.subcategory.dialog.remove.success", {
|
|
106
|
-
name: t.name
|
|
107
|
-
})
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
const me = y(() => {
|
|
112
|
-
var t;
|
|
113
|
-
return [...((t = s.value) == null ? void 0 : t.rows) ?? []];
|
|
114
|
-
}), ve = y(() => !s.value || s.value.reorder.state !== "allowed" ? !1 : () => !0);
|
|
115
|
-
function pe(t) {
|
|
116
|
-
!s.value || s.value.reorder.state !== "allowed" || I(
|
|
117
|
-
() => p.sdk.subCategory.reorder(t.map((n) => n.id)),
|
|
118
|
-
{
|
|
119
|
-
successMessage: a("menu.subcategory.rearrange.success")
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
const ge = y(() => [
|
|
124
|
-
{
|
|
125
|
-
accessorKey: "name",
|
|
126
|
-
header: () => a("menu.subcategory.columns.title"),
|
|
127
|
-
enableSorting: !1,
|
|
128
|
-
meta: { width: "auto" }
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "actions",
|
|
132
|
-
size: 52,
|
|
133
|
-
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
134
|
-
header: "",
|
|
135
|
-
cell: (t) => {
|
|
136
|
-
const n = t.row.original;
|
|
137
|
-
return le("div", { class: "flex justify-end" }, [
|
|
138
|
-
le(q.FmButton, {
|
|
139
|
-
icon: "delete",
|
|
140
|
-
disabled: n.remove.state !== "allowed",
|
|
141
|
-
variant: "tertiary",
|
|
142
|
-
textColor: "neutral-gray-400",
|
|
143
|
-
"aria-label": a("menu.subcategory.dialog.remove.title"),
|
|
144
|
-
onClick: ye(
|
|
145
|
-
() => ce(t.row.original),
|
|
146
|
-
["stop", "prevent"]
|
|
147
|
-
)
|
|
148
|
-
})
|
|
149
|
-
]);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
]);
|
|
153
|
-
return fe(() => {
|
|
154
|
-
p.sdk.subCategory.search(""), $(), u.value.dispose();
|
|
155
|
-
}), (t, n) => {
|
|
156
|
-
const m = b("FmButton"), j = b("FmCircularProgress"), N = b("FmSearch"), B = b("FmTable"), C = b("FmTooltip"), S = b("FmTextField"), M = b("FmSideSheet"), be = b("FmDialog");
|
|
157
|
-
return r(), _(xe, {
|
|
158
|
-
heading: e(a)("menu.subcategory.title")
|
|
159
|
-
}, {
|
|
160
|
-
"append-heading": c(() => {
|
|
161
|
-
var V;
|
|
162
|
-
return [
|
|
163
|
-
v("div", Ue, [
|
|
164
|
-
v("div", Ee, [
|
|
165
|
-
i(we, {
|
|
166
|
-
value: e(Q)(((V = s.value) == null ? void 0 : V.totalCount) ?? 0)
|
|
167
|
-
}, null, 8, ["value"])
|
|
168
|
-
]),
|
|
169
|
-
s.value && s.value.totalCount > 0 ? (r(), _(m, {
|
|
170
|
-
key: 0,
|
|
171
|
-
disabled: s.value.create.state !== "allowed",
|
|
172
|
-
label: e(a)("menu.subcategory.add"),
|
|
173
|
-
"prepend-icon": "add",
|
|
174
|
-
onClick: W
|
|
175
|
-
}, null, 8, ["disabled", "label"])) : k("", !0)
|
|
176
|
-
])
|
|
177
|
-
];
|
|
178
|
-
}),
|
|
179
|
-
default: c(() => {
|
|
180
|
-
var V, ee, ae;
|
|
181
|
-
return [
|
|
182
|
-
e(h).status === "error" ? (r(), g("p", ze, f(e(O)(e(h).error.message)), 1)) : e(h).status === "unavailable" ? (r(), g("div", je, [
|
|
183
|
-
i(e(se), {
|
|
184
|
-
title: e(a)("menu.subcategory.empty.title"),
|
|
185
|
-
subtitle: e(a)("menu.subcategory.empty.subtitle")
|
|
186
|
-
}, null, 8, ["title", "subtitle"])
|
|
187
|
-
])) : e(h).status === "loading" ? (r(), _(j, { key: 2 })) : s.value && s.value.rows.length === 0 && !G.value ? (r(), _(e(se), {
|
|
188
|
-
key: 3,
|
|
189
|
-
action: s.value.create.state === "allowed" ? { text: e(a)("menu.subcategory.add"), callback: W } : void 0,
|
|
190
|
-
subtitle: e(a)("menu.subcategory.empty.subtitle"),
|
|
191
|
-
title: e(a)("menu.subcategory.empty.title")
|
|
192
|
-
}, null, 8, ["action", "subtitle", "title"])) : s.value ? (r(), g(A, { key: 4 }, [
|
|
193
|
-
v("div", Ne, [
|
|
194
|
-
v("div", Be, [
|
|
195
|
-
i(N, {
|
|
196
|
-
autofocus: "",
|
|
197
|
-
class: "mb-8",
|
|
198
|
-
"model-value": G.value,
|
|
199
|
-
placeholder: e(a)("menu.common.labels.search_placeholder", {
|
|
200
|
-
type: e(a)("menu.subcategory.title")
|
|
201
|
-
}),
|
|
202
|
-
"onUpdate:modelValue": p.sdk.subCategory.search
|
|
203
|
-
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
204
|
-
])
|
|
205
|
-
]),
|
|
206
|
-
i(B, {
|
|
207
|
-
class: "subcategory-table",
|
|
208
|
-
"column-defs": ge.value,
|
|
209
|
-
draggable: ve.value,
|
|
210
|
-
"page-size": s.value.rows.length,
|
|
211
|
-
"row-data": me.value,
|
|
212
|
-
"shrink-at": !1,
|
|
213
|
-
"hide-footer": "",
|
|
214
|
-
"pin-header-row": "",
|
|
215
|
-
onDndChanged: pe,
|
|
216
|
-
onRowClick: n[0] || (n[0] = (o) => ie(o.original))
|
|
217
|
-
}, null, 8, ["column-defs", "draggable", "page-size", "row-data"])
|
|
218
|
-
], 64)) : k("", !0),
|
|
219
|
-
((V = l.value) == null ? void 0 : V.mode) === "update" ? (r(), _(M, {
|
|
220
|
-
key: 5,
|
|
221
|
-
modelValue: w.value,
|
|
222
|
-
"onUpdate:modelValue": n[1] || (n[1] = (o) => w.value = o),
|
|
223
|
-
"is-container": e(q).FmForm,
|
|
224
|
-
"is-container-props": { onValidationSuccess: Z },
|
|
225
|
-
"max-width": 560,
|
|
226
|
-
"z-index": 100
|
|
227
|
-
}, {
|
|
228
|
-
"side-sheet-header": c(() => {
|
|
229
|
-
var o;
|
|
230
|
-
return [
|
|
231
|
-
v("p", Me, f(((o = l.value) == null ? void 0 : o.mode) === "update" ? e(a)("menu.subcategory.title") : e(a)("menu.subcategory.manager.dialog.add.title")), 1)
|
|
232
|
-
];
|
|
233
|
-
}),
|
|
234
|
-
"side-sheet-footer": c(() => {
|
|
235
|
-
var o, d;
|
|
236
|
-
return [
|
|
237
|
-
v("div", Re, [
|
|
238
|
-
i(m, {
|
|
239
|
-
disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
240
|
-
label: ((d = l.value) == null ? void 0 : d.mode) === "update" ? e(a)("menu.subcategory.manager.dialog.update.action") : e(a)("menu.subcategory.manager.dialog.add.action"),
|
|
241
|
-
size: "lg",
|
|
242
|
-
type: "submit",
|
|
243
|
-
variant: "primary"
|
|
244
|
-
}, null, 8, ["disabled", "label"]),
|
|
245
|
-
i(m, {
|
|
246
|
-
label: e(a)("menu.common.actions.cancel"),
|
|
247
|
-
size: "lg",
|
|
248
|
-
variant: "tertiary",
|
|
249
|
-
onClick: z
|
|
250
|
-
}, null, 8, ["label"])
|
|
251
|
-
])
|
|
252
|
-
];
|
|
253
|
-
}),
|
|
254
|
-
default: c(() => {
|
|
255
|
-
var o;
|
|
256
|
-
return [
|
|
257
|
-
v("div", Oe, [
|
|
258
|
-
i(S, oe({
|
|
259
|
-
"error-messages": E.value ? [e(O)(E.value)] : [],
|
|
260
|
-
label: e(a)("menu.subcategory.name"),
|
|
261
|
-
"model-value": ((o = l.value) == null ? void 0 : o.name) ?? "",
|
|
262
|
-
placeholder: e(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
263
|
-
}, e(U).field("name", u.value.setName)), {
|
|
264
|
-
append: c(() => [
|
|
265
|
-
v("div", Ie, [
|
|
266
|
-
i(C, {
|
|
267
|
-
variant: "plain",
|
|
268
|
-
placement: "top",
|
|
269
|
-
"z-index": 999
|
|
270
|
-
}, {
|
|
271
|
-
content: c(() => {
|
|
272
|
-
var d, L;
|
|
273
|
-
return [
|
|
274
|
-
v("div", $e, [
|
|
275
|
-
Object.keys(((d = l.value) == null ? void 0 : d.nameLocale) ?? {}).length === 0 ? (r(), g("div", Pe, f(e(a)("menu.common.translation.translation_label")), 1)) : k("", !0),
|
|
276
|
-
(r(!0), g(A, null, ne((L = l.value) == null ? void 0 : L.nameLocale, (P, D) => (r(), g("div", { key: D }, f(e(a)("menu.subcategory.translation.tooltip_value", {
|
|
277
|
-
value: P,
|
|
278
|
-
locale: H(D)
|
|
279
|
-
})), 1))), 128))
|
|
280
|
-
])
|
|
281
|
-
];
|
|
282
|
-
}),
|
|
283
|
-
default: c(() => {
|
|
284
|
-
var d;
|
|
285
|
-
return [
|
|
286
|
-
i(m, {
|
|
287
|
-
icon: "g_translate",
|
|
288
|
-
"aria-label": e(a)("menu.common.translation.translation_label"),
|
|
289
|
-
variant: "tertiary",
|
|
290
|
-
disabled: ((d = l.value) == null ? void 0 : d.translation.state) !== "allowed",
|
|
291
|
-
onClick: X
|
|
292
|
-
}, null, 8, ["aria-label", "disabled"])
|
|
293
|
-
];
|
|
294
|
-
}),
|
|
295
|
-
_: 1
|
|
296
|
-
})
|
|
297
|
-
])
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
}, 16, ["error-messages", "label", "model-value", "placeholder"])
|
|
301
|
-
])
|
|
302
|
-
];
|
|
303
|
-
}),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["modelValue", "is-container", "is-container-props"])) : k("", !0),
|
|
306
|
-
((ee = l.value) == null ? void 0 : ee.mode) === "update" || ((ae = l.value) == null ? void 0 : ae.mode) === "create" ? (r(), _(Fe, {
|
|
307
|
-
key: 6,
|
|
308
|
-
"model-value": x.value,
|
|
309
|
-
"onUpdate:modelValue": n[2] || (n[2] = (o) => o || Y()),
|
|
310
|
-
name: l.value.name,
|
|
311
|
-
"name-locale": l.value.nameLocale,
|
|
312
|
-
"supported-locales": l.value.supportedLocales,
|
|
313
|
-
dirty: l.value.translationDirty,
|
|
314
|
-
"z-index": 200,
|
|
315
|
-
"onUpdate:name": u.value.setName,
|
|
316
|
-
"onUpdate:nameLocale": u.value.setNameLocale,
|
|
317
|
-
onSave: de,
|
|
318
|
-
onDiscard: Y
|
|
319
|
-
}, null, 8, ["model-value", "name", "name-locale", "supported-locales", "dirty", "onUpdate:name", "onUpdate:nameLocale"])) : k("", !0),
|
|
320
|
-
i(be, {
|
|
321
|
-
modelValue: T.value,
|
|
322
|
-
"onUpdate:modelValue": n[3] || (n[3] = (o) => T.value = o),
|
|
323
|
-
"is-component": e(q).FmForm,
|
|
324
|
-
"is-component-props": { onValidationSuccess: Z },
|
|
325
|
-
"max-width": 560
|
|
326
|
-
}, {
|
|
327
|
-
"dialog-header": c(() => [
|
|
328
|
-
v("p", Ae, f(e(a)("menu.subcategory.manager.dialog.add.title")), 1)
|
|
329
|
-
]),
|
|
330
|
-
"dialog-footer": c(() => {
|
|
331
|
-
var o;
|
|
332
|
-
return [
|
|
333
|
-
v("div", Qe, [
|
|
334
|
-
i(m, {
|
|
335
|
-
label: e(a)("menu.common.actions.cancel"),
|
|
336
|
-
variant: "tertiary",
|
|
337
|
-
onClick: z
|
|
338
|
-
}, null, 8, ["label"]),
|
|
339
|
-
i(m, {
|
|
340
|
-
disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
341
|
-
label: e(a)("menu.subcategory.manager.dialog.add.action"),
|
|
342
|
-
type: "submit",
|
|
343
|
-
variant: "primary"
|
|
344
|
-
}, null, 8, ["disabled", "label"])
|
|
345
|
-
])
|
|
346
|
-
];
|
|
347
|
-
}),
|
|
348
|
-
default: c(() => {
|
|
349
|
-
var o;
|
|
350
|
-
return [
|
|
351
|
-
i(S, oe({
|
|
352
|
-
autofocus: "",
|
|
353
|
-
"error-messages": E.value ? [e(O)(E.value)] : [],
|
|
354
|
-
label: e(a)("menu.subcategory.name"),
|
|
355
|
-
"model-value": ((o = l.value) == null ? void 0 : o.name) ?? "",
|
|
356
|
-
placeholder: e(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
357
|
-
}, e(U).field("name", u.value.setName)), {
|
|
358
|
-
append: c(() => [
|
|
359
|
-
i(C, {
|
|
360
|
-
variant: "plain",
|
|
361
|
-
placement: "top",
|
|
362
|
-
"z-index": 999
|
|
363
|
-
}, {
|
|
364
|
-
content: c(() => {
|
|
365
|
-
var d, L;
|
|
366
|
-
return [
|
|
367
|
-
v("div", qe, [
|
|
368
|
-
Object.keys(((d = l.value) == null ? void 0 : d.nameLocale) ?? {}).length === 0 ? (r(), g("div", Ke, f(e(a)("menu.common.translation.translation_label")), 1)) : k("", !0),
|
|
369
|
-
(r(!0), g(A, null, ne((L = l.value) == null ? void 0 : L.nameLocale, (P, D) => (r(), g("div", { key: D }, f(e(a)("menu.subcategory.translation.tooltip_value", {
|
|
370
|
-
value: P,
|
|
371
|
-
locale: H(D)
|
|
372
|
-
})), 1))), 128))
|
|
373
|
-
])
|
|
374
|
-
];
|
|
375
|
-
}),
|
|
376
|
-
default: c(() => {
|
|
377
|
-
var d;
|
|
378
|
-
return [
|
|
379
|
-
i(m, {
|
|
380
|
-
icon: "g_translate",
|
|
381
|
-
"aria-label": e(a)("menu.common.translation.translation_label"),
|
|
382
|
-
variant: "tertiary",
|
|
383
|
-
disabled: ((d = l.value) == null ? void 0 : d.translation.state) !== "allowed",
|
|
384
|
-
onClick: X
|
|
385
|
-
}, null, 8, ["aria-label", "disabled"])
|
|
386
|
-
];
|
|
387
|
-
}),
|
|
388
|
-
_: 1
|
|
389
|
-
})
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}, 16, ["error-messages", "label", "model-value", "placeholder"])
|
|
393
|
-
];
|
|
394
|
-
}),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["modelValue", "is-component", "is-component-props"])
|
|
397
|
-
];
|
|
398
|
-
}),
|
|
399
|
-
_: 1
|
|
400
|
-
}, 8, ["heading"]);
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
}), He = /* @__PURE__ */ Te(Ge, [["__scopeId", "data-v-fc4e9669"]]), sa = /* @__PURE__ */ ue({
|
|
404
|
-
__name: "Subcategory",
|
|
405
|
-
setup(K) {
|
|
406
|
-
const p = De();
|
|
407
|
-
return (a, Q) => (r(), _(He, { sdk: e(p) }, null, 8, ["sdk"]));
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
export {
|
|
411
|
-
sa as default
|
|
412
|
-
};
|