@feedmepos/mf-menu 0.31.33-beta.7 → 0.31.33-beta.8
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-CZEABsQj.js → App-BAMi-a9P.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D_ak48OL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js} +20 -20
- package/dist/{Catalog-DS7IAwCI.js → Catalog-DiPY42vz.js} +6 -6
- package/dist/{Category-DKes4JxR.js → Category-B9jnFDvG.js} +14 -14
- package/dist/{Category-Bi3vbTgq.js → Category-ClrACB2e.js} +19 -19
- package/dist/{CookingGuide-Cl-JvfNC.js → CookingGuide-1553FWRH.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C01PGALf.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWNx15iJ.js} +1 -1
- package/dist/{Group-CDmNdtn6.js → Group-DLahX8qi.js} +3 -3
- package/dist/{Group-CPd33rHj.js → Group-l_-qZSyF.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DLhPMn7r.js → Group.vue_vue_type_script_setup_true_lang-PNpEgEGB.js} +9 -9
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DoVyIdTN.js +364 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DZgnCsAY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DSspLK4i.js} +12597 -12946
- package/dist/{Ingredient-C5iKMG5S.js → Ingredient-SsBtwYjB.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CYb8p8df.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DqnVkfjW.js} +2 -2
- package/dist/LinkProductSideSheet-CncbzDh3.js +335 -0
- package/dist/{MenuSetting-DeLFW5Q0.js → MenuSetting-D28a3uD4.js} +4 -4
- package/dist/{PrintRoute-BptA-_Yt.js → PrintRoute-BdlT0DDr.js} +89 -88
- package/dist/{Product-D5WYsf9P.js → Product-s5Q4wV8i.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-C6iDgQEU.js +1575 -0
- package/dist/{ProductInternalTools-_ml77R5u.js → ProductInternalTools-DjSkvzw2.js} +5 -5
- package/dist/Products-B3tF_gCa.js +283 -0
- package/dist/{Publish-BB_8J3PJ.js → Publish-G4bwUpme.js} +3 -3
- package/dist/{Recipe-Dc7mD-Mu.js → Recipe-BxgHUzb5.js} +4 -4
- package/dist/{Scheduler-H2mx0WJm.js → Scheduler-DJSKWS-9.js} +3 -3
- package/dist/{ServingSequence-GYdFh7RK.js → ServingSequence-_cmuGKlV.js} +3 -3
- package/dist/{Setting-B_-Bv8NR.js → Setting-Dx7ycxAn.js} +5 -5
- package/dist/{Subcategory-CHcCMqcS.js → Subcategory-25AzJQYt.js} +4 -4
- package/dist/{Takeaway-BeDox-sK.js → Takeaway-Bmm9d5PO.js} +1 -1
- package/dist/{Takeaway-BaDz1y8l.js → Takeaway-CcFK-Y2z.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CwWyzrey.js → Takeaway.vue_vue_type_script_setup_true_lang-Bl5OAG3c.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B3-ypwE7.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D2gzS8Q_.js +5990 -0
- package/dist/{Unit-D4uSc8lg.js → Unit-Cs1EOuyg.js} +2 -2
- package/dist/{Variant-MVe8LhBc.js → Variant-BTCkw4RC.js} +3 -3
- package/dist/_id_-C9b2WHzy.js +202 -0
- package/dist/{app-BbIBgy7D.js → app-BhI1mPRh.js} +1 -1
- package/dist/{app-B0ogzdm0.js → app-CU2frfPB.js} +24 -24
- package/dist/app.js +1 -1
- 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 +3 -1
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +8 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -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/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DepVvcGX.js → linked-status-r8YcmOs7.js} +2 -2
- package/dist/assets/{override-menu-Cb7cvOj9.js → override-menu-CDLCS1zK.js} +2 -2
- package/dist/assets/{validate-menu-Hc7m9hHC.js → validate-menu-B-FxrVmM.js} +2 -2
- package/dist/{catalog-_R7Bi_aW.js → catalog-BudDGPc1.js} +1 -1
- package/dist/{catalogSetting-Bnr55VnE.js → catalogSetting-Bk1QEBg5.js} +1 -1
- package/dist/{category-C0kozMAs.js → category-UDpJb7Yh.js} +1 -1
- package/dist/{currency-DFA-7C9k.js → currency-BQIQArxm.js} +1 -1
- package/dist/{dayjs.min-BzOsbxFW.js → dayjs.min-D0EjAkx4.js} +1 -1
- package/dist/{index-asthzgeW.js → index-B_V5s58T.js} +1 -1
- package/dist/{index-LrL2OIsF.js → index-CirrSmpA.js} +3 -3
- package/dist/index-DRuDRGm-.js +213 -0
- package/dist/{index-y3TkmTDS.js → index-Dy-u7imh.js} +3 -3
- package/dist/{item-BHFMgTjL.js → item-C45Oe5Un.js} +196 -194
- package/dist/{jszip.min-BYCWga7V.js → jszip.min-BR_8QNuk.js} +245 -245
- package/dist/{menu-7YBc_V0y.js → menu-D52oU1sw.js} +1 -1
- package/dist/{menu-UNNs3oeu.js → menu-DTlhFcnq.js} +1079 -1070
- package/dist/menuV2-DQtEtGVV.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-I7O5kuz-.js → priceTier-CDyccedV.js} +1 -1
- package/dist/{scheduler-c0cSXqeD.js → scheduler-DHjrtU8G.js} +16 -17
- package/dist/subcategory-0ajMWsb2.js +148 -0
- package/dist/{toExcel-C8d-m0RH.js → toExcel-BNKDwOzQ.js} +2 -2
- package/dist/{unit-B0Bl56gY.js → unit-CBe6cpyB.js} +5 -4
- package/package.json +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1ET8Ys.js +0 -372
- package/dist/LinkProductSideSheet-QUllj_xC.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-TwmxZaik.js +0 -1644
- package/dist/Products-BA-G2Yya.js +0 -270
- 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-Dp2eaieu.js +0 -6149
- package/dist/_id_-CoMVzmjC.js +0 -178
- package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +0 -12
- package/dist/customAttributes-C1FljtXt.js +0 -33
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/subcategory-YHkkwrLj.js +0 -817
- /package/dist/{app-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js} +0 -0
package/dist/_id_-CoMVzmjC.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Y, computed as v, ref as d, watch as T, onMounted as N, resolveComponent as c, createElementBlock as z, openBlock as b, Fragment as B, createVNode as o, withCtx as u, createElementVNode as m, toDisplayString as y, unref as s, createBlock as C } from "vue";
|
|
2
|
-
import { D as q } from "./dayjs.min-BzOsbxFW.js";
|
|
3
|
-
import { useRoute as H, useRouter as F } from "vue-router";
|
|
4
|
-
import { _ as P, b as w, w as K } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DZgnCsAY.js";
|
|
5
|
-
import { D as W, u as j, B as J, H as Q, O as X } from "./menu-UNNs3oeu.js";
|
|
6
|
-
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
7
|
-
import { useDialog as ee, useSnackbar as te } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as A } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
-
import { _ as ae } from "./index-asthzgeW.js";
|
|
10
|
-
import { _ as oe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
|
-
import { a as ne } from "./menu-7YBc_V0y.js";
|
|
12
|
-
import { m as le } from "./toExcel-C8d-m0RH.js";
|
|
13
|
-
import { _ as se, u as ue, c as re } from "./scheduler-c0cSXqeD.js";
|
|
14
|
-
import { R as r } from "./app-B0ogzdm0.js";
|
|
15
|
-
const me = { class: "px-12 py-8" }, ce = { class: "px-12 py-8" }, ie = { class: "flex ml-auto space-x-8" }, de = { class: "flex-1 flex flex-col overflow-hidden" }, Re = /* @__PURE__ */ Y({
|
|
16
|
-
__name: "[id]",
|
|
17
|
-
setup(_e) {
|
|
18
|
-
const h = H(), _ = F();
|
|
19
|
-
ee();
|
|
20
|
-
const g = W(te()), D = X(g), t = j(), { t: n } = Z(), R = v(() => t.categorizedRawMenuItems), I = v(() => !t.state.currentSchedulerId), S = d();
|
|
21
|
-
async function V(a) {
|
|
22
|
-
const e = a._id ? ue(a) : re(a);
|
|
23
|
-
await D.updateMenu(e, a.name);
|
|
24
|
-
}
|
|
25
|
-
const x = [
|
|
26
|
-
{
|
|
27
|
-
label: n("menu.catalog.edit.tabs.product"),
|
|
28
|
-
value: r.EDIT_CATALOG_PRODUCT
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: n("menu.catalog.edit.tabs.category"),
|
|
32
|
-
value: r.EDIT_CATALOG_CATEGORY
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: n("menu.catalog.edit.tabs.group"),
|
|
36
|
-
value: r.EDIT_CATALOG_GROUP
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: n("menu.catalog.edit.tabs.takeaway"),
|
|
40
|
-
value: r.EDIT_CATALOG_TAKEAWAY
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: n("menu.catalog.edit.tabs.setting"),
|
|
44
|
-
value: r.EDIT_CATALOG_SETTING
|
|
45
|
-
}
|
|
46
|
-
], i = d(x[0].value);
|
|
47
|
-
T(i, (a) => {
|
|
48
|
-
_.replace({
|
|
49
|
-
name: a
|
|
50
|
-
});
|
|
51
|
-
}), N(() => {
|
|
52
|
-
_.currentRoute.value.name !== r.EDIT_CATALOG && (i.value = _.currentRoute.value.name);
|
|
53
|
-
}), T(
|
|
54
|
-
() => t.state.menu._id,
|
|
55
|
-
(a) => {
|
|
56
|
-
const e = h.params.id;
|
|
57
|
-
a && e !== "main" && t.selectCatalog(e);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const E = v(() => ({
|
|
61
|
-
...J.menuV4ToV3(Q(t.state.menu)),
|
|
62
|
-
_id: t.state.menu._id,
|
|
63
|
-
_rev: t.state.menu._rev
|
|
64
|
-
}));
|
|
65
|
-
async function M() {
|
|
66
|
-
await g.minor(
|
|
67
|
-
async () => {
|
|
68
|
-
await t.readMenu();
|
|
69
|
-
const a = await le(E.value), e = `menu_${q().format("DD-MM-YYYY_HH-mm")}`;
|
|
70
|
-
await K(a, `${e}.xlsx`, {
|
|
71
|
-
bookType: "xlsx",
|
|
72
|
-
bookSST: !1,
|
|
73
|
-
type: "array"
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
{ successMessage: "Menu exported", customId: t.state.menu._id }
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
const p = d(!1), f = d(!1);
|
|
80
|
-
return ne().resetOnUnmount(), (a, e) => {
|
|
81
|
-
var k;
|
|
82
|
-
const O = c("fm-bottom-sheet"), G = c("fm-button"), L = c("router-link"), $ = c("fm-tabs"), U = c("router-view");
|
|
83
|
-
return b(), z(B, null, [
|
|
84
|
-
o(se, {
|
|
85
|
-
ref_key: "schedulerDialogRef",
|
|
86
|
-
ref: S,
|
|
87
|
-
"categorized-items": R.value,
|
|
88
|
-
onOnComplete: V
|
|
89
|
-
}, null, 8, ["categorized-items"]),
|
|
90
|
-
o(P, {
|
|
91
|
-
modelValue: p.value,
|
|
92
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => p.value = l)
|
|
93
|
-
}, null, 8, ["modelValue"]),
|
|
94
|
-
o(O, {
|
|
95
|
-
modelValue: f.value,
|
|
96
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) => f.value = l),
|
|
97
|
-
"no-header": ""
|
|
98
|
-
}, {
|
|
99
|
-
default: u(() => [
|
|
100
|
-
m("div", me, [
|
|
101
|
-
m("p", {
|
|
102
|
-
class: "fm-typo-en-body-md-400",
|
|
103
|
-
onClick: M
|
|
104
|
-
}, y(s(n)("menu.catalog.edit.export")), 1)
|
|
105
|
-
]),
|
|
106
|
-
m("div", ce, [
|
|
107
|
-
m("p", {
|
|
108
|
-
class: "fm-typo-en-body-md-400",
|
|
109
|
-
onClick: e[1] || (e[1] = () => {
|
|
110
|
-
p.value = !0, f.value = !1;
|
|
111
|
-
})
|
|
112
|
-
}, y(s(n)("menu.catalog.edit.import")), 1)
|
|
113
|
-
])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["modelValue"]),
|
|
117
|
-
o(oe, {
|
|
118
|
-
heading: ((k = s(t).currentCatalog) == null ? void 0 : k.name) ?? "Main",
|
|
119
|
-
class: "flex flex-col max-h-[calc(100vh-56px)] overflow-hidden"
|
|
120
|
-
}, {
|
|
121
|
-
"prepend-heading": u(() => [
|
|
122
|
-
o(L, {
|
|
123
|
-
to: { name: s(r).CATALOG },
|
|
124
|
-
class: "mr-8",
|
|
125
|
-
title: s(n)("menu.catalog.edit.back")
|
|
126
|
-
}, {
|
|
127
|
-
default: u(() => [
|
|
128
|
-
o(G, {
|
|
129
|
-
"prepend-icon": "arrow_back",
|
|
130
|
-
variant: "tertiary"
|
|
131
|
-
})
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["to", "title"])
|
|
135
|
-
]),
|
|
136
|
-
"append-heading": u(() => [
|
|
137
|
-
m("div", ie, [
|
|
138
|
-
I.value ? (b(), C(w, { key: 0 }, {
|
|
139
|
-
default: u(({ trigger: l }) => [
|
|
140
|
-
o(A, {
|
|
141
|
-
label: s(n)("menu.catalog.edit.link_product"),
|
|
142
|
-
"prepend-icon": "link",
|
|
143
|
-
onClick: l
|
|
144
|
-
}, null, 8, ["label", "onClick"])
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
})) : (b(), C(w, { key: 1 }, {
|
|
148
|
-
default: u(({ trigger: l }) => [
|
|
149
|
-
o(A, {
|
|
150
|
-
label: s(n)("menu.catalog.edit.apply_scheduler"),
|
|
151
|
-
onClick: l
|
|
152
|
-
}, null, 8, ["label", "onClick"])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}))
|
|
156
|
-
])
|
|
157
|
-
]),
|
|
158
|
-
default: u(() => [
|
|
159
|
-
o($, {
|
|
160
|
-
modelValue: i.value,
|
|
161
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) => i.value = l),
|
|
162
|
-
items: x,
|
|
163
|
-
class: "mb-7 xs:mb-0 xs:px-32"
|
|
164
|
-
}, null, 8, ["modelValue"]),
|
|
165
|
-
m("div", de, [
|
|
166
|
-
o(ae, { "menu-store": s(t) }, null, 8, ["menu-store"]),
|
|
167
|
-
o(U)
|
|
168
|
-
])
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["heading"])
|
|
172
|
-
], 64);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
export {
|
|
177
|
-
Re as default
|
|
178
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { F_ORDER_FROM } from "@feedmepos/menu/entity";
|
|
2
|
-
import { type CategorizedItem } from "@/helper/menu";
|
|
3
|
-
interface Item {
|
|
4
|
-
_id: string;
|
|
5
|
-
combinationKey?: string | null;
|
|
6
|
-
orderFrom?: F_ORDER_FROM;
|
|
7
|
-
}
|
|
8
|
-
export type LinkProductItem = Item;
|
|
9
|
-
interface Props {
|
|
10
|
-
initialValue?: Array<Item>;
|
|
11
|
-
categorizedItems: Array<CategorizedItem>;
|
|
12
|
-
selectVariant?: boolean;
|
|
13
|
-
showVariant?: boolean;
|
|
14
|
-
showAddon?: boolean;
|
|
15
|
-
title?: string;
|
|
16
|
-
useCloseBtn?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
-
initialValue: () => Item[];
|
|
20
|
-
categorizedItems: () => CategorizedItem[];
|
|
21
|
-
selectVariant: boolean;
|
|
22
|
-
showVariant: boolean;
|
|
23
|
-
showAddon: boolean;
|
|
24
|
-
title: undefined;
|
|
25
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
submit: (value: Item[]) => void;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
28
|
-
initialValue: () => Item[];
|
|
29
|
-
categorizedItems: () => CategorizedItem[];
|
|
30
|
-
selectVariant: boolean;
|
|
31
|
-
showVariant: boolean;
|
|
32
|
-
showAddon: boolean;
|
|
33
|
-
title: undefined;
|
|
34
|
-
}>>> & Readonly<{
|
|
35
|
-
onSubmit?: ((value: Item[]) => any) | undefined;
|
|
36
|
-
}>, {
|
|
37
|
-
title: string;
|
|
38
|
-
categorizedItems: CategorizedItem[];
|
|
39
|
-
initialValue: Item[];
|
|
40
|
-
selectVariant: boolean;
|
|
41
|
-
showVariant: boolean;
|
|
42
|
-
showAddon: boolean;
|
|
43
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
44
|
-
default?(_: {
|
|
45
|
-
trigger: (event?: any) => void;
|
|
46
|
-
}): any;
|
|
47
|
-
}>;
|
|
48
|
-
export default _default;
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
-
} : {
|
|
54
|
-
type: import('vue').PropType<T[K]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type __VLS_WithDefaults<P, D> = {
|
|
59
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
|
-
default: D[K];
|
|
61
|
-
}> : P[K];
|
|
62
|
-
};
|
|
63
|
-
type __VLS_Prettify<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
66
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
-
new (): {
|
|
68
|
-
$slots: S;
|
|
69
|
-
};
|
|
70
|
-
};
|
package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare function trigger(event?: any): void;
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
3
|
-
default?(_: {
|
|
4
|
-
trigger: typeof trigger;
|
|
5
|
-
}): any;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
|
-
new (): {
|
|
10
|
-
$slots: S;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import "./menu-UNNs3oeu.js";
|
|
2
|
-
import { computed as u, ref as i, watch as b } from "vue";
|
|
3
|
-
import { N as d } from "./app-DvG3mOom.js";
|
|
4
|
-
function k(m, c, f = (r) => r.customAttributes ?? {}) {
|
|
5
|
-
const r = u(() => m.value.map(f).filter((t) => !!t)), l = u(() => {
|
|
6
|
-
var e;
|
|
7
|
-
const t = /* @__PURE__ */ new Map();
|
|
8
|
-
for (const y of r.value)
|
|
9
|
-
for (const [o, n] of Object.entries(y))
|
|
10
|
-
t.has(o) || t.set(o, /* @__PURE__ */ new Set()), n && ((e = t.get(o)) == null || e.add(n));
|
|
11
|
-
return t;
|
|
12
|
-
}), p = u(() => Array.from(l.value, ([t, e]) => ({
|
|
13
|
-
type: "string",
|
|
14
|
-
key: t,
|
|
15
|
-
// currently custom attributes only support "restaurant" | "item"
|
|
16
|
-
entity: c,
|
|
17
|
-
values: Array.from(e)
|
|
18
|
-
}))), s = i(null), a = i({});
|
|
19
|
-
return b(
|
|
20
|
-
s,
|
|
21
|
-
(t) => {
|
|
22
|
-
a.value = t ? d.build(t) : {};
|
|
23
|
-
},
|
|
24
|
-
{ deep: !0, immediate: !0 }
|
|
25
|
-
), {
|
|
26
|
-
attributes: p,
|
|
27
|
-
filterRule: s,
|
|
28
|
-
mongoQuery: a
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
k as u
|
|
33
|
-
};
|
package/dist/index-Ce4v8o7D.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { ref as d, watch as m, unref as y, onMounted as v, nextTick as F, readonly as g, getCurrentInstance as O, getCurrentScope as T, onScopeDispose as S } from "vue";
|
|
2
|
-
function G(e) {
|
|
3
|
-
return T() ? (S(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
function f(e) {
|
|
6
|
-
return typeof e == "function" ? e() : y(e);
|
|
7
|
-
}
|
|
8
|
-
const M = typeof window < "u" && typeof document < "u";
|
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10
|
-
const j = Object.prototype.toString, k = (e) => j.call(e) === "[object Object]", p = () => {
|
|
11
|
-
};
|
|
12
|
-
function b(e, n) {
|
|
13
|
-
function r(...t) {
|
|
14
|
-
return new Promise((o, i) => {
|
|
15
|
-
Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(o).catch(i);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return r;
|
|
19
|
-
}
|
|
20
|
-
const h = (e) => e();
|
|
21
|
-
function x(e, n = {}) {
|
|
22
|
-
let r, t, o = p;
|
|
23
|
-
const i = (c) => {
|
|
24
|
-
clearTimeout(c), o(), o = p;
|
|
25
|
-
};
|
|
26
|
-
return (c) => {
|
|
27
|
-
const s = f(e), u = f(n.maxWait);
|
|
28
|
-
return r && i(r), s <= 0 || u !== void 0 && u <= 0 ? (t && (i(t), t = null), Promise.resolve(c())) : new Promise((a, w) => {
|
|
29
|
-
o = n.rejectOnCancel ? w : a, u && !t && (t = setTimeout(() => {
|
|
30
|
-
r && i(r), t = null, a(c());
|
|
31
|
-
}, u)), r = setTimeout(() => {
|
|
32
|
-
t && i(t), t = null, a(c());
|
|
33
|
-
}, s);
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function C(e = h) {
|
|
38
|
-
const n = d(!0);
|
|
39
|
-
function r() {
|
|
40
|
-
n.value = !1;
|
|
41
|
-
}
|
|
42
|
-
function t() {
|
|
43
|
-
n.value = !0;
|
|
44
|
-
}
|
|
45
|
-
const o = (...i) => {
|
|
46
|
-
n.value && e(...i);
|
|
47
|
-
};
|
|
48
|
-
return { isActive: g(n), pause: r, resume: t, eventFilter: o };
|
|
49
|
-
}
|
|
50
|
-
function D(e) {
|
|
51
|
-
return O();
|
|
52
|
-
}
|
|
53
|
-
function P(e, n = 200, r = {}) {
|
|
54
|
-
return b(
|
|
55
|
-
x(n, r),
|
|
56
|
-
e
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
function I(e, n = 200, r = {}) {
|
|
60
|
-
const t = d(e.value), o = P(() => {
|
|
61
|
-
t.value = e.value;
|
|
62
|
-
}, n, r);
|
|
63
|
-
return m(e, () => o()), t;
|
|
64
|
-
}
|
|
65
|
-
function W(e, n, r = {}) {
|
|
66
|
-
const {
|
|
67
|
-
eventFilter: t = h,
|
|
68
|
-
...o
|
|
69
|
-
} = r;
|
|
70
|
-
return m(
|
|
71
|
-
e,
|
|
72
|
-
b(
|
|
73
|
-
t,
|
|
74
|
-
n
|
|
75
|
-
),
|
|
76
|
-
o
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
function L(e, n, r = {}) {
|
|
80
|
-
const {
|
|
81
|
-
eventFilter: t,
|
|
82
|
-
...o
|
|
83
|
-
} = r, { eventFilter: i, pause: l, resume: c, isActive: s } = C(t);
|
|
84
|
-
return { stop: W(
|
|
85
|
-
e,
|
|
86
|
-
n,
|
|
87
|
-
{
|
|
88
|
-
...o,
|
|
89
|
-
eventFilter: i
|
|
90
|
-
}
|
|
91
|
-
), pause: l, resume: c, isActive: s };
|
|
92
|
-
}
|
|
93
|
-
function R(e, n = !0, r) {
|
|
94
|
-
D() ? v(e, r) : n ? e() : F(e);
|
|
95
|
-
}
|
|
96
|
-
export {
|
|
97
|
-
R as a,
|
|
98
|
-
G as b,
|
|
99
|
-
k as c,
|
|
100
|
-
M as i,
|
|
101
|
-
p as n,
|
|
102
|
-
I as r,
|
|
103
|
-
f as t,
|
|
104
|
-
P as u,
|
|
105
|
-
L as w
|
|
106
|
-
};
|