@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-dev
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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as le, ref as w, computed as V, resolveComponent as x, createBlock as Y, openBlock as k, unref as i, withCtx as p, createElementVNode as l, createVNode as a, createElementBlock as I, toDisplayString as S, Fragment as M, renderList as H, withModifiers as ae, createCommentVNode as ce, createTextVNode as fe, h as R } from "vue";
|
|
2
2
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as ue, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as he } from "./app-
|
|
6
|
-
import { H as ee, I as me, J as re, z as oe, u as xe, O as Ce, D as we } from "./
|
|
7
|
-
import { d as
|
|
8
|
-
import { _ as Z } from "./
|
|
5
|
+
import { _ as he } from "./app-CEIhTuYG.js";
|
|
6
|
+
import { H as ee, I as me, J as re, z as oe, u as xe, O as Ce, D as we, a3 as Fe } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
7
|
+
import { d as Ve } from "./vuedraggable-DnBIRDMr.js";
|
|
8
|
+
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js";
|
|
9
9
|
import { u as pe } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
-
import { L as
|
|
11
|
-
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
10
|
+
import { L as Se } from "./LinkProductSideSheet-B_R_2iH6.js";
|
|
12
11
|
import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
13
|
-
const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Le = { class: "px-16 py-8 grow" }, Ne = { class: "px-16 py-8 w-[40%]" }, Ue = { class: "px-16 py-8 grow" }, Ge = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, ze = { class: "flex gap-8 items-center justify-start" }, Be = /* @__PURE__ */
|
|
12
|
+
const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Le = { class: "px-16 py-8 grow" }, Ne = { class: "px-16 py-8 w-[40%]" }, Ue = { class: "px-16 py-8 grow" }, Ge = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, ze = { class: "flex gap-8 items-center justify-start" }, Be = /* @__PURE__ */ le({
|
|
14
13
|
__name: "CookingGuideStepDialog",
|
|
15
14
|
emits: ["onComplete"],
|
|
16
15
|
setup(L, { expose: g, emit: J }) {
|
|
@@ -103,25 +102,25 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
103
102
|
"onOn:clickedAway": i(K)
|
|
104
103
|
}, {
|
|
105
104
|
"side-sheet-header": p(() => [
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
l("div", $e, [
|
|
106
|
+
a(f, {
|
|
108
107
|
icon: "arrow_back",
|
|
109
108
|
variant: "tertiary",
|
|
110
109
|
label: i(u)("menu.cooking_guide.step_dialog.actions.back"),
|
|
111
110
|
onClick: $
|
|
112
111
|
}, null, 8, ["label"]),
|
|
113
|
-
|
|
112
|
+
l("div", Oe, S(n.value), 1)
|
|
114
113
|
])
|
|
115
114
|
]),
|
|
116
115
|
"side-sheet-footer": p(() => [
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
l("div", ze, [
|
|
117
|
+
a(f, {
|
|
119
118
|
label: s.value,
|
|
120
119
|
size: "lg",
|
|
121
120
|
variant: "primary",
|
|
122
121
|
type: "submit"
|
|
123
122
|
}, null, 8, ["label"]),
|
|
124
|
-
|
|
123
|
+
a(f, {
|
|
125
124
|
label: i(u)("menu.cooking_guide.step_dialog.actions.cancel"),
|
|
126
125
|
size: "lg",
|
|
127
126
|
variant: "tertiary",
|
|
@@ -130,12 +129,12 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
130
129
|
])
|
|
131
130
|
]),
|
|
132
131
|
default: p(() => [
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
l("div", Ee, [
|
|
133
|
+
a(Z, {
|
|
135
134
|
title: i(u)("menu.cooking_guide.step_dialog.sections.variables.title")
|
|
136
135
|
}, {
|
|
137
136
|
"append-title": p(() => [
|
|
138
|
-
|
|
137
|
+
a(f, {
|
|
139
138
|
icon: "add",
|
|
140
139
|
label: i(u)("menu.cooking_guide.step_dialog.sections.variables.add"),
|
|
141
140
|
variant: "secondary",
|
|
@@ -145,17 +144,17 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
145
144
|
}, null, 8, ["label"])
|
|
146
145
|
]),
|
|
147
146
|
default: p(() => [
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
l("div", null, [
|
|
148
|
+
l("div", Ke, [
|
|
149
|
+
l("div", De, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
|
|
150
|
+
l("div", Le, S(i(u)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
|
|
152
151
|
]),
|
|
153
152
|
(k(!0), I(M, null, H(F.value, (z, B) => (k(), I("div", {
|
|
154
153
|
key: B,
|
|
155
154
|
class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
|
|
156
155
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
l("div", Ne, [
|
|
157
|
+
a(_, {
|
|
159
158
|
modelValue: F.value[B].key,
|
|
160
159
|
"onUpdate:modelValue": (O) => F.value[B].key = O,
|
|
161
160
|
rules: [
|
|
@@ -166,8 +165,8 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
166
165
|
placeholder: i(u)("menu.cooking_guide.step_dialog.sections.variables.placeholders.key")
|
|
167
166
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
|
|
168
167
|
]),
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
l("div", Ue, [
|
|
169
|
+
a(_, {
|
|
171
170
|
modelValue: F.value[B].value,
|
|
172
171
|
"onUpdate:modelValue": (O) => F.value[B].value = O,
|
|
173
172
|
rules: [
|
|
@@ -176,7 +175,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
176
175
|
placeholder: i(u)("menu.cooking_guide.step_dialog.sections.variables.placeholders.value")
|
|
177
176
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
|
|
178
177
|
]),
|
|
179
|
-
|
|
178
|
+
a(f, {
|
|
180
179
|
icon: "delete",
|
|
181
180
|
variant: "tertiary",
|
|
182
181
|
"text-color": "neutral-gray-400",
|
|
@@ -187,20 +186,20 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
187
186
|
]),
|
|
188
187
|
_: 1
|
|
189
188
|
}, 8, ["title"]),
|
|
190
|
-
|
|
189
|
+
a(Z, {
|
|
191
190
|
title: i(u)("menu.cooking_guide.step_dialog.sections.instruction.title")
|
|
192
191
|
}, {
|
|
193
192
|
default: p(() => [
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
l("div", Ge, [
|
|
194
|
+
l("div", Te, [
|
|
196
195
|
(k(!0), I(M, null, H(h.value, (z) => (k(), Y(P, {
|
|
197
196
|
key: z.label,
|
|
198
197
|
label: z.label,
|
|
199
198
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
200
|
-
onMousedown:
|
|
199
|
+
onMousedown: ae(() => U(z.label), ["prevent"])
|
|
201
200
|
}, null, 8, ["label", "onMousedown"]))), 128))
|
|
202
201
|
]),
|
|
203
|
-
|
|
202
|
+
a(W, {
|
|
204
203
|
modelValue: m.value.instruction,
|
|
205
204
|
"onUpdate:modelValue": t[0] || (t[0] = (z) => m.value.instruction = z),
|
|
206
205
|
ref: "textareaRef"
|
|
@@ -215,7 +214,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
215
214
|
}, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]);
|
|
216
215
|
};
|
|
217
216
|
}
|
|
218
|
-
}), Me = { class: "w-[700px]" }, Re = { class: "flex bg-fm-color-neutral-gray-100" }, Ae = { class: "px-16 py-8 grow" }, Pe = { class: "px-16 py-8 w-[200px]" }, qe = { class: "px-16 py-8 w-[200px]" }, je = { class: "px-16 py-8 grow" }, Ye = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, He = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Je = /* @__PURE__ */
|
|
217
|
+
}), Me = { class: "w-[700px]" }, Re = { class: "flex bg-fm-color-neutral-gray-100" }, Ae = { class: "px-16 py-8 grow" }, Pe = { class: "px-16 py-8 w-[200px]" }, qe = { class: "px-16 py-8 w-[200px]" }, je = { class: "px-16 py-8 grow" }, Ye = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, He = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Je = /* @__PURE__ */ le({
|
|
219
218
|
__name: "CookingGuideStepOverrideDialog",
|
|
220
219
|
emits: ["onComplete"],
|
|
221
220
|
setup(L, { expose: g, emit: J }) {
|
|
@@ -263,18 +262,18 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
263
262
|
"min-width": "min(calc(100% - 48px), 748px)"
|
|
264
263
|
}, {
|
|
265
264
|
"dialog-header": p(() => [
|
|
266
|
-
|
|
265
|
+
l("div", null, S(i(u)("menu.cooking_guide.step_override_dialog.title")), 1)
|
|
267
266
|
]),
|
|
268
267
|
"dialog-footer": p(() => [
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
a(K),
|
|
269
|
+
a(T, {
|
|
271
270
|
class: "sm:w-full xs:w-full",
|
|
272
271
|
label: i(u)("menu.cooking_guide.step_override_dialog.actions.cancel"),
|
|
273
272
|
size: "md",
|
|
274
273
|
variant: "tertiary",
|
|
275
274
|
onClick: $
|
|
276
275
|
}, null, 8, ["label"]),
|
|
277
|
-
|
|
276
|
+
a(T, {
|
|
278
277
|
class: "sm:w-full xs:w-full",
|
|
279
278
|
label: i(u)("menu.cooking_guide.step_override_dialog.actions.save"),
|
|
280
279
|
size: "md",
|
|
@@ -283,26 +282,26 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
283
282
|
}, null, 8, ["label"])
|
|
284
283
|
]),
|
|
285
284
|
default: p(() => [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
l("div", Me, [
|
|
286
|
+
l("div", Re, [
|
|
287
|
+
l("div", Ae, S(i(u)("menu.cooking_guide.step_override_dialog.columns.instructions")), 1),
|
|
288
|
+
l("div", Pe, S(i(u)("menu.cooking_guide.step_override_dialog.columns.variables")), 1),
|
|
289
|
+
l("div", qe, S(i(u)("menu.cooking_guide.step_override_dialog.columns.value")), 1)
|
|
291
290
|
]),
|
|
292
291
|
(k(!0), I(M, null, H(E.value, (t) => (k(), I("div", {
|
|
293
292
|
key: t.id,
|
|
294
293
|
class: "flex border-t-2"
|
|
295
294
|
}, [
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
l("div", je, S(t.instruction), 1),
|
|
296
|
+
l("div", Ye, [
|
|
298
297
|
(k(!0), I(M, null, H(t.variables, (f, _) => (k(), I("div", {
|
|
299
298
|
key: _,
|
|
300
299
|
class: "py-8 w-full text-ellipsis overflow-hidden whitespace-nowrap"
|
|
301
300
|
}, S(_), 1))), 128))
|
|
302
301
|
]),
|
|
303
|
-
|
|
302
|
+
l("div", He, [
|
|
304
303
|
(k(!0), I(M, null, H(t.variables, (f, _) => (k(), I("div", { key: _ }, [
|
|
305
|
-
|
|
304
|
+
a(s, {
|
|
306
305
|
"model-value": X(t.id, _.toString()),
|
|
307
306
|
placeholder: f,
|
|
308
307
|
"onUpdate:modelValue": (P) => A(t.id, _.toString(), P)
|
|
@@ -316,7 +315,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
316
315
|
}, 8, ["modelValue"]);
|
|
317
316
|
};
|
|
318
317
|
}
|
|
319
|
-
}), Xe = { class: "fm-typo-en-title-md-600" }, Qe = { class: "space-y-24" }, We = { class: "flex items-center" }, Ze = { class: "flex-1" }, eo = { class: "flex items-center gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "flex-1" }, no = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, io = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" },
|
|
318
|
+
}), Xe = { class: "fm-typo-en-title-md-600" }, Qe = { class: "space-y-24" }, We = { class: "flex items-center" }, Ze = { class: "flex-1" }, eo = { class: "flex items-center gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "flex-1" }, no = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, io = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, ao = { class: "fm-typo-en-body-md-500" }, lo = { class: "px-16 py-8 flex gap-8" }, so = { class: "flex gap-8 items-center justify-start" }, uo = /* @__PURE__ */ le({
|
|
320
319
|
__name: "CookingGuideDialog",
|
|
321
320
|
props: {
|
|
322
321
|
categorizedItems: {
|
|
@@ -493,7 +492,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
493
492
|
return (e, o) => {
|
|
494
493
|
const b = x("FmTextField"), r = x("FmButton"), c = x("FmCardSection"), Q = x("FmCard"), te = x("FmSpacer"), ne = x("FmSearch"), ie = x("FmSideSheet");
|
|
495
494
|
return k(), I(M, null, [
|
|
496
|
-
|
|
495
|
+
a(ie, {
|
|
497
496
|
modelValue: D.value,
|
|
498
497
|
"onUpdate:modelValue": o[4] || (o[4] = (y) => D.value = y),
|
|
499
498
|
header: f.value,
|
|
@@ -507,17 +506,17 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
507
506
|
"onOn:clickedAway": i(_e)
|
|
508
507
|
}, {
|
|
509
508
|
"side-sheet-header": p(() => [
|
|
510
|
-
|
|
509
|
+
l("span", Xe, S(f.value), 1)
|
|
511
510
|
]),
|
|
512
511
|
"side-sheet-footer": p(() => [
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
l("div", so, [
|
|
513
|
+
a(r, {
|
|
515
514
|
variant: "primary",
|
|
516
515
|
label: _.value,
|
|
517
516
|
size: "lg",
|
|
518
517
|
type: "submit"
|
|
519
518
|
}, null, 8, ["label"]),
|
|
520
|
-
|
|
519
|
+
a(r, {
|
|
521
520
|
variant: "tertiary",
|
|
522
521
|
label: i(t)("menu.cooking_guide.dialog.actions.cancel"),
|
|
523
522
|
size: "lg",
|
|
@@ -526,12 +525,12 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
526
525
|
])
|
|
527
526
|
]),
|
|
528
527
|
default: p(() => [
|
|
529
|
-
|
|
530
|
-
|
|
528
|
+
l("div", Qe, [
|
|
529
|
+
a(Z, {
|
|
531
530
|
title: i(t)("menu.cooking_guide.dialog.sections.guide_detail.title")
|
|
532
531
|
}, {
|
|
533
532
|
default: p(() => [
|
|
534
|
-
|
|
533
|
+
a(b, {
|
|
535
534
|
autofocus: "",
|
|
536
535
|
modelValue: d.value.name,
|
|
537
536
|
"onUpdate:modelValue": o[0] || (o[0] = (y) => d.value.name = y),
|
|
@@ -544,11 +543,11 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
544
543
|
]),
|
|
545
544
|
_: 1
|
|
546
545
|
}, 8, ["title"]),
|
|
547
|
-
|
|
546
|
+
a(Z, {
|
|
548
547
|
title: i(t)("menu.cooking_guide.dialog.sections.steps.title")
|
|
549
548
|
}, {
|
|
550
549
|
"append-title": p(() => [
|
|
551
|
-
|
|
550
|
+
a(r, {
|
|
552
551
|
label: i(t)("menu.cooking_guide.dialog.sections.steps.add"),
|
|
553
552
|
variant: "secondary",
|
|
554
553
|
"text-color": "primary",
|
|
@@ -558,38 +557,38 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
558
557
|
}, null, 8, ["label"])
|
|
559
558
|
]),
|
|
560
559
|
default: p(() => [
|
|
561
|
-
|
|
560
|
+
a(i(Ve), {
|
|
562
561
|
modelValue: d.value.steps,
|
|
563
562
|
"onUpdate:modelValue": o[1] || (o[1] = (y) => d.value.steps = y),
|
|
564
563
|
handle: ".handle",
|
|
565
564
|
"item-key": "id"
|
|
566
565
|
}, {
|
|
567
566
|
item: p(({ element: y, index: j }) => [
|
|
568
|
-
|
|
567
|
+
a(Q, {
|
|
569
568
|
variant: "outlined",
|
|
570
569
|
class: "rounded-md mb-16 items-center",
|
|
571
570
|
horizontal: "",
|
|
572
571
|
onClick: () => F(y)
|
|
573
572
|
}, {
|
|
574
573
|
default: p(() => [
|
|
575
|
-
|
|
576
|
-
|
|
574
|
+
l("div", We, [
|
|
575
|
+
a(r, {
|
|
577
576
|
class: "handle",
|
|
578
577
|
icon: "drag_handle",
|
|
579
578
|
variant: "tertiary"
|
|
580
579
|
}),
|
|
581
|
-
|
|
580
|
+
l("p", Ze, S(y.name), 1)
|
|
582
581
|
]),
|
|
583
|
-
|
|
582
|
+
a(c, { class: "grow" }, {
|
|
584
583
|
default: p(() => [
|
|
585
584
|
fe(S(y.instruction), 1)
|
|
586
585
|
]),
|
|
587
586
|
_: 2
|
|
588
587
|
}, 1024),
|
|
589
|
-
|
|
588
|
+
a(r, {
|
|
590
589
|
icon: "delete",
|
|
591
590
|
variant: "tertiary",
|
|
592
|
-
onClick:
|
|
591
|
+
onClick: ae(() => X(j), ["stop"])
|
|
593
592
|
}, null, 8, ["onClick"])
|
|
594
593
|
]),
|
|
595
594
|
_: 2
|
|
@@ -605,8 +604,8 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
605
604
|
title: i(t)("menu.cooking_guide.dialog.sections.apply_product.title")
|
|
606
605
|
}, {
|
|
607
606
|
"append-title": p(() => [
|
|
608
|
-
|
|
609
|
-
|
|
607
|
+
a(te),
|
|
608
|
+
a(Se, {
|
|
610
609
|
"categorized-items": L.categorizedItems,
|
|
611
610
|
"initial-value": d.value.bindings.map((y) => ({
|
|
612
611
|
_id: y.productId,
|
|
@@ -618,7 +617,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
618
617
|
onSubmit: o[2] || (o[2] = (y) => n(y))
|
|
619
618
|
}, {
|
|
620
619
|
default: p(({ trigger: y }) => [
|
|
621
|
-
|
|
620
|
+
a(r, {
|
|
622
621
|
icon: "link",
|
|
623
622
|
label: i(t)("menu.scheduler.dialog.sections.products.link"),
|
|
624
623
|
variant: "secondary",
|
|
@@ -631,12 +630,12 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
631
630
|
}, 8, ["categorized-items", "initial-value"])
|
|
632
631
|
]),
|
|
633
632
|
default: p(() => [
|
|
634
|
-
|
|
635
|
-
|
|
633
|
+
l("div", eo, [
|
|
634
|
+
l("div", oo, S(i(t)("menu.cooking_guide.dialog.sections.apply_product.products_linked", {
|
|
636
635
|
count: P.value
|
|
637
636
|
})), 1),
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
l("div", to, [
|
|
638
|
+
a(ne, {
|
|
640
639
|
modelValue: q.value,
|
|
641
640
|
"onUpdate:modelValue": o[3] || (o[3] = (y) => q.value = y),
|
|
642
641
|
placeholder: i(t)("menu.cooking_guide.dialog.sections.apply_product.search")
|
|
@@ -646,21 +645,21 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
646
645
|
(k(!0), I(M, null, H(de.value, (y) => (k(), I("div", {
|
|
647
646
|
key: y.id || ""
|
|
648
647
|
}, [
|
|
649
|
-
|
|
648
|
+
l("div", no, S(y.name), 1),
|
|
650
649
|
(k(!0), I(M, null, H(y.items, (j) => (k(), I("div", {
|
|
651
650
|
key: j.itemId,
|
|
652
651
|
class: "flex items-center"
|
|
653
652
|
}, [
|
|
654
|
-
|
|
655
|
-
|
|
653
|
+
l("div", io, [
|
|
654
|
+
l("span", ao, S((j.itemCode ? `${j.itemCode} ` : "") + j.itemName), 1)
|
|
656
655
|
]),
|
|
657
|
-
|
|
658
|
-
|
|
656
|
+
l("div", lo, [
|
|
657
|
+
a(r, {
|
|
659
658
|
icon: "edit",
|
|
660
659
|
variant: "tertiary",
|
|
661
660
|
onClick: () => K(j)
|
|
662
661
|
}, null, 8, ["onClick"]),
|
|
663
|
-
|
|
662
|
+
a(r, {
|
|
664
663
|
icon: "delete",
|
|
665
664
|
variant: "tertiary",
|
|
666
665
|
onClick: () => v(j)
|
|
@@ -675,12 +674,12 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
675
674
|
]),
|
|
676
675
|
_: 1
|
|
677
676
|
}, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]),
|
|
678
|
-
|
|
677
|
+
a(Be, {
|
|
679
678
|
ref_key: "cookingGuideStepDialogRef",
|
|
680
679
|
ref: $,
|
|
681
680
|
onOnComplete: A
|
|
682
681
|
}, null, 512),
|
|
683
|
-
|
|
682
|
+
a(Je, {
|
|
684
683
|
ref_key: "cookingGuideStepOverrideDialogRef",
|
|
685
684
|
ref: s,
|
|
686
685
|
onOnComplete: T
|
|
@@ -722,7 +721,7 @@ const po = {
|
|
|
722
721
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
723
722
|
}, bo = {
|
|
724
723
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
725
|
-
},
|
|
724
|
+
}, Oo = /* @__PURE__ */ le({
|
|
726
725
|
__name: "CookingGuide",
|
|
727
726
|
setup(L) {
|
|
728
727
|
const {
|
|
@@ -767,7 +766,7 @@ const po = {
|
|
|
767
766
|
icon: "delete",
|
|
768
767
|
textColor: "neutral-gray-400",
|
|
769
768
|
variant: "tertiary",
|
|
770
|
-
onClick:
|
|
769
|
+
onClick: ae(() => {
|
|
771
770
|
A(n.row.original);
|
|
772
771
|
}, ["stop", "prevent"])
|
|
773
772
|
})])
|
|
@@ -816,7 +815,7 @@ const po = {
|
|
|
816
815
|
return k(), Y(Ie, {
|
|
817
816
|
heading: i(g)("menu.cooking_guide.title")
|
|
818
817
|
}, {
|
|
819
|
-
"append-heading": p(() => [
|
|
818
|
+
"append-heading": p(() => [l("div", po, [G.value ? (k(), Y(ke, {
|
|
820
819
|
key: 0,
|
|
821
820
|
disabled: N.value,
|
|
822
821
|
icon: "add",
|
|
@@ -826,16 +825,16 @@ const po = {
|
|
|
826
825
|
}, null, 8, ["disabled", "label"])) : ce("", !0)])]),
|
|
827
826
|
default: p(() => [G.value ? (k(), I(M, {
|
|
828
827
|
key: 1
|
|
829
|
-
}, [
|
|
828
|
+
}, [l("div", go, [a(K, {
|
|
830
829
|
modelValue: U.value,
|
|
831
830
|
"onUpdate:modelValue": s[1] || (s[1] = (_) => U.value = _),
|
|
832
831
|
autofocus: "",
|
|
833
832
|
class: "my-8 w-[320px] xs:w-full xs:px-16",
|
|
834
833
|
placeholder: i(g)("menu.cooking_guide.table.search.placeholder")
|
|
835
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
834
|
+
}, null, 8, ["modelValue", "placeholder"])]), a(he, {
|
|
836
835
|
class: "xs:hidden block"
|
|
837
836
|
}, {
|
|
838
|
-
default: p(() => [
|
|
837
|
+
default: p(() => [a(T, {
|
|
839
838
|
"column-defs": J.value,
|
|
840
839
|
loading: N.value,
|
|
841
840
|
"page-size": C.value.length,
|
|
@@ -847,7 +846,7 @@ const po = {
|
|
|
847
846
|
onRowClick: s[2] || (s[2] = (_) => m(_.original))
|
|
848
847
|
}, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
|
|
849
848
|
_: 1
|
|
850
|
-
}),
|
|
849
|
+
}), a(f, {
|
|
851
850
|
class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
|
|
852
851
|
separator: ""
|
|
853
852
|
}, {
|
|
@@ -859,21 +858,21 @@ const po = {
|
|
|
859
858
|
},
|
|
860
859
|
onClick: () => m(_)
|
|
861
860
|
}, {
|
|
862
|
-
default: p(() => [
|
|
861
|
+
default: p(() => [l("div", _o, [l("div", vo, S(_.name), 1), l("div", null, [l("div", fo, S(i(g)("menu.cooking_guide.table.mobile.products_linked", {
|
|
863
862
|
count: _.bindings.length
|
|
864
|
-
})), 1),
|
|
863
|
+
})), 1), l("div", bo, S(i(g)("menu.cooking_guide.table.columns.steps", {
|
|
865
864
|
count: _.steps.length
|
|
866
|
-
})), 1)])]),
|
|
865
|
+
})), 1)])]), a(v, {
|
|
867
866
|
disabled: N.value,
|
|
868
867
|
icon: "delete",
|
|
869
868
|
variant: "tertiary",
|
|
870
869
|
"text-color": "neutral-gray-400",
|
|
871
|
-
onClick:
|
|
870
|
+
onClick: ae(() => A(_), ["stop"])
|
|
872
871
|
}, null, 8, ["disabled", "onClick"])]),
|
|
873
872
|
_: 2
|
|
874
873
|
}, 1032, ["label", "onClick"]))), 128))]),
|
|
875
874
|
_: 1
|
|
876
|
-
})], 64)) : (k(), Y(i(
|
|
875
|
+
})], 64)) : (k(), Y(i(Fe), {
|
|
877
876
|
key: 0,
|
|
878
877
|
action: {
|
|
879
878
|
text: i(g)("menu.cooking_guide.empty.action"),
|
|
@@ -881,7 +880,7 @@ const po = {
|
|
|
881
880
|
},
|
|
882
881
|
subtitle: i(g)("menu.cooking_guide.empty.subtitle"),
|
|
883
882
|
title: i(g)("menu.cooking_guide.empty.title")
|
|
884
|
-
}, null, 8, ["action", "subtitle", "title"])),
|
|
883
|
+
}, null, 8, ["action", "subtitle", "title"])), a(uo, {
|
|
885
884
|
ref_key: "cookingGuideDialogRef",
|
|
886
885
|
ref: d,
|
|
887
886
|
"categorized-items": D.value,
|
|
@@ -893,5 +892,5 @@ const po = {
|
|
|
893
892
|
}
|
|
894
893
|
});
|
|
895
894
|
export {
|
|
896
|
-
|
|
895
|
+
Oo as default
|
|
897
896
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
2
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js";
|
|
4
|
-
import { u as D } from "./
|
|
4
|
+
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
5
5
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js";
|
|
7
7
|
const X = /* @__PURE__ */ S({
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as s, openBlock as n, createElementVNode as t, renderSlot as c, createCommentVNode as l, toDisplayString as d } from "vue";
|
|
2
|
+
const a = { class: "space-y-8" }, r = { class: "flex items-center justify-between" }, m = { class: "space-y-8" }, p = { class: "fm-typo-en-body-lg-600" }, y = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
5
|
+
}, h = /* @__PURE__ */ i({
|
|
6
|
+
__name: "FormItem",
|
|
7
|
+
props: {
|
|
8
|
+
label: {},
|
|
9
|
+
description: {}
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (o, _) => (n(), s("div", a, [
|
|
13
|
+
t("div", r, [
|
|
14
|
+
t("div", m, [
|
|
15
|
+
t("p", p, d(e.label), 1),
|
|
16
|
+
e.description ? (n(), s("p", y, d(e.description), 1)) : l("", !0)
|
|
17
|
+
]),
|
|
18
|
+
c(o.$slots, "append")
|
|
19
|
+
]),
|
|
20
|
+
c(o.$slots, "default")
|
|
21
|
+
]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
h as _
|
|
26
|
+
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { A as b } from "./item-
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js";
|
|
6
|
+
import { A as b } from "./item-mFv0bFSn.js";
|
|
7
|
+
import { a as h } from "./menu-ud-tWfIM.js";
|
|
8
8
|
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|