@feedmepos/mf-menu 0.32.37 → 0.32.38-dev.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/{App-Dl-BiHwh.js → App-Cfc6q7R4.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BXtuSeAK.js} +3 -3
- package/dist/{Catalog-BSZ8BAbX.js → Catalog-BwWG8aVq.js} +6 -6
- package/dist/Category-CTSxrlD3.js +224 -0
- package/dist/{Category-bGvXpr0F.js → Category-lIONtEO5.js} +9 -9
- package/dist/{CookingGuide-DijUR2JM.js → CookingGuide-Ba6fLxDH.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B30t_PW1.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BDUxrr9V.js} +1 -1
- package/dist/{Group-CrqE40ia.js → Group-Bs1GXOJ6.js} +7 -7
- package/dist/{Group-O4L3iHx0.js → Group-C577jf-a.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js → Group.vue_vue_type_script_setup_true_lang-DwIQSBka.js} +227 -216
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BGR4kFzj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DC41D4_B.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-wf0Wm51b.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DydOyrWz.js} +1743 -1743
- package/dist/{Ingredient-DvvuwOdH.js → Ingredient-DMdt_R8F.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-anFCPZZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DExCzIH7.js} +2 -2
- package/dist/{LinkProductSideSheet-ImK8azTA.js → LinkProductSideSheet-C5EJF94w.js} +3 -3
- package/dist/{MenuSetting-BX0ohmwF.js → MenuSetting-DWPluEWH.js} +5 -5
- package/dist/{PrintRoute-CXYZHJsf.js → PrintRoute-BmebtmN5.js} +4 -4
- package/dist/{Product-BnnwL5DZ.js → Product-D2GO3tYo.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DUBnQJZ1.js → Product.vue_vue_type_script_setup_true_lang-r6xF3HkK.js} +348 -337
- package/dist/{ProductInternalTools-DzRnmE1r.js → ProductInternalTools-Dep9C9sT.js} +23 -23
- package/dist/{Products-CtzHONQZ.js → Products-kXzyZ-qw.js} +24 -24
- package/dist/{Publish-DmIbDy8-.js → Publish-DiFxcujy.js} +3 -3
- package/dist/{Recipe-D_0Ezt1C.js → Recipe-Bb0_R7pY.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js → RuleView.vue_vue_type_script_setup_true_lang-BZi9zjue.js} +176 -176
- package/dist/{Scheduler-BgQsbdVM.js → Scheduler-BosF_svj.js} +3 -3
- package/dist/{ServingSequence-DCRzJsrs.js → ServingSequence-Ka7ZszUb.js} +3 -3
- package/dist/{Setting-CgtttPN_.js → Setting-ZZ-N5_ht.js} +5 -5
- package/dist/Subcategory-BGCzSst1.js +345 -0
- package/dist/{Takeaway-BfcHs1we.js → Takeaway-CILmyRDs.js} +1 -1
- package/dist/{Takeaway-CExKsbN5.js → Takeaway-Daa_CJ-H.js} +4 -4
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-B1jejzX7.js +316 -0
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Br279NC_.js → Thumbnail.vue_vue_type_script_setup_true_lang-CCBa35X7.js} +4 -4
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-PbYAxItr.js +185 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-j4xROEG7.js +6122 -0
- package/dist/{Unit-B6P_ykM-.js → Unit-D21SP540.js} +2 -2
- package/dist/Variant-BDf9DDmG.js +247 -0
- package/dist/{_id_-D2ozS9Ck.js → _id_-R8SE-ZmQ.js} +9 -9
- package/dist/app-BASWdzxI.js +363 -0
- package/dist/{app-DqyNXgYz.js → app-CqvEAGdq.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +264 -0
- package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +41 -0
- package/dist/apps/mf-menu/src/components/TranslationBadge.vue.d.ts +29 -0
- package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +39 -0
- package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/ProductOverrideTranslation.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +8 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +24 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +125 -1
- package/dist/apps/mf-menu/src/components/feature/VariantManager/ProductVariantTranslation.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +16 -0
- package/dist/apps/mf-menu/src/helper/item.d.ts +1 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +11 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +125 -1
- package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +125 -1
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +8 -2
- package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +125 -1
- package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +6 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +31 -1
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +16 -0
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +9 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +125 -1
- package/dist/apps/mf-menu/src/utils/translation.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +46 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +10 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-Cq9TLj-4.js +13 -0
- package/dist/assets/menu-export-Blxjlc7o.js +107 -0
- package/dist/assets/override-menu-Cny8YlWs.js +13 -0
- package/dist/assets/validate-menu-CAWtxE9g.js +13 -0
- package/dist/{catalog-CFKVaXk7.js → catalog-D1ldj55y.js} +1 -1
- package/dist/{catalogSetting-N4nT-nGm.js → catalogSetting-DdCMyQ1n.js} +1 -1
- package/dist/{currency-Bi_GukGE.js → currency-CozWj5-6.js} +1 -1
- package/dist/dayjs.min-DjVUMZe1.js +6 -0
- package/dist/{index-uiJS0BKT.js → index-B3uidhol.js} +1 -1
- package/dist/index-CZ2slj-T.js +539 -0
- package/dist/index-Cw3iqI80.js +335 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CL6a622s.js → index.vue_vue_type_script_setup_true_lang-BMBAQiGH.js} +19063 -18861
- package/dist/item-ncimpz9a.js +8120 -0
- package/dist/{jszip.min-v__o3BM4.js → jszip.min-DaMSaZr3.js} +383 -383
- package/dist/{menu-LtIuM7Qj.js → menu-Cb5CM_BJ.js} +1 -1
- package/dist/{menuV2-N0hB53Gw.js → menuV2-2B1i4-4v.js} +24 -24
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DZeAvlXs.js → priceTier-H4TWDspA.js} +1 -1
- package/dist/rules-aP3AB4aS.js +212 -0
- package/dist/{scheduler-FVlscyjB.js → scheduler-CnQo8MiW.js} +4 -4
- package/dist/{toExcel-DBCbupeI.js → toExcel-C99U873x.js} +2 -2
- package/dist/translation-BeqjfyEb.js +75 -0
- package/dist/{unit-DNphv-4C.js → unit-DiCr5V9I.js} +2 -2
- package/package.json +3 -3
- package/dist/Category-DMgNea31.js +0 -392
- package/dist/Subcategory-6SgvwWpX.js +0 -280
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-GAZ3S2_n.js +0 -305
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFwMfAlB.js +0 -6024
- package/dist/Variant-DmNuLi96.js +0 -230
- package/dist/app-CE0yoao0.js +0 -363
- package/dist/assets/linked-status-BB6BrSUB.js +0 -13
- package/dist/assets/menu-export-C1TBcoi-.js +0 -107
- package/dist/assets/override-menu-C0RijOOI.js +0 -13
- package/dist/assets/validate-menu-9VpR7oZY.js +0 -13
- package/dist/category-BSGaVgyv.js +0 -156
- package/dist/dayjs.min-DgXlcVSD.js +0 -6
- package/dist/index-BaxQ5Nq0.js +0 -273
- package/dist/index-Bun2EboK.js +0 -239
- package/dist/item-DPivBmJh.js +0 -6950
- package/dist/rules-CIWTZQfh.js +0 -6
- package/dist/subcategory-CIctYwBF.js +0 -148
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as A, unref as l, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { M as s, A as u, u as F } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
|
|
3
|
-
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
|
-
import { useDialogChild as O } from "@feedmepos/ui-library";
|
|
5
|
-
const y = /* @__PURE__ */ M({
|
|
6
|
-
__name: "AddCategoryDialogContentComponent",
|
|
7
|
-
props: {
|
|
8
|
-
initialValue: {}
|
|
9
|
-
},
|
|
10
|
-
setup(n) {
|
|
11
|
-
const r = n, { t } = E();
|
|
12
|
-
_(
|
|
13
|
-
() => r.initialValue,
|
|
14
|
-
(m) => {
|
|
15
|
-
i.value = m ?? "";
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
const i = f(r.initialValue), { emitData: d, emitAction: p } = O();
|
|
19
|
-
return _(
|
|
20
|
-
i,
|
|
21
|
-
(m) => {
|
|
22
|
-
d(m);
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
immediate: !0
|
|
26
|
-
}
|
|
27
|
-
), (m, e) => {
|
|
28
|
-
const o = g("fm-text-field"), a = g("FmForm");
|
|
29
|
-
return A(), x(a, {
|
|
30
|
-
onValidationSuccess: e[1] || (e[1] = (c) => l(p)("primary"))
|
|
31
|
-
}, {
|
|
32
|
-
default: C(() => [
|
|
33
|
-
V(o, {
|
|
34
|
-
modelValue: i.value,
|
|
35
|
-
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.value = c),
|
|
36
|
-
rules: [(c) => !!c || l(t)("menu.category.dialog.add.name.required")],
|
|
37
|
-
autofocus: "",
|
|
38
|
-
label: l(t)("menu.category.dialog.add.name.label"),
|
|
39
|
-
placeholder: l(t)("menu.category.dialog.add.name.placeholder")
|
|
40
|
-
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}), T = ({
|
|
47
|
-
dialog: n,
|
|
48
|
-
menuLoader: r
|
|
49
|
-
}) => {
|
|
50
|
-
const { t } = E();
|
|
51
|
-
function i() {
|
|
52
|
-
const { updateMenu: e } = r, o = f(!1);
|
|
53
|
-
n.open({
|
|
54
|
-
title: t("menu.category.manager.dialog.add.title"),
|
|
55
|
-
contentComponent: y,
|
|
56
|
-
primaryActions: {
|
|
57
|
-
text: t("menu.category.manager.dialog.add.action"),
|
|
58
|
-
close: !1,
|
|
59
|
-
isLoading: o
|
|
60
|
-
},
|
|
61
|
-
secondaryActions: {
|
|
62
|
-
text: t("menu.common.actions.cancel"),
|
|
63
|
-
close: !0
|
|
64
|
-
}
|
|
65
|
-
}).onPrimary(async (a) => {
|
|
66
|
-
if (a)
|
|
67
|
-
try {
|
|
68
|
-
o.value = !0, await e(
|
|
69
|
-
{
|
|
70
|
-
module: u.F_MENU_MODULE_V4_KEY.enum.category,
|
|
71
|
-
operation: s.F_OPERATION_TYPE.create,
|
|
72
|
-
data: {
|
|
73
|
-
name: a,
|
|
74
|
-
position: F().categories.length
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
a
|
|
78
|
-
), n.close();
|
|
79
|
-
} finally {
|
|
80
|
-
o.value = !1;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function d(e) {
|
|
85
|
-
const { updateMenu: o } = r;
|
|
86
|
-
n.open({
|
|
87
|
-
title: t("menu.category.manager.dialog.update.title"),
|
|
88
|
-
contentComponent: y,
|
|
89
|
-
contentComponentProps: {
|
|
90
|
-
initialValue: e.name
|
|
91
|
-
},
|
|
92
|
-
primaryActions: {
|
|
93
|
-
text: t("menu.category.manager.dialog.update.action"),
|
|
94
|
-
close: !1
|
|
95
|
-
},
|
|
96
|
-
secondaryActions: {
|
|
97
|
-
text: t("menu.common.actions.cancel"),
|
|
98
|
-
close: !0
|
|
99
|
-
}
|
|
100
|
-
}).onPrimary(async (a) => {
|
|
101
|
-
a && (await o(
|
|
102
|
-
{
|
|
103
|
-
module: u.F_MENU_MODULE_V4_KEY.enum.category,
|
|
104
|
-
operation: s.F_OPERATION_TYPE.update,
|
|
105
|
-
data: { ...e, name: a ?? e.name }
|
|
106
|
-
},
|
|
107
|
-
a
|
|
108
|
-
), n.close());
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function p(e) {
|
|
112
|
-
const { updateMenu: o } = r;
|
|
113
|
-
n.open({
|
|
114
|
-
title: t("menu.common.dialog.remove.category.title"),
|
|
115
|
-
message: t("menu.common.dialog.remove.category.message", { name: e.name }),
|
|
116
|
-
primaryActions: {
|
|
117
|
-
text: t("menu.common.actions.remove"),
|
|
118
|
-
close: !1
|
|
119
|
-
},
|
|
120
|
-
secondaryActions: {
|
|
121
|
-
text: t("menu.common.actions.cancel"),
|
|
122
|
-
close: !0
|
|
123
|
-
}
|
|
124
|
-
}).onPrimary(async () => {
|
|
125
|
-
await o(
|
|
126
|
-
{
|
|
127
|
-
module: u.F_MENU_MODULE_V4_KEY.enum.category,
|
|
128
|
-
operation: s.F_OPERATION_TYPE.delete,
|
|
129
|
-
data: e._id
|
|
130
|
-
},
|
|
131
|
-
e.name,
|
|
132
|
-
!0
|
|
133
|
-
), n.close();
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
async function m(e) {
|
|
137
|
-
await r.updateMenu(
|
|
138
|
-
{
|
|
139
|
-
module: u.F_MENU_MODULE_V4_KEY.enum.category,
|
|
140
|
-
operation: s.F_OPERATION_TYPE.rearrange,
|
|
141
|
-
data: e
|
|
142
|
-
},
|
|
143
|
-
"Categories"
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
return {
|
|
147
|
-
create: i,
|
|
148
|
-
update: d,
|
|
149
|
-
deleteCategory: p,
|
|
150
|
-
rearrange: m
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
export {
|
|
154
|
-
y as _,
|
|
155
|
-
T as u
|
|
156
|
-
};
|
package/dist/index-BaxQ5Nq0.js
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { B as S, A, u as K, I as O, D as q, J as R } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
|
|
2
|
-
import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as P, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as D, withCtx as g, renderSlot as U, createElementBlock as W, Fragment as j, createVNode as c, unref as i, createElementVNode as C, createCommentVNode as H, toDisplayString as J } from "vue";
|
|
3
|
-
import { useI18n as I } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as Y } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js";
|
|
6
|
-
import { u as G } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js";
|
|
8
|
-
import { c as X } from "./check-C9mY6LiX.js";
|
|
9
|
-
import { f as ee } from "./currency-Bi_GukGE.js";
|
|
10
|
-
import { c as ae } from "./string-DpfFixWH.js";
|
|
11
|
-
const te = /* @__PURE__ */ T({
|
|
12
|
-
__name: "CurrencyInput",
|
|
13
|
-
props: {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
label: {},
|
|
16
|
-
placeholder: {},
|
|
17
|
-
nullable: { type: Boolean },
|
|
18
|
-
showCurrency: { type: Boolean },
|
|
19
|
-
min: {},
|
|
20
|
-
max: {},
|
|
21
|
-
required: { type: [Boolean, String] },
|
|
22
|
-
rules: {},
|
|
23
|
-
disable: { type: Boolean },
|
|
24
|
-
minLength: {},
|
|
25
|
-
maxLength: {},
|
|
26
|
-
inputmode: {},
|
|
27
|
-
type: {},
|
|
28
|
-
readonly: { type: Boolean },
|
|
29
|
-
labelMark: {},
|
|
30
|
-
prependIcon: {},
|
|
31
|
-
appendIcon: {},
|
|
32
|
-
showValidBorder: { type: Boolean },
|
|
33
|
-
labelInfo: {},
|
|
34
|
-
showWordCount: { type: Boolean },
|
|
35
|
-
invalid: { type: Boolean },
|
|
36
|
-
autofocus: { type: Boolean },
|
|
37
|
-
formatter: { type: Function },
|
|
38
|
-
decimal: {},
|
|
39
|
-
datalist: {},
|
|
40
|
-
shiftDatalist: { type: Boolean },
|
|
41
|
-
datalistMaxHeight: {},
|
|
42
|
-
datalistMinHeight: {},
|
|
43
|
-
offsetDatalist: {},
|
|
44
|
-
datalistPlacement: {},
|
|
45
|
-
datalistZIndex: {},
|
|
46
|
-
datalistWidth: {},
|
|
47
|
-
disabled: { type: Boolean },
|
|
48
|
-
focused: { type: Boolean },
|
|
49
|
-
helperText: {},
|
|
50
|
-
helperState: {}
|
|
51
|
-
},
|
|
52
|
-
emits: ["update:model-value"],
|
|
53
|
-
setup(y, { emit: m }) {
|
|
54
|
-
const a = y, { t: n } = I(), d = f(!1), v = f(!1), r = f(), x = B(() => a.modelValue ? (v.value && !d.value && (d.value = !0), S.Dinero.fromFdoDinero(a.modelValue).toUnit().toFixed(2)) : "");
|
|
55
|
-
L(
|
|
56
|
-
() => v.value,
|
|
57
|
-
(e) => {
|
|
58
|
-
var t, l, o, E, w;
|
|
59
|
-
e ? (l = (t = r.value) == null ? void 0 : t.inputEl) == null || l.select() : (d.value = !1, (o = r.value) != null && o.inputEl && k((w = (E = r.value) == null ? void 0 : E.inputEl) == null ? void 0 : w.value));
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
const V = m, u = B(() => typeof a.required == "string" ? a.required : n("menu.common.validation.field_required", {
|
|
63
|
-
field: a.label ?? n("menu.currency.input.field")
|
|
64
|
-
})), b = [
|
|
65
|
-
(e) => a.required ? !!e || u.value : !0,
|
|
66
|
-
(e) => a.min !== void 0 && e && parseFloat(e.toString()) < a.min ? n("menu.common.validation.min_value", { value: a.min }) : !0,
|
|
67
|
-
(e) => a.max !== void 0 && e && parseFloat(e.toString()) > a.max ? n("menu.common.validation.max_value", { value: a.max }) : !0,
|
|
68
|
-
...a.rules ?? []
|
|
69
|
-
];
|
|
70
|
-
function k(e) {
|
|
71
|
-
if (typeof e != "number" && !e && a.nullable)
|
|
72
|
-
V("update:model-value", void 0);
|
|
73
|
-
else {
|
|
74
|
-
if (typeof e == "string" && e === "-")
|
|
75
|
-
return;
|
|
76
|
-
let t = parseFloat((e || "").toString());
|
|
77
|
-
t = Number.isNaN(t) ? 0 : t, V("update:model-value", S.Dinero.fromNumber({ number: t }).toObject());
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
const s = B(() => typeof a.min == "number" && a.min >= 0), _ = (e) => {
|
|
81
|
-
var t, l, o;
|
|
82
|
-
if (!(e.ctrlKey || e.metaKey)) {
|
|
83
|
-
if (e.key === "Enter") {
|
|
84
|
-
(t = r.value) != null && t.inputEl && k((o = (l = r.value) == null ? void 0 : l.inputEl) == null ? void 0 : o.value);
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (e.key === "-" && s.value) {
|
|
88
|
-
e.preventDefault();
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
e.key >= "0" && e.key <= "9" || e.key === "." || e.key === "," || e.key === "-" || e.key === "Backspace" || e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "Tab" || e.preventDefault();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return z(() => {
|
|
95
|
-
var e;
|
|
96
|
-
r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
|
|
97
|
-
}), P(() => {
|
|
98
|
-
var e;
|
|
99
|
-
r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", _));
|
|
100
|
-
}), (e, t) => {
|
|
101
|
-
const l = F("fm-text-field");
|
|
102
|
-
return M(), N(l, {
|
|
103
|
-
ref_key: "inputRef",
|
|
104
|
-
ref: r,
|
|
105
|
-
autofocus: a.autofocus,
|
|
106
|
-
disabled: a.disable,
|
|
107
|
-
label: e.label,
|
|
108
|
-
"model-value": x.value,
|
|
109
|
-
placeholder: a.placeholder,
|
|
110
|
-
"prepend-icon": e.showCurrency ? "attach_money" : void 0,
|
|
111
|
-
rules: b,
|
|
112
|
-
inputmode: "decimal",
|
|
113
|
-
onFocusChanged: t[0] || (t[0] = (o) => v.value = o),
|
|
114
|
-
onWheel: t[1] || (t[1] = D(() => {
|
|
115
|
-
}, ["prevent"])),
|
|
116
|
-
onTouchmove: t[2] || (t[2] = D(() => {
|
|
117
|
-
}, ["prevent"])),
|
|
118
|
-
onScroll: t[3] || (t[3] = D(() => {
|
|
119
|
-
}, ["prevent"]))
|
|
120
|
-
}, {
|
|
121
|
-
append: g(() => [
|
|
122
|
-
U(e.$slots, "append")
|
|
123
|
-
]),
|
|
124
|
-
_: 3
|
|
125
|
-
}, 8, ["autofocus", "disabled", "label", "model-value", "placeholder", "prepend-icon"]);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
function be(y) {
|
|
130
|
-
return y.map((m) => ({
|
|
131
|
-
module: A.F_MENU_MODULE_V4_KEY.enum.item,
|
|
132
|
-
id: m._id,
|
|
133
|
-
discriminator: m.combinationKey,
|
|
134
|
-
data: void 0
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
|
-
const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, ne = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
|
|
138
|
-
__name: "Form",
|
|
139
|
-
props: {
|
|
140
|
-
action: {},
|
|
141
|
-
initialValue: {},
|
|
142
|
-
fallback: {},
|
|
143
|
-
applyProduct: { type: Boolean },
|
|
144
|
-
bindToVariant: { type: Boolean }
|
|
145
|
-
},
|
|
146
|
-
emits: ["update:takeaway"],
|
|
147
|
-
setup(y, { expose: m, emit: a }) {
|
|
148
|
-
const { t: n } = I(), d = y, v = a, r = K(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
|
|
149
|
-
X.isBoolean(l) ? u.value = l : u.value = !u.value;
|
|
150
|
-
};
|
|
151
|
-
function k() {
|
|
152
|
-
var o;
|
|
153
|
-
const l = {
|
|
154
|
-
...q.generator.initMenuV4Takeaway(),
|
|
155
|
-
usedBy: [],
|
|
156
|
-
...O(d.initialValue ?? {})
|
|
157
|
-
};
|
|
158
|
-
return (o = d.fallback) != null && o.price && (l.price = null), l;
|
|
159
|
-
}
|
|
160
|
-
const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = G(
|
|
161
|
-
() => !R.isEqual(
|
|
162
|
-
s.value,
|
|
163
|
-
d.initialValue || {
|
|
164
|
-
...q.generator.initMenuV4Takeaway(),
|
|
165
|
-
usedBy: []
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
() => u.value = !1
|
|
169
|
-
);
|
|
170
|
-
function t() {
|
|
171
|
-
v("update:takeaway", s.value), b(!1);
|
|
172
|
-
}
|
|
173
|
-
return L(
|
|
174
|
-
() => u.value,
|
|
175
|
-
() => {
|
|
176
|
-
u.value && (s.value = k());
|
|
177
|
-
}
|
|
178
|
-
), m({
|
|
179
|
-
trigger: b,
|
|
180
|
-
show: u
|
|
181
|
-
}), (l, o) => {
|
|
182
|
-
const E = F("fm-text-field"), w = F("fm-button"), $ = F("fm-side-sheet");
|
|
183
|
-
return M(), W(j, null, [
|
|
184
|
-
U(l.$slots, "default", { trigger: b }),
|
|
185
|
-
c($, {
|
|
186
|
-
id: "group-form",
|
|
187
|
-
modelValue: u.value,
|
|
188
|
-
"onUpdate:modelValue": o[4] || (o[4] = (p) => u.value = p),
|
|
189
|
-
"is-container": i(Y).FmForm,
|
|
190
|
-
"is-container-props": {
|
|
191
|
-
onValidationSuccess: t,
|
|
192
|
-
blameFormChildOnValidationFailed: !0
|
|
193
|
-
},
|
|
194
|
-
"max-width": 560,
|
|
195
|
-
"onOn:clickedAway": i(e)
|
|
196
|
-
}, {
|
|
197
|
-
"side-sheet-header": g(() => [
|
|
198
|
-
C("p", le, J(_.value), 1)
|
|
199
|
-
]),
|
|
200
|
-
"side-sheet-footer": g(() => [
|
|
201
|
-
C("div", ne, [
|
|
202
|
-
c(w, {
|
|
203
|
-
label: i(ae)(i(n)(`menu.common.actions.${l.action}`)),
|
|
204
|
-
loading: V.value,
|
|
205
|
-
size: "lg",
|
|
206
|
-
type: "submit",
|
|
207
|
-
variant: "primary"
|
|
208
|
-
}, null, 8, ["label", "loading"]),
|
|
209
|
-
c(w, {
|
|
210
|
-
label: i(n)("menu.common.actions.cancel"),
|
|
211
|
-
size: "lg",
|
|
212
|
-
variant: "tertiary",
|
|
213
|
-
onClick: o[3] || (o[3] = () => u.value = !1)
|
|
214
|
-
}, null, 8, ["label"])
|
|
215
|
-
])
|
|
216
|
-
]),
|
|
217
|
-
default: g(() => [
|
|
218
|
-
C("div", oe, [
|
|
219
|
-
c(Z, null, {
|
|
220
|
-
default: g(() => {
|
|
221
|
-
var p;
|
|
222
|
-
return [
|
|
223
|
-
c(E, {
|
|
224
|
-
modelValue: s.value.name,
|
|
225
|
-
"onUpdate:modelValue": o[0] || (o[0] = (h) => s.value.name = h),
|
|
226
|
-
disabled: !x.value.name,
|
|
227
|
-
rules: [
|
|
228
|
-
(h) => !!h || i(n)("menu.common.validation.required", {
|
|
229
|
-
field: i(n)("menu.takeaway.columns.title").toLowerCase()
|
|
230
|
-
})
|
|
231
|
-
],
|
|
232
|
-
autofocus: "",
|
|
233
|
-
label: i(n)("menu.takeaway.columns.title"),
|
|
234
|
-
placeholder: i(n)("menu.takeaway.placeholders.title"),
|
|
235
|
-
required: "",
|
|
236
|
-
title: i(n)("menu.takeaway.columns.title")
|
|
237
|
-
}, null, 8, ["modelValue", "disabled", "rules", "label", "placeholder", "title"]),
|
|
238
|
-
c(te, {
|
|
239
|
-
modelValue: s.value.price,
|
|
240
|
-
"onUpdate:modelValue": o[1] || (o[1] = (h) => s.value.price = h),
|
|
241
|
-
min: 0,
|
|
242
|
-
nullable: !!l.fallback,
|
|
243
|
-
placeholder: (p = l.fallback) != null && p.price ? i(ee)(l.fallback.price, !1) : void 0,
|
|
244
|
-
label: i(n)("menu.takeaway.columns.price"),
|
|
245
|
-
"show-currency": "",
|
|
246
|
-
title: i(n)("menu.takeaway.columns.price")
|
|
247
|
-
}, null, 8, ["modelValue", "nullable", "placeholder", "label", "title"])
|
|
248
|
-
];
|
|
249
|
-
}),
|
|
250
|
-
_: 1
|
|
251
|
-
}),
|
|
252
|
-
l.applyProduct ? (M(), N(Q, {
|
|
253
|
-
key: 0,
|
|
254
|
-
overrides: s.value.usedBy,
|
|
255
|
-
"onUpdate:overrides": o[2] || (o[2] = (p) => s.value.usedBy = p),
|
|
256
|
-
"select-variant": l.bindToVariant,
|
|
257
|
-
editable: "",
|
|
258
|
-
title: i(n)("menu.common.labels.product")
|
|
259
|
-
}, null, 8, ["overrides", "select-variant", "title"])) : H("", !0)
|
|
260
|
-
])
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
264
|
-
], 64);
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
}), ke = ie;
|
|
268
|
-
export {
|
|
269
|
-
ke as T,
|
|
270
|
-
te as _,
|
|
271
|
-
ie as a,
|
|
272
|
-
be as l
|
|
273
|
-
};
|
package/dist/index-Bun2EboK.js
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as M, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as F, createCommentVNode as U, normalizeClass as J, createSlots as Q, toDisplayString as H } from "vue";
|
|
2
|
-
import { Q as W, G as X, I as f, D, M as I, A as S, J as Z } from "./index.vue_vue_type_script_setup_true_lang-CL6a622s.js";
|
|
3
|
-
import { d as ee } from "./vuedraggable-CK8z7qA8.js";
|
|
4
|
-
import { useI18n as te } from "@feedmepos/mf-common";
|
|
5
|
-
import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
7
|
-
import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js";
|
|
8
|
-
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js";
|
|
10
|
-
import { c as re } from "./check-C9mY6LiX.js";
|
|
11
|
-
const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "w-24"
|
|
14
|
-
}, pe = { class: "flex-1" }, fe = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ R({
|
|
15
|
-
__name: "Form",
|
|
16
|
-
props: {
|
|
17
|
-
initialValue: {}
|
|
18
|
-
},
|
|
19
|
-
setup(B, { expose: N }) {
|
|
20
|
-
const r = B, b = W(X(ae())), { t: o } = te(), A = w(
|
|
21
|
-
() => r.initialValue ? o("menu.variant.form.title.edit") : o("menu.variant.form.title.add")
|
|
22
|
-
), L = w(() => r.initialValue ? "Update" : "Add"), k = () => {
|
|
23
|
-
if (r.initialValue) {
|
|
24
|
-
const e = f(r.initialValue);
|
|
25
|
-
return e.options.push({
|
|
26
|
-
_id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
27
|
-
name: ""
|
|
28
|
-
}), e;
|
|
29
|
-
} else
|
|
30
|
-
return { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
|
|
31
|
-
}, t = E(k()), y = E(!1), i = E(!1), x = (e) => {
|
|
32
|
-
re.isBoolean(e) ? i.value = e : i.value = !i.value;
|
|
33
|
-
};
|
|
34
|
-
function $(e) {
|
|
35
|
-
t.value.options = e;
|
|
36
|
-
}
|
|
37
|
-
function q(e, a) {
|
|
38
|
-
const l = f(t.value.options), c = l.findIndex((v) => v._id == e);
|
|
39
|
-
l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && O();
|
|
40
|
-
}
|
|
41
|
-
function O() {
|
|
42
|
-
const e = f(t.value.options);
|
|
43
|
-
t.value.options = [
|
|
44
|
-
...e,
|
|
45
|
-
{
|
|
46
|
-
_id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
47
|
-
name: ""
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
}
|
|
51
|
-
function P(e) {
|
|
52
|
-
const a = f(t.value.options);
|
|
53
|
-
t.value.options = a.filter((l) => l._id !== e);
|
|
54
|
-
}
|
|
55
|
-
C(
|
|
56
|
-
() => t.value.options,
|
|
57
|
-
(e) => {
|
|
58
|
-
e.length <= 0 && O();
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
immediate: !0
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
function T(e) {
|
|
65
|
-
const a = e.draggedContext.futureIndex, l = e.relatedContext.list;
|
|
66
|
-
return a !== l.length - 1;
|
|
67
|
-
}
|
|
68
|
-
const Y = ie(
|
|
69
|
-
() => {
|
|
70
|
-
if (r.initialValue) {
|
|
71
|
-
const e = t.value.options.filter((a) => !!a.name.trim());
|
|
72
|
-
return !Z.isEqual({ ...t.value, options: e }, r.initialValue);
|
|
73
|
-
} else
|
|
74
|
-
return !!(t.value.options.length > 1 || t.value.name.trim());
|
|
75
|
-
},
|
|
76
|
-
() => {
|
|
77
|
-
i.value = !1;
|
|
78
|
-
}
|
|
79
|
-
), z = async () => {
|
|
80
|
-
try {
|
|
81
|
-
y.value = !0;
|
|
82
|
-
const e = f(t.value);
|
|
83
|
-
e.options = e.options.filter((a) => !!a.name.trim()), r.initialValue ? await b.updateMenu(
|
|
84
|
-
{
|
|
85
|
-
module: S.F_MENU_MODULE_V4_KEY.enum.variant,
|
|
86
|
-
operation: I.F_OPERATION_TYPE.update,
|
|
87
|
-
data: e
|
|
88
|
-
},
|
|
89
|
-
e.name
|
|
90
|
-
) : await b.updateMenu(
|
|
91
|
-
{
|
|
92
|
-
module: S.F_MENU_MODULE_V4_KEY.enum.variant,
|
|
93
|
-
operation: I.F_OPERATION_TYPE.create,
|
|
94
|
-
data: e
|
|
95
|
-
},
|
|
96
|
-
e.name
|
|
97
|
-
), x(!1), t.value = { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
|
|
98
|
-
} finally {
|
|
99
|
-
y.value = !1;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
return C(
|
|
103
|
-
() => i.value,
|
|
104
|
-
(e) => {
|
|
105
|
-
e && (t.value = k());
|
|
106
|
-
}
|
|
107
|
-
), N({
|
|
108
|
-
show: i,
|
|
109
|
-
trigger: x
|
|
110
|
-
}), (e, a) => {
|
|
111
|
-
const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), G = g("fm-side-sheet");
|
|
112
|
-
return V(), M(K, null, [
|
|
113
|
-
j(e.$slots, "default", { trigger: x }),
|
|
114
|
-
s(G, {
|
|
115
|
-
id: "variant-form",
|
|
116
|
-
modelValue: i.value,
|
|
117
|
-
"onUpdate:modelValue": a[2] || (a[2] = (_) => i.value = _),
|
|
118
|
-
"is-container": n(ne).FmForm,
|
|
119
|
-
"is-container-props": {
|
|
120
|
-
onValidationSuccess: z,
|
|
121
|
-
blameFormChildOnValidationFailed: !0
|
|
122
|
-
},
|
|
123
|
-
"max-width": 560,
|
|
124
|
-
"onOn:clickedAway": n(Y)
|
|
125
|
-
}, {
|
|
126
|
-
"side-sheet-header": m(() => [
|
|
127
|
-
d("p", ue, H(A.value), 1)
|
|
128
|
-
]),
|
|
129
|
-
"side-sheet-footer": m(() => [
|
|
130
|
-
d("div", fe, [
|
|
131
|
-
s(v, {
|
|
132
|
-
label: L.value,
|
|
133
|
-
loading: y.value,
|
|
134
|
-
size: "lg",
|
|
135
|
-
type: "submit",
|
|
136
|
-
variant: "primary"
|
|
137
|
-
}, null, 8, ["label", "loading"]),
|
|
138
|
-
s(v, {
|
|
139
|
-
label: n(o)("menu.common.actions.cancel"),
|
|
140
|
-
size: "lg",
|
|
141
|
-
variant: "tertiary",
|
|
142
|
-
onClick: a[1] || (a[1] = () => i.value = !1)
|
|
143
|
-
}, null, 8, ["label"])
|
|
144
|
-
])
|
|
145
|
-
]),
|
|
146
|
-
default: m(() => {
|
|
147
|
-
var _;
|
|
148
|
-
return [
|
|
149
|
-
d("div", me, [
|
|
150
|
-
s(le, {
|
|
151
|
-
title: n(o)("menu.variant.form.detail")
|
|
152
|
-
}, {
|
|
153
|
-
default: m(() => [
|
|
154
|
-
s(l, {
|
|
155
|
-
autofocus: "",
|
|
156
|
-
label: n(o)("menu.variant.form.name.label"),
|
|
157
|
-
"helper-text": n(o)("menu.variant.form.name.helper"),
|
|
158
|
-
modelValue: t.value.name,
|
|
159
|
-
"onUpdate:modelValue": a[0] || (a[0] = (u) => t.value.name = u),
|
|
160
|
-
rules: [(u) => !!u || n(o)("menu.variant.form.name.required")],
|
|
161
|
-
placeholder: n(o)("menu.variant.form.name.placeholder")
|
|
162
|
-
}, null, 8, ["label", "helper-text", "modelValue", "rules", "placeholder"]),
|
|
163
|
-
s(oe, {
|
|
164
|
-
label: n(o)("menu.variant.form.options.title")
|
|
165
|
-
}, {
|
|
166
|
-
default: m(() => [
|
|
167
|
-
d("div", null, [
|
|
168
|
-
s(n(ee), {
|
|
169
|
-
"model-value": t.value.options,
|
|
170
|
-
move: T,
|
|
171
|
-
class: "space-y-16",
|
|
172
|
-
group: "categories",
|
|
173
|
-
handle: ".handle",
|
|
174
|
-
"item-key": "_id",
|
|
175
|
-
"onUpdate:modelValue": $
|
|
176
|
-
}, {
|
|
177
|
-
item: m(({ element: u, index: p }) => [
|
|
178
|
-
d("div", {
|
|
179
|
-
class: J(["flex items-center", "space-x-8"]),
|
|
180
|
-
"data-not-allow-sort": p === t.value.options.length - 1
|
|
181
|
-
}, [
|
|
182
|
-
p !== t.value.options.length - 1 ? (V(), F(c, {
|
|
183
|
-
key: 0,
|
|
184
|
-
class: "handle",
|
|
185
|
-
name: "drag_handle"
|
|
186
|
-
})) : p > 0 ? (V(), M("div", ce)) : U("", !0),
|
|
187
|
-
d("div", pe, [
|
|
188
|
-
s(l, {
|
|
189
|
-
"model-value": u.name,
|
|
190
|
-
rules: [
|
|
191
|
-
() => !!t.value.options.length || n(o)("menu.variant.form.options.min_required"),
|
|
192
|
-
(h) => p === t.value.options.length - 1 || h ? !0 : n(o)("menu.variant.form.options.name_required")
|
|
193
|
-
],
|
|
194
|
-
class: "flex-1",
|
|
195
|
-
placeholder: n(o)("menu.variant.form.options.placeholder"),
|
|
196
|
-
"onUpdate:modelValue": (h) => q(u._id, h)
|
|
197
|
-
}, Q({ _: 2 }, [
|
|
198
|
-
p !== t.value.options.length - 1 ? {
|
|
199
|
-
name: "append",
|
|
200
|
-
fn: m(() => [
|
|
201
|
-
s(c, {
|
|
202
|
-
name: "close",
|
|
203
|
-
onClick: (h) => P(u._id)
|
|
204
|
-
}, null, 8, ["onClick"])
|
|
205
|
-
]),
|
|
206
|
-
key: "0"
|
|
207
|
-
} : void 0
|
|
208
|
-
]), 1032, ["model-value", "rules", "placeholder", "onUpdate:modelValue"])
|
|
209
|
-
])
|
|
210
|
-
], 8, de)
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["model-value"])
|
|
214
|
-
])
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["label"])
|
|
218
|
-
]),
|
|
219
|
-
_: 1
|
|
220
|
-
}, 8, ["title"]),
|
|
221
|
-
(_ = t.value.usedBy) != null && _.length ? (V(), F(se, {
|
|
222
|
-
key: 0,
|
|
223
|
-
editable: !1,
|
|
224
|
-
overrides: t.value.usedBy || [],
|
|
225
|
-
"select-variant": !1,
|
|
226
|
-
title: n(o)("menu.variant.form.applied_product")
|
|
227
|
-
}, null, 8, ["overrides", "title"])) : U("", !0)
|
|
228
|
-
])
|
|
229
|
-
];
|
|
230
|
-
}),
|
|
231
|
-
_: 1
|
|
232
|
-
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
233
|
-
], 64);
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
}), we = ve;
|
|
237
|
-
export {
|
|
238
|
-
we as V
|
|
239
|
-
};
|