@feedmepos/mf-menu 0.31.32-prod → 0.31.33-beta.10
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-NHdXEdrJ.js → App-DLoBsgTh.js} +79 -33
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DoTx23iL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-AdxIn_cb.js} +20 -20
- package/dist/{Catalog-B0fV6Yje.js → Catalog-CEvqDKD0.js} +80 -80
- package/dist/{Category-CJZs9I7F.js → Category-CPrXxkVI.js} +41 -41
- package/dist/{Category-CUKZ10xq.js → Category-CnsBFgvu.js} +37 -33
- package/dist/{CookingGuide-kVclP--T.js → CookingGuide-Day6eG7h.js} +66 -66
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzrjTv0X.js +113 -0
- package/dist/{Group-Bgkye2LL.js → Group-HAAm8its.js} +1 -1
- package/dist/{Group-CAS6o4Fo.js → Group-_G2GnGz-.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-CTDR_kMg.js +686 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KuT-w6bF.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DwXWiz77.js} +4982 -5081
- package/dist/{Ingredient-DpAPMsPZ.js → Ingredient-BerGQ0W3.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MoApzjt6.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Bf9GYRjF.js} +2 -2
- package/dist/LinkProductSideSheet-32r2l60j.js +297 -0
- package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
- package/dist/{MenuSetting-CoqMT8Vh.js → MenuSetting-DmyEGemp.js} +20 -20
- package/dist/{PrintRoute-DyJil1Hl.js → PrintRoute-8gipiFdT.js} +99 -98
- package/dist/{Product-BPIUTn0_.js → Product-Cqvq9DAA.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-DcMr8wkh.js +1578 -0
- package/dist/{ProductInternalTools-DXgWE6JU.js → ProductInternalTools--w7YOgx2.js} +17 -17
- package/dist/Products-BIRGYu47.js +283 -0
- package/dist/{Publish-DDzpmm72.js → Publish-BcbzhAa5.js} +3 -3
- package/dist/{Recipe-DHYzO0IS.js → Recipe-z1zhmblA.js} +13 -13
- package/dist/{Scheduler-DBad2mO3.js → Scheduler-Cv9Y5M6i.js} +7 -7
- package/dist/{ServingSequence-DC7raAtF.js → ServingSequence-DWFJD-1y.js} +24 -24
- package/dist/Setting-BgCssMcE.js +259 -0
- package/dist/{Subcategory-DHjc7WeF.js → Subcategory-D4BYtWMN.js} +10 -10
- package/dist/{Takeaway-CJRTaygj.js → Takeaway-126rJXs4.js} +9 -9
- package/dist/{Takeaway-CAIAHpA-.js → Takeaway-D-UZAzfn.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsyWrTL.js} +12 -12
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-szHjE_UD.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CLNlU4BJ.js +5990 -0
- package/dist/{Unit-DSMSKE6_.js → Unit-7APP9HLD.js} +13 -13
- package/dist/{Variant-DMXxUWnj.js → Variant-lJW6pFqT.js} +14 -14
- package/dist/_id_-R-pHc7HA.js +202 -0
- package/dist/{app-D23N7tJ0.js → app-CAhJXoa3.js} +390 -377
- package/dist/{app-BTgdGTYz.js → app-DoJgznLl.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -1
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +2 -1
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
- package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BbJj0WW0.js +24 -0
- package/dist/assets/override-menu-CRaqJDr8.js +24 -0
- package/dist/assets/validate-menu-BQ2BFUmD.js +24 -0
- package/dist/{catalog-DcciqmWK.js → catalog-C1fna-Yk.js} +1 -1
- package/dist/catalogSetting-BKP36lej.js +71 -0
- package/dist/{category-bhqVqDzJ.js → category-DK_MXlvY.js} +5 -5
- package/dist/{currency-Clgvy00I.js → currency-D2fl1Bk0.js} +1 -1
- package/dist/{dayjs.min-DeSv8lfJ.js → dayjs.min-Bk9ZYtg9.js} +1 -1
- package/dist/{index-BHbYu_OM.js → index-BJ3_8aUL.js} +14 -14
- package/dist/{index-CTUaJyIh.js → index-CSuF-4Sa.js} +14 -14
- package/dist/{index-DZZJjEOs.js → index-Cc2J6T0N.js} +28 -28
- package/dist/index-D7yR1j9C.js +215 -0
- package/dist/{item-DH1xf2Sa.js → item-DX44khy2.js} +201 -199
- package/dist/{jszip.min-CMM2HN8J.js → jszip.min-Dbu7MIcI.js} +427 -427
- package/dist/{menu-Dx39P1vR.js → menu-DT5c-FqY.js} +4 -4
- package/dist/menu-D_Cckz_p.js +133287 -0
- package/dist/menuV2-DTBH_-tm.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-3M5cxSYX.js → priceTier-wLQ8p4bJ.js} +1 -1
- package/dist/{scheduler-BT3EJBK6.js → scheduler-D6UbXLXR.js} +36 -37
- package/dist/subcategory-DjN3X1BI.js +148 -0
- package/dist/{toExcel-BLoj4Wqb.js → toExcel-CWyoDcRd.js} +15 -15
- package/dist/{unit-BsNOQHvZ.js → unit-CLa8caCJ.js} +11 -10
- package/package.json +5 -5
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-RI_d10bz.js +0 -7949
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/Group.vue_vue_type_script_setup_true_lang-Bij0tGMP.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUa_0qzX.js +0 -206
- package/dist/LinkProductSideSheet-CEClo07H.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-fjFGg49e.js +0 -1560
- package/dist/Products-dWmgQ_di.js +0 -270
- package/dist/Setting-CPjvUYU9.js +0 -258
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ZRv8Dg6x.js +0 -6149
- package/dist/_id_-CTq4qK7z.js +0 -200
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/assets/linked-status-Cfc9wZst.js +0 -24
- package/dist/assets/override-menu-BNZggtO_.js +0 -24
- package/dist/assets/validate-menu-CPwUvy9F.js +0 -24
- package/dist/catalogSetting-D4iwoJLb.js +0 -65
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/menu-DcGo3sn5.js +0 -108039
- package/dist/subcategory-B5atmACN.js +0 -817
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, useModel as G, computed as V, resolveComponent as m, createBlock as C, openBlock as c, unref as e, ref as I, watch as H, onMounted as O, createElementBlock as S, Fragment as h, renderSlot as J, createVNode as i, withCtx as s, createElementVNode as x, renderList as K, createCommentVNode as w, toDisplayString as F, createTextVNode as Q } from "vue";
|
|
2
|
-
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as R } from "./priceTier-3M5cxSYX.js";
|
|
4
|
-
import { useDialog as W, components as X, FmButtonVariant as Y, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
5
|
-
import { L as Z } from "./LinkProductSideSheet-CEClo07H.js";
|
|
6
|
-
import { c as z } from "./check-C9mY6LiX.js";
|
|
7
|
-
import { u as ee, H as B, aj as le } from "./menu-DcGo3sn5.js";
|
|
8
|
-
import { c as oe } from "./string-DpfFixWH.js";
|
|
9
|
-
const fe = /* @__PURE__ */ P({
|
|
10
|
-
__name: "LinkPriceTier",
|
|
11
|
-
props: {
|
|
12
|
-
modelValue: { required: !0 },
|
|
13
|
-
modelModifiers: {}
|
|
14
|
-
},
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(b) {
|
|
17
|
-
const { t: g } = T(), n = G(b, "modelValue"), _ = R(), a = V(() => _.priceTiers.value.map((d) => ({
|
|
18
|
-
label: d.key,
|
|
19
|
-
value: d.key
|
|
20
|
-
})));
|
|
21
|
-
return (d, k) => {
|
|
22
|
-
const r = m("FmSelect");
|
|
23
|
-
return c(), C(r, {
|
|
24
|
-
label: e(g)("menu.price_tier.link_price_group"),
|
|
25
|
-
"helper-text": e(g)("menu.price_tier.link_price_group_description"),
|
|
26
|
-
items: a.value,
|
|
27
|
-
"model-value": n.value ?? [],
|
|
28
|
-
multiselect: !0,
|
|
29
|
-
keepSelectionOrder: !0,
|
|
30
|
-
"onUpdate:modelValue": k[0] || (k[0] = (p) => n.value = p)
|
|
31
|
-
}, null, 8, ["label", "helper-text", "items", "model-value"]);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
}), te = { class: "space-y-16" }, ae = { class: "ml-32 mt-16 space-y-8" }, ne = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
37
|
-
}, ve = /* @__PURE__ */ P({
|
|
38
|
-
__name: "GroupMarkupPriceDialog",
|
|
39
|
-
props: {
|
|
40
|
-
modelValue: {},
|
|
41
|
-
items: {},
|
|
42
|
-
categories: {},
|
|
43
|
-
action: {}
|
|
44
|
-
},
|
|
45
|
-
emits: ["update:model-value"],
|
|
46
|
-
setup(b, { emit: g }) {
|
|
47
|
-
const n = b, _ = ee();
|
|
48
|
-
W();
|
|
49
|
-
const { t: a } = T(), d = g, k = V(() => n.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), r = I(!1), p = (o) => {
|
|
50
|
-
z.isBoolean(o) ? r.value = o : r.value = !r.value;
|
|
51
|
-
}, l = I(
|
|
52
|
-
n.modelValue ? B(n.modelValue) : {
|
|
53
|
-
percentage: 0,
|
|
54
|
-
includeItems: null
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
H(
|
|
58
|
-
() => r.value,
|
|
59
|
-
(o) => {
|
|
60
|
-
o && (l.value = n.modelValue ? B(n.modelValue) : {
|
|
61
|
-
percentage: 0,
|
|
62
|
-
includeItems: null
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
), V(
|
|
66
|
-
() => le(_.variants, n.categories, n.items)
|
|
67
|
-
);
|
|
68
|
-
function L(o) {
|
|
69
|
-
l.value = {
|
|
70
|
-
...l.value,
|
|
71
|
-
includeItems: o
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
const f = I(
|
|
75
|
-
0
|
|
76
|
-
/* ALL */
|
|
77
|
-
);
|
|
78
|
-
function N(o) {
|
|
79
|
-
f.value = o, l.value = {
|
|
80
|
-
...l.value,
|
|
81
|
-
includeItems: o === 0 ? null : []
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const U = V(() => [
|
|
85
|
-
{
|
|
86
|
-
label: a("menu.markup.dialog.options.all"),
|
|
87
|
-
value: 0
|
|
88
|
-
/* ALL */
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: a("menu.markup.dialog.options.custom"),
|
|
92
|
-
value: 1
|
|
93
|
-
/* CUSTOM */
|
|
94
|
-
}
|
|
95
|
-
]);
|
|
96
|
-
async function D() {
|
|
97
|
-
d("update:model-value", l.value), p(!1);
|
|
98
|
-
}
|
|
99
|
-
return O(() => {
|
|
100
|
-
f.value = l.value && l.value.includeItems === null ? 0 : 1;
|
|
101
|
-
}), (o, u) => {
|
|
102
|
-
const $ = m("fm-icon"), q = m("fm-stepper-field"), E = m("fm-radio"), j = m("fm-radio-group"), y = m("fm-button"), A = m("fm-dialog");
|
|
103
|
-
return c(), S(h, null, [
|
|
104
|
-
J(o.$slots, "default", { trigger: p }),
|
|
105
|
-
i(A, {
|
|
106
|
-
modelValue: r.value,
|
|
107
|
-
"onUpdate:modelValue": u[3] || (u[3] = (v) => r.value = v),
|
|
108
|
-
"is-component": e(X).FmForm,
|
|
109
|
-
"is-component-props": {
|
|
110
|
-
onValidationSuccess: D
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
"dialog-header": s(() => [
|
|
114
|
-
Q(F(k.value), 1)
|
|
115
|
-
]),
|
|
116
|
-
"dialog-footer": s(() => [
|
|
117
|
-
i(y, {
|
|
118
|
-
class: "sm:w-full xs:w-full ml-auto",
|
|
119
|
-
label: "Cancel",
|
|
120
|
-
variant: "tertiary",
|
|
121
|
-
onClick: u[2] || (u[2] = (v) => p(!1))
|
|
122
|
-
}),
|
|
123
|
-
i(y, {
|
|
124
|
-
label: e(oe)(o.action),
|
|
125
|
-
class: "sm:w-full xs:w-full",
|
|
126
|
-
size: "md",
|
|
127
|
-
type: "submit",
|
|
128
|
-
variant: "primary"
|
|
129
|
-
}, null, 8, ["label"])
|
|
130
|
-
]),
|
|
131
|
-
default: s(() => {
|
|
132
|
-
var v;
|
|
133
|
-
return [
|
|
134
|
-
x("div", te, [
|
|
135
|
-
i(q, {
|
|
136
|
-
modelValue: l.value.percentage,
|
|
137
|
-
"onUpdate:modelValue": u[0] || (u[0] = (t) => l.value.percentage = t),
|
|
138
|
-
decimal: 0,
|
|
139
|
-
max: 100,
|
|
140
|
-
min: 0,
|
|
141
|
-
rules: [
|
|
142
|
-
(t) => e(z).isSet(t) && t >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
|
|
143
|
-
],
|
|
144
|
-
label: e(a)("menu.markup.dialog.fields.percentage.label"),
|
|
145
|
-
placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
|
|
146
|
-
}, {
|
|
147
|
-
prepend: s(() => [
|
|
148
|
-
i($, { name: "percent" })
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["modelValue", "rules", "label", "placeholder"]),
|
|
152
|
-
x("div", null, [
|
|
153
|
-
i(j, {
|
|
154
|
-
modelValue: f.value,
|
|
155
|
-
"onUpdate:modelValue": [
|
|
156
|
-
u[1] || (u[1] = (t) => f.value = t),
|
|
157
|
-
N
|
|
158
|
-
],
|
|
159
|
-
class: "space-y-8"
|
|
160
|
-
}, {
|
|
161
|
-
default: s(() => [
|
|
162
|
-
(c(!0), S(h, null, K(U.value, (t) => (c(), C(E, {
|
|
163
|
-
key: t.value,
|
|
164
|
-
label: t.label,
|
|
165
|
-
value: t.value
|
|
166
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
}, 8, ["modelValue"]),
|
|
170
|
-
x("div", ae, [
|
|
171
|
-
i(Z, {
|
|
172
|
-
title: "Link products",
|
|
173
|
-
"categorized-items": e(_).categorizedItems,
|
|
174
|
-
"initial-value": l.value.includeItems || [],
|
|
175
|
-
"show-variant": !1,
|
|
176
|
-
onSubmit: L
|
|
177
|
-
}, {
|
|
178
|
-
default: s(({ trigger: t }) => [
|
|
179
|
-
f.value === 1 ? (c(), C(y, {
|
|
180
|
-
key: 0,
|
|
181
|
-
"text-color": e(M).ColorPrimary,
|
|
182
|
-
"border-color": e(M).ColorPrimary,
|
|
183
|
-
variant: e(Y).Secondary,
|
|
184
|
-
label: e(a)("menu.markup.dialog.products.link"),
|
|
185
|
-
"prepend-icon": "link",
|
|
186
|
-
onClick: t
|
|
187
|
-
}, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : w("", !0)
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
}, 8, ["categorized-items", "initial-value"]),
|
|
191
|
-
(v = l.value.includeItems) != null && v.length ? (c(), S("p", ne, F(e(a)("menu.markup.dialog.products.count", { count: l.value.includeItems.length })), 1)) : w("", !0)
|
|
192
|
-
])
|
|
193
|
-
])
|
|
194
|
-
])
|
|
195
|
-
];
|
|
196
|
-
}),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["modelValue", "is-component", "is-component-props"])
|
|
199
|
-
], 64);
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
export {
|
|
204
|
-
ve as _,
|
|
205
|
-
fe as a
|
|
206
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as V, computed as I, watch as z, resolveComponent as b, createElementBlock as F, openBlock as w, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
|
|
2
|
-
import { H as _, I as N } from "./menu-DcGo3sn5.js";
|
|
3
|
-
import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as H } from "./discardConfirm-BHni0LNu.js";
|
|
6
|
-
import { c as M } from "./check-C9mY6LiX.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
const T = (i, u) => {
|
|
9
|
-
const s = i.__vccOpts || i;
|
|
10
|
-
for (const [c, t] of u)
|
|
11
|
-
s[c] = t;
|
|
12
|
-
return s;
|
|
13
|
-
}, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
|
|
14
|
-
__name: "LinkProductSideSheet",
|
|
15
|
-
props: {
|
|
16
|
-
initialValue: { default: () => [] },
|
|
17
|
-
categorizedItems: { default: () => [] },
|
|
18
|
-
selectVariant: { type: Boolean, default: !1 },
|
|
19
|
-
showVariant: { type: Boolean, default: !1 },
|
|
20
|
-
showAddon: { type: Boolean, default: !0 },
|
|
21
|
-
title: { default: void 0 },
|
|
22
|
-
useCloseBtn: { type: Boolean }
|
|
23
|
-
},
|
|
24
|
-
emits: ["submit"],
|
|
25
|
-
setup(i, { emit: u }) {
|
|
26
|
-
const s = i, c = u, t = V(!1), v = (e) => {
|
|
27
|
-
M.isBoolean(e) ? t.value = e : t.value = !t.value;
|
|
28
|
-
};
|
|
29
|
-
function d(e) {
|
|
30
|
-
return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
|
|
31
|
-
}
|
|
32
|
-
const k = s.initialValue, l = V(d(_(k))), h = I(() => Object.values(l.value).flatMap((e) => e)), g = H(
|
|
33
|
-
() => !N.isEqual(d(s.initialValue), l.value),
|
|
34
|
-
() => {
|
|
35
|
-
t.value = !1;
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
function B() {
|
|
39
|
-
c("submit", h.value), t.value = !1;
|
|
40
|
-
}
|
|
41
|
-
z(
|
|
42
|
-
() => t.value,
|
|
43
|
-
() => {
|
|
44
|
-
l.value = d(_(s.initialValue));
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
const { t: m } = j();
|
|
48
|
-
return (e, o) => {
|
|
49
|
-
const a = b("fm-button"), C = b("fm-side-sheet");
|
|
50
|
-
return w(), F(O, null, [
|
|
51
|
-
A(e.$slots, "default", { trigger: v }, void 0, !0),
|
|
52
|
-
r(C, {
|
|
53
|
-
id: "group-form",
|
|
54
|
-
modelValue: t.value,
|
|
55
|
-
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p),
|
|
56
|
-
"close-button": e.useCloseBtn,
|
|
57
|
-
"is-container": n(U).FmForm,
|
|
58
|
-
"is-container-props": {
|
|
59
|
-
onValidationSuccess: B,
|
|
60
|
-
blameFormChildOnValidationFailed: !0
|
|
61
|
-
},
|
|
62
|
-
"max-width": 560,
|
|
63
|
-
"onOn:clickedAway": n(g)
|
|
64
|
-
}, {
|
|
65
|
-
"side-sheet-header": f(() => [
|
|
66
|
-
e.useCloseBtn ? E("", !0) : (w(), D(a, {
|
|
67
|
-
key: 0,
|
|
68
|
-
variant: n(q).Tertiary,
|
|
69
|
-
class: "cursor-pointer mr-4",
|
|
70
|
-
"prepend-icon": "arrow_back",
|
|
71
|
-
onClick: v
|
|
72
|
-
}, null, 8, ["variant"])),
|
|
73
|
-
y("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
|
|
74
|
-
]),
|
|
75
|
-
"side-sheet-footer": f(() => [
|
|
76
|
-
y("div", G, [
|
|
77
|
-
r(a, {
|
|
78
|
-
label: n(m)("menu.common.actions.confirm"),
|
|
79
|
-
size: "lg",
|
|
80
|
-
type: "submit",
|
|
81
|
-
variant: "primary"
|
|
82
|
-
}, null, 8, ["label"]),
|
|
83
|
-
r(a, {
|
|
84
|
-
label: n(m)("menu.common.actions.cancel"),
|
|
85
|
-
size: "lg",
|
|
86
|
-
variant: "tertiary",
|
|
87
|
-
onClick: o[1] || (o[1] = () => t.value = !1)
|
|
88
|
-
}, null, 8, ["label"])
|
|
89
|
-
])
|
|
90
|
-
]),
|
|
91
|
-
default: f(() => [
|
|
92
|
-
r(n(P), {
|
|
93
|
-
"auto-focus-search": !0,
|
|
94
|
-
"categorized-items": e.categorizedItems,
|
|
95
|
-
data: l.value,
|
|
96
|
-
"select-variant": e.selectVariant,
|
|
97
|
-
"selected-items": h.value,
|
|
98
|
-
"show-variant": e.showVariant,
|
|
99
|
-
"show-addon": e.showAddon,
|
|
100
|
-
"onUpdate:data": o[0] || (o[0] = (p) => l.value = p)
|
|
101
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
105
|
-
], 64);
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
}), x = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
|
|
109
|
-
export {
|
|
110
|
-
x as L,
|
|
111
|
-
T as _
|
|
112
|
-
};
|