@feedmepos/mf-menu 0.31.40-beta.2 → 0.31.40-prod

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 (91) hide show
  1. package/dist/{App-CoKv0BFp.js → App-aWEH-ZEk.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B14Q0hS_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
  3. package/dist/{Catalog-BRovMtuI.js → Catalog-BoFfFdn8.js} +9 -8
  4. package/dist/{Category-DytZqgIt.js → Category-CWYbb3Jn.js} +4 -4
  5. package/dist/{Category-CT8-B4zh.js → Category-DZ45uikR.js} +6 -6
  6. package/dist/{CookingGuide-Ct5qRLG0.js → CookingGuide-BU0PRWIQ.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3R3TCba.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
  8. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
  9. package/dist/{Group-Dk1yQTTt.js → Group-BMQDeqiS.js} +1 -1
  10. package/dist/{Group-G_H8i5_8.js → Group-C0T_uknK.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CoTdB2d5.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
  12. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKx7uQtR.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
  14. package/dist/{Ingredient-ChynYQq6.js → Ingredient-3lwDUQx_.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DyaUxnMx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +2 -2
  16. package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
  17. package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
  18. package/dist/MenuSetting-AhutsCVy.js +185 -0
  19. package/dist/{PrintRoute-DwAZHUrQ.js → PrintRoute-DfJ-vUAb.js} +4 -4
  20. package/dist/{Product-Bx2NPQvC.js → Product-F4PoLm9v.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-od_O6x7E.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
  22. package/dist/{ProductInternalTools-BOguHh06.js → ProductInternalTools-DSGU-OqU.js} +6 -6
  23. package/dist/{Products-DA2hOsxr.js → Products-COzW2Z4g.js} +85 -88
  24. package/dist/{Publish-WATQWkjh.js → Publish-CDXVWCk2.js} +3 -3
  25. package/dist/{Recipe-WPwGgur3.js → Recipe-BZx4wrcP.js} +4 -4
  26. package/dist/{Scheduler-Djjggrh2.js → Scheduler-wHCWSeU2.js} +3 -3
  27. package/dist/{ServingSequence-CryZJTWA.js → ServingSequence-BbYEhDYh.js} +3 -3
  28. package/dist/{Setting-BtLsmoqY.js → Setting-C9Tlw1Iy.js} +45 -44
  29. package/dist/{Subcategory-BvlYDquD.js → Subcategory-C8AwfrKb.js} +4 -4
  30. package/dist/{Takeaway-8khxlcKQ.js → Takeaway-DaEUn-yM.js} +4 -4
  31. package/dist/{Takeaway-BBvFxAlx.js → Takeaway-t1053wg2.js} +1 -1
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B8blN-yJ.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CA9RlNkt.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
  35. package/dist/{Unit-Diu00sM2.js → Unit-CnqptGCz.js} +2 -2
  36. package/dist/{Variant-CO15W0wb.js → Variant-DiOYOwJs.js} +3 -3
  37. package/dist/{_id_-CxA_FzSG.js → _id_-BSfU16VO.js} +75 -78
  38. package/dist/{app-Blbof2Ga.js → app-Cou6qPF2.js} +1 -1
  39. package/dist/{app-5ESai6-B.js → app-Ddb81PNo.js} +278 -278
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
  42. package/dist/apps/mf-menu/src/app.d.ts +0 -144
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
  44. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
  47. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
  48. package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
  49. package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
  52. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/linked-status-B_crHhZH.js +24 -0
  55. package/dist/assets/override-menu-BmlCEpHH.js +24 -0
  56. package/dist/assets/validate-menu-CF-psoB-.js +24 -0
  57. package/dist/{catalog-CXjEQ80k.js → catalog-DSuJhsUb.js} +1 -1
  58. package/dist/{catalogSetting-aJSUDY_z.js → catalogSetting-C3gEw9ov.js} +1 -1
  59. package/dist/{category-TqQULuHq.js → category-CwWq3KCE.js} +1 -1
  60. package/dist/{currency-CRjh8ne7.js → currency-g45Sh-t6.js} +1 -1
  61. package/dist/{dayjs.min-MBmYgyRY.js → dayjs.min-g3eN5z-V.js} +1 -1
  62. package/dist/index-0Q5T9VZV.js +214 -0
  63. package/dist/{index-dkHuztwB.js → index-0yRUi7LL.js} +1 -1
  64. package/dist/{index-CzjFGFvP.js → index-BLQCYEc6.js} +8 -7
  65. package/dist/{index-B1NS2hBa.js → index-QsLFbxyG.js} +4 -4
  66. package/dist/{item-Dj14On9a.js → item-BvvQ9urP.js} +386 -386
  67. package/dist/{jszip.min-Be1afVon.js → jszip.min-DzdUiaR4.js} +353 -353
  68. package/dist/{menu-C0Xu-iTb.js → menu-DFNvhoNQ.js} +31149 -31298
  69. package/dist/{menu-kRDoPBjm.js → menu-QrVg2Ph7.js} +7 -7
  70. package/dist/{menuV2-D6Gmxd9X.js → menuV2-Ezf_jW40.js} +137 -142
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{priceTier-CJlFGOpm.js → priceTier-zENsn3P_.js} +1 -1
  73. package/dist/{scheduler-B11d6fJr.js → scheduler-BuwGSv6A.js} +8 -8
  74. package/dist/{subcategory-D6hTbHP-.js → subcategory-O3L_zCJA.js} +2 -2
  75. package/dist/{toExcel-BedErXvS.js → toExcel-CpRy_4nG.js} +2 -2
  76. package/dist/{unit-D5jDzsM2.js → unit-Ct_7Hfa2.js} +41 -42
  77. package/package.json +3 -3
  78. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_Yv8Thl.js +0 -399
  79. package/dist/LinkProductSideSheet-DsoPo7Q_.js +0 -361
  80. package/dist/MenuSetting-CDSc-56P.js +0 -618
  81. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-LVWB5CIa.js +0 -5994
  82. package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -26
  83. package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
  84. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
  85. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
  86. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
  87. package/dist/assets/linked-status-x1efKEih.js +0 -13
  88. package/dist/assets/override-menu-D8d9BWzy.js +0 -13
  89. package/dist/assets/validate-menu-DUJ20GHx.js +0 -13
  90. package/dist/customAttributes-32VmzFKZ.js +0 -177
  91. package/dist/index-FzHOAFSW.js +0 -246
@@ -1,26 +0,0 @@
1
- import { type ComputedRef, type Ref } from "vue";
2
- import { FdoRuleGroup } from "@feedmepos/custom-attributes";
3
- import type { FdoMenuV4Category, FdoMenuV4Item } from "@feedmepos/menu/entity";
4
- interface UseItemAttributesOptions {
5
- menuItems?: ComputedRef<FdoMenuV4Item[]> | Ref<FdoMenuV4Item[]>;
6
- categories?: ComputedRef<FdoMenuV4Category[]> | Ref<FdoMenuV4Category[]>;
7
- }
8
- export declare function useRestaurantAttributes(): {
9
- restaurantAttributes: ComputedRef<{
10
- type: "string" | "number" | "date";
11
- key: string;
12
- entity: "item" | "restaurant";
13
- values?: string[] | undefined;
14
- }[]>;
15
- };
16
- export declare function useItemAttributes(options?: UseItemAttributesOptions): {
17
- itemAttributes: ComputedRef<{
18
- type: "string" | "number" | "date";
19
- key: string;
20
- entity: "item" | "restaurant";
21
- values?: string[] | undefined;
22
- }[]>;
23
- convertCategoryIdToName: (ruleGroup: FdoRuleGroup) => FdoRuleGroup;
24
- convertCategoryNameToId: (ruleGroup: FdoRuleGroup) => FdoRuleGroup;
25
- };
26
- export {};
@@ -1 +0,0 @@
1
- export declare function removeDuplicates<T>(toBeDeduped: T[]): T[];
@@ -1,12 +0,0 @@
1
- /**
2
- * Converts a MongoDB query to an FDO rule object
3
- * @param query - The MongoDB query to convert
4
- * @returns FDO rule object or EMPTY_RULE if query is empty
5
- */
6
- export declare function mongoQueryToFdoRule(query: any): any;
7
- /**
8
- * Converts an FDO rule object to a MongoDB query
9
- * @param query - The FDO rule object to convert
10
- * @returns MongoDB query or null if rule is empty
11
- */
12
- export declare function fdoRuleToMongoQuery(query: any): any;
@@ -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,176 +0,0 @@
1
- import { FdoMenuRuleGroup } from "@feedmepos/menu/entity";
2
- interface Props {
3
- modelValue: boolean;
4
- editingGroup: FdoMenuRuleGroup | null;
5
- }
6
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:modelValue": (value: boolean) => void;
8
- submit: (groupData: z.infer<z.ZodObject<{
9
- _id: z.ZodString;
10
- name: z.ZodString;
11
- description: z.ZodString;
12
- rules: z.ZodArray<z.ZodObject<{
13
- _id: z.ZodString;
14
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
15
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
16
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
17
- }, "strip", z.ZodTypeAny, {
18
- restaurantAttributes?: any;
19
- restaurantCustomAttributes?: any;
20
- }, {
21
- restaurantAttributes?: any;
22
- restaurantCustomAttributes?: any;
23
- }>>>;
24
- itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
25
- itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
26
- itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
27
- }, "strip", z.ZodTypeAny, {
28
- itemAttributes?: any;
29
- itemCustomAttributes?: any;
30
- }, {
31
- itemAttributes?: any;
32
- itemCustomAttributes?: any;
33
- }>>>;
34
- }, "strip", z.ZodTypeAny, {
35
- restaurantRule?: {
36
- restaurantAttributes?: any;
37
- restaurantCustomAttributes?: any;
38
- } | null | undefined;
39
- itemRule?: {
40
- itemAttributes?: any;
41
- itemCustomAttributes?: any;
42
- } | null | undefined;
43
- _id: string;
44
- }, {
45
- restaurantRule?: {
46
- restaurantAttributes?: any;
47
- restaurantCustomAttributes?: any;
48
- } | null | undefined;
49
- itemRule?: {
50
- itemAttributes?: any;
51
- itemCustomAttributes?: any;
52
- } | null | undefined;
53
- _id: string;
54
- }>, "many">;
55
- }, "strip", z.ZodTypeAny, {
56
- name: string;
57
- description: string;
58
- _id: string;
59
- rules: {
60
- restaurantRule?: {
61
- restaurantAttributes?: any;
62
- restaurantCustomAttributes?: any;
63
- } | null | undefined;
64
- itemRule?: {
65
- itemAttributes?: any;
66
- itemCustomAttributes?: any;
67
- } | null | undefined;
68
- _id: string;
69
- }[];
70
- }, {
71
- name: string;
72
- description: string;
73
- _id: string;
74
- rules: {
75
- restaurantRule?: {
76
- restaurantAttributes?: any;
77
- restaurantCustomAttributes?: any;
78
- } | null | undefined;
79
- itemRule?: {
80
- itemAttributes?: any;
81
- itemCustomAttributes?: any;
82
- } | null | undefined;
83
- _id: string;
84
- }[];
85
- }>>) => void;
86
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
87
- onSubmit?: ((groupData: z.infer<z.ZodObject<{
88
- _id: z.ZodString;
89
- name: z.ZodString;
90
- description: z.ZodString;
91
- rules: z.ZodArray<z.ZodObject<{
92
- _id: z.ZodString;
93
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
94
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
95
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
96
- }, "strip", z.ZodTypeAny, {
97
- restaurantAttributes?: any;
98
- restaurantCustomAttributes?: any;
99
- }, {
100
- restaurantAttributes?: any;
101
- restaurantCustomAttributes?: any;
102
- }>>>;
103
- itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
104
- itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
105
- itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
106
- }, "strip", z.ZodTypeAny, {
107
- itemAttributes?: any;
108
- itemCustomAttributes?: any;
109
- }, {
110
- itemAttributes?: any;
111
- itemCustomAttributes?: any;
112
- }>>>;
113
- }, "strip", z.ZodTypeAny, {
114
- restaurantRule?: {
115
- restaurantAttributes?: any;
116
- restaurantCustomAttributes?: any;
117
- } | null | undefined;
118
- itemRule?: {
119
- itemAttributes?: any;
120
- itemCustomAttributes?: any;
121
- } | null | undefined;
122
- _id: string;
123
- }, {
124
- restaurantRule?: {
125
- restaurantAttributes?: any;
126
- restaurantCustomAttributes?: any;
127
- } | null | undefined;
128
- itemRule?: {
129
- itemAttributes?: any;
130
- itemCustomAttributes?: any;
131
- } | null | undefined;
132
- _id: string;
133
- }>, "many">;
134
- }, "strip", z.ZodTypeAny, {
135
- name: string;
136
- description: string;
137
- _id: string;
138
- rules: {
139
- restaurantRule?: {
140
- restaurantAttributes?: any;
141
- restaurantCustomAttributes?: any;
142
- } | null | undefined;
143
- itemRule?: {
144
- itemAttributes?: any;
145
- itemCustomAttributes?: any;
146
- } | null | undefined;
147
- _id: string;
148
- }[];
149
- }, {
150
- name: string;
151
- description: string;
152
- _id: string;
153
- rules: {
154
- restaurantRule?: {
155
- restaurantAttributes?: any;
156
- restaurantCustomAttributes?: any;
157
- } | null | undefined;
158
- itemRule?: {
159
- itemAttributes?: any;
160
- itemCustomAttributes?: any;
161
- } | null | undefined;
162
- _id: string;
163
- }[];
164
- }>>) => any) | undefined;
165
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
166
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
167
- export default _default;
168
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
169
- type __VLS_TypePropsToRuntimeProps<T> = {
170
- [K in keyof T]-?: {} extends Pick<T, K> ? {
171
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
172
- } : {
173
- type: import('vue').PropType<T[K]>;
174
- required: true;
175
- };
176
- };