@feedmepos/mf-menu 0.18.17 → 0.19.0-beta.2
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-DFJJHptK.js +158 -0
- package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-BJ0b_uKf.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CXoRwrTi.js} +2 -2
- package/dist/Catalog-CXzqtCF8.js +551 -0
- package/dist/Category-DKbtLbq8.js +387 -0
- package/dist/CookingGuide-BKon8TdH.js +862 -0
- package/dist/Group-D1UDksBG.js +46 -0
- package/dist/{Group-jEtbECLb.js → Group-izOWb_Bh.js} +1 -1
- package/dist/Group.vue_vue_type_script_setup_true_lang-DAlQcgYp.js +558 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Q7es2wmt.js +237 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Bw4uxqAp.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Db0uYw5O.js} +11723 -11723
- package/dist/Ingredient-BIJu9P_9.js +484 -0
- package/dist/LinkProductSideSheet-BNdFZThd.js +104 -0
- package/dist/PrintRoute--fYPFcy7.js +417 -0
- package/dist/{Product-Bnr9oFr2.js → Product-vLtISbkD.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-BHCihe6o.js +826 -0
- package/dist/Products-JaCNtcHS.js +236 -0
- package/dist/Publish-jpmiyB-b.js +525 -0
- package/dist/Recipe-B6y-oLPG.js +320 -0
- package/dist/Scheduler-Dj1rlr-U.js +222 -0
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-BVAkohGJ.js +48 -0
- package/dist/ServingSequence-BhIfCyXl.js +4 -0
- package/dist/{Setting-DN8TQdIR.js → Setting-B5R1JfaL.js} +1 -1
- package/dist/Setting.vue_vue_type_script_setup_true_lang-xXtg0JOn.js +253 -0
- package/dist/Takeaway-BSFSz_JL.js +63 -0
- package/dist/{Takeaway-y0Nk0JAb.js → Takeaway-DjFTtbw6.js} +1 -1
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-BUGL0wfZ.js +302 -0
- package/dist/TaxSetting-D9Q8XNgJ.js +25 -0
- package/dist/Unit-Cr_8O3zB.js +142 -0
- package/dist/Variant-loUMfNRB.js +222 -0
- package/dist/_id_-0w7KjYyQ.js +189 -0
- package/dist/{app-D7e31gIv.js → app-t9ONnc0s.js} +31701 -26207
- package/dist/app.js +7 -6
- package/dist/apps/mf-menu/src/app.d.ts +2784 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/manager/menu/catalog.d.ts +1 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +1 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +16 -16
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +12 -12
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +4 -4
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-D5tq3eE2.js → linked-status-DLL4aRiX.js} +8 -8
- package/dist/assets/{validate-menu-AcCpPyQZ.js → validate-menu-CoXc16jh.js} +8 -8
- package/dist/{catalog-Ck7lLTN2.js → catalog-4OmC0JA3.js} +66 -62
- package/dist/category-BE33DRqp.js +155 -0
- package/dist/{currency-CclA5a-2.js → currency-JHgYNbTQ.js} +1 -1
- package/dist/{index-DDd9B_ur.js → index-CE3zjhyh.js} +732 -740
- package/dist/index-pSg9p-28.js +238 -0
- package/dist/item-CEPx51U1.js +6371 -0
- package/dist/{lodash-BIQx_fko.js → lodash-VivR_BQ2.js} +1 -1
- package/dist/{menu-CYzbNubv.js → menu-ETQrtbbU.js} +1 -1
- package/dist/{object-DUtbNpoS.js → object-DEM5FMTB.js} +4 -4
- package/dist/scheduler-SRT_5Nio.js +491 -0
- package/dist/string-DpfFixWH.js +4 -0
- package/dist/style.css +1 -1
- package/dist/takeaway-RcvqKigG.js +267 -0
- package/dist/{toExcel-BXPcj8Gp.js → toExcel-BcgskY3F.js} +2 -2
- package/dist/unit-DLL7xIF1.js +350 -0
- package/package.json +4 -2
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-D9QsJ4vO.js +0 -155
- package/dist/Catalog-CZW54QJU.js +0 -570
- package/dist/Category-DvsP_L7d.js +0 -405
- package/dist/CookingGuide-DC3uXetk.js +0 -848
- package/dist/Group-DK5xqeYX.js +0 -44
- package/dist/Group.vue_vue_type_script_setup_true_lang-DGZ9hnPg.js +0 -538
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BQXqlXw4.js +0 -234
- package/dist/Ingredient-354LLwdX.js +0 -498
- package/dist/LinkProductSideSheet-anxSsu0z.js +0 -102
- package/dist/PrintRoute-DrSvtNLX.js +0 -425
- package/dist/Product.vue_vue_type_script_setup_true_lang-bBY54Q_1.js +0 -815
- package/dist/Products-CZyueqSO.js +0 -234
- package/dist/Publish-kRM1UuPk.js +0 -518
- package/dist/Recipe-nKpLIJs8.js +0 -345
- package/dist/Scheduler-DmZ8atXG.js +0 -233
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-CdsxA-p0.js +0 -48
- package/dist/ServingSequence-j00_ko5R.js +0 -4
- package/dist/Setting.vue_vue_type_script_setup_true_lang-Cx06MCJs.js +0 -247
- package/dist/Takeaway-BXZXCAaM.js +0 -61
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-9WVkdLZF.js +0 -316
- package/dist/TaxSetting-DdHx7ACN.js +0 -21
- package/dist/Unit-biPvleyL.js +0 -161
- package/dist/Variant-BP1IRNQx.js +0 -231
- package/dist/_id_-BiaNDI2N.js +0 -188
- package/dist/category-KiA5-36F.js +0 -154
- package/dist/index-BFeZlU8X.js +0 -232
- package/dist/item-Bcg7SiYv.js +0 -6325
- package/dist/scheduler-D1tgE0_9.js +0 -480
- package/dist/takeaway-BKsoD4EL.js +0 -264
- package/dist/unit-CswFvAyc.js +0 -346
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as v, withCtx as h, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
|
|
2
|
+
import { u as M, o as O, V as $, n as q } from "./app-t9ONnc0s.js";
|
|
3
|
+
import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
|
|
4
|
+
import { L as J } from "./LinkProductSideSheet-BNdFZThd.js";
|
|
5
|
+
import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
6
|
+
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
9
|
+
}, ae = /* @__PURE__ */ K({
|
|
10
|
+
__name: "ApplyProduct",
|
|
11
|
+
props: {
|
|
12
|
+
title: {},
|
|
13
|
+
overrides: {},
|
|
14
|
+
selectVariant: { type: Boolean },
|
|
15
|
+
showVariant: { type: Boolean },
|
|
16
|
+
editable: { type: Boolean },
|
|
17
|
+
categorizedItems: {},
|
|
18
|
+
items: {},
|
|
19
|
+
variants: {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:overrides", "row-click"],
|
|
22
|
+
setup(z, { emit: F }) {
|
|
23
|
+
const s = z, _ = F, P = M(), { searchKey: m, filter: w } = O(), y = i(() => s.categorizedItems || P.categorizedItems), k = i(() => $(y.value, s.overrides)), R = i(() => k.value.reduce((t, e) => {
|
|
24
|
+
if (w([e.name]))
|
|
25
|
+
return t.push(e), t;
|
|
26
|
+
const r = e.items.filter((a) => w([a.label]));
|
|
27
|
+
return r.length && t.push({ ...e, items: r }), t;
|
|
28
|
+
}, [])), E = i(() => s.showVariant || s.selectVariant);
|
|
29
|
+
function x(t, e) {
|
|
30
|
+
var a, l;
|
|
31
|
+
const r = e ? (a = s.overrides) == null ? void 0 : a.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
|
|
32
|
+
_("update:overrides", r ?? []);
|
|
33
|
+
}
|
|
34
|
+
const { t: c } = q(), N = i(
|
|
35
|
+
() => (t) => [
|
|
36
|
+
{
|
|
37
|
+
accessorKey: "label",
|
|
38
|
+
enableSorting: !1,
|
|
39
|
+
header: c("menu.apply_product.table.category_count", {
|
|
40
|
+
name: t.name,
|
|
41
|
+
count: t.items.length
|
|
42
|
+
}),
|
|
43
|
+
cell: (e) => {
|
|
44
|
+
var l;
|
|
45
|
+
const r = e.getValue();
|
|
46
|
+
return ((l = e.row.original.variant) == null ? void 0 : l.length) ? u(
|
|
47
|
+
"p",
|
|
48
|
+
{
|
|
49
|
+
class: "flex items-center space-x-8"
|
|
50
|
+
},
|
|
51
|
+
[
|
|
52
|
+
u("p", {}, [r]),
|
|
53
|
+
u(I.FmIcon, {
|
|
54
|
+
name: "keyboard_arrow_up",
|
|
55
|
+
onClick: e.row.getToggleExpandedHandler(),
|
|
56
|
+
class: [
|
|
57
|
+
"cursor-pointer",
|
|
58
|
+
"transition-transform",
|
|
59
|
+
e.row.getIsExpanded() ? "transform rotate-180" : ""
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
) : r;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "action",
|
|
68
|
+
enableSorting: !1,
|
|
69
|
+
cell: (e) => {
|
|
70
|
+
const r = e.row.original, a = e.row.depth;
|
|
71
|
+
return s.editable ? u(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
class: "flex items-center justify-end"
|
|
75
|
+
},
|
|
76
|
+
u(I.FmButton, {
|
|
77
|
+
prependIcon: "delete",
|
|
78
|
+
variant: B.Tertiary,
|
|
79
|
+
textColor: b.NeutralGray400,
|
|
80
|
+
onClick: () => {
|
|
81
|
+
var o;
|
|
82
|
+
if (a > 0) {
|
|
83
|
+
const f = (o = e.row.getParentRow()) == null ? void 0 : o.original;
|
|
84
|
+
x(f.value, r.value);
|
|
85
|
+
} else
|
|
86
|
+
x(r.value);
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
) : null;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
), S = U({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
|
|
94
|
+
return (t, e) => {
|
|
95
|
+
const r = g("fm-button"), a = g("fm-search"), l = g("fm-table");
|
|
96
|
+
return d(), p("div", W, [
|
|
97
|
+
v(Q, { title: t.title }, {
|
|
98
|
+
"append-title": h(() => [
|
|
99
|
+
V("div", null, [
|
|
100
|
+
t.editable ? (d(), j(J, {
|
|
101
|
+
key: 0,
|
|
102
|
+
"categorized-items": y.value,
|
|
103
|
+
"initial-value": t.overrides,
|
|
104
|
+
"select-variant": t.selectVariant,
|
|
105
|
+
"show-variant": E.value,
|
|
106
|
+
title: n(c)("menu.apply_product.link.title"),
|
|
107
|
+
onSubmit: e[0] || (e[0] = (o) => _("update:overrides", o))
|
|
108
|
+
}, {
|
|
109
|
+
default: h(({ trigger: o }) => [
|
|
110
|
+
v(r, {
|
|
111
|
+
"text-color": n(b).ColorPrimary,
|
|
112
|
+
"border-color": n(b).ColorPrimary,
|
|
113
|
+
variant: n(B).Secondary,
|
|
114
|
+
label: n(c)("menu.common.actions.link_product"),
|
|
115
|
+
"prepend-icon": "link",
|
|
116
|
+
onClick: o
|
|
117
|
+
}, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["categorized-items", "initial-value", "select-variant", "show-variant", "title"])) : C("", !0)
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
default: h(() => [
|
|
124
|
+
V("div", X, [
|
|
125
|
+
t.editable ? (d(), p("p", Y, A(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
|
|
126
|
+
v(a, {
|
|
127
|
+
modelValue: n(m),
|
|
128
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => D(m) ? m.value = o : null),
|
|
129
|
+
placeholder: n(c)("menu.common.labels.search_product"),
|
|
130
|
+
class: "flex-1"
|
|
131
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
132
|
+
])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["title"]),
|
|
136
|
+
(d(!0), p(G, null, H(R.value, (o) => (d(), p("div", {
|
|
137
|
+
key: o.id || "",
|
|
138
|
+
class: "xs:overflow-x-scroll"
|
|
139
|
+
}, [
|
|
140
|
+
v(l, {
|
|
141
|
+
"column-defs": N.value(o),
|
|
142
|
+
"expanded-state": S.value,
|
|
143
|
+
"get-sub-row": L,
|
|
144
|
+
"page-size": 9999,
|
|
145
|
+
"row-data": o.items,
|
|
146
|
+
"search-value": n(m),
|
|
147
|
+
"shrink-at": !1,
|
|
148
|
+
"hide-footer": "",
|
|
149
|
+
"onUpdate:expandedState": e[2] || (e[2] = (f) => S.value = f)
|
|
150
|
+
}, null, 8, ["column-defs", "expanded-state", "row-data", "search-value"])
|
|
151
|
+
]))), 128))
|
|
152
|
+
]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
ae as _
|
|
158
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
|
|
2
|
-
import { d as V } from "./app-
|
|
2
|
+
import { d as V } from "./app-t9ONnc0s.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
|
-
import { u as H, l as J } from "./lodash-
|
|
5
|
+
import { u as H, l as J } from "./lodash-VivR_BQ2.js";
|
|
6
6
|
const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
|
|
7
7
|
__name: "ApplyProducts",
|
|
8
8
|
props: {
|