@feedmepos/mf-menu 0.31.33-beta.7 → 0.31.33-beta.9

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.
Files changed (86) hide show
  1. package/dist/{App-CZEABsQj.js → App-WQChaTIO.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D_ak48OL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-t1K3plXk.js} +20 -20
  3. package/dist/{Catalog-DS7IAwCI.js → Catalog-BX_1g0ru.js} +6 -6
  4. package/dist/{Category-Bi3vbTgq.js → Category-C6BSLYTZ.js} +19 -19
  5. package/dist/{Category-DKes4JxR.js → Category-COTd0h8i.js} +14 -14
  6. package/dist/{CookingGuide-Cl-JvfNC.js → CookingGuide-DTTGVOtZ.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C01PGALf.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-UQQSF2Fv.js} +1 -1
  8. package/dist/{Group-CDmNdtn6.js → Group-BKhYr_XK.js} +3 -3
  9. package/dist/{Group-CPd33rHj.js → Group-tv4NRLFA.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DLhPMn7r.js → Group.vue_vue_type_script_setup_true_lang-Cql0J4TN.js} +38 -36
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DIUX09XZ.js +367 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DZgnCsAY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-azTd9oJY.js} +12597 -12946
  13. package/dist/{Ingredient-C5iKMG5S.js → Ingredient-EhrV45jG.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CYb8p8df.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DNLOCn6Z.js} +2 -2
  15. package/dist/LinkProductSideSheet-CLUkYMJx.js +297 -0
  16. package/dist/{MenuSetting-DeLFW5Q0.js → MenuSetting-DMYnqQqF.js} +4 -4
  17. package/dist/{PrintRoute-BptA-_Yt.js → PrintRoute-Ct0vYBI0.js} +89 -88
  18. package/dist/{Product-D5WYsf9P.js → Product-CVOGBfGP.js} +1 -1
  19. package/dist/Product.vue_vue_type_script_setup_true_lang-3qo4KHwM.js +1578 -0
  20. package/dist/{ProductInternalTools-_ml77R5u.js → ProductInternalTools-BD4pbpTq.js} +5 -5
  21. package/dist/Products-DiqJJi0G.js +283 -0
  22. package/dist/{Publish-BB_8J3PJ.js → Publish-DNW7kAyt.js} +3 -3
  23. package/dist/{Recipe-Dc7mD-Mu.js → Recipe-DB59Oilo.js} +4 -4
  24. package/dist/{Scheduler-H2mx0WJm.js → Scheduler-CdvXOmD9.js} +3 -3
  25. package/dist/{ServingSequence-GYdFh7RK.js → ServingSequence-BJidBanx.js} +3 -3
  26. package/dist/{Setting-B_-Bv8NR.js → Setting-CT0-ErCV.js} +5 -5
  27. package/dist/{Subcategory-CHcCMqcS.js → Subcategory-Qss-q16J.js} +4 -4
  28. package/dist/{Takeaway-BeDox-sK.js → Takeaway-Cco68UWM.js} +1 -1
  29. package/dist/{Takeaway-BaDz1y8l.js → Takeaway-DJZrAOhK.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CwWyzrey.js → Takeaway.vue_vue_type_script_setup_true_lang-_UIxFm40.js} +5 -5
  31. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DQ8A_b8N.js +431 -0
  32. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C-GQNgOs.js +5990 -0
  33. package/dist/{Unit-D4uSc8lg.js → Unit-jNMtjCqg.js} +2 -2
  34. package/dist/{Variant-MVe8LhBc.js → Variant-vgkCtn6k.js} +3 -3
  35. package/dist/_id_-VWD7FuB8.js +202 -0
  36. package/dist/{app-BbIBgy7D.js → app-DCfZrw5q.js} +1 -1
  37. package/dist/{app-B0ogzdm0.js → app-FT-17pdN.js} +24 -24
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  41. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +3 -1
  42. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  43. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  44. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{linked-status-DepVvcGX.js → linked-status-CgdauMC-.js} +8 -8
  47. package/dist/assets/{override-menu-Cb7cvOj9.js → override-menu-BjjuzKpf.js} +8 -8
  48. package/dist/assets/{validate-menu-Hc7m9hHC.js → validate-menu-C0NftO2y.js} +8 -8
  49. package/dist/{catalog-_R7Bi_aW.js → catalog-Cu3xX3Ij.js} +1 -1
  50. package/dist/{catalogSetting-Bnr55VnE.js → catalogSetting-MeAAWjBX.js} +1 -1
  51. package/dist/{category-C0kozMAs.js → category-D5yCmLTw.js} +1 -1
  52. package/dist/{currency-DFA-7C9k.js → currency-DQtVpVAB.js} +1 -1
  53. package/dist/{dayjs.min-BzOsbxFW.js → dayjs.min-B17nF95f.js} +1 -1
  54. package/dist/{index-asthzgeW.js → index-1CsXkVcJ.js} +1 -1
  55. package/dist/{index-y3TkmTDS.js → index-B6mBc4vZ.js} +3 -3
  56. package/dist/{index-LrL2OIsF.js → index-CAsg0n3_.js} +3 -3
  57. package/dist/index-D7yR1j9C.js +215 -0
  58. package/dist/{item-BHFMgTjL.js → item-BXuPBp61.js} +196 -194
  59. package/dist/{jszip.min-BYCWga7V.js → jszip.min-Dzj1bdkj.js} +245 -245
  60. package/dist/{menu-UNNs3oeu.js → menu-CpOCeOvo.js} +1201 -1192
  61. package/dist/{menu-7YBc_V0y.js → menu-CzQXSBCu.js} +1 -1
  62. package/dist/menuV2-Cw9jPRug.js +707 -0
  63. package/dist/mf-menu.css +1 -1
  64. package/dist/{priceTier-I7O5kuz-.js → priceTier-DmDrpMES.js} +1 -1
  65. package/dist/{scheduler-c0cSXqeD.js → scheduler-f8MIyGun.js} +16 -17
  66. package/dist/subcategory-C3sMuoGj.js +148 -0
  67. package/dist/{toExcel-C8d-m0RH.js → toExcel-BoLqUKHC.js} +2 -2
  68. package/dist/{unit-B0Bl56gY.js → unit-CAKmah7M.js} +5 -4
  69. package/package.json +3 -3
  70. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  71. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1ET8Ys.js +0 -372
  72. package/dist/LinkProductSideSheet-QUllj_xC.js +0 -112
  73. package/dist/Product.vue_vue_type_script_setup_true_lang-TwmxZaik.js +0 -1644
  74. package/dist/Products-BA-G2Yya.js +0 -270
  75. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  76. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dp2eaieu.js +0 -6149
  77. package/dist/_id_-CoMVzmjC.js +0 -178
  78. package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +0 -2
  79. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  80. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +0 -12
  81. package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +0 -88
  82. package/dist/customAttributes-C1FljtXt.js +0 -33
  83. package/dist/index-Ce4v8o7D.js +0 -106
  84. package/dist/subcategory-YHkkwrLj.js +0 -817
  85. /package/dist/{app-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +0 -0
  86. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -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
- };
@@ -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,88 +0,0 @@
1
- import { type ComputedRef, type Ref } from "vue";
2
- import { type MongoQuery } from "@feedmepos/custom-attributes";
3
- type CustomAttribute = Record<string, any> | null | undefined;
4
- export declare function useCustomAttributes(source: Ref<any[]> | ComputedRef<any[]>, entity: "restaurant" | "item" | "group", mapper?: (item: any) => CustomAttribute): {
5
- attributes: ComputedRef<{
6
- type: "string";
7
- key: string;
8
- entity: any;
9
- values: string[];
10
- }[]>;
11
- filterRule: Ref<{
12
- value: string | number | boolean | (string | number | boolean)[];
13
- type: "string" | "number" | "date";
14
- operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
15
- property: string;
16
- } | {
17
- logic: "AND" | "OR";
18
- rules: (any | {
19
- value: string | number | boolean | (string | number | boolean)[];
20
- type: "string" | "number" | "date";
21
- operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
22
- property: string;
23
- })[];
24
- } | null, {
25
- value: string | number | boolean | (string | number | boolean)[];
26
- type: "string" | "number" | "date";
27
- operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
28
- property: string;
29
- } | import("@feedmepos/custom-attributes").FdoRuleGroup | {
30
- value: string | number | boolean | (string | number | boolean)[];
31
- type: "string" | "number" | "date";
32
- operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
33
- property: string;
34
- } | {
35
- logic: "AND" | "OR";
36
- rules: (any | {
37
- value: string | number | boolean | (string | number | boolean)[];
38
- type: "string" | "number" | "date";
39
- operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
40
- property: string;
41
- })[];
42
- } | null>;
43
- mongoQuery: Ref<{
44
- [x: string]: any;
45
- } | {
46
- [x: string]: any;
47
- $and: ({
48
- [x: string]: any;
49
- } | any | {
50
- [x: string]: any;
51
- $or: ({
52
- [x: string]: any;
53
- } | any | any)[];
54
- })[];
55
- } | {
56
- [x: string]: any;
57
- $or: ({
58
- [x: string]: any;
59
- } | {
60
- [x: string]: any;
61
- $and: ({
62
- [x: string]: any;
63
- } | any | any)[];
64
- } | any)[];
65
- }, MongoQuery<any> | {
66
- [x: string]: any;
67
- $and: ({
68
- [x: string]: any;
69
- } | any | {
70
- [x: string]: any;
71
- $or: ({
72
- [x: string]: any;
73
- } | any | any)[];
74
- })[];
75
- } | {
76
- [x: string]: any;
77
- $or: ({
78
- [x: string]: any;
79
- } | {
80
- [x: string]: any;
81
- $and: ({
82
- [x: string]: any;
83
- } | any | any)[];
84
- } | any)[];
85
- }>;
86
- };
87
- export declare function isEmptyMongoQuery(query: MongoQuery<any>): boolean;
88
- export {};
@@ -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
- };
@@ -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
- };