@feedmepos/mf-menu 0.19.12 → 0.19.13
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/{ApplyProduct.vue_vue_type_script_setup_true_lang-DetNZI3I.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bvkr0nD3.js} +2 -2
- package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CwAUrR4F.js → ApplyProducts.vue_vue_type_script_setup_true_lang-Hx8MMYfJ.js} +2 -2
- package/dist/{Catalog-DIm2_Pve.js → Catalog-C3Cx3sFF.js} +3 -3
- package/dist/{Category-Bj7VMtJ-.js → Category-C_5RCWZ_.js} +6 -6
- package/dist/{CookingGuide-DDV0xBos.js → CookingGuide-BzLjzKZI.js} +3 -3
- package/dist/{Group-DLh05bcU.js → Group-DJm-Mk3u.js} +4 -4
- package/dist/{Group-DZo7HAf2.js → Group-DjTfdOWl.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-ooVmvatG.js → Group.vue_vue_type_script_setup_true_lang-DBk_yau1.js} +127 -127
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B3FXm_t8.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-By61Cx0K.js} +2 -2
- package/dist/{Ingredient-N8t1Zg1B.js → Ingredient-CN3KCmFG.js} +4 -4
- package/dist/{LinkProductSideSheet-DfPSfCPO.js → LinkProductSideSheet-DBx4NpGw.js} +2 -2
- package/dist/{PrintRoute-COjWuW4S.js → PrintRoute-DMUblGYw.js} +3 -3
- package/dist/{Product-CcSZnVtx.js → Product-BVAvSbra.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-D5gHIGvK.js +841 -0
- package/dist/{Products-DC50oMNz.js → Products-CM4pI3iG.js} +8 -8
- package/dist/{Publish-C7wZimbw.js → Publish-MLYmwkhU.js} +2 -2
- package/dist/{Recipe-KeudfKx-.js → Recipe-CtY40lpO.js} +4 -4
- package/dist/{Scheduler-Ci0qqmD0.js → Scheduler-DDL5yw94.js} +2 -2
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-DkzeDjf4.js +61 -0
- package/dist/ServingSequence-OCghftu3.js +4 -0
- package/dist/{Setting-R8hJKnp6.js → Setting-B9VYv_FV.js} +1 -1
- package/dist/{Setting.vue_vue_type_script_setup_true_lang-C8YEErhA.js → Setting.vue_vue_type_script_setup_true_lang-q4SDPU1B.js} +3 -3
- package/dist/{Takeaway-DfZUEYul.js → Takeaway-BNKH3pYw.js} +4 -4
- package/dist/{Takeaway-D1YJ51Pm.js → Takeaway-CDQjt5mB.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CxrKOffq.js → Takeaway.vue_vue_type_script_setup_true_lang-DLs6tg28.js} +4 -4
- package/dist/{TaxSetting-Cyx64cle.js → TaxSetting-LXV73pLm.js} +4 -4
- package/dist/{Unit-CSw2nzb3.js → Unit-YqlS_aYJ.js} +2 -2
- package/dist/{Variant-BexkJbX8.js → Variant-Cfec4-WR.js} +2 -2
- package/dist/{_id_-DL_--BAT.js → _id_-B3cTaq5i.js} +6 -6
- package/dist/{app-DBSpCrEz.js → app-r8ZKmdn1.js} +28 -28
- package/dist/app.js +2 -2
- package/dist/assets/{linked-status-BbVXICkq.js → linked-status-CWjLtoRl.js} +3 -3
- package/dist/assets/{validate-menu-xvp-KAet.js → validate-menu-3nJfxanr.js} +3 -3
- package/dist/{catalog-DIgmR7H0.js → catalog-CIHro4Q-.js} +432 -432
- package/dist/{catalog-BAExZa6M.js → catalog-Gpaw0veN.js} +1 -1
- package/dist/{category--Ezee0GQ.js → category-C1Nv2k2C.js} +1 -1
- package/dist/{currency-Cab-BTrJ.js → currency-CWaEAteR.js} +1 -1
- package/dist/{index-crmsscjz.js → index-DiPpC8uS.js} +3 -3
- package/dist/{index-Doj4vOci.js → index-q8vb7C-b.js} +2 -2
- package/dist/{item-C3RFNcK2.js → item-DF8-obPB.js} +11 -11
- package/dist/{lodash-Cag9qz8o.js → lodash-DT3SfcPy.js} +1 -1
- package/dist/{menu-Baw4oOOx.js → menu-BtnsqPSW.js} +1 -1
- package/dist/{object-D4QR8YOW.js → object-GEcPWoWM.js} +1 -1
- package/dist/{scheduler-Dmy-SRLI.js → scheduler-Cdw2OBBp.js} +125 -125
- package/dist/{takeaway-BVcxbDAX.js → takeaway-5q1fUkoY.js} +4 -4
- package/dist/{toExcel-CkwPnj8n.js → toExcel-D59bd39T.js} +2 -2
- package/dist/{unit-D7o6p3IX.js → unit-DYZD3TgN.js} +2 -2
- package/package.json +3 -3
- package/dist/Product.vue_vue_type_script_setup_true_lang-BZL3JDpp.js +0 -826
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-6gxIvwfz.js +0 -49
- package/dist/ServingSequence-DsBZhvaK.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as O, resolveComponent as f, openBlock as u, createElementBlock as i, createVNode as l, unref as
|
|
1
|
+
import { defineComponent as oe, computed as O, resolveComponent as f, openBlock as u, createElementBlock as i, createVNode as l, unref as o, toDisplayString as Y, createCommentVNode as k, createElementVNode as y, withCtx as v, Fragment as C, renderList as L, createBlock as K, ref as T, Transition as ae, createTextVNode as de } from "vue";
|
|
2
2
|
import { components as re } from "@feedmepos/ui-library";
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as me } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { d as E, b as r, u as ce, h as le } from "./app-r8ZKmdn1.js";
|
|
4
|
+
import { _ as me } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-Hx8MMYfJ.js";
|
|
5
5
|
import { useI18n as ne } from "@feedmepos/mf-common";
|
|
6
|
-
import { u as pe } from "./menu-
|
|
6
|
+
import { u as pe } from "./menu-BtnsqPSW.js";
|
|
7
7
|
import "vue-router";
|
|
8
8
|
import { _ as ee } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
9
9
|
import { _ as _e } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
|
|
10
|
-
import { u as ve, l as fe } from "./lodash-
|
|
10
|
+
import { u as ve, l as fe } from "./lodash-DT3SfcPy.js";
|
|
11
11
|
const ye = { class: "space-y-8" }, he = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "space-y-16"
|
|
@@ -31,48 +31,48 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
31
31
|
{ label: p("menu.scheduler.dialog.sections.filter.types.category"), value: "category" }
|
|
32
32
|
], X = () => {
|
|
33
33
|
e("update:modelValue", [..._.modelValue || [], { type: Ce, value: [""] }]);
|
|
34
|
-
},
|
|
35
|
-
const c =
|
|
34
|
+
}, U = (s) => {
|
|
35
|
+
const c = E(_.modelValue || []);
|
|
36
36
|
c.splice(s, 1), e("update:modelValue", c);
|
|
37
37
|
}, $ = (s, c) => {
|
|
38
|
-
const m =
|
|
38
|
+
const m = E(_.modelValue || []);
|
|
39
39
|
m[s].type = c, c === "category" ? m[s].value = [] : m[s].value = [""], e("update:modelValue", m);
|
|
40
|
-
},
|
|
41
|
-
const c =
|
|
40
|
+
}, t = (s) => {
|
|
41
|
+
const c = E(_.modelValue || []);
|
|
42
42
|
c[s].value.push(""), e("update:modelValue", c);
|
|
43
|
-
},
|
|
44
|
-
const m =
|
|
43
|
+
}, x = (s, c) => {
|
|
44
|
+
const m = E(_.modelValue || []);
|
|
45
45
|
m[s].value.splice(c, 1), e("update:modelValue", m);
|
|
46
46
|
}, Z = (s, c) => {
|
|
47
|
-
const m =
|
|
47
|
+
const m = E(_.modelValue || []);
|
|
48
48
|
m[s].value = c, e("update:modelValue", m);
|
|
49
49
|
}, N = (s, c, m) => {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const S = E(_.modelValue || []);
|
|
51
|
+
S[s].value[c] = m, e("update:modelValue", S);
|
|
52
52
|
};
|
|
53
53
|
return (s, c) => {
|
|
54
54
|
var B, q;
|
|
55
|
-
const m = f("FmSwitch"),
|
|
55
|
+
const m = f("FmSwitch"), S = f("FmIcon"), H = f("FmTooltip"), I = f("FmSelect"), R = f("FmButton"), M = f("FmTextField");
|
|
56
56
|
return u(), i("div", ye, [
|
|
57
57
|
l(m, {
|
|
58
58
|
"model-value": !!_.modelValue,
|
|
59
59
|
value: "autoLink",
|
|
60
|
-
label:
|
|
61
|
-
sublabel:
|
|
60
|
+
label: o(p)("menu.scheduler.dialog.sections.autolink.label"),
|
|
61
|
+
sublabel: o(p)("menu.scheduler.dialog.sections.autolink.sublabel"),
|
|
62
62
|
"label-placement": "right",
|
|
63
63
|
"onUpdate:modelValue": J
|
|
64
64
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
65
65
|
_.modelValue ? (u(), i("div", he, [
|
|
66
|
-
((B = _.modelValue) == null ? void 0 : B.length) === 0 ? (u(), i("div", Ve, Y(
|
|
66
|
+
((B = _.modelValue) == null ? void 0 : B.length) === 0 ? (u(), i("div", Ve, Y(o(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : k("", !0),
|
|
67
67
|
((q = _.modelValue) == null ? void 0 : q.length) > 0 ? (u(), i("div", Fe, [
|
|
68
|
-
y("div", null, Y(
|
|
68
|
+
y("div", null, Y(o(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
69
69
|
l(H, {
|
|
70
|
-
content:
|
|
70
|
+
content: o(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
71
71
|
variant: "plain",
|
|
72
72
|
"z-index": 999
|
|
73
73
|
}, {
|
|
74
74
|
default: v(() => [
|
|
75
|
-
l(
|
|
75
|
+
l(S, {
|
|
76
76
|
name: "help",
|
|
77
77
|
outline: "",
|
|
78
78
|
class: "ml-4"
|
|
@@ -81,38 +81,38 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
81
81
|
_: 1
|
|
82
82
|
}, 8, ["content"])
|
|
83
83
|
])) : k("", !0),
|
|
84
|
-
(u(!0), i(
|
|
84
|
+
(u(!0), i(C, null, L(_.modelValue || [], (D, F) => (u(), i("div", { key: F }, [
|
|
85
85
|
y("div", ge, [
|
|
86
86
|
y("div", ke, [
|
|
87
87
|
l(I, {
|
|
88
|
-
"model-value":
|
|
88
|
+
"model-value": D.type,
|
|
89
89
|
items: W,
|
|
90
90
|
"onUpdate:modelValue": (g) => $(F, g)
|
|
91
91
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
92
|
-
y("div", null, Y(
|
|
93
|
-
|
|
92
|
+
y("div", null, Y(o(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
93
|
+
D.type === "category" ? (u(), K(I, {
|
|
94
94
|
key: 0,
|
|
95
|
-
"model-value":
|
|
95
|
+
"model-value": D.value,
|
|
96
96
|
"onUpdate:modelValue": (g) => Z(F, g),
|
|
97
97
|
items: G.value || [],
|
|
98
98
|
multiselect: "",
|
|
99
|
-
placeholder:
|
|
100
|
-
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (u(), i(
|
|
101
|
-
(u(!0), i(
|
|
99
|
+
placeholder: o(p)("menu.scheduler.dialog.sections.filter.placeholder.category")
|
|
100
|
+
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (u(), i(C, { key: 1 }, [
|
|
101
|
+
(u(!0), i(C, null, L(D.value, (g, d) => (u(), i("div", {
|
|
102
102
|
class: "flex items-center gap-4",
|
|
103
103
|
key: d
|
|
104
104
|
}, [
|
|
105
|
-
d > 0 ? (u(), i("div", be, Y(
|
|
105
|
+
d > 0 ? (u(), i("div", be, Y(o(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : k("", !0),
|
|
106
106
|
y("div", Ee, [
|
|
107
107
|
l(M, {
|
|
108
108
|
"model-value": g,
|
|
109
|
-
"onUpdate:modelValue": (
|
|
109
|
+
"onUpdate:modelValue": (a) => N(F, d, a)
|
|
110
110
|
}, {
|
|
111
111
|
append: v(() => [
|
|
112
|
-
|
|
112
|
+
D.value.length > 1 ? (u(), K(R, {
|
|
113
113
|
key: 0,
|
|
114
114
|
icon: "close",
|
|
115
|
-
onClick: (
|
|
115
|
+
onClick: (a) => x(F, d),
|
|
116
116
|
variant: "tertiary"
|
|
117
117
|
}, null, 8, ["onClick"])) : k("", !0)
|
|
118
118
|
]),
|
|
@@ -120,23 +120,23 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
120
120
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
121
121
|
])
|
|
122
122
|
]))), 128)),
|
|
123
|
-
l(
|
|
123
|
+
l(R, {
|
|
124
124
|
icon: "add",
|
|
125
|
-
onClick: (g) =>
|
|
125
|
+
onClick: (g) => t(F),
|
|
126
126
|
variant: "tertiary"
|
|
127
127
|
}, null, 8, ["onClick"])
|
|
128
128
|
], 64))
|
|
129
129
|
]),
|
|
130
|
-
l(
|
|
130
|
+
l(R, {
|
|
131
131
|
variant: "secondary",
|
|
132
132
|
icon: "delete",
|
|
133
|
-
onClick: (g) =>
|
|
133
|
+
onClick: (g) => U(F)
|
|
134
134
|
}, null, 8, ["onClick"])
|
|
135
135
|
])
|
|
136
136
|
]))), 128)),
|
|
137
|
-
l(
|
|
137
|
+
l(R, {
|
|
138
138
|
variant: "secondary",
|
|
139
|
-
label:
|
|
139
|
+
label: o(p)("menu.scheduler.dialog.sections.filter.add"),
|
|
140
140
|
onClick: X
|
|
141
141
|
}, null, 8, ["label"])
|
|
142
142
|
])) : k("", !0)
|
|
@@ -188,94 +188,94 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
188
188
|
weekDay: []
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const W = ce(), X = O(() => W.version === r.F_MENU_VERSION.enum.v4),
|
|
191
|
+
const W = ce(), X = O(() => W.version === r.F_MENU_VERSION.enum.v4), U = T("all"), $ = T(p()), t = T(p()), x = T(!1);
|
|
192
192
|
function Z(d) {
|
|
193
|
-
|
|
193
|
+
t.value = d ? E(d) : p(), $.value = E(t.value), U.value = t.value.timePeriod.length === 0 ? "all" : "custom", x.value = !0;
|
|
194
194
|
}
|
|
195
195
|
function N() {
|
|
196
|
-
|
|
196
|
+
x.value = !1;
|
|
197
197
|
}
|
|
198
198
|
function s() {
|
|
199
|
-
|
|
199
|
+
t.value.timePeriod.push({
|
|
200
200
|
start: "00:00",
|
|
201
201
|
end: "23:59"
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
function c(d) {
|
|
205
|
-
|
|
205
|
+
t.value.timePeriod.splice(d, 1);
|
|
206
206
|
}
|
|
207
207
|
const m = T();
|
|
208
|
-
function
|
|
208
|
+
function S() {
|
|
209
209
|
return {
|
|
210
|
-
...
|
|
211
|
-
timePeriod:
|
|
212
|
-
weekDay:
|
|
210
|
+
...t.value,
|
|
211
|
+
timePeriod: U.value === "all" ? [] : t.value.timePeriod,
|
|
212
|
+
weekDay: t.value.repeat === r.F_SCHEDULE_FREQUENCY.enum.daily ? [] : t.value.weekDay
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
async function H() {
|
|
216
|
-
J("onComplete",
|
|
216
|
+
J("onComplete", S()), N();
|
|
217
217
|
}
|
|
218
|
-
const I = O(() =>
|
|
218
|
+
const I = O(() => t.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), R = O(() => t.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action")), M = T();
|
|
219
219
|
function B() {
|
|
220
|
-
var
|
|
221
|
-
const d =
|
|
222
|
-
(
|
|
220
|
+
var a;
|
|
221
|
+
const d = t.value.items.reduce((b, V) => ({ ...b, [V._id]: [] }), {});
|
|
222
|
+
(a = M.value) == null || a.show(d);
|
|
223
223
|
}
|
|
224
224
|
function q(d) {
|
|
225
|
-
|
|
225
|
+
t.value.items = t.value.items.filter((a) => a._id !== d);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
229
|
-
...
|
|
230
|
-
items: Object.keys(d).map((
|
|
231
|
-
const b =
|
|
227
|
+
function D(d) {
|
|
228
|
+
t.value = {
|
|
229
|
+
...t.value,
|
|
230
|
+
items: Object.keys(d).map((a) => {
|
|
231
|
+
const b = t.value.items.find((V) => V._id === a) ?? {};
|
|
232
232
|
return {
|
|
233
|
-
_id:
|
|
233
|
+
_id: a,
|
|
234
234
|
...b
|
|
235
235
|
};
|
|
236
236
|
})
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
const F = O(() => j.categorizedItems.reduce((d,
|
|
240
|
-
const b =
|
|
241
|
-
(V) =>
|
|
239
|
+
const F = O(() => j.categorizedItems.reduce((d, a) => {
|
|
240
|
+
const b = a.items.filter(
|
|
241
|
+
(V) => t.value.items.some(({ _id: z }) => V._id === z)
|
|
242
242
|
);
|
|
243
|
-
return b.length && d.push({ ...
|
|
243
|
+
return b.length && d.push({ ...a, items: b }), d;
|
|
244
244
|
}, [])), g = ve(
|
|
245
|
-
() => !fe.isEqual($.value,
|
|
245
|
+
() => !fe.isEqual($.value, S()),
|
|
246
246
|
() => {
|
|
247
|
-
|
|
247
|
+
x.value = !1;
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
-
return (d,
|
|
251
|
-
const b = f("FmTextField"), V = f("FmRadio"), z = f("FmRadioGroup"), ue = f("FmCheckbox"), te = f("FmTimePicker"),
|
|
252
|
-
return u(), i(
|
|
250
|
+
return (d, a) => {
|
|
251
|
+
const b = f("FmTextField"), V = f("FmRadio"), z = f("FmRadioGroup"), ue = f("FmCheckbox"), te = f("FmTimePicker"), A = f("FmButton"), se = f("FmForm"), ie = f("FmSideSheet");
|
|
252
|
+
return u(), i(C, null, [
|
|
253
253
|
l(ie, {
|
|
254
|
-
modelValue:
|
|
255
|
-
"onUpdate:modelValue":
|
|
254
|
+
modelValue: x.value,
|
|
255
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => x.value = n),
|
|
256
256
|
header: I.value,
|
|
257
257
|
"max-width": 560,
|
|
258
|
-
"is-container":
|
|
258
|
+
"is-container": o(re).FmForm,
|
|
259
259
|
"is-container-props": {
|
|
260
260
|
onValidationSuccess: H,
|
|
261
261
|
blameFormChildOnValidationFailed: !0,
|
|
262
262
|
class: "flex flex-col h-full"
|
|
263
263
|
},
|
|
264
|
-
"onOn:clickedAway":
|
|
264
|
+
"onOn:clickedAway": o(g)
|
|
265
265
|
}, {
|
|
266
266
|
"side-sheet-footer": v(() => [
|
|
267
267
|
y("div", Le, [
|
|
268
|
-
l(
|
|
269
|
-
label:
|
|
268
|
+
l(A, {
|
|
269
|
+
label: R.value,
|
|
270
270
|
size: "lg",
|
|
271
271
|
variant: "primary",
|
|
272
|
-
onClick:
|
|
272
|
+
onClick: a[5] || (a[5] = () => {
|
|
273
273
|
var n;
|
|
274
274
|
return (n = m.value) == null ? void 0 : n.validateInputs();
|
|
275
275
|
})
|
|
276
276
|
}, null, 8, ["label"]),
|
|
277
|
-
l(
|
|
278
|
-
label:
|
|
277
|
+
l(A, {
|
|
278
|
+
label: o(e)("menu.scheduler.dialog.actions.cancel"),
|
|
279
279
|
size: "lg",
|
|
280
280
|
variant: "tertiary",
|
|
281
281
|
onClick: N
|
|
@@ -291,51 +291,51 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
291
291
|
}, {
|
|
292
292
|
default: v(() => [
|
|
293
293
|
l(ee, {
|
|
294
|
-
title:
|
|
294
|
+
title: o(e)("menu.scheduler.dialog.sections.detail.title")
|
|
295
295
|
}, {
|
|
296
296
|
default: v(() => [
|
|
297
297
|
l(b, {
|
|
298
298
|
autofocus: "",
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue":
|
|
301
|
-
rules: [(n) => !!n ||
|
|
302
|
-
label:
|
|
303
|
-
placeholder:
|
|
299
|
+
modelValue: t.value.name,
|
|
300
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => t.value.name = n),
|
|
301
|
+
rules: [(n) => !!n || o(e)("menu.scheduler.dialog.sections.detail.name.required")],
|
|
302
|
+
label: o(e)("menu.scheduler.dialog.sections.detail.name.label"),
|
|
303
|
+
placeholder: o(e)("menu.scheduler.dialog.sections.detail.name.placeholder")
|
|
304
304
|
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
305
305
|
]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["title"]),
|
|
308
308
|
l(ee, {
|
|
309
|
-
title:
|
|
309
|
+
title: o(e)("menu.scheduler.dialog.sections.availability.title")
|
|
310
310
|
}, {
|
|
311
311
|
default: v(() => [
|
|
312
312
|
y("div", null, [
|
|
313
313
|
l(z, {
|
|
314
|
-
modelValue:
|
|
315
|
-
"onUpdate:modelValue":
|
|
314
|
+
modelValue: t.value.repeat,
|
|
315
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => t.value.repeat = n)
|
|
316
316
|
}, {
|
|
317
317
|
default: v(() => [
|
|
318
318
|
l(V, {
|
|
319
|
-
label:
|
|
320
|
-
value:
|
|
319
|
+
label: o(e)("menu.scheduler.dialog.sections.availability.daily"),
|
|
320
|
+
value: o(r.F_SCHEDULE_FREQUENCY).enum.daily
|
|
321
321
|
}, null, 8, ["label", "value"]),
|
|
322
322
|
l(V, {
|
|
323
|
-
label:
|
|
324
|
-
value:
|
|
323
|
+
label: o(e)("menu.scheduler.dialog.sections.availability.weekly"),
|
|
324
|
+
value: o(r.F_SCHEDULE_FREQUENCY).enum.weekly
|
|
325
325
|
}, null, 8, ["label", "value"])
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
}, 8, ["modelValue"]),
|
|
329
329
|
l(ae, { name: "expand" }, {
|
|
330
330
|
default: v(() => [
|
|
331
|
-
|
|
331
|
+
t.value.repeat === o(r.F_SCHEDULE_FREQUENCY).enum.weekly ? (u(), i("div", xe, [
|
|
332
332
|
y("div", Se, [
|
|
333
|
-
(u(), i(
|
|
334
|
-
key:
|
|
335
|
-
modelValue:
|
|
336
|
-
"onUpdate:modelValue":
|
|
333
|
+
(u(), i(C, null, L(G, (n, w) => l(ue, {
|
|
334
|
+
key: w,
|
|
335
|
+
modelValue: t.value.weekDay,
|
|
336
|
+
"onUpdate:modelValue": a[2] || (a[2] = (P) => t.value.weekDay = P),
|
|
337
337
|
label: n,
|
|
338
|
-
value:
|
|
338
|
+
value: w
|
|
339
339
|
}, null, 8, ["modelValue", "label", "value"])), 64))
|
|
340
340
|
])
|
|
341
341
|
])) : k("", !0)
|
|
@@ -345,17 +345,17 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
345
345
|
]),
|
|
346
346
|
y("div", null, [
|
|
347
347
|
l(z, {
|
|
348
|
-
label:
|
|
349
|
-
modelValue:
|
|
350
|
-
"onUpdate:modelValue":
|
|
348
|
+
label: o(e)("menu.scheduler.dialog.sections.period.title"),
|
|
349
|
+
modelValue: U.value,
|
|
350
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => U.value = n)
|
|
351
351
|
}, {
|
|
352
352
|
default: v(() => [
|
|
353
353
|
l(V, {
|
|
354
|
-
label:
|
|
354
|
+
label: o(e)("menu.scheduler.dialog.sections.period.all_day"),
|
|
355
355
|
value: "all"
|
|
356
356
|
}, null, 8, ["label"]),
|
|
357
357
|
l(V, {
|
|
358
|
-
label:
|
|
358
|
+
label: o(e)("menu.scheduler.dialog.sections.period.custom"),
|
|
359
359
|
value: "custom"
|
|
360
360
|
}, null, 8, ["label"])
|
|
361
361
|
]),
|
|
@@ -363,30 +363,30 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
363
363
|
}, 8, ["label", "modelValue"]),
|
|
364
364
|
l(ae, { name: "expand" }, {
|
|
365
365
|
default: v(() => [
|
|
366
|
-
|
|
366
|
+
U.value === "custom" ? (u(), i("div", De, [
|
|
367
367
|
y("div", we, [
|
|
368
|
-
(u(!0), i(
|
|
368
|
+
(u(!0), i(C, null, L(t.value.timePeriod, (n, w) => (u(), i("div", Pe, [
|
|
369
369
|
l(te, {
|
|
370
370
|
modelValue: n.start,
|
|
371
|
-
"onUpdate:modelValue": (
|
|
371
|
+
"onUpdate:modelValue": (P) => n.start = P,
|
|
372
372
|
class: "flex-1"
|
|
373
373
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
374
|
-
|
|
374
|
+
a[7] || (a[7] = de(" - ")),
|
|
375
375
|
l(te, {
|
|
376
376
|
modelValue: n.end,
|
|
377
|
-
"onUpdate:modelValue": (
|
|
377
|
+
"onUpdate:modelValue": (P) => n.end = P,
|
|
378
378
|
class: "flex-1"
|
|
379
379
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
380
|
-
l(
|
|
380
|
+
l(A, {
|
|
381
381
|
icon: "close",
|
|
382
382
|
variant: "tertiary",
|
|
383
|
-
onClick: (
|
|
383
|
+
onClick: (P) => c(w)
|
|
384
384
|
}, null, 8, ["onClick"])
|
|
385
385
|
]))), 256))
|
|
386
386
|
]),
|
|
387
|
-
l(
|
|
387
|
+
l(A, {
|
|
388
388
|
icon: "add",
|
|
389
|
-
label:
|
|
389
|
+
label: o(e)("menu.scheduler.dialog.sections.period.add"),
|
|
390
390
|
variant: "secondary",
|
|
391
391
|
"text-color": "primary",
|
|
392
392
|
"border-color": "primary",
|
|
@@ -399,12 +399,12 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
399
399
|
]),
|
|
400
400
|
X.value ? (u(), K(_e, {
|
|
401
401
|
key: 0,
|
|
402
|
-
label:
|
|
402
|
+
label: o(e)("menu.scheduler.dialog.sections.autolink.title")
|
|
403
403
|
}, {
|
|
404
404
|
default: v(() => [
|
|
405
405
|
l(Ue, {
|
|
406
|
-
modelValue:
|
|
407
|
-
"onUpdate:modelValue":
|
|
406
|
+
modelValue: t.value.filters,
|
|
407
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => t.value.filters = n)
|
|
408
408
|
}, null, 8, ["modelValue"])
|
|
409
409
|
]),
|
|
410
410
|
_: 1
|
|
@@ -414,12 +414,12 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
414
414
|
}, 8, ["title"]),
|
|
415
415
|
h.canApplyItems ? (u(), K(ee, {
|
|
416
416
|
key: 0,
|
|
417
|
-
title:
|
|
417
|
+
title: o(e)("menu.scheduler.dialog.sections.products.title")
|
|
418
418
|
}, {
|
|
419
419
|
"append-title": v(() => [
|
|
420
|
-
l(
|
|
420
|
+
l(A, {
|
|
421
421
|
icon: "link",
|
|
422
|
-
label:
|
|
422
|
+
label: o(e)("menu.scheduler.dialog.sections.products.link"),
|
|
423
423
|
variant: "secondary",
|
|
424
424
|
"text-color": "primary",
|
|
425
425
|
"border-color": "primary",
|
|
@@ -427,16 +427,16 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
427
427
|
}, null, 8, ["label"])
|
|
428
428
|
]),
|
|
429
429
|
default: v(() => [
|
|
430
|
-
(u(!0), i(
|
|
430
|
+
(u(!0), i(C, null, L(F.value, (n) => (u(), i("div", null, [
|
|
431
431
|
y("div", Re, Y(n.name), 1),
|
|
432
|
-
(u(!0), i(
|
|
433
|
-
y("div", Te, Y(
|
|
432
|
+
(u(!0), i(C, null, L(n.items, (w, P) => (u(), i("div", Ae, [
|
|
433
|
+
y("div", Te, Y(w.name), 1),
|
|
434
434
|
y("div", Ye, [
|
|
435
|
-
l(
|
|
435
|
+
l(A, {
|
|
436
436
|
icon: "delete",
|
|
437
437
|
variant: "tertiary",
|
|
438
438
|
"text-color": "neutral-gray-400",
|
|
439
|
-
onClick: () => q(
|
|
439
|
+
onClick: () => q(w._id)
|
|
440
440
|
}, null, 8, ["onClick"])
|
|
441
441
|
])
|
|
442
442
|
]))), 256))
|
|
@@ -455,8 +455,8 @@ const ye = { class: "space-y-8" }, he = {
|
|
|
455
455
|
ref: M,
|
|
456
456
|
"can-select-variant": !1,
|
|
457
457
|
options: h.categorizedItems,
|
|
458
|
-
title:
|
|
459
|
-
onOnComplete:
|
|
458
|
+
title: o(e)("menu.scheduler.dialog.sections.products.link"),
|
|
459
|
+
onOnComplete: D
|
|
460
460
|
}, null, 8, ["options", "title"])
|
|
461
461
|
], 64);
|
|
462
462
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as K, onBeforeUnmount as O, resolveComponent as F, openBlock as M, createBlock as N, withModifiers as D, withCtx as h, renderSlot as U, createElementBlock as z, Fragment as A, createVNode as c, unref as i, createElementVNode as x, toDisplayString as R, createCommentVNode as P } from "vue";
|
|
2
2
|
import { components as W } from "@feedmepos/ui-library";
|
|
3
|
-
import { c as S, u as j, g as H, m as q, d as Y, b as Z } from "./app-
|
|
3
|
+
import { c as S, u as j, g as H, m as q, d as Y, b as Z } from "./app-r8ZKmdn1.js";
|
|
4
4
|
import { c as G } from "./string-DpfFixWH.js";
|
|
5
5
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
6
|
-
import { f as J } from "./currency-
|
|
7
|
-
import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { f as J } from "./currency-CWaEAteR.js";
|
|
7
|
+
import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bvkr0nD3.js";
|
|
8
8
|
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
9
|
-
import { u as ee, l as ae } from "./lodash-
|
|
9
|
+
import { u as ee, l as ae } from "./lodash-DT3SfcPy.js";
|
|
10
10
|
const te = /* @__PURE__ */ T({
|
|
11
11
|
__name: "CurrencyInput",
|
|
12
12
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineStore as H } from "pinia";
|
|
2
2
|
import { useSnackbar as B, components as J, useDialog as Q, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
3
|
-
import { r as q, s as Z, t as $, d as E, i as j, a as I, m as h, g as ee, p as ne, b as C, h as D, u as te, l as ae } from "./app-
|
|
3
|
+
import { r as q, s as Z, t as $, d as E, i as j, a as I, m as h, g as ee, p as ne, b as C, h as D, u as te, l as ae } from "./app-r8ZKmdn1.js";
|
|
4
4
|
import { defineComponent as T, computed as U, ref as A, watch as L, resolveComponent as V, openBlock as F, createBlock as oe, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as le, createElementBlock as M, toDisplayString as k, unref as l, Fragment as P, renderSlot as ue, renderList as ie, getCurrentInstance as se } from "vue";
|
|
5
5
|
import "./vuedraggable-WU01qJgi.js";
|
|
6
6
|
import { useI18n as N } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as re, l as me } from "./lodash-
|
|
7
|
+
import { u as re, l as me } from "./lodash-DT3SfcPy.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
10
10
|
__name: "NumberPrecisionInput",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.13",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"pinia": "^2.1.7",
|
|
42
42
|
"uuid": "^10.0.0",
|
|
43
43
|
"vite-svg-loader": "^5.1.0",
|
|
44
|
-
"vue": "^3.
|
|
44
|
+
"vue": "^3.5.13",
|
|
45
45
|
"vue-router": "^4.2.5",
|
|
46
46
|
"vue3-lottie": "^3.3.0",
|
|
47
47
|
"vuedraggable": "^4.1.0",
|
|
48
48
|
"xlsx": "^0.18.5",
|
|
49
49
|
"canvas": "^2.9.3",
|
|
50
50
|
"vue-advanced-cropper": "^2.8.9",
|
|
51
|
-
"@feedmepos/mf-common": "^1.12.
|
|
51
|
+
"@feedmepos/mf-common": "^1.12.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@tsconfig/node18": "^18.2.2",
|