@feedmepos/mf-menu 0.31.17-dev → 0.31.17
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-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
- package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
- package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
- package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
- package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
- package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
- package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
- package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
- package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
- package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
- package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
- package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
- package/dist/ProductInternalTools-DiISILIn.js +415 -0
- package/dist/Products-BDvqmjZI.js +270 -0
- package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
- package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
- package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
- package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
- package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
- package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
- package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
- package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
- package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
- package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
- package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
- package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
- package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
- package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
- package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
- package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
- package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
- package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
- package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
- package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
- package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
- package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
- package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
- package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
- package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
- package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
- package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
- package/dist/jszip.min-8UVTn3ZT.js +2393 -0
- package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
- package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
- package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
- package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
- package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
- package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
- package/package.json +1 -1
- package/dist/Products-CybC3HCA.js +0 -2656
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as D, getCurrentInstance as ie, renderList as ce, createBlock as
|
|
1
|
+
import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as D, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
|
|
2
2
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as H, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { G, u as ge,
|
|
5
|
+
import { B as G, u as ge, $ as fe, Y as _e, G as K, a3 as ye, O as q, J as te } from "./menu-DYMiA6Oc.js";
|
|
6
6
|
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as he } from "./app-
|
|
7
|
+
import { _ as he } from "./app-CV3Y87bf.js";
|
|
8
8
|
import { c as be } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
10
10
|
import { u as xe } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { c as X } from "./object-DVUNCr7w.js";
|
|
12
12
|
import { r as Ce } from "./rules-CIWTZQfh.js";
|
|
13
|
-
import { u as
|
|
13
|
+
import { u as J, a as ke } from "./menu-CrEs_Qy-.js";
|
|
14
14
|
import { c as we } from "./check-C9mY6LiX.js";
|
|
15
|
-
import { u as Fe } from "./item-
|
|
16
|
-
import { u as oe } from "./category-
|
|
15
|
+
import { u as Fe } from "./item-E-Egz6v8.js";
|
|
16
|
+
import { u as oe } from "./category-_lR1fIWU.js";
|
|
17
17
|
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
18
18
|
const $e = {
|
|
19
19
|
class: "fm-typo-en-title-md-600"
|
|
@@ -27,9 +27,9 @@ const $e = {
|
|
|
27
27
|
class: "flex-1"
|
|
28
28
|
}, Te = {
|
|
29
29
|
class: "flex-1 overflow-hidden min-h-[300px]"
|
|
30
|
-
},
|
|
30
|
+
}, Oe = {
|
|
31
31
|
class: "flex gap-8 items-center justify-start"
|
|
32
|
-
},
|
|
32
|
+
}, Ue = /* @__PURE__ */ A({
|
|
33
33
|
__name: "Form",
|
|
34
34
|
props: {
|
|
35
35
|
initialValue: {}
|
|
@@ -39,15 +39,15 @@ const $e = {
|
|
|
39
39
|
}) {
|
|
40
40
|
const _ = N, V = Y(), b = G(V), $ = q(b), m = ge(), r = Fe(), {
|
|
41
41
|
categories: x
|
|
42
|
-
} =
|
|
42
|
+
} = J(), {
|
|
43
43
|
t
|
|
44
|
-
} = j(),
|
|
44
|
+
} = j(), O = F(!1), u = F(!1), M = (o) => {
|
|
45
45
|
we.isBoolean(o) ? u.value = o : u.value = !u.value;
|
|
46
46
|
}, i = F(X(_.initialValue)), C = F(""), S = B(() => {
|
|
47
47
|
var k;
|
|
48
48
|
const o = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], a = fe(i.value.id);
|
|
49
49
|
return _e(o, (w) => w.code || w.name, a);
|
|
50
|
-
}),
|
|
50
|
+
}), P = [{
|
|
51
51
|
accessorKey: "name",
|
|
52
52
|
header: () => t("menu.category.products.columns.name"),
|
|
53
53
|
enableSorting: !1
|
|
@@ -85,7 +85,7 @@ const $e = {
|
|
|
85
85
|
await r.update(o._id);
|
|
86
86
|
}
|
|
87
87
|
const y = B(() => m.version === K.F_MENU_VERSION.enum.v4);
|
|
88
|
-
async function
|
|
88
|
+
async function I(o) {
|
|
89
89
|
const a = ye(o, i.value.id);
|
|
90
90
|
await r.updateMany(a);
|
|
91
91
|
}
|
|
@@ -127,9 +127,9 @@ const $e = {
|
|
|
127
127
|
"onOn:clickedAway": e(z)
|
|
128
128
|
}, {
|
|
129
129
|
"side-sheet-header": g(() => [n("p", $e, T(e(t)("menu.category.title")), 1)]),
|
|
130
|
-
"side-sheet-footer": g(() => [n("div",
|
|
130
|
+
"side-sheet-footer": g(() => [n("div", Oe, [d(W, {
|
|
131
131
|
label: e(t)("menu.common.actions.update"),
|
|
132
|
-
loading:
|
|
132
|
+
loading: O.value,
|
|
133
133
|
size: "lg",
|
|
134
134
|
type: "submit",
|
|
135
135
|
variant: "primary",
|
|
@@ -140,7 +140,7 @@ const $e = {
|
|
|
140
140
|
variant: "tertiary",
|
|
141
141
|
onClick: a[3] || (a[3] = () => u.value = !1)
|
|
142
142
|
}, null, 8, ["label"])])]),
|
|
143
|
-
default: g(() => [n("div", Me, [d(
|
|
143
|
+
default: g(() => [n("div", Me, [d(Q, {
|
|
144
144
|
title: e(t)("menu.category.detail")
|
|
145
145
|
}, {
|
|
146
146
|
default: g(() => [d(k, {
|
|
@@ -151,7 +151,7 @@ const $e = {
|
|
|
151
151
|
rules: [e(Ce)]
|
|
152
152
|
}, null, 8, ["label", "modelValue", "disabled", "rules"])]),
|
|
153
153
|
_: 1
|
|
154
|
-
}, 8, ["title"]), d(
|
|
154
|
+
}, 8, ["title"]), d(Q, {
|
|
155
155
|
title: e(t)("menu.category.products.title"),
|
|
156
156
|
class: "flex-1 min-h-0",
|
|
157
157
|
shrinkable: !0
|
|
@@ -171,7 +171,7 @@ const $e = {
|
|
|
171
171
|
modelValue: C.value,
|
|
172
172
|
"onUpdate:modelValue": a[1] || (a[1] = (v) => C.value = v)
|
|
173
173
|
}, null, 8, ["placeholder", "modelValue"])])]), n("div", Te, [d(ne, {
|
|
174
|
-
"column-defs":
|
|
174
|
+
"column-defs": P,
|
|
175
175
|
draggable: y.value,
|
|
176
176
|
"page-size": S.value.length,
|
|
177
177
|
"row-data": S.value,
|
|
@@ -179,7 +179,7 @@ const $e = {
|
|
|
179
179
|
"shrink-at": !1,
|
|
180
180
|
"hide-footer": "",
|
|
181
181
|
"pin-header-row": "",
|
|
182
|
-
onDndChanged:
|
|
182
|
+
onDndChanged: I,
|
|
183
183
|
onRowClick: a[2] || (a[2] = (v) => s(v.original))
|
|
184
184
|
}, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
|
|
185
185
|
_: 1
|
|
@@ -188,11 +188,11 @@ const $e = {
|
|
|
188
188
|
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])], 64);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
}), Le =
|
|
191
|
+
}), Le = Ue, Ne = {
|
|
192
192
|
key: 0
|
|
193
|
-
}, Oe = {
|
|
194
|
-
class: "flex justify-end items-center"
|
|
195
193
|
}, Pe = {
|
|
194
|
+
class: "flex justify-end items-center"
|
|
195
|
+
}, Ie = {
|
|
196
196
|
class: "w-[320px]"
|
|
197
197
|
}, ze = {
|
|
198
198
|
key: 1,
|
|
@@ -215,9 +215,9 @@ const $e = {
|
|
|
215
215
|
menuLoader: b
|
|
216
216
|
}), {
|
|
217
217
|
categories: m
|
|
218
|
-
} =
|
|
218
|
+
} = J(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
|
|
219
219
|
t
|
|
220
|
-
} = j(),
|
|
220
|
+
} = j(), O = F([{
|
|
221
221
|
accessorKey: "name",
|
|
222
222
|
header: () => t("menu.category.columns.title"),
|
|
223
223
|
enableSorting: !1,
|
|
@@ -299,10 +299,10 @@ const $e = {
|
|
|
299
299
|
initialValue: l
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
const S = de(),
|
|
302
|
+
const S = de(), P = B(() => S.breakpoints.value.xs);
|
|
303
303
|
return (l, s) => {
|
|
304
|
-
const y = p("FmSearch"),
|
|
305
|
-
return
|
|
304
|
+
const y = p("FmSearch"), I = p("FmTable"), z = p("FmButton");
|
|
305
|
+
return P.value ? (f(), E("div", ze, [n("div", De, [d(y, {
|
|
306
306
|
autofocus: "",
|
|
307
307
|
modelValue: r.value,
|
|
308
308
|
"onUpdate:modelValue": s[2] || (s[2] = (c) => r.value = c),
|
|
@@ -322,7 +322,7 @@ const $e = {
|
|
|
322
322
|
"prepend-icon": "delete",
|
|
323
323
|
disabled: !c.id,
|
|
324
324
|
onClick: D((o) => u(c), ["stop"])
|
|
325
|
-
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div",
|
|
325
|
+
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Pe, [n("div", Ie, [d(y, {
|
|
326
326
|
modelValue: r.value,
|
|
327
327
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
328
328
|
autofocus: "",
|
|
@@ -331,8 +331,8 @@ const $e = {
|
|
|
331
331
|
type: e(t)("menu.category.title")
|
|
332
332
|
})
|
|
333
333
|
}, null, 8, ["modelValue", "placeholder"])])]), d(he, null, {
|
|
334
|
-
default: g(() => [d(
|
|
335
|
-
"column-defs":
|
|
334
|
+
default: g(() => [d(I, {
|
|
335
|
+
"column-defs": O.value,
|
|
336
336
|
draggable: !0,
|
|
337
337
|
"page-size": e(m).length,
|
|
338
338
|
"row-data": e(m),
|
|
@@ -347,19 +347,19 @@ const $e = {
|
|
|
347
347
|
})]));
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
}), qe = { class: "flex-1 flex justify-between gap-8 pl-8" },
|
|
350
|
+
}), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
|
|
351
351
|
__name: "Category",
|
|
352
352
|
setup(N) {
|
|
353
|
-
const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } =
|
|
353
|
+
const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
|
|
354
354
|
function x() {
|
|
355
355
|
$.create();
|
|
356
356
|
}
|
|
357
357
|
const t = B(() => m.value.length);
|
|
358
|
-
return ke().resetOnMount(), (
|
|
358
|
+
return ke().resetOnMount(), (O, u) => (f(), U(ve, {
|
|
359
359
|
heading: e(r)("menu.category.title")
|
|
360
360
|
}, {
|
|
361
361
|
default: g(() => [
|
|
362
|
-
e(m).length > 0 ? (f(),
|
|
362
|
+
e(m).length > 0 ? (f(), U(Ge, { key: 0 })) : (f(), U(e(Ve), {
|
|
363
363
|
key: 1,
|
|
364
364
|
action: {
|
|
365
365
|
text: e(r)("menu.category.add"),
|
|
@@ -371,12 +371,12 @@ const $e = {
|
|
|
371
371
|
]),
|
|
372
372
|
"append-heading": g(() => [
|
|
373
373
|
n("div", qe, [
|
|
374
|
-
n("div",
|
|
374
|
+
n("div", Je, [
|
|
375
375
|
n("div", We, [
|
|
376
376
|
n("p", He, T(t.value), 1)
|
|
377
377
|
])
|
|
378
378
|
]),
|
|
379
|
-
e(m).length > 0 ? (f(),
|
|
379
|
+
e(m).length > 0 ? (f(), U(pe, {
|
|
380
380
|
key: 0,
|
|
381
381
|
label: e(r)("menu.category.add"),
|
|
382
382
|
"prepend-icon": "add",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
1
|
+
import { defineComponent as S, computed as k, ref as C, resolveComponent as w, createElementBlock as _, openBlock as u, createElementVNode as i, createVNode as g, unref as n, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as V } from "vue";
|
|
2
|
+
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
|
|
4
|
+
import { B as F, u as I, Y as j, O as B, J as A, G } from "./menu-DYMiA6Oc.js";
|
|
5
|
+
import { _ as J } from "./app-CV3Y87bf.js";
|
|
6
|
+
import { u as O } from "./menu-CrEs_Qy-.js";
|
|
7
7
|
import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
|
-
import { u as q } from "./category-
|
|
8
|
+
import { u as q } from "./category-_lR1fIWU.js";
|
|
9
9
|
const H = {
|
|
10
10
|
key: 0
|
|
11
|
-
},
|
|
11
|
+
}, Q = {
|
|
12
12
|
class: "flex justify-end items-center"
|
|
13
13
|
}, W = {
|
|
14
14
|
class: "w-[320px]"
|
|
@@ -25,12 +25,12 @@ const H = {
|
|
|
25
25
|
class: "fm-typo-en-body-lg-600"
|
|
26
26
|
}, ae = {
|
|
27
27
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
28
|
-
}, ne = /* @__PURE__ */
|
|
28
|
+
}, ne = /* @__PURE__ */ S({
|
|
29
29
|
__name: "CategoryTable",
|
|
30
|
-
setup(
|
|
31
|
-
const f =
|
|
30
|
+
setup(T) {
|
|
31
|
+
const f = M(), y = F(f), h = B(y), p = I(), {
|
|
32
32
|
categories: v
|
|
33
|
-
} =
|
|
33
|
+
} = O(), b = k(() => {
|
|
34
34
|
var l, t;
|
|
35
35
|
const r = ((t = (l = p.currentCatalog) == null ? void 0 : l.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
|
|
36
36
|
var m;
|
|
@@ -43,7 +43,7 @@ const H = {
|
|
|
43
43
|
return j(o, (e) => e.name);
|
|
44
44
|
}), a = C(""), d = k(() => b.value.filter((r) => r.name.toLowerCase().includes(a.value.toLowerCase()))), {
|
|
45
45
|
t: s
|
|
46
|
-
} =
|
|
46
|
+
} = L(), x = C([{
|
|
47
47
|
accessorKey: "name",
|
|
48
48
|
header: () => s("menu.category.columns.title"),
|
|
49
49
|
enableSorting: !1,
|
|
@@ -62,7 +62,7 @@ const H = {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
}]);
|
|
65
|
-
async function
|
|
65
|
+
async function D(r) {
|
|
66
66
|
var e;
|
|
67
67
|
const o = p.currentCatalog;
|
|
68
68
|
if (!o)
|
|
@@ -87,10 +87,10 @@ const H = {
|
|
|
87
87
|
}
|
|
88
88
|
}, "Category");
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const N = Y(), z = k(() => N.breakpoints.value.xs);
|
|
91
91
|
return (r, o) => {
|
|
92
92
|
const l = w("FmSearch"), t = w("FmTable");
|
|
93
|
-
return
|
|
93
|
+
return z.value ? (u(), _("div", X, [i("div", Z, [g(l, {
|
|
94
94
|
autofocus: "",
|
|
95
95
|
modelValue: a.value,
|
|
96
96
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => a.value = e),
|
|
@@ -98,12 +98,12 @@ const H = {
|
|
|
98
98
|
placeholder: n(s)("menu.common.labels.search_placeholder", {
|
|
99
99
|
type: n(s)("menu.category.title")
|
|
100
100
|
})
|
|
101
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), _(
|
|
101
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), _(P, null, U(d.value, (e) => (u(), _("div", {
|
|
102
102
|
key: e.id || "",
|
|
103
103
|
class: "flex flex-row py-12 px-16"
|
|
104
104
|
}, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(n(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
105
105
|
count: e.items.length
|
|
106
|
-
})), 1)])]))), 128))])])) : (u(), _("div", H, [i("div",
|
|
106
|
+
})), 1)])]))), 128))])])) : (u(), _("div", H, [i("div", Q, [i("div", W, [g(l, {
|
|
107
107
|
modelValue: a.value,
|
|
108
108
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => a.value = e),
|
|
109
109
|
autofocus: "",
|
|
@@ -111,8 +111,8 @@ const H = {
|
|
|
111
111
|
placeholder: n(s)("menu.common.labels.search_placeholder", {
|
|
112
112
|
type: n(s)("menu.category.title")
|
|
113
113
|
})
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"])])]), g(
|
|
115
|
-
default:
|
|
114
|
+
}, null, 8, ["modelValue", "placeholder"])])]), g(J, null, {
|
|
115
|
+
default: K(() => [g(t, {
|
|
116
116
|
"column-defs": x.value,
|
|
117
117
|
draggable: !0,
|
|
118
118
|
"page-size": d.value.length,
|
|
@@ -121,16 +121,16 @@ const H = {
|
|
|
121
121
|
"shrink-at": !1,
|
|
122
122
|
"hide-footer": "",
|
|
123
123
|
"pin-header-row": "",
|
|
124
|
-
onDndChanged:
|
|
124
|
+
onDndChanged: D
|
|
125
125
|
}, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
|
|
126
126
|
_: 1
|
|
127
127
|
})]));
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
}), pe = /* @__PURE__ */
|
|
130
|
+
}), pe = /* @__PURE__ */ S({
|
|
131
131
|
__name: "Category",
|
|
132
|
-
setup(
|
|
133
|
-
const f =
|
|
132
|
+
setup(T) {
|
|
133
|
+
const f = $(), y = M(), h = F(y), p = B(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
|
|
134
134
|
function d() {
|
|
135
135
|
v.create();
|
|
136
136
|
}
|