@feedmepos/mf-menu-portal 1.0.4-dev.2 → 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-DtX4DyDA.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-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
- package/dist/{Catalog-Dly_r1yA.js → Catalog-VU3HhNro.js} +4 -4
- package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-BNATtZEY.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js +784 -0
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
- package/dist/{Category-Dz1yFYyY.js → Category-DMoXTsfG.js} +5 -5
- package/dist/{Category-BS-vFDYy.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-CmbvWFgp.js → CookingGuide-DiZZDYD-.js} +5 -5
- package/dist/{Group-B7s-vPXb.js → Group-DFR8q-tt.js} +5 -5
- package/dist/{Group-BRmWZnHh.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-Ci7V_Jxn.js → MenuSetting-DR-pDSF_.js} +4 -4
- package/dist/OrderPacing-JcTuweqF.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
- package/dist/{Preview-BBGNaj1F.js → Preview-BZyun5lZ.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
- package/dist/PrintRoute-CzEx2dCt.js +518 -0
- package/dist/{Product-DqN0NFUU.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-Fkiw4lZp.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-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +800 -749
- package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-QrBR1nFp.js} +2 -2
- package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.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-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
- package/dist/{Products-Cn6j1DOQ.js → Products-B8tysOAL.js} +3 -3
- package/dist/Publish-DTvOvFNa.js +1337 -0
- package/dist/Recipe-Ddx31csF.js +388 -0
- package/dist/{Scheduler-DlaSVACJ.js → Scheduler-CST5L_cw.js} +314 -254
- package/dist/ServingSequence-DYyEZI2S.js +374 -0
- package/dist/{Setting-CyCp2uw4.js → Setting-Ip0pGjks.js} +6 -6
- package/dist/Subcategory-BIgjzVta.js +459 -0
- package/dist/{Takeaway-sVVykWDg.js → Takeaway-CekhGM-m.js} +2 -2
- package/dist/{Takeaway-tYHCAXYU.js → Takeaway-aXsPg4JT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.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-BNnR5rLv.js → Variant-CZsrYRMU.js} +5 -5
- package/dist/{_id_-a9ZtdjtT.js → _id_-D4swrvNa.js} +3 -3
- package/dist/{app-CmElp8cO.js → app-BWwwHsWi.js} +337 -337
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +80 -0
- package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -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-B_wpWLAj.js → menu-compute-D7TdiHt4.js} +4 -4
- package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-DXppWUVq.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-BJRbSauL.js → provide-CDmXzkhz.js} +67539 -65978
- package/dist/{useActionFeedback-89GwO41T.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/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js +0 -2183
- package/dist/Ingredient-BMAlctE4.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js +0 -709
- package/dist/OrderPacing-Bz5kn6DY.js +0 -698
- package/dist/PrintRoute-BnARWdR2.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-DryxrG-x.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js +0 -10353
- package/dist/Publish-BPJhG39B.js +0 -1261
- package/dist/Recipe-mt1vec5-.js +0 -350
- package/dist/ServingSequence-Cr1REWZP.js +0 -336
- package/dist/Subcategory-kuB7gYvc.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js +0 -1213
- package/dist/Unit-BSOvZxRy.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu-portal",
|
|
3
|
-
"version": "1.0.4-dev.
|
|
3
|
+
"version": "1.0.4-dev.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@feedmepos/menu-sdk": "file:../../packages/menu-sdk",
|
|
40
40
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
41
41
|
"@types/jsdom": "21.1.7",
|
|
42
|
-
"@types/node": "^
|
|
42
|
+
"@types/node": "^24.19.2",
|
|
43
43
|
"@vitejs/plugin-vue": "5.2.4",
|
|
44
44
|
"@vitejs/plugin-vue-jsx": "^5.0.0",
|
|
45
45
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
import { defineComponent as re, computed as C, ref as me, watch as se, resolveComponent as d, openBlock as r, createElementBlock as c, Fragment as F, createBlock as b, resolveDynamicComponent as ie, mergeProps as $, unref as e, createSlots as de, withCtx as m, createCommentVNode as i, toDisplayString as g, createVNode as t, renderList as T, createElementVNode as v, createTextVNode as P, withModifiers as W, normalizeClass as ce } from "vue";
|
|
2
|
-
import { RouterLink as pe } from "vue-router";
|
|
3
|
-
import { useI18n as be } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as G, FmButtonColorThemeVariant as V } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ve } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
6
|
-
import { _ as h } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
7
|
-
import { _ as fe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
-
import { _ as ke } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js";
|
|
9
|
-
import { _ as ge } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js";
|
|
10
|
-
import { _ as _e } from "./SubItemTaxWarning.vue_vue_type_script_setup_true_lang-BUyK6Jaa.js";
|
|
11
|
-
import { _ as ye } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js";
|
|
12
|
-
import { b as Ce, u as j } from "./provide-BJRbSauL.js";
|
|
13
|
-
import { u as Fe } from "./useActionFeedback-89GwO41T.js";
|
|
14
|
-
import { u as Y } from "./useEditorValidation-Ctef5Bxt.js";
|
|
15
|
-
import { R as he } from "./app-CmElp8cO.js";
|
|
16
|
-
const Ve = {
|
|
17
|
-
key: 1,
|
|
18
|
-
role: "alert"
|
|
19
|
-
}, xe = {
|
|
20
|
-
key: 2,
|
|
21
|
-
class: "max-w-[752px] pt-16 space-y-32"
|
|
22
|
-
}, we = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "pl-32 space-x-8"
|
|
25
|
-
}, Me = { class: "space-y-16" }, De = { class: "space-y-16" }, Se = { class: "pl-[60px] space-y-16" }, Ue = { class: "space-x-16 flex items-center" }, Ie = { class: "flex-1 space-y-4" }, $e = { class: "fm-typo-en-body-md-400" }, Te = {
|
|
26
|
-
key: 3,
|
|
27
|
-
class: "max-w-[752px] pt-40 flex justify-end"
|
|
28
|
-
}, Pe = { class: "flex gap-8 items-center justify-start" }, Le = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "space-y-16"
|
|
31
|
-
}, Re = {
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
34
|
-
}, Xe = /* @__PURE__ */ re({
|
|
35
|
-
__name: "CatalogEditor",
|
|
36
|
-
props: {
|
|
37
|
-
sdk: {},
|
|
38
|
-
editor: {},
|
|
39
|
-
picker: {},
|
|
40
|
-
page: { type: Boolean }
|
|
41
|
-
},
|
|
42
|
-
emits: ["close"],
|
|
43
|
-
setup(q, { emit: H }) {
|
|
44
|
-
const f = q, x = H, { t: a } = be(), w = Ce(), { run: J } = Fe(), M = Y(() => f.editor), _ = j(f.editor), L = j(f.picker), l = C(
|
|
45
|
-
() => _.value.status === "ready" ? _.value.value : null
|
|
46
|
-
), R = C(
|
|
47
|
-
() => l.value ? M.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
|
|
48
|
-
), D = Y(() => {
|
|
49
|
-
var n;
|
|
50
|
-
const o = (n = l.value) == null ? void 0 : n.markupDraft;
|
|
51
|
-
return o ? o.index ?? "new" : null;
|
|
52
|
-
}), B = C(
|
|
53
|
-
() => {
|
|
54
|
-
var o;
|
|
55
|
-
return (o = l.value) != null && o.markupDraft ? D.issue(l.value.markupFieldIssues, "percentage") ?? l.value.markupDraft.issue : null;
|
|
56
|
-
}
|
|
57
|
-
), K = C(
|
|
58
|
-
() => L.value.status === "ready" ? L.value.value : null
|
|
59
|
-
), y = me(!1), N = C({
|
|
60
|
-
get: () => {
|
|
61
|
-
var o;
|
|
62
|
-
return !!((o = l.value) != null && o.markupDraft);
|
|
63
|
-
},
|
|
64
|
-
set: (o) => {
|
|
65
|
-
o || f.editor.cancelMarkup();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
se(
|
|
69
|
-
() => _.value.status,
|
|
70
|
-
(o) => {
|
|
71
|
-
(o === "error" || o === "unavailable") && (y.value = !1);
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
async function O() {
|
|
75
|
-
(await J(
|
|
76
|
-
() => M.submit(() => f.editor.submit()),
|
|
77
|
-
{
|
|
78
|
-
showLoading: () => {
|
|
79
|
-
var n;
|
|
80
|
-
return ((n = l.value) == null ? void 0 : n.status) === "submitting";
|
|
81
|
-
},
|
|
82
|
-
successMessage: (n) => a("menu.catalog.saved", { name: n.name })
|
|
83
|
-
}
|
|
84
|
-
)).kind === "success" && x("close");
|
|
85
|
-
}
|
|
86
|
-
function Q() {
|
|
87
|
-
D.submit(async () => f.editor.saveMarkup());
|
|
88
|
-
}
|
|
89
|
-
function X(o) {
|
|
90
|
-
f.editor.setMarkupProducts(o), y.value = !1;
|
|
91
|
-
}
|
|
92
|
-
return (o, n) => {
|
|
93
|
-
var E, z, A;
|
|
94
|
-
const p = d("FmButton"), Z = d("FmTextField"), k = d("FmRadio"), S = d("FmRadioGroup"), ee = d("FmCheckbox"), U = d("FmSwitch"), ae = d("FmSelect"), le = d("FmChip"), oe = d("FmCard"), te = d("FmIcon"), ue = d("FmStepperField"), ne = d("FmDialog");
|
|
95
|
-
return r(), c(F, null, [
|
|
96
|
-
(r(), b(ie(o.page ? fe : "FmSideSheet"), $(
|
|
97
|
-
o.page ? { heading: ((E = l.value) == null ? void 0 : E.name) ?? "" } : {
|
|
98
|
-
modelValue: !0,
|
|
99
|
-
isContainer: e(G).FmForm,
|
|
100
|
-
isContainerProps: {
|
|
101
|
-
onValidationSuccess: O,
|
|
102
|
-
blameFormChildOnValidationFailed: !0
|
|
103
|
-
},
|
|
104
|
-
maxWidth: 560
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"onUpdate:modelValue": n[2] || (n[2] = (u) => !u && x("close"))
|
|
108
|
-
}
|
|
109
|
-
), de({
|
|
110
|
-
"side-sheet-footer": m(() => {
|
|
111
|
-
var u;
|
|
112
|
-
return [
|
|
113
|
-
v("div", Pe, [
|
|
114
|
-
t(p, {
|
|
115
|
-
loading: ((u = l.value) == null ? void 0 : u.status) === "submitting",
|
|
116
|
-
disabled: !l.value || l.value.submit.state !== "allowed",
|
|
117
|
-
label: e(a)("menu.common.actions.add"),
|
|
118
|
-
size: "lg",
|
|
119
|
-
type: "submit",
|
|
120
|
-
variant: "primary"
|
|
121
|
-
}, null, 8, ["loading", "disabled", "label"]),
|
|
122
|
-
t(p, {
|
|
123
|
-
label: e(a)("menu.common.actions.cancel"),
|
|
124
|
-
size: "lg",
|
|
125
|
-
variant: "tertiary",
|
|
126
|
-
onClick: n[1] || (n[1] = (s) => x("close"))
|
|
127
|
-
}, null, 8, ["label"])
|
|
128
|
-
])
|
|
129
|
-
];
|
|
130
|
-
}),
|
|
131
|
-
default: m(() => [
|
|
132
|
-
o.page ? (r(), b(ye, { key: 0 })) : i("", !0),
|
|
133
|
-
e(_).status === "error" ? (r(), c("p", Ve, g(e(w)(e(_).error.message)), 1)) : i("", !0),
|
|
134
|
-
l.value ? (r(), c("div", xe, [
|
|
135
|
-
t(ve, {
|
|
136
|
-
title: e(a)("menu.catalog.detail")
|
|
137
|
-
}, {
|
|
138
|
-
default: m(() => [
|
|
139
|
-
t(Z, $({
|
|
140
|
-
"model-value": l.value.name,
|
|
141
|
-
autofocus: "",
|
|
142
|
-
label: e(a)("menu.catalog.form.name"),
|
|
143
|
-
"error-messages": R.value ? [e(w)(R.value)] : []
|
|
144
|
-
}, e(M).field("name", o.editor.setName)), null, 16, ["model-value", "label", "error-messages"]),
|
|
145
|
-
t(h, {
|
|
146
|
-
class: "pt-8",
|
|
147
|
-
label: e(a)("menu.catalog.form.tax.title")
|
|
148
|
-
}, {
|
|
149
|
-
default: m(() => [
|
|
150
|
-
t(S, {
|
|
151
|
-
"model-value": l.value.taxMode,
|
|
152
|
-
"onUpdate:modelValue": o.editor.setTaxMode
|
|
153
|
-
}, {
|
|
154
|
-
default: m(() => [
|
|
155
|
-
t(k, {
|
|
156
|
-
value: "automatic",
|
|
157
|
-
label: e(a)("menu.catalog.form.tax.auto.label"),
|
|
158
|
-
sublabel: e(a)("menu.catalog.form.tax.auto.sublabel")
|
|
159
|
-
}, null, 8, ["label", "sublabel"]),
|
|
160
|
-
t(k, {
|
|
161
|
-
value: "manual",
|
|
162
|
-
label: e(a)("menu.catalog.form.tax.manual.label"),
|
|
163
|
-
sublabel: e(a)("menu.catalog.form.tax.manual.sublabel")
|
|
164
|
-
}, null, 8, ["label", "sublabel"])
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["model-value", "onUpdate:modelValue"]),
|
|
168
|
-
l.value.taxMode === "manual" ? (r(), c("div", we, [
|
|
169
|
-
(r(!0), c(F, null, T(l.value.taxes, (u) => (r(), b(ee, {
|
|
170
|
-
key: u.systemCode,
|
|
171
|
-
"model-value": u.inclusive,
|
|
172
|
-
value: !0,
|
|
173
|
-
label: e(a)("menu.catalog.form.tax.inclusive", { code: u.systemCode }),
|
|
174
|
-
"onUpdate:modelValue": (s) => o.editor.setTaxInclusive(u.systemCode, s)
|
|
175
|
-
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
176
|
-
])) : i("", !0)
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["label"]),
|
|
180
|
-
l.value.subItemTax ? (r(), b(h, {
|
|
181
|
-
key: 0,
|
|
182
|
-
label: e(a)("menu.menu_setting.sub_item_tax.title")
|
|
183
|
-
}, {
|
|
184
|
-
default: m(() => [
|
|
185
|
-
v("div", Me, [
|
|
186
|
-
t(S, {
|
|
187
|
-
"model-value": l.value.subItemTax.choice,
|
|
188
|
-
"onUpdate:modelValue": o.editor.setSubItemTaxChoice
|
|
189
|
-
}, {
|
|
190
|
-
default: m(() => [
|
|
191
|
-
t(k, {
|
|
192
|
-
value: "inherit",
|
|
193
|
-
label: e(a)("menu.catalog.form.sub_item_tax.inherit.label"),
|
|
194
|
-
sublabel: e(a)(
|
|
195
|
-
l.value.subItemTax.inherited === "own" ? "menu.catalog.form.sub_item_tax.inherit.current_own" : "menu.catalog.form.sub_item_tax.inherit.current_parent"
|
|
196
|
-
)
|
|
197
|
-
}, null, 8, ["label", "sublabel"]),
|
|
198
|
-
t(k, {
|
|
199
|
-
value: "parent",
|
|
200
|
-
label: e(a)("menu.catalog.form.sub_item_tax.parent.label"),
|
|
201
|
-
sublabel: e(a)("menu.catalog.form.sub_item_tax.parent.sublabel")
|
|
202
|
-
}, null, 8, ["label", "sublabel"]),
|
|
203
|
-
t(k, {
|
|
204
|
-
value: "own",
|
|
205
|
-
label: e(a)("menu.catalog.form.sub_item_tax.own.label"),
|
|
206
|
-
sublabel: e(a)("menu.catalog.form.sub_item_tax.own.sublabel")
|
|
207
|
-
}, null, 8, ["label", "sublabel"])
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["model-value", "onUpdate:modelValue"]),
|
|
211
|
-
l.value.subItemTax.resolved === "own" ? (r(), b(_e, { key: 0 })) : i("", !0)
|
|
212
|
-
])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 8, ["label"])) : i("", !0),
|
|
216
|
-
l.value.statutoryChargeWaivers.length > 0 ? (r(), b(h, {
|
|
217
|
-
key: 1,
|
|
218
|
-
label: e(a)("menu.catalog.form.statutory_charges.title")
|
|
219
|
-
}, {
|
|
220
|
-
default: m(() => [
|
|
221
|
-
v("div", De, [
|
|
222
|
-
(r(!0), c(F, null, T(l.value.statutoryChargeWaivers, (u) => (r(), b(U, {
|
|
223
|
-
key: u.code,
|
|
224
|
-
"model-value": u.waived,
|
|
225
|
-
label: e(a)("menu.catalog.form.statutory_charges.waive", {
|
|
226
|
-
name: u.name
|
|
227
|
-
}),
|
|
228
|
-
sublabel: e(a)("menu.catalog.form.statutory_charges.sublabel"),
|
|
229
|
-
"label-placement": "right",
|
|
230
|
-
"onUpdate:modelValue": (s) => o.editor.setStatutoryChargeWaived(u.code, s)
|
|
231
|
-
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
|
|
232
|
-
])
|
|
233
|
-
]),
|
|
234
|
-
_: 1
|
|
235
|
-
}, 8, ["label"])) : i("", !0)
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["title"]),
|
|
239
|
-
l.value.advanced.state === "allowed" ? (r(), c(F, { key: 0 }, [
|
|
240
|
-
t(h, {
|
|
241
|
-
label: e(a)("menu.catalog.form.link.title")
|
|
242
|
-
}, {
|
|
243
|
-
default: m(() => [
|
|
244
|
-
t(U, {
|
|
245
|
-
"model-value": l.value.autoLink,
|
|
246
|
-
label: e(a)("menu.catalog.form.link.auto_link.label"),
|
|
247
|
-
sublabel: e(a)("menu.catalog.form.link.auto_link.sublabel"),
|
|
248
|
-
"label-placement": "right",
|
|
249
|
-
"onUpdate:modelValue": o.editor.setAutoLink
|
|
250
|
-
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]),
|
|
251
|
-
l.value.autoLink ? (r(), b(ae, {
|
|
252
|
-
key: 0,
|
|
253
|
-
class: "ml-[60px]",
|
|
254
|
-
"aria-label": e(a)("menu.catalog.form.link.title"),
|
|
255
|
-
"model-value": l.value.orderFrom,
|
|
256
|
-
items: [
|
|
257
|
-
{ label: e(a)("menu.catalog.form.link.options.all"), value: "ALL" },
|
|
258
|
-
{
|
|
259
|
-
label: e(a)("menu.catalog.form.link.options.pos_only"),
|
|
260
|
-
value: "POS_ONLY"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"onUpdate:modelValue": o.editor.setOrderFrom
|
|
264
|
-
}, null, 8, ["aria-label", "model-value", "items", "onUpdate:modelValue"])) : i("", !0)
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 8, ["label"]),
|
|
268
|
-
t(h, {
|
|
269
|
-
label: e(a)("menu.catalog.form.markup.title")
|
|
270
|
-
}, {
|
|
271
|
-
default: m(() => [
|
|
272
|
-
t(U, {
|
|
273
|
-
"model-value": l.value.markupEnabled,
|
|
274
|
-
label: e(a)("menu.catalog.form.markup.auto.label"),
|
|
275
|
-
sublabel: e(a)("menu.catalog.form.markup.auto.sublabel"),
|
|
276
|
-
"label-placement": "right",
|
|
277
|
-
"onUpdate:modelValue": o.editor.setMarkupEnabled
|
|
278
|
-
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]),
|
|
279
|
-
v("div", Se, [
|
|
280
|
-
t(p, {
|
|
281
|
-
variant: "secondary",
|
|
282
|
-
"text-color": e(V).ColorPrimary,
|
|
283
|
-
"border-color": e(V).ColorPrimary,
|
|
284
|
-
label: e(a)("menu.catalog.form.markup.add"),
|
|
285
|
-
"prepend-icon": "add",
|
|
286
|
-
onClick: n[0] || (n[0] = (u) => o.editor.beginMarkup())
|
|
287
|
-
}, null, 8, ["text-color", "border-color", "label"]),
|
|
288
|
-
(r(!0), c(F, null, T(l.value.markups, (u, s) => (r(), b(oe, {
|
|
289
|
-
key: s,
|
|
290
|
-
class: "py-12 px-16 cursor-pointer",
|
|
291
|
-
role: "row",
|
|
292
|
-
variant: "outlined",
|
|
293
|
-
onClick: (I) => o.editor.beginMarkup(s)
|
|
294
|
-
}, {
|
|
295
|
-
default: m(() => [
|
|
296
|
-
v("div", Ue, [
|
|
297
|
-
v("div", Ie, [
|
|
298
|
-
t(le, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
|
|
299
|
-
default: m(() => [
|
|
300
|
-
P(g(e(a)("menu.catalog.form.markup.percentage", {
|
|
301
|
-
value: u.percentage
|
|
302
|
-
})), 1)
|
|
303
|
-
]),
|
|
304
|
-
_: 2
|
|
305
|
-
}, 1024),
|
|
306
|
-
t(p, {
|
|
307
|
-
class: "fm-typo-en-body-lg-400",
|
|
308
|
-
onClick: W((I) => o.editor.beginMarkup(s), ["stop"])
|
|
309
|
-
}, {
|
|
310
|
-
default: m(() => [
|
|
311
|
-
P(g(e(a)("menu.catalog.form.markup.config", {
|
|
312
|
-
number: s + 1
|
|
313
|
-
})), 1)
|
|
314
|
-
]),
|
|
315
|
-
_: 2
|
|
316
|
-
}, 1032, ["onClick"]),
|
|
317
|
-
v("p", $e, g(u.productCount === null ? e(a)("menu.catalog.form.markup.all_items") : e(a)("menu.catalog.form.markup.products", {
|
|
318
|
-
count: u.productCount
|
|
319
|
-
})), 1)
|
|
320
|
-
]),
|
|
321
|
-
t(p, {
|
|
322
|
-
variant: "tertiary",
|
|
323
|
-
"prepend-icon": "delete",
|
|
324
|
-
"aria-label": e(a)("menu.catalog.remove_markup"),
|
|
325
|
-
onClick: W((I) => o.editor.removeMarkup(s), ["stop"])
|
|
326
|
-
}, null, 8, ["aria-label", "onClick"])
|
|
327
|
-
])
|
|
328
|
-
]),
|
|
329
|
-
_: 2
|
|
330
|
-
}, 1032, ["onClick"]))), 128))
|
|
331
|
-
])
|
|
332
|
-
]),
|
|
333
|
-
_: 1
|
|
334
|
-
}, 8, ["label"])
|
|
335
|
-
], 64)) : i("", !0)
|
|
336
|
-
])) : i("", !0),
|
|
337
|
-
o.page && l.value ? (r(), c("div", Te, [
|
|
338
|
-
t(p, {
|
|
339
|
-
loading: l.value.status === "submitting",
|
|
340
|
-
disabled: l.value.submit.state !== "allowed",
|
|
341
|
-
label: e(a)("menu.common.actions.save"),
|
|
342
|
-
size: "lg",
|
|
343
|
-
variant: "primary",
|
|
344
|
-
onClick: O
|
|
345
|
-
}, null, 8, ["loading", "disabled", "label"])
|
|
346
|
-
])) : i("", !0)
|
|
347
|
-
]),
|
|
348
|
-
_: 2
|
|
349
|
-
}, [
|
|
350
|
-
o.page ? {
|
|
351
|
-
name: "prepend-heading",
|
|
352
|
-
fn: m(() => [
|
|
353
|
-
t(e(pe), {
|
|
354
|
-
to: { name: e(he).CATALOG },
|
|
355
|
-
class: "mr-8",
|
|
356
|
-
title: e(a)("menu.catalog.edit.back")
|
|
357
|
-
}, {
|
|
358
|
-
default: m(() => [
|
|
359
|
-
t(p, {
|
|
360
|
-
"aria-label": e(a)("menu.catalog.edit.back"),
|
|
361
|
-
"prepend-icon": "arrow_back",
|
|
362
|
-
variant: "tertiary"
|
|
363
|
-
}, null, 8, ["aria-label"])
|
|
364
|
-
]),
|
|
365
|
-
_: 1
|
|
366
|
-
}, 8, ["to", "title"])
|
|
367
|
-
]),
|
|
368
|
-
key: "0"
|
|
369
|
-
} : void 0,
|
|
370
|
-
o.page ? {
|
|
371
|
-
name: "append-heading",
|
|
372
|
-
fn: m(() => [
|
|
373
|
-
t(ge, { sdk: o.sdk }, null, 8, ["sdk"])
|
|
374
|
-
]),
|
|
375
|
-
key: "1"
|
|
376
|
-
} : void 0
|
|
377
|
-
]), 1040)),
|
|
378
|
-
t(ne, {
|
|
379
|
-
modelValue: N.value,
|
|
380
|
-
"onUpdate:modelValue": n[6] || (n[6] = (u) => N.value = u),
|
|
381
|
-
"is-component": e(G).FmForm,
|
|
382
|
-
"is-component-props": { onValidationSuccess: Q }
|
|
383
|
-
}, {
|
|
384
|
-
"dialog-header": m(() => {
|
|
385
|
-
var u, s;
|
|
386
|
-
return [
|
|
387
|
-
P(g(((s = (u = l.value) == null ? void 0 : u.markupDraft) == null ? void 0 : s.index) === null ? e(a)("menu.markup.dialog.title.add") : e(a)("menu.markup.dialog.title.update")), 1)
|
|
388
|
-
];
|
|
389
|
-
}),
|
|
390
|
-
"dialog-footer": m(() => {
|
|
391
|
-
var u, s;
|
|
392
|
-
return [
|
|
393
|
-
t(p, {
|
|
394
|
-
class: "sm:w-full xs:w-full ml-auto",
|
|
395
|
-
label: e(a)("menu.common.actions.cancel"),
|
|
396
|
-
variant: "tertiary",
|
|
397
|
-
onClick: n[5] || (n[5] = (I) => o.editor.cancelMarkup())
|
|
398
|
-
}, null, 8, ["label"]),
|
|
399
|
-
t(p, {
|
|
400
|
-
label: ((s = (u = l.value) == null ? void 0 : u.markupDraft) == null ? void 0 : s.index) === null ? e(a)("menu.common.actions.add") : e(a)("menu.common.actions.update"),
|
|
401
|
-
class: "sm:w-full xs:w-full",
|
|
402
|
-
size: "md",
|
|
403
|
-
type: "submit",
|
|
404
|
-
variant: "primary"
|
|
405
|
-
}, null, 8, ["label"])
|
|
406
|
-
];
|
|
407
|
-
}),
|
|
408
|
-
default: m(() => {
|
|
409
|
-
var u;
|
|
410
|
-
return [
|
|
411
|
-
(u = l.value) != null && u.markupDraft ? (r(), c("div", Le, [
|
|
412
|
-
t(ue, $(
|
|
413
|
-
{
|
|
414
|
-
"model-value": l.value.markupDraft.percentage,
|
|
415
|
-
decimal: 0,
|
|
416
|
-
max: 100,
|
|
417
|
-
min: 0,
|
|
418
|
-
label: e(a)("menu.markup.dialog.fields.percentage.label"),
|
|
419
|
-
placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder"),
|
|
420
|
-
"error-messages": B.value ? [e(w)(B.value)] : []
|
|
421
|
-
},
|
|
422
|
-
e(D).field("percentage", o.editor.setMarkupPercentage)
|
|
423
|
-
), {
|
|
424
|
-
prepend: m(() => [
|
|
425
|
-
t(te, { name: "percent" })
|
|
426
|
-
]),
|
|
427
|
-
_: 1
|
|
428
|
-
}, 16, ["model-value", "label", "placeholder", "error-messages"]),
|
|
429
|
-
t(S, {
|
|
430
|
-
"model-value": l.value.markupDraft.productIds === null ? "all" : "custom",
|
|
431
|
-
class: "space-y-8",
|
|
432
|
-
"onUpdate:modelValue": n[3] || (n[3] = (s) => o.editor.setMarkupProducts(s === "all" ? null : []))
|
|
433
|
-
}, {
|
|
434
|
-
default: m(() => [
|
|
435
|
-
t(k, {
|
|
436
|
-
value: "all",
|
|
437
|
-
"aria-label": e(a)("menu.markup.dialog.options.all"),
|
|
438
|
-
label: e(a)("menu.markup.dialog.options.all")
|
|
439
|
-
}, null, 8, ["aria-label", "label"]),
|
|
440
|
-
t(k, {
|
|
441
|
-
value: "custom",
|
|
442
|
-
"aria-label": e(a)("menu.markup.dialog.options.custom"),
|
|
443
|
-
label: e(a)("menu.markup.dialog.options.custom")
|
|
444
|
-
}, null, 8, ["aria-label", "label"])
|
|
445
|
-
]),
|
|
446
|
-
_: 1
|
|
447
|
-
}, 8, ["model-value"]),
|
|
448
|
-
v("div", {
|
|
449
|
-
class: ce(["ml-32 mt-16 space-y-8", { "pb-8": l.value.markupDraft.productIds !== null }])
|
|
450
|
-
}, [
|
|
451
|
-
l.value.markupDraft.productIds !== null ? (r(), b(p, {
|
|
452
|
-
key: 0,
|
|
453
|
-
variant: "secondary",
|
|
454
|
-
"text-color": e(V).ColorPrimary,
|
|
455
|
-
"border-color": e(V).ColorPrimary,
|
|
456
|
-
"aria-label": e(a)("menu.markup.dialog.products.link"),
|
|
457
|
-
label: e(a)("menu.markup.dialog.products.link"),
|
|
458
|
-
"prepend-icon": "link",
|
|
459
|
-
onClick: n[4] || (n[4] = (s) => y.value = !0)
|
|
460
|
-
}, null, 8, ["text-color", "border-color", "aria-label", "label"])) : i("", !0),
|
|
461
|
-
l.value.markupDraft.productCount ? (r(), c("p", Re, g(e(a)("menu.markup.dialog.products.count", {
|
|
462
|
-
count: l.value.markupDraft.productCount
|
|
463
|
-
})), 1)) : i("", !0)
|
|
464
|
-
], 2)
|
|
465
|
-
])) : i("", !0)
|
|
466
|
-
];
|
|
467
|
-
}),
|
|
468
|
-
_: 1
|
|
469
|
-
}, 8, ["modelValue", "is-component", "is-component-props"]),
|
|
470
|
-
t(ke, {
|
|
471
|
-
modelValue: y.value,
|
|
472
|
-
"onUpdate:modelValue": n[7] || (n[7] = (u) => y.value = u),
|
|
473
|
-
catalogue: K.value,
|
|
474
|
-
"selected-product-ids": ((A = (z = l.value) == null ? void 0 : z.markupDraft) == null ? void 0 : A.productIds) ?? [],
|
|
475
|
-
title: e(a)("menu.markup.dialog.products.link"),
|
|
476
|
-
onSubmit: X
|
|
477
|
-
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
478
|
-
], 64);
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
export {
|
|
483
|
-
Xe as _
|
|
484
|
-
};
|