@feedmepos/mf-menu 0.32.17 → 0.32.18-dev.1
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-Cfl37TTw.js +152661 -0
- package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
- package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
- package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
- package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
- package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
- package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
- package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
- package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
- package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
- package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
- package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
- package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
- package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
- package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
- package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
- package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
- package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
- package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
- package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
- package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
- package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
- package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
- package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
- package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
- package/dist/app.js +4 -5
- package/dist/apps/mf-menu/src/app.d.ts +1 -2
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
- package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
- package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
- package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
- package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
- package/dist/dayjs.min-DNPTnUFp.js +6 -0
- package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
- package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
- package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
- package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
- package/package.json +1 -1
- package/dist/App-BiSEuDkd.js +0 -13484
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-5fxKLAzS.js +0 -8163
- package/dist/app-nTzkERJW.js +0 -68
- package/dist/catalog-BO2nXwe5.js +0 -199
- package/dist/category-CuG3DsGL.js +0 -156
- package/dist/check-C9mY6LiX.js +0 -9
- package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
- package/dist/currency-DxC5zyZB.js +0 -7
- package/dist/dayjs.min-BvFUSPWD.js +0 -6
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-B0nhvuxR.js +0 -273
- package/dist/index-C2zPvt64.js +0 -239
- package/dist/index-C36JQix-.js +0 -246
- package/dist/index-CisutoS9.js +0 -156
- package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
- package/dist/item-K01xd1Z0.js +0 -6868
- package/dist/menuV2-DKE-xanq.js +0 -1052
- package/dist/object-DVUNCr7w.js +0 -16
- package/dist/priceTier-Beavb91W.js +0 -87
- package/dist/search-BAPEUu1R.js +0 -15
- package/dist/string-DpfFixWH.js +0 -4
- package/dist/subcategory-DnslmmRD.js +0 -148
- package/dist/tooltip-B5BiPMx9.js +0 -32
- package/dist/vuedraggable-CK8z7qA8.js +0 -1728
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as F, Fragment as K, renderSlot as be, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as xe, toDisplayString as N, markRaw as
|
|
1
|
+
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as F, Fragment as K, renderSlot as be, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as xe, toDisplayString as N, markRaw as ke, toRaw as Ce, h as J, withModifiers as Q, normalizeClass as he } from "vue";
|
|
2
2
|
import { useRouter as Fe } from "vue-router";
|
|
3
|
-
import { u as pe,
|
|
3
|
+
import { a0 as Oe, u as pe, e as M, d as fe, a as ge, l as re, i as Me, G as Ve, a8 as le, b as De, c as te, m as ve, a9 as Se, aa as ie, _ as Te, R as ce } from "./App-Cfl37TTw.js";
|
|
4
4
|
import { useI18n as ue, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
5
|
-
import { useSnackbar as ye, components as ne, FmButtonVariant as W, FmButtonColorThemeVariant as Z, useDialog as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import {
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js";
|
|
11
|
-
import { c as Ee } from "./check-C9mY6LiX.js";
|
|
12
|
-
import { C as B, a as P } from "./catalogSetting-BHgsBDTl.js";
|
|
13
|
-
import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
14
|
-
import { C as Ne } from "./catalog-BO2nXwe5.js";
|
|
5
|
+
import { useSnackbar as ye, components as ne, FmButtonVariant as W, FmButtonColorThemeVariant as Z, useDialog as Ue, useBreakpoints as we } from "@feedmepos/ui-library";
|
|
6
|
+
import { _ as Ee } from "./app-Z0KWH9-d.js";
|
|
7
|
+
import { _ as me, a as Ae } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js";
|
|
8
|
+
import { C as B, a as P } from "./catalogSetting-Bf66H-j7.js";
|
|
9
|
+
import { _ as Ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
15
10
|
const Re = /* @__PURE__ */ se({
|
|
16
11
|
__name: "CatalogUsageTable",
|
|
17
12
|
props: {
|
|
@@ -44,7 +39,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
44
39
|
}, {
|
|
45
40
|
header: () => o("div", {
|
|
46
41
|
class: "w-full flex justify-between"
|
|
47
|
-
}, [o("p", null, [d("menu.catalog.usage.usage")]), o(
|
|
42
|
+
}, [o("p", null, [d("menu.catalog.usage.usage")]), o(Oe, {
|
|
48
43
|
label: `${d("menu.catalog.usage.products", {
|
|
49
44
|
count: D.catalog.totalProducts
|
|
50
45
|
})}`,
|
|
@@ -55,17 +50,17 @@ const Re = /* @__PURE__ */ se({
|
|
|
55
50
|
cell: ({
|
|
56
51
|
row: y
|
|
57
52
|
}) => {
|
|
58
|
-
const
|
|
53
|
+
const k = y.original.usage.join(", ") || "--";
|
|
59
54
|
return o("p", {
|
|
60
55
|
class: "flex py-8"
|
|
61
|
-
}, [
|
|
56
|
+
}, [k]);
|
|
62
57
|
},
|
|
63
58
|
enableSorting: !1,
|
|
64
59
|
meta: {
|
|
65
60
|
headerClass: "px-16 py-4"
|
|
66
61
|
}
|
|
67
62
|
}];
|
|
68
|
-
return (y,
|
|
63
|
+
return (y, k) => {
|
|
69
64
|
const E = _("FmTable");
|
|
70
65
|
return p(), V(E, {
|
|
71
66
|
"column-defs": R,
|
|
@@ -84,22 +79,22 @@ const Re = /* @__PURE__ */ se({
|
|
|
84
79
|
__name: "Form",
|
|
85
80
|
setup(ee, { expose: D }) {
|
|
86
81
|
const d = G(!1), S = G(!1), R = (c, u) => {
|
|
87
|
-
|
|
82
|
+
De.isBoolean(c) ? d.value = c : d.value = !d.value, d.value && (r.value = B.fromCatalog(
|
|
88
83
|
u ?? re.generator.initMenuV4Catalog(),
|
|
89
84
|
y.value
|
|
90
85
|
));
|
|
91
|
-
}, y = x(() =>
|
|
86
|
+
}, y = x(() => k.version === M.F_MENU_VERSION.enum.v4), k = pe(), E = _e(), m = fe(ge(ye())), r = G(
|
|
92
87
|
B.fromCatalog(re.generator.initMenuV4Catalog(), y.value)
|
|
93
|
-
), ae = x(() =>
|
|
88
|
+
), ae = x(() => k.catalogs.map((c) => c.name)), j = x({
|
|
94
89
|
get: () => r.value.taxSetting,
|
|
95
90
|
set: (c) => {
|
|
96
91
|
r.value.taxSetting = c;
|
|
97
92
|
}
|
|
98
93
|
}), Y = x(() => {
|
|
99
|
-
var f,
|
|
94
|
+
var f, C;
|
|
100
95
|
if (!E.currentCountry.value) return [];
|
|
101
|
-
const c = ((f = r.value.taxSetting) == null ? void 0 : f.mode) === P.MANUAL ? ((
|
|
102
|
-
return
|
|
96
|
+
const c = ((f = r.value.taxSetting) == null ? void 0 : f.mode) === P.MANUAL ? ((C = r.value.taxSetting) == null ? void 0 : C.inclusive) ?? [] : [];
|
|
97
|
+
return Me.Country.getCountry(E.currentCountry.value).taxSystems.map((w) => {
|
|
103
98
|
const A = c.find(($) => $.systemCode === w.code);
|
|
104
99
|
return {
|
|
105
100
|
inclusive: (A == null ? void 0 : A.inclusive) || !1,
|
|
@@ -108,17 +103,17 @@ const Re = /* @__PURE__ */ se({
|
|
|
108
103
|
});
|
|
109
104
|
});
|
|
110
105
|
function L(c) {
|
|
111
|
-
const u = r.value.taxSetting, f = u.mode === P.AUTO ? B.manualTax(Y.value) :
|
|
106
|
+
const u = r.value.taxSetting, f = u.mode === P.AUTO ? B.manualTax(Y.value) : te(u);
|
|
112
107
|
f.inclusive ?? (f.inclusive = []);
|
|
113
|
-
const
|
|
114
|
-
|
|
108
|
+
const C = f.inclusive.findIndex((w) => w.systemCode === c.systemCode);
|
|
109
|
+
C < 0 ? f.inclusive.push(c) : f.inclusive.splice(C, 1, c), j.value = f;
|
|
115
110
|
}
|
|
116
111
|
function U(c, u) {
|
|
117
|
-
const f =
|
|
112
|
+
const f = te(r.value);
|
|
118
113
|
f.markupOptions && (f.markupOptions[c] = u, r.value = f);
|
|
119
114
|
}
|
|
120
115
|
function q(c) {
|
|
121
|
-
const u =
|
|
116
|
+
const u = te(r.value);
|
|
122
117
|
u.markupOptions && (u.markupOptions.splice(c, 1), r.value = u);
|
|
123
118
|
}
|
|
124
119
|
async function H() {
|
|
@@ -142,7 +137,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
142
137
|
}
|
|
143
138
|
const { t: i } = ue();
|
|
144
139
|
return D({ trigger: R }), (c, u) => {
|
|
145
|
-
const f = _("fm-text-field"),
|
|
140
|
+
const f = _("fm-text-field"), C = _("fm-radio"), w = _("fm-radio-group"), A = _("fm-checkbox"), $ = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), O = _("fm-card"), I = _("fm-side-sheet");
|
|
146
141
|
return p(), F(K, null, [
|
|
147
142
|
be(c.$slots, "default", { trigger: R }),
|
|
148
143
|
o(I, {
|
|
@@ -174,7 +169,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
174
169
|
]),
|
|
175
170
|
default: g(() => [
|
|
176
171
|
v("div", Le, [
|
|
177
|
-
o(
|
|
172
|
+
o(Ve, {
|
|
178
173
|
title: e(i)("menu.catalog.detail")
|
|
179
174
|
}, {
|
|
180
175
|
default: g(() => [
|
|
@@ -188,7 +183,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
188
183
|
autofocus: "",
|
|
189
184
|
label: e(i)("menu.catalog.form.name")
|
|
190
185
|
}, null, 8, ["modelValue", "rules", "label"]),
|
|
191
|
-
o(
|
|
186
|
+
o(le, {
|
|
192
187
|
label: e(i)("menu.catalog.form.tax.title")
|
|
193
188
|
}, {
|
|
194
189
|
default: g(() => {
|
|
@@ -201,12 +196,12 @@ const Re = /* @__PURE__ */ se({
|
|
|
201
196
|
})
|
|
202
197
|
}, {
|
|
203
198
|
default: g(() => [
|
|
204
|
-
o(
|
|
199
|
+
o(C, {
|
|
205
200
|
value: e(P).AUTO,
|
|
206
201
|
label: e(i)("menu.catalog.form.tax.auto.label"),
|
|
207
202
|
sublabel: e(i)("menu.catalog.form.tax.auto.sublabel")
|
|
208
203
|
}, null, 8, ["value", "label", "sublabel"]),
|
|
209
|
-
o(
|
|
204
|
+
o(C, {
|
|
210
205
|
value: e(P).MANUAL,
|
|
211
206
|
label: e(i)("menu.catalog.form.tax.manual.label"),
|
|
212
207
|
sublabel: e(i)("menu.catalog.form.tax.manual.sublabel")
|
|
@@ -235,7 +230,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
235
230
|
]),
|
|
236
231
|
_: 1
|
|
237
232
|
}, 8, ["title"]),
|
|
238
|
-
y.value ? (p(), V(
|
|
233
|
+
y.value ? (p(), V(le, {
|
|
239
234
|
key: 0,
|
|
240
235
|
label: e(i)("menu.catalog.form.link.title")
|
|
241
236
|
}, {
|
|
@@ -266,7 +261,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
266
261
|
]),
|
|
267
262
|
_: 1
|
|
268
263
|
}, 8, ["label"])) : z("", !0),
|
|
269
|
-
y.value ? (p(), V(
|
|
264
|
+
y.value ? (p(), V(le, {
|
|
270
265
|
key: 1,
|
|
271
266
|
label: e(i)("menu.catalog.form.markup.title")
|
|
272
267
|
}, {
|
|
@@ -280,8 +275,8 @@ const Re = /* @__PURE__ */ se({
|
|
|
280
275
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
281
276
|
v("div", Ie, [
|
|
282
277
|
o(me, {
|
|
283
|
-
categories: e(
|
|
284
|
-
items: e(
|
|
278
|
+
categories: e(k).categories,
|
|
279
|
+
items: e(k).items,
|
|
285
280
|
action: "add",
|
|
286
281
|
"onUpdate:modelValue": u[5] || (u[5] = (t) => t && (r.value.markupOptions = [...r.value.markupOptions ?? [], t]))
|
|
287
282
|
}, {
|
|
@@ -299,8 +294,8 @@ const Re = /* @__PURE__ */ se({
|
|
|
299
294
|
}, 8, ["categories", "items"]),
|
|
300
295
|
(p(!0), F(K, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
|
|
301
296
|
key: b,
|
|
302
|
-
categories: e(
|
|
303
|
-
items: e(
|
|
297
|
+
categories: e(k).categories,
|
|
298
|
+
items: e(k).items,
|
|
304
299
|
"model-value": t,
|
|
305
300
|
action: "update",
|
|
306
301
|
"onUpdate:modelValue": (n) => n && U(b, n)
|
|
@@ -342,7 +337,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
342
337
|
]),
|
|
343
338
|
_: 1
|
|
344
339
|
}, 8, ["label"])) : z("", !0),
|
|
345
|
-
o(
|
|
340
|
+
o(Ae, {
|
|
346
341
|
modelValue: r.value,
|
|
347
342
|
"onUpdate:modelValue": u[6] || (u[6] = (t) => r.value = t),
|
|
348
343
|
"is-main-catalog": !1,
|
|
@@ -383,10 +378,10 @@ const Re = /* @__PURE__ */ se({
|
|
|
383
378
|
}, na = {
|
|
384
379
|
key: 0,
|
|
385
380
|
class: "space-y-24"
|
|
386
|
-
}, oe = "main",
|
|
381
|
+
}, oe = "main", ga = /* @__PURE__ */ se({
|
|
387
382
|
__name: "Catalog",
|
|
388
383
|
setup(ee) {
|
|
389
|
-
const D = _e(), d = pe(), S = ye(), R = ge(S), y =
|
|
384
|
+
const D = _e(), d = pe(), S = ye(), R = ge(S), y = Ue(), k = fe(R), E = Fe(), {
|
|
390
385
|
t: m
|
|
391
386
|
} = ue(), r = x(() => {
|
|
392
387
|
const s = {};
|
|
@@ -455,12 +450,12 @@ const Re = /* @__PURE__ */ se({
|
|
|
455
450
|
// trying to wrap it again. Object.freeze on a reactive proxy caused runtime
|
|
456
451
|
// errors with read-only property traps ("get on proxy: property 'override' ...").
|
|
457
452
|
// markRaw ensures the catalog snapshot stays non-reactive here without those errors.
|
|
458
|
-
doc: Ce(
|
|
453
|
+
doc: ke(Ce(l)),
|
|
459
454
|
disableDelete: !1,
|
|
460
455
|
defaultOrderFrom: l.defaultOrderFrom
|
|
461
456
|
}))].map((l) => {
|
|
462
457
|
var t;
|
|
463
|
-
const O = Y(((t = l.doc) == null ? void 0 : t._id) || null), I = l.doc ?
|
|
458
|
+
const O = Y(((t = l.doc) == null ? void 0 : t._id) || null), I = l.doc ? Se.getSellingItem(l.doc, ae.value) : d.state.menu.modules.item;
|
|
464
459
|
return {
|
|
465
460
|
...l,
|
|
466
461
|
taxMode: l.taxes ? "Manual" : "Automatic",
|
|
@@ -487,7 +482,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
487
482
|
name: `${s.name} copy`
|
|
488
483
|
});
|
|
489
484
|
}
|
|
490
|
-
async function
|
|
485
|
+
async function C(s) {
|
|
491
486
|
const a = d.state.restaurants.filter((l) => [...l.additionalCatalogs, l.inHouseDelivery, ...l.linkedDeliveryCatalogs.map((O) => O.catalog), l.pickupCatalog, l.takeawayCatalog, l.catalogId].includes(s.id)).map((l) => l.name);
|
|
492
487
|
a.length > 0 ? S.open({
|
|
493
488
|
type: "error",
|
|
@@ -509,7 +504,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
509
504
|
close: !0
|
|
510
505
|
}
|
|
511
506
|
}).onPrimary(async () => {
|
|
512
|
-
await
|
|
507
|
+
await k.updateMenu({
|
|
513
508
|
module: M.F_MENU_MODULE_V4_KEY.enum.catalog,
|
|
514
509
|
operation: ve.F_OPERATION_TYPE.delete,
|
|
515
510
|
data: s.id
|
|
@@ -562,14 +557,14 @@ const Re = /* @__PURE__ */ se({
|
|
|
562
557
|
variant: "tertiary",
|
|
563
558
|
textColor: "neutral-gray-400",
|
|
564
559
|
onClick: Q(async () => {
|
|
565
|
-
await
|
|
560
|
+
await C(a);
|
|
566
561
|
}, ["stop", "prevent"])
|
|
567
562
|
})]);
|
|
568
563
|
}
|
|
569
|
-
}]), A =
|
|
564
|
+
}]), A = we(), $ = x(() => A.breakpoints.value.xs);
|
|
570
565
|
return (s, a) => {
|
|
571
566
|
const l = _("fm-button"), O = _("FmSearch"), I = _("FmTable"), t = _("FmButton"), b = _("fm-side-sheet");
|
|
572
|
-
return p(), V(
|
|
567
|
+
return p(), V(Ne, {
|
|
573
568
|
heading: e(m)("menu.catalog.title")
|
|
574
569
|
}, {
|
|
575
570
|
"append-heading": g(() => [H.value.length > 0 ? (p(), V(e(de), {
|
|
@@ -592,7 +587,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
592
587
|
}, null, 8, ["label", "onClick"])])]),
|
|
593
588
|
_: 1
|
|
594
589
|
}, 512)) : z("", !0)]),
|
|
595
|
-
default: g(() => [H.value.length === 0 ? (p(), V(e(
|
|
590
|
+
default: g(() => [H.value.length === 0 ? (p(), V(e(Te), {
|
|
596
591
|
key: 0,
|
|
597
592
|
subtitle: e(m)("menu.catalog.empty.subtitle"),
|
|
598
593
|
title: e(m)("menu.catalog.empty.title")
|
|
@@ -631,7 +626,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
631
626
|
"text-color": e(Z).NeutralGray400,
|
|
632
627
|
variant: e(W).Tertiary,
|
|
633
628
|
"prepend-icon": "delete",
|
|
634
|
-
onClick: Q((h) =>
|
|
629
|
+
onClick: Q((h) => C(n), ["stop"])
|
|
635
630
|
}, null, 8, ["text-color", "variant", "onClick"])])], 8, Xe))), 128))])])) : (p(), F("div", Ye, [v("div", He, [v("div", We, [o(O, {
|
|
636
631
|
modelValue: U.value,
|
|
637
632
|
"onUpdate:modelValue": a[1] || (a[1] = (n) => U.value = n),
|
|
@@ -640,7 +635,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
640
635
|
placeholder: e(m)("menu.common.labels.search_placeholder", {
|
|
641
636
|
type: e(m)("menu.catalog.title")
|
|
642
637
|
})
|
|
643
|
-
}, null, 8, ["modelValue", "placeholder"])])]), o(
|
|
638
|
+
}, null, 8, ["modelValue", "placeholder"])])]), o(Ee, null, {
|
|
644
639
|
default: g(() => [o(I, {
|
|
645
640
|
"column-defs": w.value,
|
|
646
641
|
"row-data": i.value,
|
|
@@ -671,5 +666,5 @@ const Re = /* @__PURE__ */ se({
|
|
|
671
666
|
}
|
|
672
667
|
});
|
|
673
668
|
export {
|
|
674
|
-
|
|
669
|
+
ga as default
|
|
675
670
|
};
|